Sunday, September 9, 2007

vlc lirc interface and subtitle positioning

vlc --freetype-fontsize=20 --sub-margin 60 -I lirc movie.avi

~/.lircrc:

#########
# Mplayer

begin
prog = mplayer
button = OK
config = pause
end

begin
prog = mplayer
button = VolUp
config = volume +1
repeat = 1
end

begin
prog = mplayer
button = VolDown
config = volume -1
repeat = 1
end

begin
prog = mplayer
button = ChanUp
config = sub_delay +0.1
repeat = 1
end

begin
prog = mplayer
button = ChanDown
config = sub_delay -0.1
repeat = 1
end

begin
prog = mplayer
button = forward
config = seek +20 0
end

begin
prog = mplayer
button = rewind
config = seek -20 0
end


begin
prog = mplayer
button = skip
config = seek +600 0
end

begin
prog = mplayer
button = replay
config = seek -600 0
end

begin
prog = mplayer
button = pause
config = pause
end

begin
prog = mplayer
button = up
config = seek +60 0
end

begin
prog = mplayer
button = right
config = seek +10 0
end

begin
prog = mplayer
button = down
config = seek -60 0
end

begin
prog = mplayer
button = left
config = seek -10 0
end

begin
prog = mplayer
button = enter
config = pause
end

begin
prog = mplayer
button = mute
config = mute
end

begin
prog = mplayer
button = play
config = pause
end

begin
prog = mplayer
button = power
config = quit
end

begin
prog = mplayer
button = stop
config = pause
end

begin
prog = mplayer
button = home
config = vo_fullscreen
end

begin
prog = mplayer
button = more
config = osd
end

begin
prog = mplayer
button = back
config = sub_visibility
end

#####
# vlc

begin
prog = vlc
button = OK
config = key-play-pause
end

begin
prog = vlc
button = VolUp
config = key-vol-up
repeat = 1
end

begin
prog = vlc
button = VolDown
config = key-vol-down
repeat = 1
end

begin
prog = vlc
button = forward
config = key-jump+medium
end

begin
prog = vlc
button = rewind
config = key-jump-medium
end


begin
prog = vlc
button = skip
config = key-jump+long
end

begin
prog = vlc
button = replay
config = key-jump-long
end

begin
prog = vlc
button = pause
config = key-play-pause
end

begin
prog = vlc
button = up
config = key-jump+medium
end

begin
prog = vlc
button = right
config = key-jump+short
end

begin
prog = vlc
button = down
config = key-jump-medium
end

begin
prog = vlc
button = left
config = key-jump-short
end

begin
prog = vlc
button = enter
config = key-play-pause
end

begin
prog = vlc
button = mute
config = key-vol-mute
end

begin
prog = vlc
button = play
config = key-play-pause
end

begin
prog = vlc
button = power
config = key-quit
end

begin
prog = vlc
button = stop
config = key-play-pause
end

begin
prog = vlc
button = home
config = key-fullscreen
end

begin
prog = vlc
button = back
config = key-crop
end

begin
prog = vlc
button = more
config = key-aspect-ratio
end

begin
prog = vlc
button = ChanUp
config = key-audio-track
end

begin
prog = vlc
button = ChanDown
config = key-subtitle-track
end

No comments: