Trouble output as interlace with Gstreamer - RTSP source

Ask software engineering and SDK questions for developers working on Mac OS X, Windows or Linux.
  • Author
  • Message
Offline

stun3i

  • Posts: 2
  • Joined: Fri Oct 11, 2019 2:33 am
  • Real Name: Tung Le

Trouble output as interlace with Gstreamer - RTSP source

PostThu Jan 09, 2020 2:04 am

Hello all.

I'm having trouble playing back RTSP stream to Decklink Quad 2 as interlace.

Code: Select all
gst-launch-1.0 uridecodebin uri=file:///path/to/file/123.mp4 name=decode decode.! interlace field-pattern=1 ! autovideoconvert ! decklinkvideosink device-number=1 mode=11 decode. ! audioconvert ! audio/x-raw,format=S32LE, channels=2 ! audioresample ! audio/x-raw, rate=48000 ! decklinkaudiosink device-number=1

This pipe work fine, 123.mp4 is a 1080p24 video downloaded from youtube. The output is 1080i50 as expected.

Code: Select all
gst-launch-1.0 uridecodebin uri=rtsp://ser.ver.add.ress:1935/live/streamkey name=decode decode. ! autovideoconvert ! decklinkvideosink device-number=1 mode=1080p30 decode. ! audioconvert ! audio/x-raw,format=S32LE, channels=2 ! audioresample ! audio/x-raw, rate=48000 ! decklinkaudiosink device-number=1

This pipe also work fine. I used Larix Broadcaster app on my phone and stream to the server. The video settings on the Larix Broadcaster app is set at 1080p30. I can change the mode to 1080p24 or 1080p2997, they all work fine and the output is as expected.

Code: Select all
gst-launch-1.0 uridecodebin uri=rtsp://ser.ver.add.ress:1935/live/streamkey name=decode decode.! deinterlace ! autovideoconvert ! interlace field-pattern=1 ! videoconvert ! video/x-raw,format=UYVY ! decklinkvideosink device-number=1 mode=11 decode. ! audioconvert ! audio/x-raw,format=S32LE, channels=2 ! audioresample ! audio/x-raw, rate=48000 ! decklinkaudiosink device-number=1

This pipe doesn't work though. Gstreamer doesn't give any error but the screen is black.
Any idea?

Return to Software Developers

Who is online

Users browsing this forum: No registered users and 2 guests