Opened 14 years ago

Closed 13 years ago

Last modified 12 years ago

#3 closed defect (fixed)

Auto-detection of Sonic Foundry Soft Encode AC3 files with a 16-byte header fails

Reported by: Carl Eugen Hoyos Owned by: Michael Niedermayer
Priority: normal Component: avformat
Version: git-master Keywords: ac3 roundup
Cc: Blocked By:
Blocking: Reproduced by developer: yes
Analyzed by developer: no

Description

(issue 2647)
Attached sample can be decoded with a52dec -o wav6 (shows many lines of "skip"), but auto-detection fails completely with FFmpeg, MPlayer, xine and vlc.

It was produced with Sonic Foundry Soft Encode and every frame starts with a 16-byte header (possibly with timestamps).

$ ffmpeg -i sonic.ac3
FFmpeg version git-N-27832-g424ffee, Copyright (c) 2000-2011 the FFmpeg developers

built on Mar 7 2011 23:17:15 with gcc 4.5.2
configuration: --cc=/usr/local/gcc-4.5.2/bin/gcc --enable-gpl
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0

sonic.ac3: Invalid data found when processing input

$ ffmpeg -f ac3 -i sonic.ac3 out.wav
FFmpeg version git-N-27832-g424ffee, Copyright (c) 2000-2011 the FFmpeg developers

built on Mar 7 2011 23:17:15 with gcc 4.5.2
configuration: --cc=/usr/local/gcc-4.5.2/bin/gcc --enable-gpl
libavutil 50. 39. 0 / 50. 39. 0
libavcodec 52.113. 2 / 52.113. 2
libavformat 52.102. 0 / 52.102. 0
libavdevice 52. 2. 3 / 52. 2. 3
libavfilter 1. 76. 0 / 1. 76. 0
libswscale 0. 12. 0 / 0. 12. 0

[ac3 @ 0x11e4650] max_analyze_duration reached
[ac3 @ 0x11e4650] Estimating duration from bitrate, this may be inaccurate
Input #0, ac3, from 'sonic.ac3':

Duration: 00:00:37.44, bitrate: 447 kb/s

Stream #0.0: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s

Output #0, wav, to 'out.wav':

Metadata:

encoder : Lavf52.102.0
Stream #0.0: Audio: pcm_s16le, 48000 Hz, 5.1, s16, 4608 kb/s

Stream mapping:

Stream #0.0 -> #0.0

Press [q] to stop encoding
[ac3 @ 0x11ef090] frame sync error
Error while decoding stream #0.0
Error while decoding stream #0.0

...

Error while decoding stream #0.0imes
Error while decoding stream #0.0imes

Last message repeated 1159 times

[ac3 @ 0x11ef090] incomplete frame
size= 20880kB time=37.12 bitrate=4608.0kbits/s
video:0kB audio:20880kB global headers:0kB muxing overhead 0.000318%

out.wav plays fine.

Attachments (1)

sonic.ac3 (2.0 MB ) - added by Carl Eugen Hoyos 14 years ago.

Download all attachments as: .zip

Change History (7)

by Carl Eugen Hoyos, 14 years ago

Attachment: sonic.ac3 added

comment:1 by Carl Eugen Hoyos, 14 years ago

Component: avcodecavformat
Status: newopen

comment:2 by Carl Eugen Hoyos, 14 years ago

Reproduced by developer: set

comment:3 by Michael Niedermayer, 13 years ago

without looking at the file this sounds like a small demuxer should be added that removes these 16byte headers

comment:4 by Carl Eugen Hoyos, 13 years ago

Keywords: ac3 added
Version: gitgit-master

comment:5 by Michael Niedermayer, 13 years ago

Resolution: fixed
Status: openclosed

ac3 probe changed to detect this.

comment:6 by Carl Eugen Hoyos, 12 years ago

Keywords: roundup added
Note: See TracTickets for help on using tickets.