[gstreamer-bugs] [Bug 316725] New: Audioconvert caps fixate problems

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Mon Sep 19 13:02:43 PDT 2005


Do not reply to this email.  You can add comments to this bug at
 http://bugzilla.gnome.org/show_bug.cgi?id=316725
 GStreamer | gst-plugins | Ver: 0.8.x

           Summary: Audioconvert caps fixate problems
           Product: GStreamer
           Version: 0.8.x
          Platform: Other
        OS/Version: Linux
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: gst-plugins
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: hexa00 at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
                CC: all-bugs at bugzilla.gnome.org


Take a mono channel wav for example and try to reencode it in wav using
audioconvert beteween...

like :gst-launch-0.8 -v   filesrc location=test-mono.wav ! wavparse ! 
audioconvert ! wavenc ! filesink location="test.out"

This will produce a 2 channel wav file 

/pipeline0/audioconvert0.sink: caps = audio/x-raw-int, endianness=(int)1234,
width=(int)8, depth=(int)8, signed=(boolean)false, rate=(int)8000, channels=(int)1
/pipeline0/audioconvert0.src: caps = audio/x-raw-int, rate=(int)8000,
channels=(int)2, endianness=(int)1234, width=(int)16, depth=(int)16,
signed=(boolean)true

When it should be 1 channel

The issue is in gst_audio_convert_fixate (GstPad * pad, const GstCaps * caps)

  if (!GST_PAD_IS_NEGOTIATING (otherpad)) {
   try.channels = 2;
   try.width = 16;
   try.depth = 16;
   try.endianness = G_BYTE_ORDER;
  } 

I have no idea why it return these defaults... to me it seems it should return
null , and if it does return null it fixes the problem...

Anyone would know why there was these default values there ??

if not : if (!GST_PAD_IS_NEGOTIATING (otherpad))
            return NULL; 

would fix it....

Thanks a lot

Antoine Tremblay

------- You are receiving this mail because: -------
You are the assignee for the bug.
You are the QA contact for the bug.




More information about the Gstreamer-bugs mailing list