[Bug 727811] New: AutoAudioSrc cannot detect source for iOS and android

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Tue Apr 8 03:40:10 PDT 2014


https://bugzilla.gnome.org/show_bug.cgi?id=727811
  GStreamer | gst-plugins-good | 1.x

           Summary: AutoAudioSrc cannot detect source for iOS and android
    Classification: Platform
           Product: GStreamer
           Version: 1.x
        OS/Version: other
            Status: UNCONFIRMED
          Severity: critical
          Priority: Normal
         Component: gst-plugins-good
        AssignedTo: gstreamer-bugs at lists.freedesktop.org
        ReportedBy: tamvir at bansberrysg.com
         QAContact: gstreamer-bugs at lists.freedesktop.org
     GNOME version: ---


Hi,

I was testing recording voice with gstreamer. I used autoaudiosrc to set the
recording source. For all desktop platforms such as Linux, Windows and MacOX,
recording works fine. But for iOS, i'm getting broken voices and for android,
no voice at all. I have tried changing sample rates but no luck. Code is -

    audiosrc = gst_element_factory_make ("osxaudiosrc", NULL);
    g_assert (audiosrc);
    audioconv = gst_element_factory_make ("audioconvert", NULL);
    g_assert (audioconv);
    audiores = gst_element_factory_make ("audioresample", NULL);
    g_assert (audiores);
    /* the encoding and payloading */
    audioenc = gst_element_factory_make ("alawenc", NULL);
    g_assert (audioenc);
    audiopay = gst_element_factory_make ("rtppcmapay", NULL);
    g_assert (audiopay);

    gst_bin_add_many (GST_BIN (pipeline), audiosrc, audioconv, audiores,
                      audioenc, audiopay, NULL);

    if (!gst_element_link_many (audiosrc, audioconv, audiores, audioenc,
                                audiopay, NULL)) {
        g_error ("Failed to link audiosrc, audioconv, audioresample, "
                 "audio encoder and audio payloader");
    }

    GstCaps *rescaps;
    rescaps = gst_caps_new_simple("audio/x-raw", "format", G_TYPE_STRING,
"S32LE",//also tried "S16LE"
                                  "rate", G_TYPE_INT, 48000, //also tried
44100, 32000, 16000
                                  "channels", G_TYPE_INT, 2, //also tried 1
                                  NULL);
    gst_element_link_filtered (audiosrc, audioenc, rescaps);
    gst_element_link (audioenc, audiopay);

Please, help me with this bug.

Regards
MD. Ehteshamul Haque Tamvir

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.


More information about the gstreamer-bugs mailing list