[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gstreamer-devel
Subject:    Multi video stream with one audio source
From:       cihat <cripple1453 () hotmail ! com>
Date:       2021-01-26 13:46:11
Message-ID: 1611668771942-0.post () n4 ! nabble ! com
[Download RAW message or body]

Hi everyone,

I want to multi video and audio stream via udpsink. There are multi video
sources but one audio source.
That seems like this:

/dev/video0
/dev/video1
/dev/snd/pcmC0D0p  
/dev/snd/pcmC0D1c -> capture device (i2s)

gst-launch-1.0 v4l2src name=video device=/dev/video0 io-mode=4 !
video/x-raw,format=NV16, width=1920, height=1080, framerate=25/1 !
omxh265enc qp-mode=auto gop-mode=basic gop-length=12 b-frames=0
target-bitrate=5000 num-slices=8 control-rate=low-latency
prefetch-buffer=true low-bandwidth=false filler-data=true cpb-size=500
initial-delay=500 periodicity-idr=60 ! video/x-h265, alignment=au ! queue !
mux. alsasrc  name=audio device=hw:0,1 ! audio/x-raw, format=S24_32LE,
rate=48000, channels=2 ! audioresample ! audioconvert ! faac ! mpegtsmux
name=mux ! udpsink host=10.0.0.162 port=5005

this command works clearly. But when I want to  start another gst-launch
with another video which includes same audio device like this:

gst-launch-1.0 v4l2src name=video device=/dev/video1 io-mode=4 !
video/x-raw,format=NV16, width=1920, height=1080, framerate=25/1 !
omxh265enc qp-mode=auto gop-mode=basic gop-length=12 b-frames=0
target-bitrate=5000 num-slices=8 control-rate=low-latency
prefetch-buffer=true low-bandwidth=false filler-data=true cpb-size=500
initial-delay=500 periodicity-idr=60 ! video/x-h265, alignment=au ! queue !
mux. alsasrc  name=audio device=hw:0,1 ! audio/x-raw, format=S24_32LE,
rate=48000, channels=2 ! audioresample ! audioconvert ! faac ! mpegtsmux
name=mux ! udpsink host=10.0.0.162 port=5006

gst-launch could not start

ERROR: Could not open audio device for recording. Device is being used by
another application.
Device 'hw:0,1' is busy

I wonder how can I use one audio source with multiple video stream. 
Thanks for suggestions.

Cihat Yavuz Topal




--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic