[FFmpeg-user] DVB subtitle track is not found by ffmpeg

Lehtonen Tommi (KAVI) tommi.lehtonen at kavi.fi
Mon May 28 14:32:52 EEST 2018


Hello,

I am trying to burn DVB subtitle from rtsp streamed TS file to mp4 file. Test case for further development.

C:\Users\tommi.lehtonen>ffmpeg -i rtsp://***/TV_-_dvbcapture3_-_HM843C_-_yleteemaetfem_-_2018-05-24T180000Z03600.ts -filter_complex "[0:v][0:s]overlay[v]" -map "[v]" -map 0:a -vcodec libx264 output.mp4
ffmpeg version N-90638-g3b2fd96048 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-libaom --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 13.100 / 56. 13.100
  libavcodec     58. 17.100 / 58. 17.100
  libavformat    58. 11.101 / 58. 11.101
  libavdevice    58.  2.100 / 58.  2.100
  libavfilter     7. 14.100 /  7. 14.100
  libswscale      5.  0.102 /  5.  0.102
  libswresample   3.  0.101 /  3.  0.101
  libpostproc    55.  0.100 / 55.  0.100
[udp @ 0000021b5276d8c0] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
[udp @ 0000021b52792700] 'circular_buffer_size' option was set but it is not supported on this build (pthread support is required)
Input #0, rtsp, from 'rtsp://***TV_-_dvbcapture3_-_HM843C_-_yleteemaetfem_-_2018-05-24T180000Z03600.ts':
  Metadata:
    title           : Packet Ship RTSP session: ***TV_-_dvbcapture3_-_HM843C_-_yleteemaetfem_-_2018-05-24T180000Z03600.ts
  Duration: 01:00:00.57, start: 53834.091367, bitrate: N/A
  Program 1
    Stream #0:0(fin): Audio: aac (HE-AAC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 67 kb/s
    Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(top first), 720x576 [SAR 64:45 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Stream specifier ':s' in filtergraph description [0:v][0:s]overlay[v] matches no streams.

DVB stream is not found, because it is not present at the start of the file. This works in those files  where the DVB track is present from the start, but some files it goes like on and off.

Cannot provide samples because of the copyright. Is there any way to get those DVB subtitle tracks which are not in the beginning of the file?

Mediainfo:

General

ID :

58805 (0xE5B5)

Complete name :

***TV_-_dvbcapture3_-_HM843C_-_yleteemaetfem_-_2018-05-24T180000Z03600.ts

Format :

MPEG-TS

File size :

499 MiB

Duration :

1h 0mn

Overall bit rate mode :

Variable

Overall bit rate :

1 163 Kbps


Video

ID :

514 (0x202)

Menu ID :

1 (0x1)

Format :

AVC

Format/Info :

Advanced Video Codec

Format profile :

Main at L3.0

Format settings, CABAC :

Yes

Format settings, ReFrames :

4 frames

Codec ID :

27

Duration :

1h 0mn

Bit rate mode :

Constant

Bit rate :

950 Kbps / 950 Kbps

Width :

720 pixels

Height :

576 pixels

Display aspect ratio :

16:9

Frame rate :

25.000 fps

Standard :

PAL

Color space :

YUV

Chroma subsampling :

4:2:0

Bit depth :

8 bits

Scan type :

MBAFF

Bits/(Pixel*Frame) :

0.092

Stream size :

419 MiB (84%)

Writing library :

x264 core 142

Encoding settings :

cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x11 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=36 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=0 / keyint=50 / keyint_min=5 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=cbr / mbtree=1 / bitrate=950 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / vbv_maxrate=950 / vbv_bufsize=400 / nal_hrd=cbr / filler=1 / ip_ratio=1.40 / aq=1:1.00


Audio #1

ID :

670 (0x29E)

Menu ID :

1 (0x1)

Format :

AAC

Format/Info :

Advanced Audio Codec

Format version :

Version 4

Format profile :

HE-AAC / LC

Muxing mode :

ADTS

Codec ID :

15

Duration :

1h 0mn

Bit rate mode :

Variable

Bit rate :

64.4 Kbps

Channel count :

2 channels

Channel positions :

Front: L R

Sampling rate :

48.0 KHz / 24.0 KHz

Compression mode :

Lossy

Delay relative to video :

-997ms

Stream size :

27.6 MiB (6%)

Language :

Finnish


Audio #2

ID :

672 (0x2A0)

Menu ID :

1 (0x1)

Format :

AAC

Format/Info :

Advanced Audio Codec

Format version :

Version 4

Format profile :

HE-AAC / LC

Muxing mode :

ADTS

Codec ID :

15

Duration :

1h 0mn

Bit rate mode :

Variable

Bit rate :

64.1 Kbps

Channel count :

2 channels

Channel positions :

Front: L R

Sampling rate :

48.0 KHz / 24.0 KHz

Compression mode :

Lossy

Delay relative to video :

20s 715ms

Stream size :

27.5 MiB (6%)

Language :

Dutch

Language, more info :

Visual impaired commentary


Text #1

ID :

3027 (0xBD3)

Menu ID :

1 (0x1)

Format :

DVB Subtitle

Codec ID :

6

Delay relative to video :

16s 364ms

Language :

Finnish


Text #2

ID :

3028 (0xBD4)

Menu ID :

1 (0x1)

Format :

DVB Subtitle

Codec ID :

6

Delay relative to video :

16s 364ms

Language :

Swedish




More information about the ffmpeg-user mailing list