Page 1 of 1

Migrating from OMXPlayer to VLC, how to capture keyboard entry

Posted: 19 Nov 2021 21:22
by eat-sleep-code
I was using OMXPlayer for my project but am moving to VLC.

With OMXPlayer I could play/pause and change volume, etc. using keyboard controls -- even through an SSH session.

I can not figure out how to do this with VLC.

The process my Python script is launching is:

Code: Select all

cvlc 'videos/cartoons/Bugs Bunny.mp4' --no-osd --fullscreen --align 0 --width 640 --height 480 --keyboard-events

I get the following in output in my ssh session, the video plays on the remote Raspberry Pi, but I have no control of volume or playback from the SSH session.

Code: Select all

[00328800] main interface error: no suitable interface module [0029fb58] main libvlc error: interface "globalhotkeys,none" initialization failed [00328800] dummy interface: using the dummy interface module... [9c921c78] mmal_codec decoder: VCSM init succeeded: Legacy [b3a0e268] gles2 generic error: parent window not available [b3a13320] mmal_xsplitter vout display error: Failed to open Xsplitter:opengles2 module [b3a0e268] xcb generic error: window not available [b3a13320] mmal_xsplitter vout display error: Failed to open Xsplitter:xcb_x11 module

Re: Migrating from OMXPlayer to VLC, how to capture keyboard entry

Posted: 19 Nov 2021 21:32
by RĂ©mi Denis-Courmont
cvlc is a command line interface. Try help + Enter.

Re: Migrating from OMXPlayer to VLC, how to capture keyboard entry

Posted: 19 Nov 2021 21:39
by eat-sleep-code
That does not answer my question at all?

I am aware that cvlc is a command line interface -- I am launching it from a command line to test it.

Please reread my post. I am asking how to get keyboard entry to pass through as it did in OMXPlayer.