I made an RTSP video player using libVLC python bindings (python-vlc) and pySide2. (based on this code)
I want to add the recording function on the 'VLC media player' to my program, but I don't know how.
VLC Media Player Recording Button
'VLC media player' can start and end recording at any time after playing the RTSP source. I also want to implement this function with the QPushButton of pySide.
Before asking this question, I did a lot of search online.
The one that helped me the most was adding sout=#duplicate{dst=file{dst=example.mpg},dst=display}
using add_option
when creating vlc_media.
However, the above method has a limitation that recording starts at the same time as video is played, and recording is completed only when the video is stopped.
Is there any way to separate streaming and recording like VLC media player?