Our great sponsors
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
If there isn't sound during the black screen you can use the pydub module's pysilence.detect_silence() method to detect the start and end of video silence. And use a video editing module such as MoviePy to remove those sections.
This superuser response covers trimming timestamped sections from a video with ffmpeg. It's probably easiest to programmatically create those commands using a wrapper library like ffmpeg-python.
My guess would be this will be much easier to get up and running if you use the VideoReader class from (my OpenCV wrapper library) pythonic-cv, since it allows easily iterating directly through videos, processing frames, skipping frames if you want to, and accessing the fps and current timestamp as properties (assuming your videos are in a format that specifies its fps, and allows frame jumping).
Related posts
- Show HN: Lipupini, an OSS PHP Media Platform, has reached release cycle v5.x
- RNNoise 0.2 – now trained using only publicly available CC-licensed datasets
- Show HN: Render audio to HTML canvas using WebGPU
- Audio Fingerprinting and Recognition in Python
- AI-generated sad girl with piano performs the text of the MIT License