[FFmpeg-user] Need Help!! WEBVTT & DVBSUB encoding options/metadata

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Apr 4 05:03:22 EEST 2018


2018-04-03 13:30 GMT+02:00, Eleftherios Antoniades <elantoniades at gmail.com>:

> Thank you for your reply! Actually i made this question several times last
> month (subject: NEED HELP PLEASE!! Soft subtitles DVB subtitles stream,
> 1080p size problem on direct convert a MPEG-TS video), before someone
> answered me, and i really appreciate this!!

Shouting is usually a good idea if you want to make sure that nobody answers.

> I have a MPEG-TS video file  with one video and one audio stream and i am
> trying to create a direct video convert with soft subs, by adding a
> DVBSUB stream inside
> it. My original subs filewas a stl file with greek subs.
>
> After many workarounds i finally managed to add the DVBSUB stream, after
> converting the stl file into a sub file with idx. I used the idx, so i get
> the palette information correct.

Just curious: How do create the idx files?

> So the command i used is like this (see bellow for complete console output):
>
> ffmpeg -i testvideo.ts -i subtitles.idx -map 0:v -map 0:a  -map 1 -c:v copy
> -c:a copy -c:s:0 dvbsub -metadata:s:s:0 language=ell -streamid 2:151
> output.ts
>
> The video and subtitles size is 1920x1080, but the output.ts file comes out
> with wrong subtitles size.

Yes, this is ticket #7117.

> It looks like the dvbsub codec converts the
> dvbsubs stream in 720x576 size by default, rather 1920x1080??

No, the subtitles use the input resolution of hd1080 but this size
is not stored in the subtitle stream and the default size is pal
(that gets stretched to match the video size).

> Is there a way to force the subs into the correct size?

I suspect it should work if you produce smaller subtitles (pal).

Please remember not to top-post here, Carl Eugen


More information about the ffmpeg-user mailing list