GstNet.NetClientClock ... hangs something
Carl Karsten
carl at nextdayvideo.com
Mon Sep 30 04:47:45 UTC 2019
high level goal: mux data from a usb sound device and videotestsrc send to
voctomix using NetClientClock.
many video and audio sources work fine. I have used v4l and alsa no
problem.
Now it seems alsa and NetClientClock aren't working together.
To repo this, voctocore is needed:
https://github.com/CarlFK/voctomix-outcasts#getting-started--demo
Or maybe the test server that was made for testing this:
https://github.com/CarlFK/voctomix-outcasts/blob/master/tests/dummy-server.py#L59
except the client isn't staying connected to that. If you can figure that
out too, great.
So, with vocto running, this works fine:
gst-launch-1.0 videotestsrc name=videosrc \! clockoverlay text="Source:
pdp11 Caps:
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1
Attribs: " halignment=left line-alignment=left \! tee name=t \! queue \!
videoconvert \! fpsdisplaysink sync=false t. \! queue \! videoconvert \!
videorate \! videoscale \!
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1
\! mux. alsasrc device=hw:1 provide-clock=false slave-method=re-timestamp
name=audiosrc \! queue max-size-time=4000000000 \! audiorate \!
audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 \! tee
name=audio_tee audio_tee. \! queue \! mux. matroskamux name=mux \!
tcpclientsink host=192.168.1.118 port=10000
or nicer format:
videotestsrc name=videosrc !
clockoverlay
text="Source: pdp11
Caps:
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1
Attribs: "
halignment=left line-alignment=left !
tee name=t ! queue !
videoconvert ! fpsdisplaysink sync=false
t. ! queue !
videoconvert ! videorate ! videoscale !
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1
!
mux.
alsasrc device=hw:1 provide-clock=false
slave-method=re-timestamp name=audiosrc !
queue max-size-time=4000000000 ! audiorate !
audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !
tee name=audio_tee
audio_tee. ! queue !
mux.
matroskamux name=mux !
tcpclientsink host=192.168.1.118 port=10000
or run the client:
~/voctomix-outcasts$ ./ingest.py --host gator --monitor --debug
--audio-source alsa --audio-attribs "device=hw:1" --no-clock
https://github.com/CarlFK/voctomix-outcasts/blob/master/ingest.py
remove the --no-clock option, and that's when it gets stuck.
Is this relevant?
alsasrc device=hw:1 provide-clock=false slave-method=re-timestamp
--
Carl K
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20190929/67cf0016/attachment.html>
More information about the gstreamer-devel
mailing list