Opened 5 years ago

Closed 5 years ago

Last modified 5 years ago

#494 closed defect (fixed)

Error decoding ac3 (Multiple frames in a packet from stream 1)

Reported by: Alex__ Owned by:
Priority: normal Component: undetermined
Version: git-master Keywords: ac3 mov
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

Description: Error encoding ac3 (Multiple frames in a packet from stream 1)
Version: trunk
URL: see below

Steps that will reproduce the problem?
ffmpeg -y -i sample-issue-xxx.mov sample-issue-xxx.m4v

What is the expected result?
Converted file including audio data (at the end of the mov example you can hear sound).

What happens instead?
The audio track seems not to get converted.

Possible workaround:
Unknown.

Any additional information:

  • Sample plays in VCL: yes
  • Command:
    ffmpeg version N-30103-g358d837, Copyright (c) 2000-2011 the FFmpeg developers
      built on Sep 21 2011 10:18:24 with clang 2.1 (tags/Apple/clang-163.7.1)
      configuration: --enable-zlib --disable-debug --enable-libfaac --enable-libx264 --enable-gpl --enable-nonfree --enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libxvid --cc=clang
      libavutil    51. 16. 1 / 51. 16. 1
      libavcodec   53. 16. 0 / 53. 16. 0
      libavformat  53. 12. 0 / 53. 12. 0
      libavdevice  53.  4. 0 / 53.  4. 0
      libavfilter   2. 43. 2 /  2. 43. 2
      libswscale    2.  1. 0 /  2.  1. 0
      libpostproc  51.  2. 0 / 51.  2. 0
    Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'a.mov':
      Metadata:
        major_brand     : qt  
        minor_version   : 537199360
        compatible_brands: qt  
        creation_time   : 2008-06-12 11:29:44
        title           : Hoodwinked
        artist          : Glenn Close, Chazz Palminteri, David Ogden Stiers, Patrick Warburton, Andy Dick
        genre           : Kids & Family
        date            : 2005-06-15T12:00:00Z
        album           : 
        description     : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
        synopsis        : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
        composer        : 
        show            : 
        episode_id      : 
        network         : 
      Duration: 01:20:53.97, start: 0.000000, bitrate: 8 kb/s
        Stream #0.0(eng): Video: mpeg4 (Advanced Simple Profile) (DX50 / 0x30355844), yuv420p, 560x306 [SAR 1:1 DAR 280:153], 943 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 23.98 tbc
        Metadata:
          creation_time   : 2008-06-12 11:29:44
        Stream #0.1(eng): Audio: ac3 (ms [0] / 0x20736D), 48000 Hz, 2 channels, s16, 255 kb/s
        Metadata:
          creation_time   : 2008-06-12 11:29:45
    [buffer @ 0x7ffecac1ab20] w:560 h:306 pixfmt:yuv420p tb:1/1000000 sar:1/1 sws_param:
    [libx264 @ 0x7ffecb046a00] using SAR=1/1
    [libx264 @ 0x7ffecb046a00] using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.1 Cache64
    [libx264 @ 0x7ffecb046a00] profile High, level 2.1
    [libx264 @ 0x7ffecb046a00] 264 - core 116 r2074 2641b9e - H.264/MPEG-4 AVC codec - Copyleft 2003-2011 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 sliced_threads=0 nr=0 decimate=1 interlaced=0 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=2 keyint=250 keyint_min=23 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=crf mbtree=1 crf=23.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
    Output #0, ipod, to 'a.m4v':
      Metadata:
        major_brand     : qt  
        minor_version   : 537199360
        compatible_brands: qt  
        creation_time   : 2008-06-12 11:29:44
        title           : Hoodwinked
        artist          : Glenn Close, Chazz Palminteri, David Ogden Stiers, Patrick Warburton, Andy Dick
        genre           : Kids & Family
        date            : 2005-06-15T12:00:00Z
        album           : 
        description     : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
        synopsis        : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
        composer        : 
        show            : 
        episode_id      : 
        network         : 
        encoder         : Lavf53.12.0
        Stream #0.0(eng): Video: h264 (avc1 / 0x31637661), yuv420p, 560x306 [SAR 1:1 DAR 280:153], q=-1--1, 2997 tbn, 23.98 tbc
        Metadata:
          creation_time   : 2008-06-12 11:29:44
        Stream #0.1(eng): Audio: aac (mp4a / 0x6134706D), 48000 Hz, 2 channels, s16, 128 kb/s
        Metadata:
          creation_time   : 2008-06-12 11:29:45
    Stream mapping:
      Stream #0.0 -> #0.0 (mpeg4 -> libx264)
      Stream #0.1 -> #0.1 (ac3 -> libfaac)
    Press [q] to stop, [?] for help
    Multiple frames in a packet from stream 1
    [ac3 @ 0x7ffecb04c000] incomplete frame
    [ac3 @ 0x7ffecb04c000] frame sync error
    Error while decoding stream #0.1
    ...
    Error while decoding stream #0.1
    frame=  187 fps=  0 q=28.0 size=       1kB time=00:00:00.44 bitrate=  21.6kbits/s dup=1 drop=0    
    Error while decoding stream #0.1
    ...
    Error while decoding stream #0.1
    frame=  334 fps=330 q=28.0 size=       1kB time=00:00:00.44 bitrate=  21.6kbits/s dup=1 drop=0    
    Error while decoding stream #0.1
    ...
    Error while decoding stream #0.1
        Last message repeated 389 times
    [mov,mp4,m4a,3gp,3g2,mj2 @ 0x7ffecb03d800] stream 1, offset 0x4e250b: partial file
    frame=  385 fps=227 q=-1.0 Lsize=     104kB time=00:00:00.53 bitrate=1600.8kbits/s dup=1 drop=0    
    
    video:96kB audio:0kB global headers:0kB muxing overhead 8.163989%
    frame I:8     Avg QP:14.78  size:  1464
    [libx264 @ 0x7ffecb046a00] frame P:151   Avg QP:22.31  size:   433
    [libx264 @ 0x7ffecb046a00] frame B:226   Avg QP:27.28  size:    91
    [libx264 @ 0x7ffecb046a00] consecutive B-frames: 19.0%  6.8%  4.7% 69.6%
    [libx264 @ 0x7ffecb046a00] mb I  I16..4: 70.2% 28.2%  1.5%
    [libx264 @ 0x7ffecb046a00] mb P  I16..4: 15.2%  4.7%  0.1%  P16..4:  3.8%  0.6%  0.5%  0.0%  0.0%    skip:75.1%
    [libx264 @ 0x7ffecb046a00] mb B  I16..4:  0.7%  0.3%  0.0%  B16..8:  3.7%  0.1%  0.1%  direct: 1.0%  skip:94.0%  L0:49.5% L1:47.1% BI: 3.4%
    [libx264 @ 0x7ffecb046a00] 8x8 transform intra:24.9% inter:79.1%
    [libx264 @ 0x7ffecb046a00] coded y,uvDC,uvAC intra: 8.4% 5.9% 0.1% inter: 1.0% 1.2% 0.0%
    [libx264 @ 0x7ffecb046a00] i16 v,h,dc,p: 87%  8%  5%  0%
    [libx264 @ 0x7ffecb046a00] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 37% 14% 45%  1%  0%  1%  0%  0%  1%
    [libx264 @ 0x7ffecb046a00] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 32% 20%  3%  4%  4%  3%  2%  3%
    [libx264 @ 0x7ffecb046a00] i8c dc,h,v,p: 86%  6%  8%  0%
    [libx264 @ 0x7ffecb046a00] Weighted P-Frames: Y:41.1% UV:17.9%
    [libx264 @ 0x7ffecb046a00] ref P L0: 69.7% 12.2% 11.7%  4.3%  2.1%
    [libx264 @ 0x7ffecb046a00] ref B L0: 77.9% 15.3%  6.8%
    [libx264 @ 0x7ffecb046a00] ref B L1: 95.4%  4.6%
    [libx264 @ 0x7ffecb046a00] kb/s:48.68
    

