ffprobe

How to gracefully terminate ffmpeg process alongside with ffprobe process?

How to gracefully terminate ffmpeg process alongside with ffprobe process? Question: I was able to terminate ffmpeg process gracefully when it’s the only ongoing process. Now I also have ffprobe process alongside with ffmpeg process that tracks the progress of the ffmpeg process. It throws the following exception when I try to cancel the process. …

Total answers: 1

Python: Prevent script from stopping or hanging when RTSP from application fails

Python: Prevent script from stopping or hanging when RTSP from application fails Question: I am streaming a video feed (RTSP) and doing analytics on it. The code works fine but it just hangs after a long streaming period. I put Wireshark on it and found, for the most part, that the server (10.61.41.4) is sending …

Total answers: 1

How to check if a video has sound in Python?

How to check if a video has sound in Python? Question: I would just like a True if a video has audio or False if it does not have audio. I feel like I’m almost there using subprocess. I get info about the video file running ffprobe and splitting the results into a list. I’ve …

Total answers: 4