MhageGH / esp32_ST7735_Movie

Movie Player on esp32 and ST7735
MIT License
41 stars 11 forks source link

ffmpeg to convert video to raw #1

Open edgarmove opened 6 years ago

edgarmove commented 6 years ago

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!

edgarmove commented 5 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.

walnut-engineering commented 5 years ago

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.