Opened 8 years ago

Last modified 3 years ago

#5308 open defect

dvbsubtitles always uses page_id of 1

Reported by: Julian Gardner Owned by:
Priority: normal Component: avformat
Version: git-master Keywords: dvbsub mpegts
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I have a stream which uses composition_page_id of 2 and Ancillary_page_id of 2

but in dvbsub.c:258 we have the following

page_id = 1;

This value should be updated from the mpegtsenc.c when it creates the PMT so the values follow through the chain.

Attachments (1)

c4_raw.ts (1.5 MB ) - added by Julian Gardner 8 years ago.

Download all attachments as: .zip

Change History (7)

by Julian Gardner, 8 years ago

Attachment: c4_raw.ts added

comment:1 by Carl Eugen Hoyos, 8 years ago

Keywords: dvbsub added; dvbsubs removed
Priority: criticalnormal

comment:2 by Julian Gardner, 8 years ago

can we change it to High as this is a show stopper for this project and anyone using dvb susbtiles.

Also do you have a document or specification on what the different levels are or do you decide on your own?

Last edited 8 years ago by Julian Gardner (previous) (diff)

comment:3 by Carl Eugen Hoyos, 8 years ago

Please test current FFmpeg git head and provide the command line that allows to reproduce this issue together with the complete, uncut console output.

comment:4 by Julian Gardner, 8 years ago

NOTE: this line
[mpegts @ 0x3307500] composition_page_id 0002, Ancillary_id 0002, subtitle type 10

was in code added by me to check the values.

./ffmpeg -i /home/encoder/c4_raw.ts -c:v libx264 -c:a copy -c:s copy -f mpegts -y c4_1st.ts
ffmpeg version N-78956-g920f592 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 @ 0x3307500] composition_page_id 0002, 2nd 0002, subtitle type 10
Input #0, mpegts, from '/home/encoder/c4_raw.ts':
  Duration: 00:00:06.48, start: 74585.475500, bitrate: 1884 kb/s
  Program 8384
    Stream #0:0[0x44d]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p(tv), 720x576 [SAR 64:45 DAR 16:9], max. 1838 kb/s, 25 fps, 25 tbr, 90k tbn, 50 tbc
    Stream #0:1[0x44e](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, s16p, 192 kb/s
    Stream #0:2[0x44f](eng): Audio: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, mono, s16p, 64 kb/s (visual impaired)
    Stream #0:3[0x46b](eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Extra 5 (0002000210)
[libx264 @ 0x333e620] using SAR=64/45
[libx264 @ 0x333e620] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2
[libx264 @ 0x333e620] profile High, level 3.0
[hls,mpegts @ 0x333d3c0] HLS Enabled 0
Output #0, hls,mpegts, to 'c4_1st.ts':
  Metadata:
    encoder         : Lavf57.28.100
    Stream #0:0: Video: h264 (libx264), yuv420p, 720x576 [SAR 64:45 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: mp2 ([4][0][0][0] / 0x0004), 48000 Hz, stereo, 192 kb/s
    Stream #0:2(eng): Subtitle: dvb_subtitle ([6][0][0][0] / 0x0006) Extra 5 (0002000210)
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video (native) -> h264 (libx264))
  Stream #0:1 -> #0:1 (copy)
  Stream #0:3 -> #0:2 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0x3307500] composition_page_id 0002, 2nd 0002, subtitle type 10
[mpegts @ 0x3307500] PES packet size mismatchme=00:00:03.45 bitrate= 808.1kbits/s dup=22 drop=0 speed=6.88x
[mpeg2video @ 0x330ec40] invalid cbp -1 at 31 17
[mpeg2video @ 0x330ec40] Warning MVs not available
[mpeg2video @ 0x330ec40] concealing 855 DC, 855 AC, 855 MV errors in B frame
frame=  156 fps=122 q=-1.0 Lsize=     970kB time=00:00:06.48 bitrate=1224.8kbits/s dup=23 drop=0 speed=5.05x
video:735kB audio:133kB subtitle:9kB other streams:0kB global headers:0kB muxing overhead: 10.567791%
[libx264 @ 0x333e620] frame I:2     Avg QP:18.82  size: 41981
[libx264 @ 0x333e620] frame P:42    Avg QP:22.18  size: 11697
[libx264 @ 0x333e620] frame B:112   Avg QP:27.90  size:  1584
[libx264 @ 0x333e620] consecutive B-frames:  1.9%  1.3% 17.3% 79.5%
[libx264 @ 0x333e620] mb I  I16..4:  7.0% 91.9%  1.2%
[libx264 @ 0x333e620] mb P  I16..4:  0.9%  2.3%  0.2%  P16..4: 40.7% 17.3% 10.5%  0.0%  0.0%    skip:28.0%
[libx264 @ 0x333e620] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8: 36.6%  2.2%  0.4%  direct: 1.0%  skip:59.9%  L0:41.6% L1:49.5% BI: 8.8%
[libx264 @ 0x333e620] 8x8 transform intra:81.1% inter:78.4%
[libx264 @ 0x333e620] coded y,uvDC,uvAC intra: 70.4% 68.4% 24.5% inter: 12.9% 9.8% 0.2%
[libx264 @ 0x333e620] i16 v,h,dc,p: 47% 26% 10% 17%
[libx264 @ 0x333e620] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 16% 25%  3%  5%  5%  6%  5%  6%
[libx264 @ 0x333e620] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 18% 18%  3%  8%  5%  8%  3%  7%
[libx264 @ 0x333e620] i8c dc,h,v,p: 49% 18% 27%  5%
[libx264 @ 0x333e620] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x333e620] ref P L0: 57.1% 13.0% 26.2%  3.7%
[libx264 @ 0x333e620] ref B L0: 88.4% 10.5%  1.1%
[libx264 @ 0x333e620] ref B L1: 93.8%  6.2%
[libx264 @ 0x333e620] kb/s:964.96

Now look in the produced file with dvbsnoop and you will see the pmt is using 0002 and the dvb subtitles is using 0001 as its ids

Last edited 8 years ago by Carl Eugen Hoyos (previous) (diff)

comment:5 by Carl Eugen Hoyos, 8 years ago

Component: avcodecavformat
Status: newopen
Note: See TracTickets for help on using tickets.