How I Fixed my R1S Dash Cam Playback Choppiness with ffmpeg

Rivian Mom

Active Wheeler
Joined
Oct 20, 2024
Messages
271
Reaction score
30
Rivian
R1S
I've had some recent playback issues from dash cam videos with my R1S. I had copied videos off the SSD to my local m3 MacBook for playback. Multiple players, video editing software, all was really choppy on a system that otherwise has no problem editing 4k video.

Asking Claude (Anthropic's AI LLM) about the issue, it had me run some debug commands using ffmpeg and came up with a diagnosis that there is only one keyframe every second as well as the bitrate being on the low end for the given resolution. It gave me a reencode command to double the amount of keyframes:

ffmpeg -i 03_07_25_131726_frontCenter_001.mp4 -c:v libx264 -preset medium -crf 23 -g 15 -keyint_min 15 output.mp4

And that worked like a charm. Playback is now butter smooth with no loss in quality. The generated file is a bit larger though.

I had only seen complaints about this issue and hadn't come across a posted fix myself so posting here in case this is useful to anyone else.

1000003347.png
 

Recent

I carried out a little DIY experiment and I...
I have been having a little rattle incident...
I don’t see this mentioned often, but people...
I have been taking a look at the new Rivian...
Back
Top