Needed help with avenc_mpeg2video

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Needed help with avenc_mpeg2video

walkingdude
Hi,
I am trying to stream desktop from from one machine to another over LAN, using udp. I want to utilize mpeg2.
My goals are:
-highest possible quality
-lowest possible latency (definitely < 0.5s)

I am trying to use qscale parameter but I can't get the syntax right. Any help greatly appreciated. Now it gives me gray screen with some static, distortions and small squares which are properly encoded. In vlc though it looks ok.
What I've got so far:

Transmitter:
gst-launch-1.0 -v ximagesrc use-damage=false startx=0 endx=1439 starty=0 endy=899  ! videoconvert ! videoscale ! video/x-raw,format=I420,width=1440,height=900 ! avenc_mpeg2video  ! rtpmpvpay  ! udpsink host=192.168.2.100 port=9000

Receiver:
gst-launch-1.0 -v udpsrc port=9000 caps = "application/x-rtp, media=(string)video, clock-rate=(int)90000, encoding-name=(string)MPV, payload=(int)32, ssrc=(uint)1433547687, timestamp-offset=(uint)3139621248, seqnum-offset=(uint)31532, a-framerate=(string)25" ! rtpmpvdepay ! avdec_mpeg2video ! autovideosink