use gstreamer to stream decklinkvideosource into transport stream

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

use gstreamer to stream decklinkvideosource into transport stream

g.roelant
Hi,
 
I want to stream my video from my decklink card into a transport stream.
i'm having this:
 
gst-launch-1.0 decklinkvideosrc device-number=2 connection=HDMI mode=11 ! video/x-raw,format=I420,width=1920 ,height=1080,profile=main ! x264enc tune=zerolatency byte-stream=true bitrate=10000 threads=2 ! h264parse config-interval=1 ! rtph264pay ! udpsink host=127.0.0.1 port=5000
WAARSCHUWING: foutieve pijplijn: kon decklinkvideosrc0 niet verbinden met x264enc0
 
gstreamer can not connect decklinkvideosrc0 to x264enc0
 
i am stuck here....
 
what am i doing wrong??
any hints/help ?
 
kind regards
 

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: use gstreamer to stream decklinkvideosource into transport stream

Tim Müller
On Fri, 2016-08-12 at 15:38 +0200, [hidden email] wrote:

Hi,
 
> gst-launch-1.0 decklinkvideosrc device-number=2 connection=HDMI
> mode=11 ! video/x-raw,format=I420,width=1920
> ,height=1080,profile=main ! x264enc tune=zerolatency byte-stream=true
> bitrate=10000 threads=2 ! h264parse config-interval=1 ! rtph264pay !
> udpsink host=127.0.0.1 port=5000
> WAARSCHUWING: foutieve pijplijn: kon decklinkvideosrc0 niet verbinden
> met x264enc0
>  
> gstreamer can not connect decklinkvideosrc0 to x264enc0

Try just

  decklinkvideosrc device-number=2 connection=HDMI mode=11 !
videoconvert ! x264enc ! video/x-h264,stream-format=byte-
stream,profile=main ! ...


no need to specify a caps filter if you specify the mode already. Also
there's no "profile" field in raw video caps (you will need to put
filtercaps after x264enc to force a profile).

Note that I'm not sure if x264enc will handle interlaced input
correctly (there might be some code missing that looks at the incoming
video stream and configures the encoder properly for interlaced input).

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: use gstreamer to stream decklinkvideosource into transport stream

g.roelant
ok, thanks this works....

in order to send this ts to a dvb-s2 transmitter in gnuradio, this stream has to be in constant bit rate (CBR)
is this feature already provided?


----- Oorspronkelijk bericht -----
Van: "Tim Müller" <[hidden email]>
Aan: "Discussion of the development of and with GStreamer" <[hidden email]>
Verzonden: Vrijdag 12 augustus 2016 17:23:33
Onderwerp: Re: use gstreamer to stream decklinkvideosource into transport stream

On Fri, 2016-08-12 at 15:38 +0200, [hidden email] wrote:

Hi,
 
> gst-launch-1.0 decklinkvideosrc device-number=2 connection=HDMI
> mode=11 ! video/x-raw,format=I420,width=1920
> ,height=1080,profile=main ! x264enc tune=zerolatency byte-stream=true
> bitrate=10000 threads=2 ! h264parse config-interval=1 ! rtph264pay !
> udpsink host=127.0.0.1 port=5000
> WAARSCHUWING: foutieve pijplijn: kon decklinkvideosrc0 niet verbinden
> met x264enc0
>  
> gstreamer can not connect decklinkvideosrc0 to x264enc0

Try just

  decklinkvideosrc device-number=2 connection=HDMI mode=11 !
videoconvert ! x264enc ! video/x-h264,stream-format=byte-
stream,profile=main ! ...


no need to specify a caps filter if you specify the mode already. Also
there's no "profile" field in raw video caps (you will need to put
filtercaps after x264enc to force a profile).

Note that I'm not sure if x264enc will handle interlaced input
correctly (there might be some code missing that looks at the incoming
video stream and configures the encoder properly for interlaced input).

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: use gstreamer to stream decklinkvideosource into transport stream

Peter Maersk-Moller-2
Hi.

Use 'gst-inspect-1.0 x264enc' to see the options for the H.264 encoder. One of the is to set the coding type with respect to CBR or VBR. Look at the 'pass' option.

Can you share your setup for the DVB-S2 transmitter? Is it identical to the setup of Alex Csete?

Note that unless you use 'Generic Stream Encapsulation' (supported by DVB-S2), you will need to encapsulate your stream in MPEG TS.

Best regards

Peter Maersk-Moller



On Fri, Aug 12, 2016 at 5:49 PM, <[hidden email]> wrote:
ok, thanks this works....

in order to send this ts to a dvb-s2 transmitter in gnuradio, this stream has to be in constant bit rate (CBR)
is this feature already provided?


----- Oorspronkelijk bericht -----
Van: "Tim Müller" <[hidden email]>
Aan: "Discussion of the development of and with GStreamer" <[hidden email]>
Verzonden: Vrijdag 12 augustus 2016 17:23:33
Onderwerp: Re: use gstreamer to stream decklinkvideosource into transport stream

On Fri, 2016-08-12 at 15:38 +0200, [hidden email] wrote:

Hi,
 
> gst-launch-1.0 decklinkvideosrc device-number=2 connection=HDMI
> mode=11 ! video/x-raw,format=I420,width=1920
> ,height=1080,profile=main ! x264enc tune=zerolatency byte-stream=true
> bitrate=10000 threads=2 ! h264parse config-interval=1 ! rtph264pay !
> udpsink host=127.0.0.1 port=5000
> WAARSCHUWING: foutieve pijplijn: kon decklinkvideosrc0 niet verbinden
> met x264enc0
>  
> gstreamer can not connect decklinkvideosrc0 to x264enc0

Try just

  decklinkvideosrc device-number=2 connection=HDMI mode=11 !
videoconvert ! x264enc ! video/x-h264,stream-format=byte-
stream,profile=main ! ...


no need to specify a caps filter if you specify the mode already. Also
there's no "profile" field in raw video caps (you will need to put
filtercaps after x264enc to force a profile).

Note that I'm not sure if x264enc will handle interlaced input
correctly (there might be some code missing that looks at the incoming
video stream and configures the encoder properly for interlaced input).

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel