<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Le lun. 30 déc. 2019 04 h 30, Aschwin Brandt <<a href="mailto:aschwin.brandt@gmail.com">aschwin.brandt@gmail.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Hello all,<div><br></div><div>This is my first post, so please inform me if I break any rules.<br><br>I'm reading a byte-stream YUV420 at 972x720 pixels from a file with Gstreamer using the following command:<br><br>gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! xvimagesink<br><br></div><div>This works in so far that I get an image but this image isn't displayed correctly. It looks like it contains part of the next YUV frame. When exporting the frames seperately using command:</div><div><br>gst-launch-1.0 filesrc location=testfile blocksize=1049760 ! rawvideoparse width=972 height=720  framerate=1/1 ! multifilesink location="rvp_%d.raw"</div><div><br></div><div>And play it using ffmpeg command: </div><div><br></div><div>ffplay -f rawvideo -video_size 972x720 -pixel_format yuv420p -i rvp_0.raw</div><div><br></div><div>The video (one frame) is displayed correctly. </div><div><br>I see that when using the element 'rawvideoparse' it will create a file of 1051200 bytes per frame instead of the expected 1049760. When I remove</div></div></blockquote></div></div><div dir="auto"><br></div><div dir="auto">I'm not sure why this odd value. It sounds like a bug to me, or some half thought feature. Best is to investigate were the buffer size get augmented. I've checked in the video info code, and it should chose 1049760.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div> 'rawvideoparse' the right amount of bytes are written but this doesn't work in a video pipeline and my objective is to read them directly from the file into an 'xvimagesink'<br><br>Am I messing up or is there a bug in the rawvideoparse element? <br></div></div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank" rel="noreferrer">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div></div>