On Thu, Jan 22, 2004 at 02:49:10PM +1300, E.Chalaron wrote: > > $ mplayer ... | y4mscaler ... | subtitler-yuv ... | mpeg2enc ... > > Romildo, > Did you try it ? it looks nice but obviously I am missing something. > Would you have a (simple) example so I can compare with what I do ?
Yes, I have tried it. See how I did it: $ mkfifo -m 660 stream.yuv $ mplayer -noframedrop -vo yuv4mpeg -nosound -v -osdlevel 0 \ matrix.reloaded.avi -sid 0 -frames 6200 $ cat stream.yuv | \ y4mscaler -v 0 -I norm=ntsc -I sar=1:1 -O preset=SVCD -S option=sinc:8 | \ subtitler-yuv -c 32 -p matrix.reloaded.ppml | \ mpeg2enc -v 0 -I 0 -s -f 5 -V 230 -S 800 -a 2 -F 1 -n n -4 2 -2 1 \ -b 2900 -B 286 -q 5 -K hi-res -R 0 -E -5 -o matrix.reloaded.sample.m2v I have attached a shot of the resulting movie (it is also temporarily available at http://uber.com.br/romildo/misc/preview_grab-subtitler-yuv.jpg). The subtitle in the bottom black border was put by subtitler-yuv. The other one was put by mplayer. In order to get the subtitle in PPML format, I followed these steps: 1) converted the SRT subtitle to SSA format using a subtitle tool (SubtitleTool for Windows) 2) converted the SSA subtitle to a PPML subtitle using the xste program, found at http://www.home.zonnet.nl/panteltje/subtitles/ 3) edited the PPML subtitle file to do some customizations, like subtitle positioning and font location subtitle-yuv comes with a nice demo, which shows the kinds of effects that can be achieved. Just replace the "-p matrix.reloaded.ppml" option above to "-p demo-yuv.ppml" (supposing that demo-yuv.ppml, and the other two files referenced in it, rose.ppm and sun.ppm, are in the current directory; they are part of the source distribution). Its capabilities are very interesting. I have asked the author of subtitler-yuv and he told me that he has dropped its development, unfortunalty :( Maybe someone else would interest in it and take its mantainance. Regards. Romildo
<<attachment: preview_grab-subtitler-yuv.jpg>>