mdurakovic
Posts: 3
Joined: Fri Mar 30, 2018 9:54 am

take screenshot of video playing with omxplayer

Fri Mar 30, 2018 10:04 am

Hi! I am trying to take a screenshot of video playing with OMX player on my RPI device.

I tried scrot, shutter, fbcat, escrotum but non of them captures video playing with OMX player.

I run my video with this command:
/usr/bin/omxplayer --win "0 0 500 500" /home/pi/myvideo.mp4
I get picture of my desktop which is fine, but upper left corner where video is running is simply ignored. Why screenshot programs ignore OMX player ? Is there any workaround for this ?

gkreidl
Posts: 6139
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 12:14 pm

Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

mdurakovic
Posts: 3
Joined: Fri Mar 30, 2018 9:54 am

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 12:33 pm

I also tried raspi2png but it gives me this error:

Code: Select all

raspi2png: vc_dispmanx_snapshot() failed
screenshots when OMX player video is not played works normal

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 12:42 pm

same problem here, but depending on what you need
a workaround is screenshot of VNC window on PC
Image
but that requires the
VNC server / options / troubleshooting / enable experimental direct capture mode ( video : youtube )
setting to see OMX videos via VNC

mdurakovic
Posts: 3
Joined: Fri Mar 30, 2018 9:54 am

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 1:55 pm

Thank you for help but that is not what I need. My goal is to make python script that sends screenshot to server when I request it , so I can see what is my RPI device playing when I am not near it.

gkreidl
Posts: 6139
Joined: Thu Jan 26, 2012 1:07 pm
Location: Germany

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 3:18 pm

mdurakovic wrote:
Fri Mar 30, 2018 12:33 pm
I also tried raspi2png but it gives me this error:

Code: Select all

raspi2png: vc_dispmanx_snapshot() failed
screenshots when OMX player video is not played works normal
Check your GPU memory size.
Did you compile it or did you use the provided binary?
I use it regularly for my manuals, but I'm still on Jessie.
Minimal Kiosk Browser (kweb)
Slim, fast webkit browser with support for audio+video+playlists+youtube+pdf+download
Optional fullscreen kiosk mode and command interface for embedded applications
Includes omxplayerGUI, an X front end for omxplayer

User avatar
KLL
Posts: 1453
Joined: Wed Jan 09, 2013 3:05 pm
Location: thailand
Contact: Website

Re: take screenshot of video playing with omxplayer

Fri Mar 30, 2018 7:32 pm

gkreidl wrote: Check your GPU memory size.
thanks for this,
changed from 64 to 128, that worked ( details )

Return to “Beginners”