CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
178 stars 50 forks source link

Video for created from FR bin can not be played in some OS by standard players #222

Closed aitov closed 11 months ago

aitov commented 1 year ago

FRbinViewer extracts images from FR bin file and for linux uses ffmpeg for mp4 video generation which cannot be played by standard players except VLC. (Reproduced on Intel Mac, Android)

Root cause:

When saving to MP4 using a typical H.264 encoder, ffmpeg will convert to YUV color encoding but pick the highest fidelity pixel format which, for a RGB source, is YUV 4:4:4. This format is not compatible with most players. Solution is to manually force YUV 4:2:0 output. Add -pix_fmt yuv420p just before the output filename.

As I see for time lapse this parameter already used, propose apply it to FRbinviewer too.