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

Eleftherios Antoniades elantoniades at gmail.com
Tue Apr 3 14:30:41 EEST 2018


Carl hi,

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!!

So,

Here is my case:

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.

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. It looks like the dvbsub codec converts the
dvbsubs stream in 720x576 size by default, rather 1920x1080??

Is there a way to force the subs into the correct size? Any options
filter or flags?
(Metadata have nothing to do with subs scaling obviously..)
Or, is there another way (another codec maybe) to achieve that?

I may attach any file needed for your help

Thank you in advance!!
Lefteris

__________________________________
The command output is:


C:\ffmpeg\Tests\ffmpeg -i C:\ffmpeg\Tests\KONGISLANXXXZ.ts -i
C:\ffmpeg\Tests\1.idx -t 1:00 -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
C:\ffmpeg\Tests\KONGISLANXXXZ-withDVB.ts
ffmpeg version N-90378-ge4eaaf7bf6 Copyright (c) 2000-2018 the FFmpeg
developers
  built with gcc 7.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --enable-sdl2
--enable-bzlib --enable-fontconfig --enable-gnutls --enable-iconv
--enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr
--enable-libtheora --enable-libtwolame --enable-libvpx --enable-libwavpack
--enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2
--enable-libzimg --enable-lzma --enable-zlib --enable-gmp
--enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
--enable-libmysofa --enable-libspeex --enable-libxvid --enable-libmfx
--enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va
--enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 11.100 / 56. 11.100
  libavcodec     58. 14.100 / 58. 14.100
  libavformat    58. 10.100 / 58. 10.100
  libavdevice    58.  2.100 / 58.  2.100
  libavfilter     7. 13.100 /  7. 13.100
  libswscale      5.  0.102 /  5.  0.102
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
Input #0, mpegts, from 'C:\ffmpeg\Tests\KONGISLANXXXZ.ts':
  Duration: 00:15:00.03, start: 0.480000, bitrate: 52022 kb/s
  Program 1
    Stream #0:0[0x1e1]: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002),
yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], 50000 kb/s, 25 fps,
25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x1e2](eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz,
stereo, fltp, 192 kb/s
Input #1, vobsub, from 'C:\ffmpeg\Tests\1.idx':
  Duration: N/A, bitrate: N/A
    Stream #1:0[0x0](en): Subtitle: dvd_subtitle, 1920x1080 (default)
Output #0, mpegts, to 'C:\ffmpeg\Tests\KONGISLANXXXZ-withDVB.ts':
  Metadata:
    encoder         : Lavf58.10.100
    Stream #0:0: Video: mpeg2video (4:2:2) ([2][0][0][0] / 0x0002),
yuv422p(tv, progressive), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 50000 kb/s,
25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1(eng): Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo,
fltp, 192 kb/s
    Stream #0:2(ell): Subtitle: dvb_subtitle (dvbsub), 1920x1080 (default)
    Metadata:
      encoder         : Lavc58.14.100 dvbsub
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #0:1 -> #0:1 (copy)
  Stream #1:0 -> #0:2 (dvd_subtitle (dvdsub) -> dvb_subtitle (dvbsub))
Press [q] to stop, [?] for help
frame= 1501 fps=126 q=-1.0 Lsize=  397365kB time=00:01:02.35
bitrate=52205.4kbits/s speed=5.25x
video:366725kB audio:1406kB subtitle:264kB other streams:0kB global
headers:0kB muxing overhead: 7.863759%


On Mon, Apr 2, 2018 at 8:05 PM, Carl Eugen Hoyos <ceffmpeg at gmail.com> wrote:

> 2018-03-30 16:48 GMT+02:00, Eleftherios Antoniades <elantoniades at gmail.com
> >:
>
> > Where can i find the options & metadata for the webvtt & dvbsub encoders
>
> Neither the webvtt nor the dvbsub encoder have specific options, I
> don't understand what "metadata" means in this context.
>
> Generally, when asking for help on this mailing list, you are expected
> to post a command line you tested together with the complete, uncut
> console output (that shows among other needed information that you
> tested current FFmpeg git head, the only version supported here)
> and explain what went wrong.
> (If you really wanted to know about the specific options, please see
> my answer above.)
>
> Carl Eugen
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>
> To unsubscribe, visit link above, or email
> ffmpeg-user-request at ffmpeg.org with subject "unsubscribe".


More information about the ffmpeg-user mailing list