New submission from Sohum <[EMAIL PROTECTED]>:

I'm trying to transcode from flac to ogg. ffmpeg incorrectly detects the flac
file as an mp2, and then barfs because it's not a valid mp2 file. If I force
flac, it still is unable to decode the flac file. The file itself is correctly
decoded and played in vlc using its flac codec, as well as with flac --decode.

$ ffmpeg -i file.flac -ab 256k -ac 2 -ar 48000 file.ogg       
FFmpeg version SVN-r15532, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-libvorbis
--enable-libtheora --disable-debug --enable-libmp3lame --enable-libfaad
--enable-libfaac --enable-pthreads --enable-gpl --enable-pthreads
--enable-libvorbis --enable-libtheora --enable-libgsm --disable-debug
--enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac
--enable-libxvid --enable-liba52 --enable-shared --enable-libx264
--enable-nonfree --enable-swscale
  libavutil     49.11. 0 / 49.11. 0
  libavcodec    52. 0. 0 / 52. 0. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct  3 2008 10:49:09, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
[mp3 @ 0x8065220]Could not find codec parameters (Audio: mp2, s16, 160 kb/s)
file.flac: could not find codec parameters

$ ffmpeg -f flac -i file.flac -ab 256k -ac 2 -ar 48000 file.ogg 
FFmpeg version SVN-r15532, Copyright (c) 2000-2008 Fabrice Bellard, et al.
  configuration: --enable-gpl --enable-postproc --enable-libvorbis
--enable-libtheora --disable-debug --enable-libmp3lame --enable-libfaad
--enable-libfaac --enable-pthreads --enable-gpl --enable-pthreads
--enable-libvorbis --enable-libtheora --enable-libgsm --disable-debug
--enable-libmp3lame --enable-libfaadbin --enable-libfaad --enable-libfaac
--enable-libxvid --enable-liba52 --enable-shared --enable-libx264
--enable-nonfree --enable-swscale
  libavutil     49.11. 0 / 49.11. 0
  libavcodec    52. 0. 0 / 52. 0. 0
  libavformat   52.22. 1 / 52.22. 1
  libavdevice   52. 1. 0 / 52. 1. 0
  libswscale     0. 6. 1 /  0. 6. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Oct  3 2008 10:49:09, gcc: 4.2.3 (Ubuntu 4.2.3-2ubuntu7)
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 1 (channels=0)
[flac @ 0x806e440]decode_frame() failed
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 10 (channels=0)
[flac @ 0x806e440]decode_frame() failed
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 10 (channels=0)
[flac @ 0x806e440]decode_frame() failed
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 10 (channels=0)
[flac @ 0x806e440]decode_frame() failed
[flac @ 0x806e440]FRAME HEADER not here
.
.
.
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 11 (channels=0)
[flac @ 0x806e440]decode_frame() failed
Error while decoding stream #0.0
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 5 (channels=0)
[flac @ 0x806e440]decode_frame() failed
Error while decoding stream #0.0
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 15 (channels=0)
[flac @ 0x806e440]decode_frame() failed
Error while decoding stream #0.0
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 4 (channels=0)
[flac @ 0x806e440]decode_frame() failed
Error while decoding stream #0.0
[flac @ 0x806e440]FRAME HEADER not here
[flac @ 0x806e440]unsupported channel assignment 15 (channels=0)
[flac @ 0x806e440]decode_frame() failed
size=       0kB time=10000000000.00 bitrate=   0.0kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 282.352941%

----------
messages: 3388
nosy: sohumb
priority: normal
status: new
substatus: new
title: ffmpeg fails to detect/decode certain flac files
type: bug

______________________________________________________
FFmpeg issue tracker <[EMAIL PROTECTED]>
<https://roundup.mplayerhq.hu/roundup/ffmpeg/issue672>
______________________________________________________

Reply via email to