Need help to display a video stream with Gstreamer

Marianna Smidth Buschle msb at qtec.com
Mon Jun 20 08:47:07 UTC 2022


Your video is in a MPEGTS container, so you need to fix the CAPS and 
depayloader.

Try something like:

gst-launch-1.0 udpsrc port=3001 auto-multicast=true multicast-group="224.100.10.10" !|application/x-rtp,media=video,payload=33,clock-rate=90000,encoding-name=MP2T 
! rtpbin ! rtpmp2tdepay|  ! decodebin ! videoconvert ! autovideosink

Best Regards
Marianna

On 19.06.2022 20.13, gstreamer-devel-request at lists.freedesktop.org wrote:
> Hi, I have a camera sending video stream to my NX devkit through multicast channel. I extracted the format of the video stream as following:
>
> Analyzing udp://224.100.10.10:3001
> Opening in BLOCKING MODE
> Done discovering udp://224.100.10.10:3001
>
> Topology:
>    container: video/mpegts, systemstream=(boolean)true, packetsize=(int)188
>      video: video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, pixel-aspect-ratio=(fraction)1/1, width=(int)640, height=(int)480, framerate=(fraction)30/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, profile=(string)baseline, level=(string)3
>        Tags:
>          video codec: H.264
>
>        Codec:
>          video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, pixel-aspect-ratio=(fraction)1/1, width=(int)640, height=(int)480, framerate=(fraction)30/1, interlace-mode=(string)progressive, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, profile=(string)baseline, level=(string)3
>        Additional info:
>          None
>        Stream ID: d373b570d63985f2f90c9655bb22aa695cf476072a2c255d0fd6a9501fa65c1d:1/00000011
>        Width: 640
>        Height: 480
>        Depth: 24
>        Frame rate: 30/1
>        Pixel aspect ratio: 1/1
>        Interlaced: false
>        Bitrate: 0
>        Max bitrate: 0
>
> Properties:
>    Duration: 99:99:99.999999999
>    Seekable: no
>    Live: yes
>    Tags:
>        video codec: H.264
>
> I want to use gst-lunch-1.0 to display the video, and tried different pipelines, all failed.
>
> gst-launch-1.0 udpsrc port=3001 auto-multicast=true multicast-group="224.100.10.10" ! "application/x-rtp,encoding-name=H264,paylod=96" ! rtph264depay ! avdec_h264 ! autovideosink
>
> gst-launch-1.0 udpsrc port=3001 auto-multicast=true multicast-group="224.100.10.10" ! tsparse ! autovideosink
>
> I believe the problem is in the pipeline.  Anyone can provide a help?
>
> Thanks,
> --Stuart Xu

-- 
Best regards / Med venlig hilsen
“Marianna Smidth Buschle”
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220620/85a38c98/attachment.htm>


More information about the gstreamer-devel mailing list