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 632442 - [vorbisenc] failed to dynamically switch between 2 and 6 audio channels
[vorbisenc] failed to dynamically switch between 2 and 6 audio channels
Status: RESOLVED NOTABUG
Product: GStreamer
Classification: Platform
Component: gst-plugins-base
git master
Other Linux
: Normal normal
: git master
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2010-10-18 10:27 UTC by Julien Isorce
Modified: 2010-10-18 11:09 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-18 10:27 UTC, Julien Isorce
Details

Description Julien Isorce 2010-10-18 10:27:55 UTC
Created attachment 172596 [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 ! audioconvert ! vorbisenc ! oggmux ! filesink location=res.ogg

** Actual result:

You can hear to beginning of res.ogg but when switching to 6 audio channels, you can't hear. (data for 6 channels is assumed to be 2)

** Expected result:

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

** Other infos:

- You can hear with aacparse: gst-launch-0.10 filesrc location=res.aac ! aacparse ! faad ! alsasink

- I think the problem does not come from audioconvert because gst-launch-0.10 filesrc location=res.aac ! aacparse ! faad ! audioconvert ! faac outputformat=1 ! filesink location=res2.aac  preserves the switchs.

- I do not know if vorbisdec is able to do that but for now I think the problem comes from vorbisenc side.
Comment 1 Tim-Philipp Müller 2010-10-18 10:42:22 UTC
vorbis does not support this as far as I know. This can be done with ogg/vorbis in principle, but would have to be handled at the application level, or you'd have to write a convenience bin for it. Basically you need to create a new vorbisenc when the format changes and hook that up to oggmux and finish off the old stream, so that you get a so-called 'chained ogg'.

So NOTABUG IMHO.
Comment 2 Sebastian Dröge (slomo) 2010-10-18 11:09:40 UTC
Yes, NOTABUG. Vorbis doesn't support stream changes in the middle of a stream and even with Ogg this is not possible (header pages must be at the front of the file IIRC).