PC Screen UDP Stream

classic Classic list List threaded Threaded
2 messages Options
P S
Reply | Threaded
Open this post in threaded view
|

PC Screen UDP Stream

P S

Hello @all
 
I want to stream my PC (Windows) screen to a video player like a MAG256 with a udp stream (i have some player build in in some devices how only support this mode).
 
Following command i use to stream the screen:
 
C:\gstreamer\1.0\x86_64\bin\gst-launch-1.0.exe -e ^
 dx9screencapsrc num-buffers=100 cursor=true x=0 y=0 width=1680 height=1050 ! ^
 video/x-raw,framerate=25/1 ! ^
 timeoverlay halignment=left valignment=bottom text="Strem time:" shaded-background=true ! ^
 clockoverlay halignment=right valignment=bottom shaded-background=true time-format="%%A %%d.%%m.%%Y %%H:%%M:%%S" ! ^
 autovideoconvert ! queue ! ^
 x264enc key-int-max=30 bitrate=4000 threads=4 option-string="scenecut=0:nal-hrd=cbr" bframes=0 b-adapt=false cabac=true dct8x8=false ! ^
 queue ! ^
 mpegtsmux alignment=7 ! ^
 filesink location=1.ts
 
You will think he wrote stream and write "filesink"? Yes i know, the udp command is "udpsink auto-multicast=true host=224.1.1.1 port=5004". I want to see if my coding is working. So put the stream to a TS file and view them local on the Computer or player. With the vlc player i can play the file but with no other player. My TV and the MAG says (if i use a usb stick with the file) he can't decode them.
 
I know there are some commandos inside but that should not be a problem.
 
Can you help me where is my "thinking" failure that i can stream them to my clients?
 
 
Peter

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

Re: PC Screen UDP Stream

Arjen Veenhuizen
I would add tune=zerolatency and speed-preset=ultrafast as x264enc options.
Furthermore, you are missing the h264parse element, e.g.:



If you want to unicast/multicast the feed across the network you have
properly payload the stream using RTP, e.g.







--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel