error "no element "video"" when input is yuv

Peter Maersk-Moller pmaersk at gmail.com
Mon Aug 15 10:20:10 UTC 2016


Hi Claire.

On Mon, Aug 15, 2016 at 10:24 AM, Claire Mantel <clma at fotonik.dtu.dk> wrote:

> Hey Alan,
>
> Thanks for answering.
>
> My aim is to encode the video yes.
>
> Based on your answer I tried the following command line:
>
> gst-launch-1.0 filesrc location=/mnt/sdcard/testGSTPipelines/IRSeq_BUTIV_Davis1A_420_short.yuv
> blocksize=491520 ! \
>
> video/x-raw,format=i420,width=640,height=512,framerate=25/1 \
>
> ! video/x-h264 ! avimux ! queue ! filesink location=test.avi
>

The element 'video/x-raw,format=i420,width=640,height=512,framerate=25/1'
and the element 'video/x-h264' are cap specifications or cap filters. They *DO
NOT* change/encode/decode any data at all. You don't get encoded H.264
video by declaring that it is by some magical and mysterious way. You need
to add an encoder element. Such element could be the x264enc element.

>
>
> But I still get the same error.
>
> I don’t get the first answer (“video/x-raw and video/x-h264 are
> incompatible”) as x264 is a video encoder…
>

No, you are mistaken. x264 is an encoder project which code GStreamer has
used to based their H.264 encoder, the x264enc element, on. *You have not*
included any encoder element at all in your pipeline. I'd suggest you
include one.

Best Peter
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160815/44f2006f/attachment.html>


More information about the gstreamer-devel mailing list