Change History (5)

comment:2 Changed 5 years ago by cehoyos

  • Component changed from undetermined to avcodec
  • Reproduced by developer set
  • Status changed from new to open
  • Summary changed from Error encoding ac3 (Multiple frames in a packet from stream 1) to Error decoding ac3 (Multiple frames in a packet from stream 1)

Also fails with mplayer -demuxer lavf -ac ffac3 and mplayer -demuxer mov -ac ffac3
out.wav is silent

$ ffmpeg -i sample-issue-494.mov out.wav
ffmpeg version N-32748-g358d837, Copyright (c) 2000-2011 the FFmpeg developers
  built on Sep 21 2011 11:43:56 with gcc 4.5.3
  configuration: --cc=/usr/local/gcc-4.5.3/bin/gcc --enable-libspeex
  libavutil    51. 16. 1 / 51. 16. 1
  libavcodec   53. 16. 0 / 53. 16. 0
  libavformat  53. 12. 0 / 53. 12. 0
  libavdevice  53.  4. 0 / 53.  4. 0
  libavfilter   2. 43. 2 /  2. 43. 2
  libswscale    2.  1. 0 /  2.  1. 0
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'sample-issue-494.mov':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2008-06-12 11:29:44
    title           : Hoodwinked
    artist          : Glenn Close, Chazz Palminteri, David Ogden Stiers, Patrick Warburton, Andy Dick
    genre           : Kids & Family
    date            : 2005-06-15T12:00:00Z
    album           :
    description     : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
    synopsis        : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
    composer        :
    show            :
    episode_id      :
    network         :
  Duration: 01:20:53.97, start: 0.000000, bitrate: 8 kb/s
    Stream #0.0(eng): Video: mpeg4 (Advanced Simple Profile) (DX50 / 0x30355844), yuv420p, 560x306 [SAR 1:1 DAR 280:153], 943 kb/s, 23.98 fps, 23.98 tbr, 2997 tbn, 23.98 tbc
    Metadata:
      creation_time   : 2008-06-12 11:29:44
    Stream #0.1(eng): Audio: ac3 (ms [0] / 0x20736D), 48000 Hz, 2 channels, s16, 255 kb/s
    Metadata:
      creation_time   : 2008-06-12 11:29:45
