[MPlayer-users] Great permanent problem with A/V synchro

Krzysztof Duchnowski amidk75 at gmail.com
Wed Jun 1 18:55:16 CEST 2011


W dniu 01.06.2011 17:12, Kevin DeKorte pisze:

>>> That is unfortunate because as far as I can tell FFMPEG has no way to
>>> hardsub a file, while mencoder does.


>> Play video with subtitles on MPlayer to FIFO and encode from FIFO with
>> FFMPEG


> Can you provide an example of doing this?

Source is 720p, encode it to 480p with subtitles - FIFO is produced at
/tmp (TMPFS filesystem at my box)

***
mkfifo /tmp/video.source
mplayer source.mp4 -noconfig all -vf-clr -nosound -benchmark -ass -sub
subtitle.ass -vf scale=854:-3 -vo yuv4mpeg:file=/tmp/video.source
&>/dev/null &
ffmpeg -i /tmp/video.source -vcodec mpeg4 -b 800k -y test.avi
ffmpeg -i test.avi -i source.mp4 -acodec copy -vcodec copy -y
test-out.avi -map 0:0 -map 1:1
rm -f /tmp/video.source
***


Personally, i'm using x264 and MP4Box/mkvmuxer instead.

-- 
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.getfirefox.net/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/


More information about the MPlayer-users mailing list