Hack to add libass compatibility for mencoder with embedded font support
commit95bdd8948794d8c04ec598c7e39811976ff30e9b
authorKovensky <kovensk@gmail.com>
Sat, 1 Aug 2009 01:01:41 +0000 (31 22:01 -0300)
committerKovensky <kovensk@gmail.com>
Sat, 1 Aug 2009 02:18:01 +0000 (31 23:18 -0300)
treeb65994ba0292de8d2cc7095bd8ee7e7f9fe926dd
parent8a3ecdb681ad40f880921c4358c75c2401f88781
Hack to add libass compatibility for mencoder with embedded font support

Patch from http://oss.netfarm.it/mplayer/patches/sm_ass_mencoder_embedfonts.diff

This adds a new mencoder parameter, -keep-pts, that is automatically enabled by -ass. It might cause "badly interleaved frame" errors, so beware.

This also adds a new video filter (do NOT use it with -ss or EDLs):

-vf fixpts[=options]
Fixes the presentation timestamps (PTS) of the frames.
By default, the PTS passed to the next filter is dropped, but the following options can change that:

* print
Print the incoming PTS.
* fps=<fps>
Specify a frame per second value.
* start=<pts>
Specify an initial value for the PTS.
* autostart=<n>
Uses the nth incoming PTS as the initial PTS. All previous pts are kept, so setting a huge value or -1 keeps the PTS intact.
* autofps=<n>
Uses the nth incoming PTS after the end of autostart to determine the framerate.

Example:

"-vf fixpts=fps=24000/1001,ass,fixpts"
Generates a new sequence of PTS, uses it for ASS subtitles, then drops it.
Generating a new sequence is useful when the timestamps are reset during the program; this is frequent on DVDs.
Dropping it may be necessary to avoid confusing encoders.
DOCS/man/en/mplayer.1
Makefile
cfg-mencoder.h
libass/ass_cache.c
libmpcodecs/vf.c
libmpcodecs/vf_fixpts.c [new file with mode: 0644]
mencoder.c