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

Claire Mantel clma at fotonik.dtu.dk
Mon Aug 15 08:24:34 UTC 2016


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

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…

Best
Claire


From: gstreamer-devel [mailto:gstreamer-devel-bounces at lists.freedesktop.org] On Behalf Of alan wang
Sent: Thursday, August 11, 2016 10:20 AM
To: Discussion of the development of and with GStreamer
Subject: Re: error "no element "video"" when input is yuv

Hello Claire

What's your purpose here ? You want just play a yuv raw frames or encode yuv frames.

If you want to play yuv raw frames with gstreamer. You need command line like:

gst-launch-1.0 filesrc location=/home/user/Videos/out.yuv ! videoparse width=1920 height=816 framerate=24/1 format=2 ! autovideoconvert ! autovideosink

If you want to encoder raw frames, you need command line like:

gst-launch-1.0 filesrc location=test_240X135.yuv blocksize=64800 ! video/x-raw, format=YUY2,width=240,height=135,framerate=25/1 ! omxmjpegvideoenc ! avimux ! queue ! filesink location=240x135_2.avi

2016-08-10 23:22 GMT+08:00 Weipeng HE <heweipeng at gmail.com<mailto:heweipeng at gmail.com>>:
Hi,

video/x-raw and video/x-h264 are incompatible video types. You cannot
link them without conversion. In other words, you need to put encoder
element between them.

Best,
Weipeng

On 10/08/16 16:52, Claire Mantel wrote:
> Hello,
>
>
>
> I’m trying to input a 420 yuv file.
>
> I’m trying the following command line:
>
>
>
> gst-launch-1.0 filesrc
> location=/mnt/sdcard/testGSTPipelines/IRSeq_BUTIV_Davis1A_420_short.yuv ! \
>
> video/x-raw,format=i420,width=640,height=512,framerate=25/1 \
>
> ! video/x-h264! filesink location=test.mp4
>
>
>
> And get the error “(gst-launch-1.0:1231): GStreamer-CRITICAL **:
> gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed
>
> WARNING: erroneous pipeline: no element "video" ”
>
>
>
> The weird thing is that when I encapsulate the same yuv file in avi it
> works well with the command line:
>
>
>
> gst-launch-1.0 filesrc
> location=/mnt/sdcard/testGSTPipelines/IRSeq_BUTIV_Davis1A_420_short.avi ! \
>
> video/x-h264 ! filesink location=test.mp4
>
>
>
> Any idea what I might be doing wrong?
>
> Thanks in advance!
>
>
>
> Claire
>
>
>
>
>
>
>
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org<mailto:gstreamer-devel at lists.freedesktop.org>
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20160815/76f8a1ed/attachment-0001.html>


More information about the gstreamer-devel mailing list