Python + VLC + RTSP - cannot take screenshot

20 Views Asked by At

I have a code, which must to take screenshot from rtsp stream

def get_screen():
    player vlc.MediaPlayer('rtsp://###')
    player.play()  
    player.video_take_snapshot(0, 'screenshot.tmp.jpg', 0, 0)
get_screen()

Once I launch it I got Process finished with exit code 0 in the shell

But there is no screenshot.tmp.jpg in the folder, which I want to have.

Why?

I want to get screenshot.tmp.jpg file

0

There are 0 best solutions below