<div dir="ltr">Hello Claire<div><br></div><div>What's your purpose here ? You want just play a yuv raw frames or encode yuv frames.</div><div><br></div><div>If you want to play yuv raw frames with gstreamer. You need command line like:</div><div><br></div><div>gst-launch-1.0 filesrc location=/home/user/Videos/out.yuv ! videoparse width=1920 height=816 framerate=24/1 format=2 ! autovideoconvert ! autovideosink<br></div><div><br></div><div>If you want to encoder raw frames, you need command line like:</div><div><br></div><div>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<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">2016-08-10 23:22 GMT+08:00 Weipeng HE <span dir="ltr"><<a href="mailto:heweipeng@gmail.com" target="_blank">heweipeng@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
video/x-raw and video/x-h264 are incompatible video types. You cannot<br>
link them without conversion. In other words, you need to put encoder<br>
element between them.<br>
<br>
Best,<br>
Weipeng<br>
<span class=""><br>
On 10/08/16 16:52, Claire Mantel wrote:<br>
> Hello,<br>
><br>
><br>
><br>
> I’m trying to input a 420 yuv file.<br>
><br>
> I’m trying the following command line:<br>
><br>
><br>
><br>
> gst-launch-1.0 filesrc<br>
> location=/mnt/sdcard/<wbr>testGSTPipelines/IRSeq_BUTIV_<wbr>Davis1A_420_short.yuv ! \<br>
><br>
> video/x-raw,format=i420,width=<wbr>640,height=512,framerate=25/1 \<br>
><br>
</span>> ! video/x-h264! filesink location=test.mp4<br>
<span class="">><br>
><br>
><br>
> And get the error “(gst-launch-1.0:1231): GStreamer-CRITICAL **:<br>
> gst_element_make_from_uri: assertion 'gst_uri_is_valid (uri)' failed<br>
><br>
> WARNING: erroneous pipeline: no element "video" ”<br>
><br>
><br>
><br>
> The weird thing is that when I encapsulate the same yuv file in avi it<br>
> works well with the command line:<br>
><br>
><br>
><br>
> gst-launch-1.0 filesrc<br>
> location=/mnt/sdcard/<wbr>testGSTPipelines/IRSeq_BUTIV_<wbr>Davis1A_420_short.avi ! \<br>
><br>
> video/x-h264 ! filesink location=test.mp4<br>
><br>
><br>
><br>
> Any idea what I might be doing wrong?<br>
><br>
> Thanks in advance!<br>
><br>
><br>
><br>
> Claire<br>
><br>
><br>
><br>
><br>
><br>
><br>
><br>
</span>> ______________________________<wbr>_________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
><br>
<br>
______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
</blockquote></div><br></div>