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

alan wang alan.3976 at gmail.com
Thu Aug 11 08:19:57 UTC 2016


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

> 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
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
>
> _______________________________________________
> gstreamer-devel mailing list
> 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/20160811/3cf80f2d/attachment.html>


More information about the gstreamer-devel mailing list