I'm trying to stream webcam video from a Raspberry to a VLC player using gstreamer 1.0. Right now i got the following command for the Raspberry:
gst-launch-1.0 -vv -e v4l2src device=/dev/video0 \
! videoscale \
! "video/x-raw,width=352,height=288,framerate=10/1" \
! queue \
! x264enc \
! h264parse \
! rtph264pay config-interval=10 pt=96 \
! udpsink host=239.255.12.42 port=5004
And the following sdp file to play the stream with vlc:
c=IN IP4 239.255.12.42
m=video 5004 RTP/AVP 96
a=rtpmap:96 H264/90000
When i run the gst-launch-1.0 command i can see with wireshark that it is sending udp packets but when i try to play the stream with vlc and the sdp file i get nothing. The vlc log says:
es error: cannot peek
es error: cannot peek
live555 error: no data received in 10s, aborting
I don't know what's wrong. I probably have'nt build the pipeline properly and that's why the vlc does not recognize the stream as a proper video stream. Any ideas?
Thanks in advance for your help.
host=127.0.0.1
– nayanamain error: ES_OUT_SET_(GROUP_)PCR is called too late (pts_delay increased to 567 ms) main error: ES_OUT_RESET_PCR called avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
. Maybe h264 it's too much for the raspberry. I'm trying to find an encoder that doesn't need that much horsepower from the raspberry. So far, no luck. – DaveCodespeed-preset=2
or you can try eventune=zerolatency
– nayanaes error: cannot peek es error: cannot peek main error: Failed to resize display avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?) avcodec error: more than 5 seconds of late video -> dropping frame (computer too slow ?)
.I'll have to keep searching :). Thanks for the reply! – DaveCodertp://@:5004
? you can also try without scale, it may be too much for rpi.. what is the CPU load when you do that? – nayana