# git clone git://git.videolan.org/x264.git
# cd x264
# ./configure --enable-shared --enable-static
# make && make install
# git clone git://source.ffmpeg.org/ffmpeg.git
# cd ffmpeg
# ./configure --enable-shared --disable-static --enable-gpl --enable-libx264 --extra-ldflags="-L /usr/local/lib"
# make && make install
* http://ffmpeg.org/platform.html#toc-Compilation-under-Cygwin
* https://trac.ffmpeg.org/wiki/x264EncodingGuide
* http://www.videolan.org/developers/x264.html
* http://stackoverflow.com/questions/4779040/builing-ffmpeg-with-libx264-enabled-on-cygwin
Add subtitle from a stream:
ffmpeg.exe -i movie_src.mkv -i subtitle.cht.srt -i subtitle.eng.srt -map 0:0 -map 0:1 -map 1:0 -map 2:0 -c:v:0 libx264 -preset slower -c:a:0 copy -c:s copy -metadata:s:a title= -metadata:s:s:0 language=chi -c:s copy -metadata:s:a title= -metadata:s:s:1 language=eng output.mkv -y
Convert audio stream by different codec: