how to remove audio from live stream
Marc
Marc at f1-outsourcing.eu
Wed Sep 15 10:27:20 UTC 2021
> So if I understand correctly:
>
> [1] gst-launch-1.0 srtsrc uri=srt://:55556?mode=listener ! filesink
> location=out.raw -e
>
> [2] gst-launch-1.0 srtsrc uri=srt://:55556?mode=listener ! srtsink
> uri=srt://:33334
>
> [3] gst-launch-1.0 srtsrc uri=srt://:55556?mode=listener ! tsdemux !
> queue ! video/x-h264 ! h264parse ! mpegtsmux name=mux ! filesink
> location=out.raw -e
>
> [4] gst-launch-1.0 srtsrc uri=srt://:55556?mode=listener ! tsdemux !
> queue ! video/x-h264 ! h264parse ! mpegtsmux name=mux ! srtsink
> uri=srt://:33334
>
>
> Running: "vlc out.raw" with the files saved by either [1] or [3] works
> fine?
> That is what I expect, since there is no "magic" it is just MPEG-TS
> files and VLC should indeed handle them with no problem.
correct
> However running: "vlc srt://<IP>:33334" while having [2] or [4] doesn't
> work?
[2] works, [4] doest not work
> Here I don't really know how good is VLC support for SRT.
> I personally can't get it to work with SRT streams on my Debian...
>
> Does VLC work with the input stream (srt://<IP>:55556)?
I did not try, but since [2] works, I guess so
> Can you play your stream with gstreamer?
> gst-launch-1.0 srtsrc uri=srt://<IP>:33334 ! decodebin ! autovideosink
I have no video on this remote vm.
> As a test you can also try changing to RTP, since that should work with
> VLC:
> - Send with
> gst-launch-1.0 srtsrc uri=srt://:55556?mode=listener ! rtpmp2tpay !
> rtpbin ! udpsink port=7000 host=127.0.0.1 sync=0
>
> - Receive it:
> vlc rtp://@:7000
> udpsrc address=127.0.0.1 port=7000 !
> application/x-rtp,media=video,payload=33,clock-rate=90000,encoding-
> name=MP2T
> ! rtpbin ! rtpmp2tdepay ! decodebin ! autovideosink
>
From what I have read about the udpsink in the gst-inspect, it looks like it is pushing the stream to 'host', so I do not think I can get this to work, since I am testing with a local (windows) vlc and a remote vm. I think the problem must be somewhere between demux and mux, maybe some 'header' or other setting is being removed, and that is why vlc has problems with 'detecting' the live stream.
More information about the gstreamer-devel
mailing list