title: DE-10 FFMPEG Raw YCbCr 4:2:2 Frame to PNG or Video leads to bad result
body: <p>So i am trying to record analog video from analog-video in port of the DE10-standard board.</p>
  <p>the raw frames are 4:2:2 720x480 hence frame size should be 720*480 * 2 = 691200bytes,however i get 2 more bytes with hex value 0 at the beginning of the frame<a href="https://i.stack.imgur.com/kE17y.png" rel="nofollow noreferrer">two leading bytes</a>.</p>
  <p>ffmpeg complains about wrong buffer size so i removed them.</p>
  <p>using <code>ffmpeg -y -s 720x480 -pix_fmt yuv422p -i input_frame.yuv output_image.png</code>
  the result is way off.</p>
  <p>analog video fed to the board has still image (photo taken by phone from TV) <a href="https://i.stack.imgur.com/upwGE.jpg" rel="nofollow noreferrer">Reference Pic</a>.
  and the result from ffmpeg is <a href="https://i.stack.imgur.com/ZXaRx.png" rel="nofollow noreferrer">FFMPEG output</a>.</p>
  <p>i used HxD editor and mirrored that single frame many times to create a larger file then used the following command to encode it to MP4 file which give the same result.</p>
  <p><code>ffmpeg -y -s 720x480 -pix_fmt yuv422p -i dump_video.yuv output_video.mp4</code>.</p>
  <p>i hope someone can help to fix the issue or point me in the right direction as i dont know if the problem is from hardware or from ffmpeg command. Thnx.</p>