This pipeline is not working anymore using gst 1.20.3 with ffmpeg 5.0

Tim-Philipp Müller t.i.m at zen.co.uk
Tue Jul 5 13:35:43 UTC 2022


On Tue, 2022-07-05 at 15:42 +0400, Abu Abdullah via gstreamer-devel
wrote:

Hi,

> Removing the capsfilter solved the issue

> pi at camera:~ $ GST_DEBUG=*:6 gst-launch-1.0 filesrc
> location=/home/pi/t.ts ! decodebin ! video/x-raw,format=I420 !
> videorate ! video/x-raw,framerate=10/20 ! videoconvert !
> 
> 0:00:08.940608957   542 0xb5c20c88 DEBUG               GST_PADS
> gstpad.c:3200:gst_pad_query_accept_caps_default:<src_0:proxypad2>
> query accept-caps accept-caps query: 0xb5202fb0, GstQueryAcceptCaps,
> caps=(GstCaps)"video/x-raw\,\ format\=\(string\)NV12\,
> gstpad.c:5548:gst_pad_push_event_unchecked:<v4l2h264dec0:src> sent
> event 0xb5208898 (caps) to peerpad <src_0:proxypad2>, ret
> not-negotiated

So it looks like what happens is that with the newer GStreamer version
it now uses the hardware decoder (v4l2h264dec) and not the ffmpeg-based
software encoder, and the hardware encoder outputs a different pixel
format (NV12 instead of I420).

Cheers
 Tim

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20220705/991dde2e/attachment.htm>


More information about the gstreamer-devel mailing list