Use ffmpeg to add text subtitles [closed]

NOTE: This solution adds the subtitles to the video as a separate optional (and user-controlled) subtitle track. ffmpeg -i infile.mp4 -i infile.srt -c copy -c:s mov_text outfile.mp4 -vf subtitles=infile.srt will not work with -c copy The order of -c copy -c:s mov_text is important. You are telling FFmpeg: Video: copy, Audio: copy, Subtitle: copy Subtitle: … Read more

FFmpeg on Android

Here are the steps I went through in getting ffmpeg to work on Android: Build static libraries of ffmpeg for Android. This was achieved by building olvaffe’s ffmpeg android port (libffmpeg) using the Android Build System. Simply place the sources under /external and make away. You’ll need to extract bionic(libc) and zlib(libz) from the Android … Read more

What are the differences and similarities between ffmpeg, libav, and avconv?

Libav is dead Last commit was on 2019-08-21. Use FFmpeg. Confusing messages The messages mentioned in the question are rather misleading and understandably a source of confusion. The fork was basically a non-amicable result of conflicting personalities and development styles within the FFmpeg community. The real ffmpeg vs the fake one For a while both … Read more

How to install and run phpize

For recent versions of Debian/Ubuntu (Debian 9+ or Ubuntu 16.04+) install the php-dev dependency package, which will automatically install the correct version of php{x}-dev for your distribution: sudo apt install php-dev Older versions of Debian/Ubuntu: For PHP 5, it’s in the php5-dev package. sudo apt-get install php5-dev For PHP 7.x (from rahilwazir comment): sudo apt-get … Read more

FFMPEG (libx264) “height not divisible by 2”

The answer to the original question should not scale the video but instead fix the height not divisible by 2 error. This can be achieve using this filter: -vf “pad=ceil(iw/2)*2:ceil(ih/2)*2” Full command: ffmpeg -i frame_%05d.jpg -vcodec libx264 \ -vf “pad=ceil(iw/2)*2:ceil(ih/2)*2” -r 24 \ -y -an video.mp4 Basically, .h264 needs even dimensions so this filter will: … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)