This page describes how to to use VLC media player with an infra red remote control on Linux. | Other 'how to' pages |
Dec 28, 2017 - Lirc Serial Receiver How To Basic. You can fix this by executing: # chmod 666 /dev/lircd You also need to edit /etc/modules.conf to include the.
Note: This article is about advanced lirc usage with VLC. For basic stuff please see Documentation:Modules/lirc.
The aim is to have your remote behave the same way as for a television remote: program +/-, volume +/-, jump to position 3 when button 3 is pressed,...
Build-in lirc commands are only for basic control in the movie-playing mode, but I need to use other commands from RC Interface - mainly 'goto x' function. So the goal was to be able to use goto function with lirc.
|
VLC
Use a VLC version with lirc enabled.
Start-Up Script
![Lirc Serial Receiver How To Basic Lirc Serial Receiver How To Basic](http://ponty.github.io/MyElectronicProjects/_images/lirc_serial_receiver_brd_35.png)
Scripts
It is necessary to run vlc with rc interface to use all the supported commands (see vlc help). I use this script to run VLC with rc intf. Lircd is loaded and later unloaded. I have a desktop shortcut icon and I had to change properties of the shortcut to run in terminal. The other option is
vlc --fake-tty
option, but this uses 100 % CPU :-(![Lirc Serial Receiver How To Basic Lirc Serial Receiver How To Basic](/uploads/1/2/5/2/125291191/109091093.jpg)
I use irexec to pass commands to VLC rc intf. Commands can be passed with netcat:
echo 'vlc_rc_command' | netcat localhost 12345 -q 1
(q means quit after 1 s). Commands are written in scripts, which are executed with irexec:Here is a script, which is executed when remote button 1 is pressed. The others are similar.
.lircrc
- See also: An example .lircrc file included with VLC viewable online; it is not part of this guide but it may be more up-to-date
The last part of the .lircrc file.
There are defined actions for all requested buttons. irexec executes concerned shell script.
This is the complete list of supported keys in VLC 0.8.6:
Can be extracted using this command:
Version
This has been written by [User:J-b] using Ondřej Kuda's HowTo.
See also
Retrieved from 'https://wiki.videolan.org/index.php?title=VLC_HowTo/Use_with_lirc&oldid=60863'