[libav-bugs] [Bug 402] New: flacdec: allow mid-stream channel layout change, issues

bugzilla-daemon at aruru.libav.org bugzilla-daemon at aruru.libav.org
Sun Dec 16 01:15:50 CET 2012


http://bugzilla.libav.org/show_bug.cgi?id=402

           Summary: flacdec: allow mid-stream channel layout change,
                    issues
           Product: Libav
           Version: git HEAD
          Platform: X86
        OS/Version: Mac OS
            Status: NEW
          Severity: major
          Priority: Normal
         Component: libavcodec
        AssignedTo: bugzilla at libav.org
        ReportedBy: tdskywalker at gmail.com


The following commit:

90fcac0e95b7d266c148a86506f301a2072d9de3
Author: Justin Ruggles <justin.ruggles at gmail.com>
Date:   Sun Oct 21 17:02:28 2012 -0400

    flacdec: allow mid-stream channel layout change

    Although the libFLAC decoder cannot handle such a change, it is allowed by
the
    spec and could potentially occur with live streams.

…causes some issues for FLAC samples with more than 6 channels.

Sample:

https://dl.dropbox.com/u/37259775/audio/flac/30seconds.flac

Issues:

1) avplay cannot play the file:

-------------------------------------------------
avplay -i 30seconds.flac 
avplay version v9_beta2-522-ga421bbf, Copyright (c) 2003-2012 the Libav
developers
  built on Dec 16 2012 00:33:06 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
[flac @ 0x7f8794003e00] max_analyze_duration reached
Input #0, flac, from '30seconds.flac':
  Metadata:
    ENCODER         : Lavf54.20.0
  Duration: 00:00:30.00, bitrate: 1452 kb/s
    Stream #0.0: Audio: flac, 48000 Hz, 8 channels, s16
[AVAudioResampleContext @ 0x7f8793b175e0] Invalid input channel layout: 0
error initializing libavresample
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamples
error initializing libavresamplees
error initializing libavresamplees
error initializing libavresamplees
error initializing libavresamplees
-------------------------------------------------

2) avconv logs a gazillion channel layout changes:

-------------------------------------------------
avconv -i 30seconds.flac ~/Desktop/out.wav
avconv version v9_beta2-522-ga421bbf, Copyright (c) 2000-2012 the Libav
developers
  built on Dec 16 2012 00:33:06 with llvm-gcc 4.2.1 (LLVM build 2336.11.00)
[flac @ 0x7f88b0806600] max_analyze_duration reached
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input #0, flac, from '30seconds.flac':
  Metadata:
    ENCODER         : Lavf54.20.0
  Duration: 00:00:30.00, bitrate: 1452 kb/s
    Stream #0.0: Audio: flac, 48000 Hz, 7.1, s16
Output #0, wav, to '/Users/tim/Desktop/out.wav':
  Metadata:
    ISFT            : Lavf54.20.0
    Stream #0.0: Audio: pcm_s16le, 48000 Hz, 7.1, s16, 6144 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (flac -> pcm_s16le)
Press ctrl-c to stop encoding
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input stream #0:0 frame changed from rate:48000 fmt:s16 ch:8 chl:7.1 to
rate:48000 fmt:s16 ch:8 chl:7.1
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input stream #0:0 frame changed from rate:48000 fmt:s16 ch:8 chl:7.1 to
rate:48000 fmt:s16 ch:8 chl:7.1
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input stream #0:0 frame changed from rate:48000 fmt:s16 ch:8 chl:7.1 to
rate:48000 fmt:s16 ch:8 chl:7.1
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input stream #0:0 frame changed from rate:48000 fmt:s16 ch:8 chl:7.1 to
rate:48000 fmt:s16 ch:8 chl:7.1
Guessed Channel Layout for  Input Stream #0.0 : 7.1
Input stream #0:0 frame changed from rate:48000 fmt:s16 ch:8 chl:7.1 to
rate:48000 fmt:s16 ch:8 chl:7.1
-------------------------------------------------

Rodeo

-- 
Configure bugmail: http://bugzilla.libav.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.


More information about the libav-bugs mailing list