#126 ASS/SSA subtitles don't work

closed-fixed
MEncoder (43)
5
2011-07-31
2011-03-26
Klaus Burton
No

ASS/SSA support has been broken for a long time now - almost exactly 1 year.
Are there any plans to support it, or has that feature been abandoned?
Thanks

Discussion

  • Unfortunately I don't have/use mencoder with subs, but the only command line I known to do it is:

    mencoder bbb.avi -o gh.avi -ass -sub bbb.ass -vf fixpts=fps=24000/1001,ass,fixpts -ovc xvid -xvidencopts bitrate=1000

    and it works for me

    can you provide samples/cmdlines about 'how it should' and 'how it is'?

     
  • Klaus Burton
    Klaus Burton
    2011-03-26

    How it should:
    mencoder video.avi -o v.mpeg -ass -sub subfile.ass -nosound -vc lavc

    If you use build 30369 the above command will work, but builds after it don't work.

    The command you used works well, but adding seeking (like -ss 15.0) breaks synchronisation (issue number 3175420)

    Thanks for the reply! :) This is exciting

     
  • Klaus Burton
    Klaus Burton
    2011-03-27

    Did I provide enough information? I can give links to test files and more command lines if you need them.

     
  • SonicSam
    SonicSam
    2011-04-17

    Confirmed.

    Additionally, since ass implies -keep-pts, you also get the following.

    Writing header...
    [asf @ 03e46f50]Codec for stream 0 does not use global headers but container for
    mat requires global headers
    [asf @ 03e46f50]Codec for stream 1 does not use global headers but container for
    mat requires global headers
    [asf @ 03e46f50]st:0 error, pts < dts
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.
    Error while writing frame.

     
  • x

     
  • mencoder bbb.avi -o gh.avi -ass -sub bbb.ass -vf fixpts=fps=24000/1001,ass,fixpts -ovc xvid -xvidencopts bitrate=1000

    This works if you are using an avi file that, of course, does not have subtitles.

    But if you use the following with an mkv file that has its own internal subtitles it does not. It uses the internal subtitles of bbb.mkv. Not the external subtitles from file bbb.ass.

    mencoder bbb.mkv -o gh.avi -ass -sub bbb.ass -vf fixpts=fps=24000/1001,ass,fixpts -ovc xvid -xvidencopts bitrate=1000

    I need to use avi files for my htpc. So what I've had to do to go from mkv to avi with subtitles is to.

    1. Get the mkv file
    2. Use MKVExtractGUI2 to extract the the subtitles from the mkv file (I extract so that I can edit the subtitles)
    3. Use mencoder to convert the mkv to an avi file. I add -sid 42 to the mencoder line. 42 is an arbitrary number. This basically just creates the avi file with no subtitles.
    4. Use mencoder again this time on the avi file created at step #3 with -sub xyz.ass added to include the extracted subtitles from step #2.

    Takes a little longer but I do end up with an avi file that I want.

    Is there a way to tell mencoder to ignore the internal subtitles and only use the ones from the external file? That would speed things up a bit.

     
  • Klaus Burton
    Klaus Burton
    2011-07-31

    This issue can be closed as it has been fixed in MPlayer trunk

     
  • Klaus Burton
    Klaus Burton
    2011-07-31

    • status: open --> closed-fixed