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

Ingo Brückl ib at wupperonline.de
Tue Aug 9 14:40:41 CEST 2011


Krzysztof Duchnowski wrote on Wed, 01 Jun 2011 18:55:16 +0200:

> 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
> ***

Wow, thanks! That will come in handy.

Ingo


More information about the MPlayer-users mailing list