Opened 5 years ago

Closed 5 years ago

#529 closed defect (invalid)

Regression: Decoding of AVCHD H.264 Material fails

Reported by: rmk Owned by:
Priority: important Component: avcodec
Version: unspecified Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by cehoyos)

Any ffmpeg command line that requires decoding the video stream or invocation of ffplay fails with the assertion seen below:

ffplay 00372.MTS
ffplay version N-33271-g171a5b5, Copyright (c) 2003-2011 the FFmpeg developers
  built on Oct  4 2011 11:21:06 with gcc 4.2.1 (Apple Inc. build 5664)
  configuration: 
  libavutil    51. 19. 0 / 51. 19. 0
  libavcodec   53. 19. 0 / 53. 19. 0
  libavformat  53. 13. 0 / 53. 13. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[mpegts @ 0x101066400] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
Assertion failed: (s->last_picture_ptr==NULL || s->out_format != FMT_H264 || s->codec_id == CODEC_ID_SVQ3), function MPV_frame_start, file libavcodec/mpegvideo.c, line 1049.
Abort trap

I reproduced this with raw footage from the following cameras:
Panasonic GH1
Panasonic GH2
Canon HF-100
Sony CX-6

I attached a short sample from the GH2

Attachments (1)

00372.MTS (1.5 MB) - added by rmk 5 years ago.

Download all attachments as: .zip

Change History (8)

Changed 5 years ago by rmk

comment:1 Changed 5 years ago by cehoyos

  • Description modified (diff)

comment:2 Changed 5 years ago by cehoyos

I cannot reproduce this problem on ia32, intel64 (both Linux) and ppc (OS X 10.5):

$ ffplay 00372.MTS -autoexit
ffplay version N-33271-g171a5b5, Copyright (c) 2003-2011 the FFmpeg developers
  built on Oct  4 2011 15:28:26 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --disable-optimizations
  libavutil    51. 19. 0 / 51. 19. 0
  libavcodec   53. 19. 0 / 53. 19. 0
  libavformat  53. 13. 0 / 53. 13. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[mpegts @ 0x148c080] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
Input #0, mpegts, from '00372.MTS':
  Duration: 00:00:01.44, start: 0.732767, bitrate: 8567 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
   2.21 A-V:  0.000 s:0.5 aq=    0KB vq=    0KB sq=    0B f=0/0   f=0/0
cehoyos@flitwick:~> Projects/FFmpeg/ffplay 00372.MTS -autoexit
ffplay version N-33271-g171a5b5, Copyright (c) 2003-2011 the FFmpeg developers
  built on Oct  4 2011 18:04:09 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc
  libavutil    51. 19. 0 / 51. 19. 0
  libavcodec   53. 19. 0 / 53. 19. 0
  libavformat  53. 13. 0 / 53. 13. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[mpegts @ 0x1308080] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
Input #0, mpegts, from '00372.MTS':
  Duration: 00:00:01.44, start: 0.732767, bitrate: 8567 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
   2.22 A-V:  0.000 s:0.1 aq=    0KB vq=    0KB sq=    0B f=0/0   f=0/0
$ ffmpeg -i 00372.MTS -f null -
ffmpeg version N-33271-g171a5b5, Copyright (c) 2000-2011 the FFmpeg developers
  built on Oct  4 2011 15:46:58 with gcc 4.2.1 (Apple Inc. build 5577)
  configuration: --cc=gcc-4.2
  libavutil    51. 19. 0 / 51. 19. 0
  libavcodec   53. 19. 0 / 53. 19. 0
  libavformat  53. 13. 0 / 53. 13. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 6 /  2. 43. 6
  libswscale    2.  1. 0 /  2.  1. 0
[mpegts @ 0x1002600] parser not found for codec hdmv_pgs_subtitle, packets or times may be invalid.
Input #0, mpegts, from '00372.MTS':
  Duration: 00:00:01.44, start: 0.732767, bitrate: 8567 kb/s
  Program 1
    Stream #0:0[0x1011]: Video: h264 (High) (HDMV / 0x564D4448), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
    Stream #0:1[0x1100]: Audio: ac3 (AC-3 / 0x332D4341), 48000 Hz, stereo, s16, 192 kb/s
    Stream #0:2[0x1200]: Subtitle: hdmv_pgs_subtitle ([144][0][0][0] / 0x0090)
[buffer @ 0xd0a8c0] w:1280 h:720 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
Output #0, null, to 'pipe:':
  Metadata:
    encoder         : Lavf53.13.0
    Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 1280x720 [SAR 1:1 DAR 16:9], q=2-31, 200 kb/s, 90k tbn, 50 tbc
    Stream #0:1: Audio: pcm_s16be, 48000 Hz, stereo, s16, 1536 kb/s
Stream mapping:
  Stream #0.0 -> #0.0 (h264 -> rawvideo)
  Stream #0.1 -> #0.1 (ac3 -> pcm_s16be)
Press [q] to stop, [?] for help
frame=   72 fps= 24 q=0.0 Lsize=      -0kB time=00:00:01.44 bitrate=  -0.1kbits/s
video:0kB audio:276kB global headers:0kB muxing overhead -100.007784%

comment:3 Changed 5 years ago by rmk

weird. I just did a clean recompile to make sure (make distclean;configure;make clean;make) and it does happen as described and it does not happen with a clean build of ffmbc-0.7rc2. Maybe someone else running OS X could verify?

comment:4 Changed 5 years ago by cehoyos

Could you add some system information?
And please try --cc=clang (and/or another gcc version if available).

comment:5 Changed 5 years ago by cehoyos

And since this is a regression for you, please find the version introducing it.

comment:6 Changed 5 years ago by rmk

After a colleague couldn't reproduce it on OS X, I did a clean git clone and it didn't happen here either. I thought git pull without errors + clean/distclean was sufficient but was obviously wrong. I apologize for time wasted and promise to always doublecheck with a clean git clone before I submit a bug report. Please close as invalid.

comment:7 Changed 5 years ago by cehoyos

  • Resolution set to invalid
  • Status changed from new to closed

Thank you for the clarification.

Note: See TracTickets for help on using tickets.