mueslimak3r / tv-intro-detection

This project tries to detect intros of tv series by comparing pairs of episodes to find the largest common subset of frames.
https://mueslimak3r.github.io/tv-intro-detection/
GNU General Public License v3.0
81 stars 3 forks source link

output ffmpeg to pipe #26

Closed mueslimak3r closed 2 years ago

mueslimak3r commented 2 years ago

Changes *Instead of ffmpeg saving frames to disk as individual image files, pipe the frames to stdout as RGB24 (width x height x 3 bytes), and store the bytes in a list. Then once ffmpeg exits, process the list into PIL objects. Depending on how IO bottlenecked the system is, this can yield around 30% faster frame extraction