Converting Seestar S50 .mp4 video for use in AstroSurface

Today I wanted to use AstroSurface to stack and process the frames from a video I’d previously recorded with my Seestar S50. I needed to convert the .mp4 recording to a .avi file which AstroSurface could load.

I am a big fan of using FFmpeg for video file manipulation.

I decided that the best idea was to use FFmpeg to:

After some research and fiddling I believe that this is a reasonable command for the conversion:

ffmpeg \
 -i 2024-08-16-220407-Lunar.mp4 \
 -filter 'scale=iw:ih:sws_flags=bitexact+full_chroma_int+accurate_rnd+lanczos,format=bgr24' \
 -c:v rawvideo \
 -map 0:v \
 2024-08-16-220407-Lunar.avi

References