Hi to all, and thanks in advance...
I'm writing an on-the-fly transcode helper for a PVR app that takes AVIs and transcodes to MPGs for viewing on the Hauppauge MediaMVP...
I have had great success using FFmpeg, MEncoder and VLC as command line driven transcoders.
I'm trying to include support for Subtitles, I'm starting the quest with srt files...
I've been able to get SRT files to display during a transcode using MEncoder:
But I can't adjust the position of the subtitle. I'd like to have it vertically adjustable, to compensate for overscan when displaying on old televisions...Code:"C:\Program Files\mplayer\mencoder.exe" -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf lavcdeint,scale=588:324,expand=-52:-156:16:62:1,eq2=1.0:1.10:0.10:0.90:0.95:1.0:1.0:1.00 -srate 44100 -af lavcresample=44100,volume=0.0 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=4000:vbitrate=4000:keyint=18:acodec=mp2:abitrate=224:aspect=4/3 -ofps 29.97002997003 -sub "C:\TV\Video\Stargate.SG-1-S10E14-The.Shroud.srt" -font "C:\WINDOWS\fonts\arial.ttf" -subfont-text-scale 2.5 -o "C:\TV\Override\Stargate.SG-1-S10E14-The.Shroud.mpg" "C:\TV\Video\Stargate.SG-1-S10E14-The.Shroud.avi"
I'm also not able to have subtitles display with either VLC or FFmpeg... Could someone give me a definitive answer as to the possibility, or even eventual availability of these features.
Thanks
Frank
+ Reply to Thread
Results 1 to 6 of 6
-
-
I tried to bold the example. There is a typo. The code should read as follows...
Code:"C:\Program Files\mplayer\mencoder.exe" -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd:tsaf -vf lavcdeint,scale=588:324,expand=-52:-156:16:62:1,eq2=1.0:1.10:0.10:0.90:0.95:1.0:1.0:1.00 -srate 44100 -af lavcresample=44100,volume=0.0 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=4000:vbitrate=4000:keyint=18:acodec=mp2:abitrate=224:aspect=4/3 -ofps 29.97002997003 -sub "C:\TV\Video\Stargate.SG-1-S10E14-The.Shroud.srt" -font "C:\WINDOWS\fonts\arial.ttf" -subfont-text-scale 2.5 -o "C:\TV\Override\Stargate.SG-1-S10E14-The.Shroud.mpg" "C:\TV\Video\Stargate.SG-1-S10E14-The.Shroud.avi"
-
When all else fails... read the manual.
-subpos <0-100> (useful with -vf expand)
Specify the position of subtitles on the screen. The value is the vertical position of the subtitle in % of the screen height. -
Originally Posted by celtic_druid
It says that the line doesn't work.
Edit: I was mistaken. I was using -sup-pos, which is a typo of course. Thank you for your help with MEncoder.
Would you happen to know the syntax for VLC, pre 0.90 -
I notice you're specifying Arial.
Even if you use standard Windows fonts, Verdana or Trebuchet are better.
See http://screenfont.ca/fonts/today/interim/ for probably more than you want to know about subtitling fonts.
Anyway, try a few alternatives out before unleashing your files on the world.
Similar Threads
-
Command-line command for fixing AVI?
By timur in forum ffmpegX general discussionReplies: 1Last Post: 23rd Sep 2009, 02:23 -
Trying to put together a VLC command line in Mac OS X
By llee782 in forum MacReplies: 4Last Post: 30th May 2009, 04:49 -
Mencoder config and and command line -vf options not working together?
By AlexGrim in forum DVD RippingReplies: 0Last Post: 1st Dec 2008, 12:00 -
Mencoder 2-pass Command Line to flv
By mrready in forum Video ConversionReplies: 1Last Post: 16th Dec 2007, 03:25 -
Mencoder 2-pass Command Line to flv
By mrready in forum ffmpegX general discussionReplies: 2Last Post: 15th Dec 2007, 11:49