lbdroid / FFMpeg-DashCam

DashCam recording for Android car radios.
8 stars 4 forks source link

(known) occasionally a frame gets dropped #3

Closed lbdroid closed 7 years ago

lbdroid commented 7 years ago

While the previous ffmpeg patch deals with the "incorrect" timestamp issue by rewriting ALL of the timestamps, there is an additional situation where ffmpeg receives an IMPOSSIBLE timestamp. When it receives an impossible timestamp, it drops the frame.

The (simple) fix will be to skip that check altogether.

HDaddict commented 7 years ago

I noticed that the recorded videos aren't always smooth, is this the reason for that or is it my camera's bad quality?

lbdroid commented 7 years ago

Could be a combination? They should be pretty smooth, but occasionally, you can see where the frame was missed.

HDaddict commented 7 years ago

Yes, I think it's the missing frames that gives this feeling that it's not smooth.

lbdroid commented 7 years ago

If I recall, you are also using a usb disk instead of an sdcard. This could also be a reason for having somewhat broken videos, since it may interfere with the constant or adequate flow of data. Despite the two wires out the back, the unit only actually has one USB port. The two wires are connected to an internal hub.