So i am trying to record analog video from analog-video in port of the DE10-standard board.
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 frametwo leading bytes.
ffmpeg complains about wrong buffer size so i removed them.
using ffmpeg -y -s 720x480 -pix_fmt yuv422p -i input_frame.yuv output_image.png
the result is way off.
analog video fed to the board has still image (photo taken by phone from TV) Reference Pic. and the result from ffmpeg is FFMPEG output.
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.
ffmpeg -y -s 720x480 -pix_fmt yuv422p -i dump_video.yuv output_video.mp4
.
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.