Fwd: avdec_h264 can't decide on src caps

Sebastian Dröge sebastian at centricular.com
Thu Oct 22 01:19:11 PDT 2015


On Do, 2015-10-22 at 06:52 +0000, Klaas Jan Russcher wrote:
> Goodmorning,
> 
> I have written an pipeline in C++ that gets an GstBuffer via an
> appsrc and it is supposed to show a video, but it doesn't. The
> structure of the pipeline is:
> appsrc ! VIDEO_CAPS ! rtpstreamdepay ! rtpjitterbuffer ! rtph264depay
> ! h264parse ! queue ! avdec_h264 ! autovideoconvert ! autovideosink
> where VIDEO_CAPS is defined by:
> "application/x-rtp-stream, media=(string)video, clock-
> rate=(int)90000, encoding-name=(string)H264, packetization-
> mode=(string)1, profile-level-id=(string)42c01f, sprop-parameter-
> sets=(string)\"Z0LAH9oBQBbsBEAAAAMAQAAADyPGDKg\\=\\,aM48gA\\=\\=\",
> payload=(int)96"
> 
> To analyse the pipeline I have extracted the graph of the pipeline
> with gst_debug_bin_to_dot_file(). It shows that avdec_h264 and
> autovideoconvert are connected via "video/x-raw format: { I420, YUY2,
> RGB, B... }" and "ANY" caps.
> When I remove autovideoconvert, the problem remains. When I set the
> src pad caps to a specific format, and I read out the current caps of
> the pad it returns NULL. Terminal output with GST_DEBUG=4 gives 
> (data.video_dec=avdec_h264, data.video_convert=autovideoconvert)

Use videoconvert and videoscale instead of autovideoconvert. Also,
which platform is this on and which actual video sink is used by
autovideosink?

Once you replaced autovideoconvert, please send a debug log with
GST_DEBUG=6 :)

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 949 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151022/f97018cb/attachment.sig>


More information about the gstreamer-devel mailing list