libav error while decoding MB

Shishigami me at marcelherd.com
Mon Nov 4 15:48:10 UTC 2019


Thank you for your response!


Nicolas Dufresne-5 wrote
> you didn't configure key frame distance on your encoder

Are you referring to the property key-int-max? What is a good value to
choose for this? I've followed your suggestions and edited the pipelines,
but I still get the same errors.

gst-launch-1.0 videotestsrc is-live=true ! x264enc key-int-max=15 !
video/x-h264, stream-format=byte-stream ! rtph264pay ! udpsink
host=localhost port=5200

gst-launch-1.0 udpsrc address=localhost port=5200 ! application/x-rtp,
encoding-name=H264, payload=96 ! rtpjitterbuffer ! rtph264depay ! h264parse
! avdec_h264 ! autovideosink


Nicolas Dufresne-5 wrote
> This is not yet RTP streaming, so don't expect very good results.

Could you elaborate what you mean? I actually want to use RTSP in the end:

I'm working on an application that manipulates frames from a webcam with
OpenCV and then writes it to UDP sink. Then I read it from UDP and make it
available as RTSP stream using gst-rtsp-server. 
I get the exact same errors there, which is why I wanted to simplify it and
get it working on the command line first.

Sender:

cv::VideoCapture capture("ksvideosrc ! videoconvert ! appsink");
cv::VideoWriter writer("appsrc ! videoconvert ! x264enc ! video/x-h264,
stream-format=byte-stream ! rtph264pay ! udpsink host=localhost port=5000",
0, (double)30, cv::Size(640, 480), true);
// ...
writer << frame;

Receiver:

gst_rtsp_media_factory_set_launch(factory, "udpsrc address=localhost
port=5000 ! application/x-rtp, payload=96 ! rtpjitterbuffer ! rtph264depay !
avdec_h264 ! x264enc tune=zerolatency ! rtph264pay name=pay0 pt=96");

Is this the wrong approach?



--
Sent from: http://gstreamer-devel.966125.n4.nabble.com/


More information about the gstreamer-devel mailing list