Skip to content

Tag: video

How to deactivate a QVideoProbe?

According to the docs “If source is zero, this probe will be deactivated” But calling setSource(0) gives the following exception: Im running my code on raspberry pi 4 with Rpi Os Bullseye 64bit and PySide2 version 5.15.2. Example code: Answer The source object can be cleared like this: In C++, pas…

pytube (python) video stops playing video after few seconds

I have been using pytube to create my youtube video downloader and after the video is done downloading and compiling and i play it, it plays for only a few seconds then just displays a still image while the audio continues in background These are the functions in file “module.py” And this is the &…

Using ffmpeg to obtain video durations in python

I’ve installed ffprobe using the pip ffprobe command on my PC, and installed ffmpeg from here. However, I’m still having trouble running the code listed here. I try to use the following code unsuccessfully. Does anyone know what’s wrong? Am I not referencing the directories correctly? Do I n…