[FFmpeg-user] hardcode dvdsub subtitle from separate file

Nicolas George nicolas.george at normalesup.org
Thu Jun 20 17:57:32 CEST 2013

Le duodi 2 messidor, an CCXXI, thistle at phwaap.com a écrit :
> Thanks Nicolas.  I guess I found it strange that every video with dvdsubs
> that I tried had this problem, even though they all play fine in smplayer
> and others.

Most players will automatically scale the subtitles to fit the video. ffmpeg
is a lower-level tool and requires you to decide what to do exactly by

>	       I found a link to the -canvas_size patch (
> http://ffmpeg.org/pipermail/ffmpeg-devel/2013-February/139782.html) which
> apparently can be used to fix the size sub2video assumes.  With the latest

The -canvas_size is intended for when the size is detected incorrectly, but
I find very unlikely that you find vobsub files that are actually 640×272.
They are most likely at a DVD resolution, 720×576 or 720×480. At best,
forcing the canvas size will result in changing the layout; at worst, it
will cause overlaying to fail because subtitles elements overflow.

That is the reason I suggested to scale and crop, and not to use

> devel the error went away and I could set the same canvas size but I still
> couldn't get the subtitles to display.

Full console output missing.

>					 So I just ended up downloading srt
> files.

That will work. And actually probably look better, because vobsub is a poor


  Nicolas George
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: Digital signature
URL: <http://ffmpeg.org/pipermail/ffmpeg-user/attachments/20130620/e27d3884/attachment.asc>

More information about the ffmpeg-user mailing list