[gstreamer-bugs] [Bug 453650] New: Two alsasrcs do not work in one pipeline

GStreamer (bugzilla.gnome.org) bugzilla-daemon at bugzilla.gnome.org
Wed Jul 4 04:01:35 PDT 2007


If you have any questions why you received this email, please see the text at
the end of this email. Replies to this email are NOT read, please see the text
at the end of this email. You can add comments to this bug at:
  http://bugzilla.gnome.org/show_bug.cgi?id=453650

  GStreamer | don't know | Ver: 0.10.13
           Summary: Two alsasrcs do not work in one pipeline
           Product: GStreamer
           Version: 0.10.13
          Platform: Other
        OS/Version: All
            Status: UNCONFIRMED
          Severity: normal
          Priority: Normal
         Component: don't know
        AssignedTo: gstreamer-bugs at lists.sourceforge.net
        ReportedBy: v.mayatskih at gmail.com
         QAContact: gstreamer-bugs at lists.sourceforge.net
     GNOME version: Unspecified
   GNOME milestone: Unspecified


Please describe the problem:
I need to join streams from two soundcards and mux it with some video. I have
built a sample pipeline with one soundcard and it works fine:

gst-launch -v videotestsrc num-buffers=100 ! ffmpegcolorspace ! ffdeinterlace !
tee name="tee0" ! fakesink \                                                
    tee0. ! queue ! ffenc_h263p ! tee name="tee1" ! fakesink \                  
    tee1. ! queue ! matroskamux name="mux" ! filesink location="/tmp/1.mkv" \   
    alsasrc device="hw:0" ! "audio/x-raw-int,width=16,rate=48000,channels=2" !
adder name="mix" \                                                           
    ! tee name="tee2" ! ffenc_ac3 ! tee name="tee3" !
"audio/x-ac3,width=16,rate=48000,channels=2" ! mux. \                           
    tee3. ! queue ! fakesink

When I add a second card (even without linking to the 'adder' element) then
pipeline stops

    alsasrc device="hw:1" ! "audio/x-raw-int,width=16,rate=48000,channels=2" !
fakesink

The error is:

Setting pipeline to PLAYING ...
0:00:00.231934000 15579 0x804f050 WARN              pipeline
gstpipeline.c:568:gst_pipeline_change_state:<pipeline0> error: Selected clock
cannot be used in pipeline.
0:00:00.232189000 15579 0x804f050 WARN              pipeline
gstpipeline.c:568:gst_pipeline_change_state:<pipeline0> error: Pipeline cannot
operate with selected clock
ERROR: pipeline doesn't want to play

In my C-program with only one alsasrc I have to manually set pipeline's clock
(got it from alsasrc) and it works, but I didn't find the way how two alsasrc
can work together.

Steps to reproduce:
Run pipeline with two alsasrc


Actual results:
Got error: Pipeline cannot operate with selected clock

Expected results:
Two alsasrc should work both together

Does this happen every time?
yes

Other information:


-- 
See http://bugzilla.gnome.org/page.cgi?id=email.html for more info about why you received
this email, why you can't respond via email, how to stop receiving
emails (or reduce the number you receive), and how to contact someone
if you are having problems with the system.

You can add comments to this bug at http://bugzilla.gnome.org/show_bug.cgi?id=453650.




More information about the Gstreamer-bugs mailing list