Sendcmd in ffmpeg

You are encountering several issues: Not all filters support sendcmd. You can see which filters support sendcmd with ffmpeg -filters. Look for a “C” to the left of the filter name. Additionally, only certain filter options (aka sendcmd “commands”) can be used with sendcmd. See the FFmpeg filter documentation, or refer to man ffmpeg-filters, and … Read more

How to compile ffmpeg-2.2.2 on windows with cygwin and android ndk r9c

Start with Roman’s tutorial. Following changes apply to Windows: you should use the NDK make.exe, not the one from cygwin. So, I simply wrote d:/dev/Android/ndk/prebuilt/windows-x86_64/bin/make.exe in my build_android.sh. For some weird reason, I could not run make clean – but I simply chose to ignore this problem for now. Following the tutorial, don’t forget to … Read more

Install FFMPEG on XAMPP

Sodobni-mediji.si’s method worked, but some things need to be clarified. Download: https://rapidshare.com/#!download|934l34|422916798|php_ffmpeg_v0.6.0_for_PHP_5.3.1.rar unzip copy ffmpeg.exe somewhere and remember the path for later use move php_ffmpeg.dll to php extension dir (usually c:\xampp\php\ext) move all other files to Windows\System32 (except COPYING.GPLv3.txt, readme.txt) add extension=php_ffmpeg.dll to php.ini (usually c:\xampp\php\php.ini) restart apache with fingers crossed questions/answers http://www.apachefriends.org/f/viewtopic.php?f=16&t=41913 If you … Read more

FFmpeg – Overlay one video onto another video?

If you just want a ffmpeg command, try ffmpeg -i input.mov -i overlay.mov \ -filter_complex “[1:v]setpts=PTS-10/TB[a]; \ [0:v][a]overlay=enable=gte(t\,5):shortest=1[out]” \ -map [out] -map 0:a \ -c:v libx264 -crf 18 -pix_fmt yuv420p \ -c:a copy \ output.mov This starts the overlay at 5 seconds with the overlaid video start point being 00:15. setpts=PTS-10/TB is setpts=PTS+(overlay_delay-video_trim_in)/TB overlay=enable=gte(t\,5) is … Read more

How to extract orientation information from videos?

Since most Cameras store their rotation/orientation within the exif-metadata, i would suggest using exifttool and the a ruby wrapper gem called mini_exiftool which is actively maintained. Install exiftool: apt-get exiftool || brew install exiftool || port install exiftool or use what ever package manager is available Install mini_exiftool: gem install mini_exiftool Try it: irb> require … Read more

Use FFmpeg in Visual Studio

With FFmpeg you can either: use pre-built .lib/.dll files and your binary produced with Visual Studio will be dependent on av*.dll files compile FFmpeg from source code into static libraries using non-Microsoft compiler, and then link to your Visual Studio project (mind the LGPL/GPL license in this case) You built your project as per item … Read more

Is there a way to use ffmpeg to determine the encoding of a file before transcoding?

Use ffprobe Example command $ ffprobe -v error -select_streams v:0 -show_entries stream=codec_name -of default=nokey=1:noprint_wrappers=1 input.mp4 Result h264 Option descriptions -v error Omit extra information except for fatal errors. -select_streams v:0 Select only the first video stream. Otherwise the codec_name for all other streams in the file, such as audio, will be shown as well. -show_entries … Read more