Opened 5 years ago

Last modified 5 years ago

#2261 open defect

mpegts: PID switch breaks demuxing

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

Description

Summary of the bug:
How to reproduce:

ffmpeg -i http://www.cs.helsinki.fi/u/jeekstro/encoding/sample.ts -f null -
ffmpeg version git-2013-02-11-c177f2e Copyright (c) 2000-2013 the FFmpeg developers
  built on Feb 11 2013 16:20:21 with FreeBSD clang version 3.1 (branches/release_31 156863) 20120523
  configuration: --cc=clang --as=clang --extra-cflags=-fcolor-diagnostics --extra-cflags=-I/usr/local/include --extra-ldflags=-L/usr/local/lib --samples=../fate-suite --disable-debug --enable-static --disable-postproc --disable-indev=v4l2 --disable-indev=alsa --disable-indev=bktr --disable-indev=dshow --disable-indev=dv1394 --disable-indev=fbdev --disable-indev=jack --disable-indev=libcdio --disable-indev=libdc1394 --disable-indev=openal --disable-indev=pulse --disable-indev=sndio --disable-indev=vfwcap --disable-outdev=sndio --disable-outdev=alsa --disable-filter=mp --disable-doc --enable-nonfree --enable-openssl --enable-gpl --enable-x11grab --disable-shared
  libavutil      52. 17.101 / 52. 17.101
  libavcodec     54. 91.102 / 54. 91.102
  libavformat    54. 62.100 / 54. 62.100
  libavdevice    54.  3.103 / 54.  3.103
  libavfilter     3. 37.101 /  3. 37.101
  libswscale      2.  2.100 /  2.  2.100
  libswresample   0. 17.102 /  0. 17.102
[mpeg2video @ 0x2948d400] 0x0 is invalid
    Last message repeated 8 times
[mpegts @ 0x29444100] max_analyze_duration 5000000 reached at 5013333 microseconds
[mpegts @ 0x29444100] PES packet size mismatch
Input #0, mpegts, from '/tmp/sample.ts':
  Duration: 00:01:15.46, start: 75353.108289, bitrate: 8022 kb/s
  Program 23608 
    Metadata:
      service_name    : ?~ÔÏËÙÏ!!Íر
      service_provider: 
    Stream #0:2[0x111]: Video: mpeg2video ([2][0][0][0] / 0x0002), 90k tbn
    Stream #0:1[0x112]: Audio: aac ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp, 190 kb/s
  Program 23609 
    Metadata:
      service_name    : ?~ÔÏËÙÏ!!Íز
      service_provider: 
  Program 23615 
    Metadata:
      service_name    : ?~ÔÏËÙÏ!!ÍØNW;~
      service_provider: 
  Program 23992 
    Metadata:
      service_name    : ?~ÍØ?|ïó»°?~±
      service_provider: 
  Program 23993 
    Metadata:
      service_name    : ?~ÍØ?|ïó»°?~²
      service_provider: 
  No Program
    Stream #0:0[0x121]: Video: mpeg2video (Main) ([2][0][0][0] / 0x0002), yuv420p, 720x480 [SAR 32:27 DAR 16:9], 29.97 fps, 29.97 tbr, 90k tbn, 59.94 tbc
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf54.62.100
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 720x480 [SAR 32:27 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
    Stream #0:1: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (mpeg2video -> rawvideo)
  Stream #0:1 -> #0:1 (aac -> pcm_s16le)
Press [q] to stop, [?] for help
[null @ 0x29444600] Encoder did not produce proper pts, making some up.
PES packet size mismatch0 size=N/A time=00:00:20.28 bitrate=N/A dup=15 drop=0    
[aac @ 0x2948d800] channel element 0.3 is not allocated
Error while decoding stream #0:1: Operation not permitted
[aac @ 0x2948d800] Number of bands (4) exceeds limit (1).
Error while decoding stream #0:1: Operation not permitted
PES packet size mismatch0 size=N/A time=00:00:58.26 bitrate=N/A dup=15 drop=0    
[mpeg2video @ 0x2948d400] ac-tex damaged at 16 8
[mpeg2video @ 0x2948d400] Warning MVs not available
[mpeg2video @ 0x2948d400] concealing 990 DC, 990 AC, 990 MV errors in I frame
[aac @ 0x2948d800] Input buffer exhausted before END element found
Error while decoding stream #0:1: Operation not permitted
frame=  802 fps=496 q=0.0 Lsize=N/A time=00:01:15.56 bitrate=N/A dup=17 drop=0    
video:50kB audio:14160kB subtitle:0 global headers:0kB muxing overhead -100.000151%

Change History (6)

comment:1 Changed 5 years ago by richardpl

  • Status changed from new to open

comment:2 Changed 5 years ago by richardpl

vlc plays it fine

comment:3 Changed 5 years ago by cehoyos

  • Priority changed from important to normal

comment:4 Changed 5 years ago by richardpl

  • Priority changed from normal to critical

comment:5 Changed 5 years ago by gjdfgh

By the way, VLC handles this fine with its own demuxer.

comment:6 Changed 5 years ago by cehoyos

  • Priority changed from critical to normal
Note: See TracTickets for help on using tickets.