how to remove audio from live stream

Marianna Smidth Buschle msb at qtec.com
Tue Sep 14 15:48:35 UTC 2021


Well, it takes a bit of time to learn the tricks ;)

I would recommend looking into gst-shark, it is also a very useful debug
tool.

>From the CAPS you can see it is a mpegts stream and that tsdemux is used.

So you just need to do what you tried with qtdemux, but use tsdemux instead.

And if you have issues you can try adding a h264parse between tsdemux and
the new muxer.


tir. 14. sep. 2021 15.32 skrev Marc <Marc at f1-outsourcing.eu>:

> >
> > What about using decodebin and autovideosink (or another sink) to find
> > out what is the right demuxer?
> >
>
> Sorry, I am new to the use of gstreamer so I have not really found my way
> solving such things myself. I am also using a remote vm, so I am not really
> able to see video output.
>
> gst-launch-1.0 -vv srtsrc uri=srt://:55556?mode=listener ! decodebin !
> videoconvert ! autovideosink
>
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
> caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstTSDemux:tsdemux0.GstPad:sink:
> caps = video/mpegts, systemstream=(boolean)true, packetsize=(int)188
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:src_0:
> caps = video/x-h264, stream-format=(string)byte-stream
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)byte-stream
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:src_1:
> caps = audio/mpeg, mpegversion=(int)4, stream-format=(string)adts
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:sink:
> caps = audio/mpeg, mpegversion=(int)4, stream-format=(string)adts
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_0:
> caps = video/x-h264, stream-format=(string)byte-stream
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0.GstMultiQueuePad:sink_1:
> caps = audio/mpeg, mpegversion=(int)4, stream-format=(string)adts
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-buffers = 5
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstH264Parse:h264parse0.GstPad:src:
> caps = video/x-h264, stream-format=(string)avc, width=(int)320,
> height=(int)480, framerate=(fraction)0/1, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true,
> alignment=(string)au, profile=(string)baseline, level=(string)2.1,
> codec_data=(buffer)01428015ffe1000d67428015da0503da01b4284d4001000468ce06e2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-time = 0
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstMultiQueue:multiqueue0:
> max-size-bytes = 2097152
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_aac:avdec_aac0.GstPad:sink:
> caps = audio/mpeg, framed=(boolean)true, mpegversion=(int)4,
> level=(string)2, base-profile=(string)lc, profile=(string)lc,
> rate=(int)44100, channels=(int)1, stream-format=(string)adts
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstAacParse:aacparse0.GstPad:src:
> caps = audio/mpeg, framed=(boolean)true, mpegversion=(int)4,
> level=(string)2, base-profile=(string)lc, profile=(string)lc,
> rate=(int)44100, channels=(int)1, stream-format=(string)adts
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_aac:avdec_aac0.GstPad:src:
> caps = audio/x-raw, format=(string)F32LE, layout=(string)non-interleaved,
> rate=(int)44100, channels=(int)1
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_h264:avdec_h264-0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)avc, width=(int)320,
> height=(int)480, framerate=(fraction)0/1, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true,
> alignment=(string)au, profile=(string)baseline, level=(string)2.1,
> codec_data=(buffer)01428015ffe1000d67428015da0503da01b4284d4001000468ce06e2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:src:
> caps = video/x-h264, stream-format=(string)avc, width=(int)320,
> height=(int)480, framerate=(fraction)0/1, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true,
> alignment=(string)au, profile=(string)baseline, level=(string)2.1,
> codec_data=(buffer)01428015ffe1000d67428015da0503da01b4284d4001000468ce06e2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/GstCapsFilter:capsfilter0.GstPad:sink:
> caps = video/x-h264, stream-format=(string)avc, width=(int)320,
> height=(int)480, framerate=(fraction)0/1, chroma-format=(string)4:2:0,
> bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true,
> alignment=(string)au, profile=(string)baseline, level=(string)2.1,
> codec_data=(buffer)01428015ffe1000d67428015da0503da01b4284d4001000468ce06e2
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0/avdec_h264:avdec_h264-0.GstPad:src:
> caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps =
> video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink.GstProxyPad:proxypad1:
> caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstFakeSink:fake-video-sink.GstPad:sink:
> caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0.GstGhostPad:sink:
> caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps =
> video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> /GstPipeline:pipeline0/GstDecodeBin:decodebin0.GstDecodePad:src_0.GstProxyPad:proxypad4:
> caps = video/x-raw, format=(string)I420, width=(int)320, height=(int)480,
> interlace-mode=(string)progressive, pixel-aspect-ratio=(fraction)1/1,
> chroma-site=(string)mpeg2, framerate=(fraction)0/1
> WARNING: from element
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstFakeSink:fake-video-sink:
> Pipeline construction is invalid, please add queues.
> Additional debug info:
> ../libs/gst/base/gstbasesink.c(1258): gst_base_sink_query_latency ():
> /GstPipeline:pipeline0/GstAutoVideoSink:autovideosink0/GstFakeSink:fake-video-sink:
> Not enough buffering available for  the processing deadline of
> 0:00:00.020000000, add enough queues to buffer  0:00:00.020000000
> additional data. Shortening processing latency to 0:00:00.000000000.
> 0:00:14.750344997   411 0x7f27c0091800 ERROR                  libav :0::
> corrupted macroblock 17 25 (total_coeff=-1)
> 0:00:14.750416555   411 0x7f27c0091800 ERROR                  libav :0::
> error while decoding MB 17 25
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20210914/0771a95b/attachment.htm>


More information about the gstreamer-devel mailing list