SimonKagstrom / tesla_dashcam_manager

A manager for tesla_dashcam + teslausb and docker image for Raspberry Pi to run it together with pigallery2
MIT License
11 stars 3 forks source link

videos with --title_screen_map option stall at first frame in QuickTimePlayer and Safari #6

Open mrd0n opened 1 week ago

mrd0n commented 1 week ago

When passing the parameter --title_screen_map option to tesla_dashcam/ffmpeg, the videos were stuck at the first frame when viewing with the Safari browser and the QuickTime Player.

The issue can be addressed by including the ffmpeg options -pix_fmtand yuv420p. These options are already part of the dev branch of tesla_dashcam, but are commented out. (around line 2200). Including these ffmpeg parameters allowed the videos generated with the staticmap image at the front to play properly on my iPhone and MacBook.

Just sharing here in case others run into the same problem. (This is obviously not an issue with this repository, but rather related to tesla_dashcam and ffmpeg.)

SimonKagstrom commented 1 week ago

Good to know!

My teslausb installation is broken (for still unknown reasons, I haven't looked into it), so I haven't looked at this in a long time unfortunately.

Maybe there could be an addition to tesla_dashcam to add extra ffmpeg arguments that could be accepted? Otherwise I guess this repository can point to a fork for now, since this sounds like a good feature.