video conversion – FFMPEG: how to correctly convert avi containing “rawvideo, bgr24” to mp4?

I have .avi file:

$ ffprobe input.avi -hide_banner
Input #0, avi, from 'input.avi':
  Duration: 00:01:08.05, start: 0.000000, bitrate: 182785 kb/s
  Stream #0:0: Video: rawvideo, bgr24, 1060x615, 182915 kb/s, 20 fps, 20 tbr, 20 tbn

$ file input.avi
input.avi: RIFF (little-endian) data, AVI, 1060 x 615, 20.00 fps, video: uncompressed

Here we see “rawvideo, bgr24”.

I’ve already tried multiple ffmpeg invocations, but either the .mp4 cannot be played in Windows 10 Photos app:

enter image description here

either the .mp4 played incorrectly in some another player:
enter image description here

Note: however, VLC plays such .mp4 well.

A simple question: how to correctly convert .avi containing “rawvideo, bgr24” to .mp4 (so it can be played correctly in all players)?

Read more here: Source link