VideoHelp Forum




+ Reply to Thread
Results 1 to 6 of 6
  1. Member
    Join Date
    Sep 2006
    Location
    Canada
    Search Comp PM
    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:
    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"
    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...

    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
    Quote Quote  
  2. Member
    Join Date
    Sep 2006
    Location
    Canada
    Search Comp PM
    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"
    Quote Quote  
  3. Member
    Join Date
    Dec 2004
    Location
    Australia
    Search Comp PM
    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.
    Quote Quote  
  4. Member
    Join Date
    Sep 2006
    Location
    Canada
    Search Comp PM
    Originally Posted by celtic_druid
    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.
    I appreciate you not using the obligatory 4 letter acronym... But, I have read that, several times, and tried and tried. It seizes at the command line...

    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
    Quote Quote  
  5. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    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.
    Quote Quote  
  6. Member
    Join Date
    Sep 2006
    Location
    Canada
    Search Comp PM
    Originally Posted by AlanHK
    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.
    That's great advice...thanks
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!