This pipeline is not working anymore using gst 1.20.3 with ffmpeg 5.0
Abu Abdullah
falcon.sheep at gmail.com
Tue Jul 5 11:42:32 UTC 2022
On Mon, Jul 4, 2022 at 10:41 PM Tim-Philipp Müller via gstreamer-devel
<gstreamer-devel at lists.freedesktop.org> wrote:
>
> I'm not sure what's going on here, but the most likely culprit seems to
> be the video/x-raw,format=I420 capsfilter after decodebin which doesn't
> really make sense here and isn't required. A decoder will usually
> output whatever format it wants to output (depending on the subsampling
> of the input data). The videoconvert should be sufficient here, and
> videorate doesn't care about the format.
Removing the capsfilter solved the issue
Thanks
>
> If you want to debug this further, run it with
>
> GST_DEBUG=*:6 gst-launch-1.0 ... 2>&1 | grep -B20 --max-count=1 not-
> negotiated
This is the output
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 !
video/x-raw,format=BGR ! appsink sync=false 2>&1 | grep -B20
--max-count=1 not-negotiated
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\,\
width\=\(int\)640\,\ height\=\(int\)480\,\
interlace-mode\=\(string\)progressive\,\
multiview-mode\=\(string\)mono\,\
multiview-flags\=\(GstVideoMultiviewFlagsSet\)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono\,\
pixel-aspect-ratio\=\(fraction\)1/1\,\ colorimetry\=\(string\)bt601\,\
framerate\=\(fraction\)0/1", result=(boolean)false;
0:00:08.940951963 542 0xb5c20c88 DEBUG GST_PADS
gstutils.c:2782:gst_pad_proxy_query_accept_caps:<src_0:proxypad2>
proxying accept caps query for src_0:proxypad2
0:00:08.941281969 542 0xb5c20c88 LOG GST_PADS
gstpad.c:3077:gst_pad_forward:<src_0:proxypad2> calling forward
function on pad decodebin0:src_0
0:00:08.941581975 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:4300:gst_pad_peer_query:<decodebin0:src_0> peer query
0xb5202fb0 (accept-caps)
0:00:08.941845980 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3841:do_probe_callbacks:<decodebin0:src_0> do probes
0:00:08.942143985 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3723:probe_hook_marshal:<decodebin0:src_0> hook 1 with flags
0x00003040 does not match 00001202
0:00:08.942400990 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:3935:do_probe_callbacks:<decodebin0:src_0> data is passed
0:00:08.942652995 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3841:do_probe_callbacks:<decodebin0:src_0> do probes
0:00:08.942944000 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3723:probe_hook_marshal:<decodebin0:src_0> hook 1 with flags
0x00003040 does not match 00001200
0:00:08.943233006 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:4173:gst_pad_query:<capsfilter4:sink> doing query 0xb5202fb0
(accept-caps)
0:00:08.943543011 542 0xb5c20c88 DEBUG capsfilter
gstcapsfilter.c:346:gst_capsfilter_accept_caps:<capsfilter4> can
intersect: 0
0:00:08.943846017 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:4196:gst_pad_query:<capsfilter4:sink> sent query 0xb5202fb0
(accept-caps), result 1
0:00:08.944111022 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3841:do_probe_callbacks:<decodebin0:src_0> do probes
0:00:08.944402027 542 0xb5c20c88 LOG GST_SCHEDULING
gstpad.c:3723:probe_hook_marshal:<decodebin0:src_0> hook 1 with flags
0x00003040 does not match 00002200
0:00:08.944699033 542 0xb5c20c88 DEBUG GST_PADS
gstutils.c:2793:gst_pad_proxy_query_accept_caps:<src_0:proxypad2>
proxying accept caps query: 0
0:00:08.944988038 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:3514:gst_pad_query_default:<src_0:proxypad2> not forwarding
0xb5202fb0 (accept-caps) query
0:00:08.945269043 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:4196:gst_pad_query:<src_0:proxypad2> sent query 0xb5202fb0
(accept-caps), result 1
0:00:08.945533048 542 0xb5c20c88 DEBUG default
gstutils.c:3191:gst_pad_query_accept_caps:<src_0:proxypad2> query
returned 0
0:00:08.946013057 542 0xb5c20c88 WARN GST_CAPS
gstpad.c:5757:pre_eventfunc_check:<src_0:proxypad2> caps video/x-raw,
format=(string)NV12, width=(int)640, height=(int)480,
interlace-mode=(string)progressive, multiview-mode=(string)mono,
multiview-flags=(GstVideoMultiviewFlagsSet)0:ffffffff:/right-view-first/left-flipped/left-flopped/right-flipped/right-flopped/half-aspect/mixed-mono,
pixel-aspect-ratio=(fraction)1/1, colorimetry=(string)bt601,
framerate=(fraction)0/1 not accepted
0:00:08.946305063 542 0xb5c20c88 DEBUG GST_PADS
gstpad.c:6013:gst_pad_send_event_unchecked:<src_0:proxypad2> pre event
check failed
0:00:08.946620068 542 0xb5c20c88 LOG GST_PADS
gstpad.c:5548:gst_pad_push_event_unchecked:<v4l2h264dec0:src> sent
event 0xb5208898 (caps) to peerpad <src_0:proxypad2>, ret
not-negotiated
More information about the gstreamer-devel
mailing list