Output #0, wav, to 'out.wav':
  Metadata:
    major_brand     : qt
    minor_version   : 537199360
    compatible_brands: qt
    creation_time   : 2008-06-12 11:29:44
    title           : Hoodwinked
    artist          : Glenn Close, Chazz Palminteri, David Ogden Stiers, Patrick Warburton, Andy Dick
    genre           : Kids & Family
    date            : 2005-06-15T12:00:00Z
    album           :
    description     : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
    synopsis        : Hoodwinked fuses the classic fairy tale of Little Red Riding Hood with the crisscrossing storylines of film noir--pretty ambitious stuff for a computer-animated cartoon. The police cordon off Grandma's cottage and an amphibious version of William Powell n
    composer        :
    show            :
    episode_id      :
    network         :
    encoder         : Lavf53.12.0
    Stream #0.0(eng): Audio: pcm_s16le ([1][0][0][0] / 0x0001), 48000 Hz, 2 channels, s16, 1536 kb/s
    Metadata:
      creation_time   : 2008-06-12 11:29:45
Stream mapping:
  Stream #0.1 -> #0.0 (ac3 -> pcm_s16le)
Press [q] to stop, [?] for help
Multiple frames in a packet from stream 1
[ac3 @ 0x12be420] incomplete frame
[ac3 @ 0x12be420] frame sync error
Error while decoding stream #0.1
Error while decoding stream #0.1

...

Error while decoding stream #0.1
Error while decoding stream #0.1
    Last message repeated 389 times
[mov,mp4,m4a,3gp,3g2,mj2 @ 0x12b6780] stream 1, offset 0x4e250b: partial file
size=      96kB time=00:00:00.51 bitrate=1536.7kbits/s
video:0kB audio:96kB global headers:0kB muxing overhead 0.044759%

The following commands work as expected:
mplayer -demuxer lavf -ac a52 sample-issue-494.mov
mplayer -demuxer mov -ac a52 sample-issue-494.mov
mplayer -demuxer lavf -dumpaudio sample-issue-494.mov && ffmpeg -i stream.dump out.wav
mplayer -demuxer mov -dumpaudio sample-issue-494.mov && ffmpeg -i stream.dump out.wav
mplayer -ac hwac3 sample-issue-494.mov

comment:3 Changed 5 years ago by cehoyos

  • Component changed from avcodec to undetermined
  • Resolution set to fixed
  • Status changed from open to closed

Should be fixed.

comment:4 Changed 5 years ago by Alex__

Verified. Thanks.

comment:5 Changed 5 years ago by cehoyos

  • Keywords ac3 mov added
Note: See TracTickets for help on using tickets.