ffmpeg/ffprobe show_frames option - ffmpeg

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

Related

ffmpeg - Invalid report file level (windows)

ffmpeg is giving me an error and I couldn't get much help googling it, besides a thread on ffmpeg mailing list dated 5 years ago which doesn't address the exact same problem.
No matter which ffmpeg version or build for windows I use, the error is always:
c:\>ffmpeg.exe
Invalid report file level
I've been using ffmpeg on the same computer for years and I've no idea where the problem started and how to debug it. Any help is welcome.
Notes:
No antivirus is running
ffmpeg.exe is on windows path
I've tried installing ffmpeg with choco install
ffmpeg but it reports the same error.
If the environment variable FFREPORT is set, ffmpeg will parse it to set loglevel for the verbosity of the log report and also its location. What you've encountered is a parse failure of that system variable.
So, either unset it using set FFREPORT= or set it to a different string. See -report under https://ffmpeg.org/ffmpeg.html#Generic-options

Use ffmpeg on OSX Xcode Project for Mac

I am planning to create a new app for personal use on my Mac that uses FFMPEG library, to store a feed from a RTSP IP camera.
Following this official installation procedure from FFMPEG I have manage to successfully achieve the following 2 steps:
To get ffmpeg for OS X, you first have to install ​Homebrew. If you don't want to use Homebrew, see the section below.
ruby -e "$(curl -fsSL
https://raw.githubusercontent.com/Homebrew/install/master/install)"
Then:
- brew install automake fdk-aac git lame libass libtool libvorbis
libvpx \ opus sdl shtool texi2html theora wget x264 xvid yasm
Question:
My question here because I am confused, is how to import a library into Xcode so I can use it in the application I am about to build for my Mac. I can see plenty of GitHub projects related to FFMPEG with IOS/Android, but none for OSX.
All the FFMPEG commands under terminal are working fine, such as converting a video etc.
If you look in /usr/local/Cellar/ffmpeg you will find the actual ffmpeg package and everything in homebrew is just symbolic links to that. For example:
/usr/local/bin/ffmpeg -> ../Cellar/ffmpeg/3.0.2/bin/ffmpeg
Now, if you stay in that directory and do this, you will find all the pkgconfig configuration settings for the constituent parts of ffmpeg:
find . -name \*.pc
./lib/pkgconfig/libavcodec.pc
./lib/pkgconfig/libavdevice.pc
./lib/pkgconfig/libavfilter.pc
./lib/pkgconfig/libavformat.pc
./lib/pkgconfig/libavresample.pc
./lib/pkgconfig/libavutil.pc
./lib/pkgconfig/libpostproc.pc
./lib/pkgconfig/libswresample.pc
./lib/pkgconfig/libswscale.pc
That means you can now find the include path and library paths that you need to put in the Xcode settings. So, for example, if you want the includes for libavutil, you can do:
pkg-config --cflags libavutil
and it will tell you:
-I/usr/local/Cellar/ffmpeg/3.0.2/include
If you want the library settings for libavfilter, you can do:
pkg-config --libs libavfilter
and it will tell you
-L/usr/local/Cellar/ffmpeg/3.0.2/lib -lavfilter
So that is how you get the settings for the compiler/linker. Then you need to put them into Xcode, and I have described that here - look at the bit with the yellow, red and blue boxes.
Hope that helps. Oh, you need to do:
brew install pkg-config
first to get the pkgconfig binary.
In general, you need to configure the Xcode target build settings to add /usr/local/include to the Header Search Path.
Then your #include <ffmpeg.h> (or whatever it's called) will start to work.
Then for linking to libffmpeg.a (or whatever it's called), you can do one of two things:
Add the file to the Additional Libraries and Frameworks of the build settings (selecting it via a file open dialog).
Add /usr/local/lib to the Library Search Paths and -lffmpeg to the Other Linker Flags.
(1. is better if you ask me).
I use Macports, so for me the paths are /opt/local/{include,lib} however with Homebrew there might be an additional level of directory (like /usr/local/ffmpeg/{include,lib}, but you should be able to work that out yourself.
I won't go into details of how to actually use FFMPEG as that is way too involved (and I know nothing about it).
Although this does not answer the specific question here ("how to import such and such libraries"),
for anyone googling here, these days to use FFmpeg in OSX you just
Use the famous import script of Kewlbear
which you can easily find here
https://github.com/kewlbear/FFmpeg-iOS-build-script
and which does everything.
It is a huge amount of non-trivial work maintaining such a build script, and fortunately there's someone who does that work on an ongoing basis.

Compile ffmpeg with libfaac on Windows

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.

What parameters are required to use x264 via ffmpeg?

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.

ffmpeg textdraw.so needed

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.

Resources