tfaehse / DashcamCleaner

Censor identifiable information in videos, in particular dashcam recordings in Germany.
GNU Affero General Public License v3.0
128 stars 27 forks source link

cli.py videos freeze #83

Open archandha opened 9 months ago

archandha commented 9 months ago

I tried to batch convert multiple videos with the cli. This run through and unfortunately, most of the cleaned videos freeze within seconds after first blur. Working on the same videos one by one with the gui does work with the same set of parameters.

Currently, I use the main branch with latest commit from Jul 26th. The software runs on Anaconda / Windows 10 and utulizes CUDA. If needed, I can give this a try on a Ubuntu laptop but without GPU of course. Maybe I find some time to investigate in this myself, but I cannot promise too much.

FFMPEG is ffmpeg version N-112250-g6f7bf64dbc-20231001 Copyright (c) 2000-2023 the FFmpeg developers (latest) If you need the other lib versions, I can provide a full list.

joshinils commented 9 months ago

what quality did you use? when i mux with the best quality and try to play with VLC the video freezes too, because there is just too much data.

RegularTom91 commented 8 months ago

I had the same issues before. Either try MPCHC Player (EOL) or reduce the quality to 7 which is more than enough for almost lossless.

tfaehse commented 7 months ago

The quality hint is most likely the culprit - the setting directly translates to image--fmpeg's mapping, which sets quality in ffmpeg via -crf: https://github.com/imageio/imageio-ffmpeg/blob/9ab981a8d09138fb1b3b814cb4287b705f258ec5/imageio_ffmpeg/_io.py#L536

Quality 10 results in -crf 0, which is lossless. Lots of players will struggle with that.