Log in

View Full Version : "Burned" subtitles using VP6 + mencoder are upside down


ricardo.santos
20th March 2010, 22:01
Hi everyone

I've been encoding some videos + srt subs using the vp6vfw.dll and mencoder but im having a problem with the subs, i know we have to invert the picture when using the vp6vfw.dll and the script does that but the subtitles appear on the upper part of the screen and upside down, the "flip" switch isnt being applied to it, is there a way of making them appear in the correct position?

Here's the script im using:
mencoder -sub iknow.srt -font "arialbd.ttf" -subcp ISO-8859-15 -subfont-autoscale 2 -subfont-text-scale 4 -subpos 100 -af resample=22050 -oac mp3lame -lameopts cbr:br=64 -vf flip -ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=firstpass.mcf -of lavf -o "output.flv" "input.avi"

mencoder -sub iknow.srt -font "arialbd.ttf" -subcp ISO-8859-15 -subfont-autoscale 2 -subfont-text-scale 4 -subpos 100 -af resample=22050 -oac mp3lame -lameopts cbr:br=64 -vf flip -ovc vfw -xvfwopts codec=vp6vfw.dll:compdata=secondpass.mcf -of lavf -o "output.flv" "input.avi"

Umamio
21st March 2010, 03:42
Have you tried setting -vf flip before setting the subs? No idea if that will make a difference...

mencoder -vf flip,expand=::::1 -sub iknow.srt -font "arialbd.ttf" -subcp ISO-8859-15 -subfont-autoscale 2 -subfont-text-scale 4 \
-subpos 100 -af resample=22050 -oac mp3lame\
-lameopts cbr:br=64 -ovc vfw \
-xvfwopts codec=vp6vfw.dll:compdata=firstpass.mcf -of lavf -o "output.flv" "input.avi"

mencoder -vf flip,expand=::::1 -sub iknow.srt -font "arialbd.ttf" -subcp ISO-8859-15 -subfont-autoscale 2 -subfont-text-scale 4 \
-subpos 100 -af resample=22050 -oac mp3lame \
-lameopts cbr:br=64 -ovc vfw \
-xvfwopts codec=vp6vfw.dll:compdata=secondpass.mcf -of lavf -o "output.flv" "input.avi"

Otherwise I am not aware of a mencoder-only method but if you are an avisynth user you can apply the subtitles at source using the VSfilter (http://en.wikipedia.org/wiki/VSFilter) plugin:

Input file: input.avs

LoadPlugin("VSFilter.dll")
AviSource("input.avi")
TextSub("iknow.srt")

mencoder -af resample=22050 -oac mp3lame -lameopts \
cbr:br=64 -vf flip -ovc vfw -xvfwopts \
codec=vp6vfw.dll:compdata=firstpass.mcf -of lavf -o \
"output.flv" "input.avs"

mencoder -af resample=22050 -oac mp3lame -lameopts \
cbr:br=64 -vf flip -ovc vfw -xvfwopts \
codec=vp6vfw.dll:compdata=secondpass.mcf -of lavf -o \
"output.flv" "input.avs"

if you don't like the default TextSub font/positioning/rendering you can convert your .srt to .ass and set the styling in the file. (you can use Aegisub (http://www.aegisub.org/) to ease the pain)

ricardo.santos
21st March 2010, 12:28
your script wont work, but i tried putting the "flip" switch after mencoder and altough it converts the video the subs are still upside down.

Im aware that by using an avs script the problem is solved, i've done that, but im looking for a windows portable solution.

roozhou
25th March 2010, 12:13
-vf ass,flip

ricardo.santos
25th March 2010, 19:30
Thanks roozhou but you could you be less criptic? :)

replacing -vf flip with -vf ass,flip didnt work.

also by not knowing where to put your suggestion in the script led me to assume ass was the sub format so i converted srt to ass but still didnt work.