i have an AVI file, i have decoded it into Raw form first, now i want to encode it in .h264 format. I am using libavcodec.dll and libavformat.dll.
The point is when i try to open the codec from avcodec_open(AVCodecContext,AVCodec)
It doesnot open. Am i missing some parameters that i need to specify for execution of this method for the lib x264?
Any help will be deeply appreciated.
Thanks
There are two common ways to encode AVI file to H.264 using x264:
1, Compile and install ffmpeg, with --enable-shared, then compile and install x264. You'll see lavf: yes when configuring. Then do the converting using x264 cli or something else(such as DirectX264).
2, Compile and install x264, with --enable-shared, then compile and install ffmpeg with --enable-libx264. Then you will be able to convert using ffmpeg cli or something else(such as WinFF).
And btw .h264 is not a sufficient suffix, please use ".mkv", ".mp4" or something instead.
Related
I'm using ffmpeg, and I need it to have libfaac, and I understand the only way to make that happen is to compile it from source. I read a bunch of tutorials, and installed mingw, but I can't run the commands ./configure or make. Is there something I'm missing or another way to do this?
I fixed my problem. I gave up on libfaac, and instead just added the following code:
audio_codec: "aac", custom: "-strict experimental -q:v 5 -preset slow -g 30" to the arguments of encode_video for it to not to try to use libfaac.
Also, I had the wrong MinGW. I had the git version, but I needed MSys to run commands such as ./configure and make and make install.
I recently installed ffmpeg version 0.8.5-4:0.8.5 on my Ubuntu Linux box.
When I execute "ffprobe -show_frames http://test.com/test.mp4" I get the following error:
Unrecognized option 'show_frames'
I have tried installed all sorts of ffmpeg dependent packages to fix this without any success.
Can someone help to resolve this error by telling me what I need to install exactly to fix this?
Thanks
You're using a crippled, fake version of "ffprobe" that originates from libav, not FFmpeg:
Ubuntu switched from FFmpeg to libav because the Debian/Ubuntu ffmpeg package maintainer is a libav developer. The intentional usage of the names "ffmpeg" and "ffprobe" for something not from FFmpeg was disappointing, and is misguiding to users and misrepresents the work of the FFmpeg developers. Also see Who can tell me the difference and relation between ffmpeg, libav, and avconv?
This bizarro "ffprobe" does not have the -show_frames option. You have three options:
Compile ffmpeg and/or ffprobe
Use Jon Severinsson's FFmpeg PPA
Use a static build of ffmpeg
All three methods will provide a real, working ffprobe. Use the static build if you're lazy.
Uninstalled the current version of ffmpeg(This was a static build downloaded from the ffmpeg site: http://ffmpeg.gusari.org/static/32bit/
show_frames option was deprecated in this version.
Download and installed the latest version from:http://www.ffmpeg.org/releases/ffmpeg-1.1.3.tar.bz2
hi i am using mac osx with mamp and i was wondering how i can link ffmpeg to php.ini so that i can use it with php exec() ?
the directory that ffmpeg got installed in is /users/sarmenhb/ffmpeg although i wish it didnt get installed here and got installed somewhere more appropriate, i sadly have no clue how to change the system to know where the new location is.
i read a few articles telling me to put something like extensions = /users/sarmenhb/ffmpeg/ffmpeg.so but looking in the directory i dont see a so file. i do see ffmpeg as a console app is that an so file itself?
thanks
ps: i did a test of ffmpeg in console from a flv file to a mp4 file and the audio didnt work on the new file. do i have to install something?
You can use the full path when executing ffmpeg:
exec("/users/sarmenhb/ffmpeg");
I am using ubuntu 8.10. I wanted to know what I need to do to get SOX to work on MP4 files.
Yes..sox has support for mp4, m4p, & m4a. They're marked as optional in the pdf manual. Perhaps one has to compile sox from the source files e.g. the sox(version number).tar.gz source package...unpack it using an archive manager, then do something like make, make install, etc... while including the additional option for the mp4 types of files. Checkout the README file in the package to make sure.
Are you sure there's any support in SOX for them? You may have to use a separate encoder/decoder to go to/from mp4.
It seems textdraw.so for ffmpeg is missing. Where could I get one?
Check with the latest revision of ffmpeg. Try build it with default configuration command and verify.