scrubbbbs / cbird

Command-line program for managing a media collection, with focus on Content-Based Image Retrieval (Computer Vision) methods for finding duplicates.
GNU General Public License v2.0
95 stars 5 forks source link

vdx problem!! #14

Open tehMArs opened 3 months ago

tehMArs commented 3 months ago

Problem is when the file is damaged or has invalid format that couldn't be read by cbird, then the whole scan is lost.

[C][VideoContext::avLogger{Extra.mp4}] Missing Sequence Header. [C][VideoContext::decodeFrame{Extra.mp4}] avcodec_send_packet -41444e49 "Invalid data found when processing input" [C][VideoContext::avLogger{Extra.mp4}] Your platform doesn't support hardware accelerated AV1 decoding. [C][VideoContext::avLogger{Extra.mp4}] Failed to get pixel format.

[F][VideoIndex::load] failed to open: ~/Desktop/test/_index/video/6.vdx

  1. to solve this it should ignore bad files don't add them to the index and proceed scanning
  2. Add AV1 coded
  3. use external ffmpeg instead of compiled library
scrubbbbs commented 3 months ago

Thanks for reporting. External FFmpeg is a problem because sending decompressed frames over a pipe can be very slow. I might consider loading FFmpeg libraries dynamically so it is easier to swap with a different version without recompiling cbird.