[MPlayer-users] SoftSub to HardSub

Nicolas George nicolas.george at normalesup.org
Sun Sep 28 14:40:38 CEST 2008


Le septidi 7 vendémiaire, an CCXVII, |TEcHNO| a écrit :
> Ye, that does not work, if it would I'd use this method. I have nice 
> ASS/SSA embedded subs and I can't properly mencode them.

You can using pipes: use mplayer -vo yuv4mpeg to create a raw stream with
hardcoded ASS subtitles and encode this stream on the flight. You will need
to encode audio separately and mux it after, though/

> I believe the patches to get -vf ass work with menocoder should be 
> developers priority.

The patch already exists, it just needs to be updated (the last known
working version is about one year old).

The problem is that mencoder is slowly bitroting: mencoder has a lot of code
that is duplicate from mplayer code and that can not easily be merged. The
result is that when a new feature is added in these parts of mplayer, it is
not added at the same time in mencoder. The code begins to diverge, and it
becomes harder and harder to merge new features.

IMHO, the solution would be to add encoding features to mplayer itself, as
a special case of video and audio output drivers, just like -ao pcm and -vo
yuv4mpeg but with codec compression and muxing. This should not be to hard,
since the encoders already have mostly the same interface than the output
drivers.

When this is done, the features that are specific to mencoder (for example
-ofs) can be progressively added to mencoder (maybe as video filters).

The pros of this method is that in the end, there would be no code
duplication at all, and that during the whole process mencoder would
continue to work just like now: not perfectly but quite well enough.

I have already worked a bit on this project. I did not come with anything
working yet (I miss time and have other projects), but I gained enough
knowledge of the inner workings to be pretty sure this is possible.

Regards,

-- 
  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-users/attachments/20080928/cd88a12c/attachment.pgp>


More information about the MPlayer-users mailing list