After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 632691 - [ffenc_ac3] does not support changing the number of channels on the fly
[ffenc_ac3] does not support changing the number of channels on the fly
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gst-libav
git master
Other Linux
: Normal normal
: 0.10.12
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-20 13:18 UTC by Julien Isorce
Modified: 2010-10-25 10:31 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
aac file that contains 2 audio channels then 6 then 2 then 6 (recorded with faac outputformat=1) (730.83 KB, audio/mp4)
2010-10-20 13:18 UTC, Julien Isorce
Details

Description Julien Isorce 2010-10-20 13:18:06 UTC
Created attachment 172842 [details]
aac file that contains 2 audio channels then 6 then 2 then 6 (recorded with faac outputformat=1)

** steps to reproduce:

gst-launch-0.10 filesrc location=res.aac ! aacparse ! faad ! ffenc_ac3 ! filesink location=res.ac3

** Actual result:

Lot of errors when switching to 6 audio channels:

0:00:09.248382223 20569  0x8725130 ERROR                 ffmpeg gstffmpegcodecmap.c:122:gst_ff_channel_layout_to_gst: Number of channels is different (2 != 6)
0:00:09.250532238 20569  0x8725130 ERROR                 ffmpeg :0:: Bit allocation failed. Try increasing the bitrate.

But the recording pipeline does not stop.

Playing it with:

gst-launch-0.10 -v filesrc location=res.ac3 ! ac3parse ! a52dec ! audioconvert ! alsasink

You can hear the beginning of res.ac3 but you cannot hear when switching to 6 audio channels. 
But at least it seems to be detected (when switching from 2 to 6 channels: ac3parse0.GstPad:src: caps = audio/x-ac3, framed=(boolean)true, rate=(int)48000, channels=(int)6)

** Expected result:

You should be able to hear the whole audio stream from res.ac3

** Other infos:

- You can hear with aacparse: gst-launch-0.10 filesrc location=res.aac !
aacparse ! faad ! alsasink
Comment 1 Mark Nauwelaerts 2010-10-25 10:31:39 UTC
commit e837ec505d7dc41887b3bcdb56ea2a64e95049f5
Author: Mark Nauwelaerts <mark.nauwelaerts@collabora.co.uk>
Date:   Mon Oct 25 12:14:42 2010 +0200

    ffmpegenc: ensure proper clean state prior to (re-)negotiation
    
    Fixes #632691.