New submission from Jacques <jacques.h...@credit-suisse.com>:

Hi there,

Overview:  Encoding AC3 5.1 is broken when selecting all 6 channels.  AC3 
stereo encoding works fine.
SVN Rel: 20371
Config: --prefix=/app/local --extra-cflags=-I/app/local/include 
--extra-ldflags=-L/app/local/lib --enable-gpl --
enable-libxvid --enable-pthreads --enable-libmp3lame --enable-libvorbis 
--enable-libfaac --enable-libfaad --enable-
nonfree --enable-shared

Descr:  I've tested this on several VOBs.  FFMPEG encodes stereo AC3 streams 
correctly, but not 5.1 channels.  The 
audio stream gets tagged as "Uncompressed PCM" and the FourCC code is the 
corresponding 0xfffe tag.  It should be 
"AC3-A52" tagged as 0x2000.

Cmd and output:

##########################################################

# ffmpeg -v 9 -loglevel 99 -y -t 00:00:10 -i file.vob -vcodec libxvid -b 2000k 
-acodec ac3 -ac 6 -ab 448k -f avi 
out.avi
FFmpeg version SVN-r20371, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  built on Oct 25 2009 20:26:03 with gcc 4.1.2 20080704 (Red Hat 4.1.2-46)
  configuration: --prefix=/app/local --extra-cflags=-I/app/local/include 
--extra-ldflags=-L/app/local/lib --enable-
gpl --enable-libxvid --enable-pthreads --enable-libmp3lame --enable-libvorbis 
--enable-libfaac --enable-libfaad --
enable-nonfree --enable-shared
  libavutil     50. 3. 0 / 50. 3. 0
  libavcodec    52.37. 1 / 52.37. 1
  libavformat   52.39. 2 / 52.39. 2
  libavdevice   52. 2. 0 / 52. 2. 0
  libswscale     0. 7. 1 /  0. 7. 1
[NULL @ 0x1d8543c0]Probed with size=8192 and score=52
[mpeg @ 0x1d8543c0]Probe with size=2012, packets=1 detected mpegvideo with 
score=25
[mpeg @ 0x1d8543c0]max_analyze_duration reached

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) 
-> 25.00 (25/1)
Input #0, mpeg, from 'file.vob':
  Duration: N/A, start: 0.287267, bitrate: N/A
    Stream #0.0[0x1e0], 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 
DAR 4:3], 1/50, 9800 kb/s, 25 tbr, 
90k tbn, 50 tbc
    Stream #0.1[0x80], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
    Stream #0.2[0x81], 1/90000: Audio: ac3, 48000 Hz, stereo, s16, 192 kb/s
    Stream #0.3[0x82], 1/90000: Audio: ac3, 48000 Hz, 5.1, s16, 384 kb/s
Output #0, avi, to 'out.avi':
    Stream #0.0, 1/25: Video: libxvid, yuv420p, 720x576 [PAR 16:15 DAR 4:3], 
1/25, q=2-31, 2000 kb/s, 25 tbn, 25 tbc
    Stream #0.1, 4/125: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=  258 fps= 21 q=2.0 Lsize=    2459kB time=10.02 bitrate=2011.1kbits/s 
dup=0 drop=0    
video:1888kB audio:548kB global headers:0kB muxing overhead 0.955214%

##############################################################################

Media players like VLC, complains about the audio stream (also checked in GSpot 
and VideoSpec).  If the above cmd 
only encodes 2 channels on stream 0.1 (-ac 2) it's fine.

I've attached the out.avi vid.

Cheers,
Jacques
File 'out.avi' not attached - you can download it from 
https://roundup.ffmpeg.org/roundup/ffmpeg/file585.

----------
files: out.avi
messages: 7622
priority: normal
status: new
substatus: new
title: AC3 5.1 breaks ffmpeg
type: bug

_____________________________________________________
FFmpeg issue tracker <iss...@roundup.ffmpeg.org>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1498>
_____________________________________________________

Reply via email to