libx264

Android h264 decode non-existing PPS 0 referenced

允我心安 提交于 2019-12-11 04:13:40
问题 In Android JNI, using ffmpeg with libx264 use below codes to encode and decode raw rgb data!. I should use swscale to convert rgb565 to yuv420p as required by H.264. But not clear about this conversion.Please help, where i am wrong, with regard the log i get! Code for Encoding codecinit()- called once(JNI wrapper function) int Java_com_my_package_codecinit (JNIEnv *env, jobject thiz) { avcodec_register_all(); codec = avcodec_find_encoder(AV_CODEC_ID_H264);//AV_CODEC_ID_MPEG1VIDEO); if(codec-

libx264 encoder error in ffmpeg android build

百般思念 提交于 2019-12-10 11:55:28
问题 Right now, I have a ffmeg build script which recognizes libx264 and compiles succesfully. I have also compiled x264 and obtained libx264.a library. Both ffmpeg and libx264 are built from source. I can build ffmpeg without libx264 succesfully as well. Below you may find my script which tries to build ffmpeg with libx264. #!/bin/bash NDK=~/Android_NDK_r7b PLATFORM=$NDK/platforms/android-8/arch-arm/ PREBUILT=$NDK/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86 alitan=~/x264/ndk7_build

ffmpeg/libx264 C API: frames dropped from end of short MP4

佐手、 提交于 2019-12-08 11:00:07
问题 In my C++ application, I am taking a series of JPEG images, manipulating their data using FreeImage, and then encoding the bitmaps as H264 using the ffmpeg/libx264 C API. The output is an MP4 which shows the series of 22 images at 12fps. My code is adapted from the "muxing" example that comes with ffmpeg C source code. My problem: no matter how I tune the codec parameters, a certain number of frames at the end of the sequence which are passed to the encoder do not appear in the final output.

Fast Video Compression on Android

試著忘記壹切 提交于 2019-12-08 10:46:45
问题 I want to upload video files to server and compress before uploading. I'm using ffmpeg libx264. I have seen viber can upload 30 second video file of size 78MB within a minute [reduce it's down to 2.3MB]. I want to know how do they do it so fast? What I have tried so far - FFMPEG version : n2.4.2 Built with gcc 4.8 Build Configuraiton : --target-os=linux --cross-prefix=/home/sb/Source-Code/ffmpeg-android/toolchain-android/bin/arm-linux-androideabi- --arch=arm --cpu=cortex-a8 --enable-runtime

libx264: which parameters can be changed on fly?

久未见 提交于 2019-12-08 06:45:38
问题 I know that it is possible to change some encoder parameters on fly, using x264_encoder_reconfig(). From this commit I can deduce that we can change ratecontrol parameters - but I was unable to find a clear list of parameters that may be changed. Question: which parameters of x264 encoder can be changed on fly? 回答1: You can look for the list of reconfigurable options in the source code of libx264 x264_encoder_try_reconfig function 来源: https://stackoverflow.com/questions/22981704/libx264-which

how to use x264 encoder with directshow

放肆的年华 提交于 2019-12-05 04:37:00
问题 i can't figure out how to use x264 with directshow. i installed many thinks that pretend to have x264 encoder in with no use i downloaded the videoLAN x264 binary and when i run it, it shows so fast a console windows, and nothing happen after that these is the encoders that i have i am working on windows 8.1 x64 please help with this issue it's just going to make me crazy hhh, i wanna use x264 because the other encoders that i have installed, either didn't work or encode with so big size. 回答1

using X264 and librtmp to send live camera frame, but the flash can't show

99封情书 提交于 2019-12-04 16:02:19
I am using X264 and librtmp to send my live camera frame, all the things seems right. but my web test flash can't show the correct video. Sometimes it seems correct, but when I re-click play button, it doesn't show any picture on the flash. Here is my X264 config code x264_param_default_preset(&x264param, "ultrafast", "zerolatency"); x264param.i_threads = 2; x264param.i_width = width; x264param.i_height = height; x264param.i_log_level = X264_LOG_DEBUG; x264param.i_fps_num = x264param.i_timebase_num= fps; x264param.i_fps_den = x264param.i_timebase_den=1; x264param.i_frame_total = 0; x264param.i

How to encode H.264 video using FFmpeg C API and then open the output with a media player?

强颜欢笑 提交于 2019-12-04 12:28:36
问题 I'm trying to encode a H.264 video with the FFMPEG C API. I have successfully compiled and executed the decoding/encoding example provided by FFMPEG. The problem I'm facing is that the .mpg file (encoded with AV_CODEC_ID_MPEG1VIDEO) the example creates works. Windows creates a thumbnail and everything. On the other hand the .h264 (encoded with AV_CODEC_ID_H264) file does not. When I try to play the file in VLC the play/pause button just flickers, no thumbnail in windows, no nothing. During

broken ffmpeg default settings detected

主宰稳场 提交于 2019-12-03 23:37:49
I am getting broken ffmpeg error while VideoWrite using X264 Fourcc codec.I have install all the dependencies.How can I rectify this problem.The sample code that I have been using is as follows. VideoWriter oVideoWriter ("path.mp4", CV_FOURCC('X','2','6','4'), 15, frameSize, false); Operating system : Ubuntu 14.04 64-bit Console Error: [libx264 @ 0x8d6220] broken ffmpeg default settings detected [libx264 @ 0x8d6220] use an encoding preset (e.g. -vpre medium) [libx264 @ 0x8d6220] preset usage: -vpre <speed> -vpre <profile> [libx264 @ 0x8d6220] speed presets are listed in x264 --help [libx264 @

how to use x264 encoder with directshow

自古美人都是妖i 提交于 2019-12-03 21:19:28
i can't figure out how to use x264 with directshow. i installed many thinks that pretend to have x264 encoder in with no use i downloaded the videoLAN x264 binary and when i run it, it shows so fast a console windows, and nothing happen after that these is the encoders that i have i am working on windows 8.1 x64 please help with this issue it's just going to make me crazy hhh, i wanna use x264 because the other encoders that i have installed, either didn't work or encode with so big size. x264 itself does not have DirectShow interface, so you need a wrapper (or, you need to implement it