Multiple pipelines sharing audio source

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Multiple pipelines sharing audio source

Tim Crews-2
Hello:

I am developing a digital video recorder application that supports the
simultaneous recording of two video streams.  The catch is, both video
streams share a single audio source.

I have researched on-line quite a bit, and I haven't been able to find a
way to do this.  I know about the "tee" element, but as I understand it,
this is used for splitting a source between multiple elements in the
same pipeline.

So my question is: Is there a way to share a single alsasrc audio source
between two independent GStreamer pipelines?

I could be wrong, but I think that I must have two independent GStreamer
pipelines to support two recording video streams.  Each video stream is
independently started/stopped/paused.  Each video stream is recorded to
a separate video file.  Every time a video stream is stopped and
restarted, I am required to start recording to a new output filename.  
All of these constraints have lead me to an architecture of two
independent recording pipelines.   If there is a way to accomplish these
requirements with a single pipeline, that would also solve my problem,
since I could internally "tee" my audio source within that single pipeline.

Thank you in advance for any advice you can provide.

Tim Crews

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Multiple pipelines sharing audio source

Tim Crews-2
For future searchers of the list archives, the answer to this question
is "djack", a standard Linux audio distribution client/server framework.

Tim Crews

Tim Crews wrote:

> Hello:
>
> I am developing a digital video recorder application that supports the
> simultaneous recording of two video streams.  The catch is, both video
> streams share a single audio source.
>
> I have researched on-line quite a bit, and I haven't been able to find
> a way to do this.  I know about the "tee" element, but as I understand
> it, this is used for splitting a source between multiple elements in
> the same pipeline.
> So my question is: Is there a way to share a single alsasrc audio
> source between two independent GStreamer pipelines?
>
> I could be wrong, but I think that I must have two independent
> GStreamer pipelines to support two recording video streams.  Each
> video stream is independently started/stopped/paused.  Each video
> stream is recorded to a separate video file.  Every time a video
> stream is stopped and restarted, I am required to start recording to a
> new output filename.  All of these constraints have lead me to an
> architecture of two independent recording pipelines.   If there is a
> way to accomplish these requirements with a single pipeline, that
> would also solve my problem, since I could internally "tee" my audio
> source within that single pipeline.
>
> Thank you in advance for any advice you can provide.
>
> Tim Crews
>

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel