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

List:       gstreamer-devel
Subject:    GstNet.NetClientClock ... hangs something
From:       Carl Karsten <carl () nextdayvideo ! com>
Date:       2019-09-30 4:47:45
Message-ID: CADmzSSj-KToxmMbw1v0gmdpR6v1z8Pub2fwNW08GY4zecuqRag () mail ! gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


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

[Attachment #5 (text/html)]

<div dir="ltr"><div>high level goal: mux data from a usb sound device and \
videotestsrc send to voctomix using NetClientClock.</div><div><br></div><div>many \
video and audio sources work fine.   I have used v4l and alsa no \
problem.</div><div><br></div><div>Now it seems alsa and NetClientClock aren&#39;t \
working together.</div><div><br></div><div>To repo this, voctocore is \
needed:</div><div><a \
href="https://github.com/CarlFK/voctomix-outcasts#getting-started--demo">https://githu \
b.com/CarlFK/voctomix-outcasts#getting-started--demo</a></div><div><br></div><div>Or \
maybe the test server that was made for testing this:<br></div><div><a \
href="https://github.com/CarlFK/voctomix-outcasts/blob/master/tests/dummy-server.py#L5 \
9">https://github.com/CarlFK/voctomix-outcasts/blob/master/tests/dummy-server.py#L59</a></div><div><br></div><div>except \
the client isn&#39;t staying connected to that. If you can figure that out too, \
great.</div><div><br></div><div>So, with vocto running, this works \
fine:</div><div>gst-launch-1.0 videotestsrc name=videosrc \! clockoverlay \
text=&quot;Source: pdp11 Caps: \
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1 \
Attribs: &quot; 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</div><div><br></div><div>or nicer format:</div><div>  \
videotestsrc name=videosrc   !<br>      clockoverlay<br>            \
text=&quot;Source: pdp11<br>Caps: \
video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1<br>Attribs: \
&quot;<br>            halignment=left line-alignment=left !<br>                       \
tee name=t ! queue !<br>                              videoconvert ! fpsdisplaysink \
sync=false<br>                              t. ! queue !<br>                  \
videoconvert ! videorate ! videoscale \
!<br>video/x-raw,format=I420,width=1280,height=720,framerate=30/1,pixel-aspect-ratio=1/1 \
!<br>                    mux.<br>                 alsasrc device=hw:1 \
provide-clock=false slave-method=re-timestamp name=audiosrc !<br>                     \
queue max-size-time=4000000000 ! audiorate !   <br>           \
audio/x-raw,format=S16LE,channels=2,layout=interleaved,rate=48000 !<br>      tee \
name=audio_tee<br>         audio_tee. ! queue !<br>                    mux.<br>       \
matroskamux name=mux !<br>      tcpclientsink host=192.168.1.118 \
port=10000<br></div><div><br></div><div>or run the \
client:</div><div>~/voctomix-outcasts$ ./ingest.py --host gator --monitor --debug \
--audio-source alsa --audio-attribs &quot;device=hw:1&quot; \
--no-clock</div><div><br></div><div><a \
href="https://github.com/CarlFK/voctomix-outcasts/blob/master/ingest.py">https://githu \
b.com/CarlFK/voctomix-outcasts/blob/master/ingest.py</a></div><div><br></div><div>remove \
the --no-clock option, and that&#39;s when it gets \
stuck.<br></div><div><br></div><div>     <span class="gmail-pl-s"><span \
class="gmail-pl-pds">Is this relevant?   <br></span></span></div><div>alsasrc \
device=hw:1 provide-clock=false \
slave-method=re-timestamp</div><div><br></div><div><br>-- <br><div dir="ltr" \
class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><span>Carl \
K<br></span></div></div></div></div>


[Attachment #6 (text/plain)]

_______________________________________________
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