Caps Do Not Completely Specify the Output Format

Matthew Waters ystreet00 at gmail.com
Thu Oct 29 00:54:41 UTC 2020



On 29/10/20 9:15 am, RedMarsBlueMoon wrote:
> Hi Everyone!
>
> I'm completely new to GStreamer so sorry about probably doing stupid things!
> :)
>
> My goal is to learn if the omx h264 Hardware decoder for my raspberry Pi 4
> works in GStreamer.  (it doesn't in avcodec)
> The first step is me trying to use gstreamer to decode just an h264 file.
> This is a demuxed file that has only the h264 video component.
>
> The closest Iv'e come so far is this but it still doesn't play:
> (note I'm trying to start with a non omx decoder to make things more likely
> to work at first. Once it does I will swap to omx)
>
>
> gst-launch-1.0 -v -m filesrc location=/home/pi/Videos/mulan.h264 !
> video/x-h264,format=I420,width=1920,height=804,framerate=24/1 ! v4l2h264dec
> ! autovideosink

You probably want:

filesrc location=$blah ! h264parse ! queue ! v4l2h264dec ! queue ! 
autovideosink

Or, with your original file you may want to try:

gst-play-1.0 $file

Cheers
-Matt

> *The error messages I get are:*
>
> Got message #39 from element "capsfilter0" (error): GstMessageError,
> gerror=(GError)NULL, debug=(string)"gstcapsfilter.c\(455\):\
> gst_capsfilter_prepare_buf\ \(\):\
> /GstPipeline:pipeline0/GstCapsFilter:capsfilter0:\012Output\ caps\ are\
> unfixed:\ EMPTY";
>
> and
> ERROR: from element /GstPipeline:pipeline0/GstCapsFilter:capsfilter0: Filter
> caps do not completely specify the output format.
> Output caps are unfixed: EMPTY
> ERROR: pipeline doesn't want to preroll.
>
>
> It seems the docs are saying that 'autovideosink' accepts any kind of input
> so I have no clue what to try now.
>
> Any ideas?
>
> Cheers
> Fred
>
>
>
>
>
>
>
>
> --
> 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: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20201029/124ada06/attachment.sig>


More information about the gstreamer-devel mailing list