Opened 3 years ago

Last modified 3 years ago

#5328 new defect

dvbsubtitles re encoding

Reported by: joolzg Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: dvbsub
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When re encoding live streams which include dvb subtitles there are gaps in streaming data and this seems dependant on the arrival of new dvb subtitles.

% ffmpeg -i C4_hd.ts -c:v libx264 -c:a libfaac -c:s dvbsub -y -f mpegts a.ts

ffmpeg version N-78978-gb60dfae Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04.1)
  configuration: --bindir=/home/encoder/bin --enable-gpl --enable-version3 --enable-nonfree --disable-ffserver --disable-dxva2 --disable-vaapi --disable-vda --disable-vdpau --disable-libxcb --enable-libmp3lame --enable-postproc --enable-libfaac --enable-libzvbi --enable-libx264 --enable-libx265 --cc='ccache cc'
  libavutil      55. 19.100 / 55. 19.100
  libavcodec     57. 28.100 / 57. 28.100
  libavformat    57. 28.100 / 57. 28.100
  libavdevice    57.  0.101 / 57.  0.101
  libavfilter     6. 39.102 /  6. 39.102
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.101 /  2.  0.101
  libpostproc    54.  0.100 / 54.  0.100
[mpegts @ 0x2218520] composition_page_id 0001, 2nd 0001, subtitle type 14
[mpegts @ 0x2218520] composition_page_id 0001, 2nd 0001, subtitle type 14
Input #0, mpegts, from 'C4_hd.ts':
  Duration: 00:01:44.25, start: 75460.219489, bitrate: 4656 kb/s
  Program 17664 
    Stream #0:0[0x12d]: Video: h264 (High) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1920x1080 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x12e](eng): Audio: aac_latm (LC) ([17][0][0][0] / 0x0011), 48000 Hz, stereo, fltp
    Stream #0:2[0x132](eng): Unknown: none ([17][0][0][0] / 0x0011) (visual impaired)
    Stream #0:3[0x131](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Extra 5 (0001000114)
[libx264 @ 0x226a080] using SAR=1/1
[libx264 @ 0x226a080] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x226a080] profile High, level 4.0
[hls,mpegts @ 0x2220640] HLS Enabled 0
Output #0, hls,mpegts, to 'a.ts':
  Metadata:
    encoder         : Lavf57.28.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], q=-1--1, 25 fps, 90k tbn, 25 tbc
    Metadata:
      encoder         : Lavc57.28.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: -1
    Stream #0:1(eng): Audio: aac (libfaac), 48000 Hz, stereo, s16, 128 kb/s
    Metadata:
      encoder         : Lavc57.28.100 libfaac
    Stream #0:2(eng): Subtitle: dvb_subtitle (dvbsub)
    Metadata:
      encoder         : Lavc57.28.100 dvbsub
Stream mapping:
  Stream #0:0 -> #0:0 (h264 (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (aac_latm (native) -> aac (libfaac))
  Stream #0:3 -> #0:2 (dvb_subtitle (dvbsub) -> dvb_subtitle (dvbsub))
Press [q] to stop, [?] for help
[mpegts @ 0x2218520] composition_page_id 0001, 2nd 0001, subtitle type 14
frame=   56 fps=0.0 q=0.0 size=       0kB time=00:00:01.79 bitrate=   0.0kbits/s dup=42 drop=0 speed=3.29x
frame=   80 fps= 75 q=28.0 size=       0kB time=00:00:02.68 bitrate=   0.0kbits/s dup=42 drop=0 speed=2.53x
frame=  102 fps= 64 q=28.0 size=       0kB time=00:00:03.69 bitrate=   0.0kbits/s dup=42 drop=0 speed=2.31x
frame=  112 fps= 53 q=28.0 size=       0kB time=00:00:03.90 bitrate=   0.0kbits/s dup=42 drop=0 speed=1.86x
frame=  121 fps= 46 q=28.0 size=       0kB time=00:00:04.33 bitrate=   0.0kbits/s dup=42 drop=0 speed=1.65x
Region 0 - 0 906
Region 1 - 0 848
frame=  129 fps= 41 q=28.0 size=    1471kB time=00:00:06.69 bitrate=1800.1kbits/s dup=42 drop=0 speed=2.13x
frame=  139 fps= 37 q=28.0 size=    1803kB time=00:00:06.69 bitrate=2206.2kbits/s dup=42 drop=0 speed= 1.8x
frame=  153 fps= 35 q=28.0 size=    2161kB time=00:00:06.69 bitrate=2643.8kbits/s dup=42 drop=0 speed=1.55x
frame=  164 fps= 34 q=28.0 size=    2812kB time=00:00:06.69 bitrate=3441.0kbits/s dup=42 drop=0 speed=1.37x
frame=  177 fps= 33 q=28.0 size=    3201kB time=00:00:06.69 bitrate=3916.7kbits/s dup=42 drop=0 speed=1.24x
frame=  186 fps= 31 q=28.0 size=    3487kB time=00:00:06.80 bitrate=4197.1kbits/s dup=42 drop=0 speed=1.15x
frame=  196 fps= 31 q=25.0 size=    3751kB time=00:00:07.27 bitrate=4223.8kbits/s dup=42 drop=0 speed=1.13x
Region 0 - 0 906
Region 1 - 0 848
frame=  210 fps= 30 q=28.0 size=    4383kB time=00:00:10.06 bitrate=3567.4kbits/s dup=42 drop=0 speed=1.44x
frame=  221 fps= 29 q=28.0 size=    4809kB time=00:00:10.06 bitrate=3914.0kbits/s dup=42 drop=0 speed=1.34xframe=  222 fps= 23 q=-1.0 Lsize=    6616kB time=00:00:10.06 bitrate=5384.2kbits/s dup=42 drop=0 speed=1.04x    
video:5950kB audio:133kB subtitle:21kB other streams:0kB global headers:0kB muxing overhead: 8.379416%

As you can see the GAPs are where the extra debug "Region X - Y Z" appear

File is here https://mega.nz/#!I4JByLTQ!fSEdQOkC9eBF9hu4Mvt2wrRYiQFLHzw83X7uUDjfrE0

Change History (3)

comment:1 Changed 3 years ago by cehoyos

  • Keywords dvbsub added; dvb subtitles removed

comment:2 Changed 3 years ago by joolzg

  • Version changed from unspecified to git-master

comment:3 Changed 3 years ago by joolzg

Any news on this remux bug

Note: See TracTickets for help on using tickets.