Open edgarmove opened 6 years ago
For those interested, I can confirm that this works for me:
ffmpeg -i input.mkv -vf scale=160:120 -c:v rawvideo -pix_fmt rgb565le output.rgb
Where input.mkv (can be any extension supported by ffmpeg .mp4, .avi, .mov, etc.) is the video to be converted and output.rgb (extension .rgb is required by ffmpeg) is the output raw video.
I can confirm this worked for me as well. One interesting difference is that raw video produced by MovieToArray.exe is upside-down - using ffmpeg produces a raw video right-side up.
Hi, I checked your code and noted that the format is rawvideo rgb565 little endian. Can you please check if a video converted form ffmpeg works?
The command is : ffmpeg -i in.mp4 -c:v rawvideo -pix_fmt rgb565le out.rgb
Thanks!