Fwd: avdec_h264 can't decide on src caps

Klaas Jan Russcher k.j.russcher at utwente.nl
Thu Oct 22 07:20:56 PDT 2015


Op do 22 okt. 2015 om 12:29 <gstreamer-devel-request at lists.freedesktop.org>
wrote:

> 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 :)
>

I have modified the pipeline to this:
appsrc ! VIDEO_CAPS ! rtpstreamdepay ! rtpjitterbuffer ! rtph264depay !
h264parse ! queue ! avdec_h264 ! videoconvert ! videoscale ! autovideosink
Autovideosink uses the GstXImageSink plugin.
The complete details of my system are:
Linux HP-EB-840-G1 3.16.0-51-generic #69~14.04.1-Ubuntu SMP Wed Oct 7
15:32:41 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
The GStreamer version that I use is 1.6.0
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151022/0fddcf9c/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: displayer.log.zip
Type: application/zip
Size: 1293798 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151022/0fddcf9c/attachment-0001.zip>


More information about the gstreamer-devel mailing list