libav error while decoding MB

Nicolas Dufresne nicolas at ndufresne.ca
Mon Nov 4 16:52:47 UTC 2019


Le lundi 04 novembre 2019 à 09:48 -0600, Shishigami a écrit :
> 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.

Sounds like you want a totally different configuration for your
encoder. Let's go simple, and set tune=zerolatency on x264enc, that you
already yield better results. B-Frames don't work so great with RTP.

> 
> 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/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20191104/96f6c207/attachment.sig>


More information about the gstreamer-devel mailing list