How to use vlc like videoplayer in mms

other problems with configuration of mms

Moderator: Moderator

electron45
Posts: 3
Joined: Sun Mar 16, 2008 4:09 pm
Location: Spain

How to use vlc like videoplayer in mms

Postby electron45 » Sun Mar 16, 2008 9:14 pm

How to use vlc like videoplayer in mms 1.0.8.5 with configuration files in /etc/mms:

1.- Create /etc/mms/mplayer2vlc.sh (file player) with execution permissions

Code: Select all

   #!/bin/sh
   par=$5
   # execute vlc in fullscreen with the name of the file
   # obtained from mms in parameter 5
   wxvlc -f "${par}"

2.- Create the file /etc/mms/cxfe2vlcdvd.sh (dvd player) with execution permissions

Code: Select all

   #!/bin/sh
   # execute vlc in fullscreen with the name of the dvd-device
   # obtained from mms in parameter 3
   par=$3
   wxvlc -f "${par}"

3. - Make the following adjustments in /etc/mms/config
# Movie players
#
# Possible values for movie_player are: mplayer, xine
# Possible values for dvd_player are: mplayer, xine, dxr3player
#
movie_player = mplayer
dvd_player = xine

# Movie Player options
#
# Do not set the dvd-device options. That will automaticly be appended
# by mms when starting the movie player
#
# mplayeropts = -cache 8192 -vo xv -fs -fixed-vo
# mplayerdvdopts = -cache 8192 -vo xv -fs -fixed-vo
mplayeropts =
mplayerdvdopts =
cxfeopts =
dxr3playeropts = -t

# Movie player paths
#
# mplayer_path = /usr/bin/mplayer
mplayer_path = /etc/mms/mplayer2vlc.sh
# cxfe_path = /usr/bin/cxfe
cxfe_path = /etc/mms/cxfe2vlcdvd.sh
dxr3player_path = /usr/bin/dxr3player-sdl

4. - For using my usbmce remote control and keyboard this is my /home/my_user/.lircrc

Code: Select all

###################
#### Volume Control ####
###################

begin
prog = irexec
button = Mute
config = amixer set Master mute &
config = amixer set Master unmute &
repeat = 0
end

begin
prog = irexec
button = VolUp
config = amixer set Master 2dB+ unmute &
repeat = 2
end

begin
prog = irexec
button = VolDown
config = amixer set Master 2dB- unmute &
repeat = 2
end

####################
#### My Media System ####
####################

#arranca mms
begin
prog = irexec
button = Home
config = mms &
repeat = 0
end

begin
prog = irxevent
button = Up
config = Key Up Focus mms
repeat = 0
end

begin
prog = irxevent
button = Down
config = Key Down Focus mms
repeat = 0
end

begin
prog = irxevent
button = Right
config = Key Right Focus mms
repeat = 0
end

begin
prog = irxevent
button = Left
config = Key Left Focus mms
repeat = 0
end

begin
prog = irxevent
button = OK
config = Key Return Focus mms
repeat = 0
end

begin
prog = irxevent
button = Enter
config = Key Return Focus mms
repeat = 0
end

begin
prog = irxevent
button = Back
config = Key End Focus mms
repeat = 0
end

begin
prog = irxevent
button = Guide
config = Key Home Focus mms
repeat = 0
end

begin
prog = irxevent
button = More
config = Key Home Focus mms
repeat = 0
end

begin
prog = irxevent
button = Clear
config = Key Delete Focus mms
repeat = 0
end

begin
prog = irxevent
button = Forward
config = Key Page_Down Focus mms
repeat = 0
end

begin
prog = irxevent
button = Rewind
config = Key Page_Up Focus mms
repeat = 0
end

begin
prog = irxevent
button = Play
config = Key 3 Focus mms
repeat = 0
end

begin
prog = irxevent
button = Pause
config = Key 2 Focus mms
repeat = 0
end

begin
prog = irxevent
button = Stop
config = Key 1 Focus mms
repeat = 0
end

begin
prog = irxevent
button = Skip
config = Key 9 Focus mms
repeat = 0
end

begin
prog = irxevent
button = Replay
config = Key 8 Focus mms
repeat = 0
end

#############
#### tvtime ####
#############

# no se puede utilizar irxevent
# tvtime no siempre asigna nombre a su ventana

begin
prog = irexec
button = RecTV
config = tvtime-command CHANNEL_JUMP
repeat = 0
end

begin
prog = irexec
button = Teletext
config = tvtime-command DISPLAY_INFO
repeat = 0
end

begin
prog = irexec
button = ChanDown
config = tvtime-command DOWN
repeat = 0
end

begin
prog = irexec
button = Down
config = tvtime-command DOWN
repeat = 0
end

begin
prog = irexec
button = OK
config = tvtime-command ENTER
repeat = 0
end

begin
prog = irexec
button = Enter
config = tvtime-command ENTER
repeat = 0
end

begin
prog = irexec
button = Left
config = tvtime-command LEFT
repeat = 0
end

begin
prog = irexec
button = Right
config = tvtime-command RIGHT
repeat = 0
end

begin
prog = irexec
button = More
config = tvtime-command TOGGLE_ASPECT
repeat = 0
end

begin
prog = irexec
button = LiveTV
config = tvtime-command TOGGLE_FULLSCREEN
repeat = 0
end

begin
prog = irexec
button = ChanUp
config = tvtime-command UP
repeat = 0
end

begin
prog = irexec
button = Up
config = tvtime-command UP
repeat = 0
end

begin
prog = irexec
button = Pause
config = tvtime-command TOGGLE_PAUSE
repeat = 0
end

begin
prog = irexec
button = Play
config = tvtime-command TOGGLE_PAUSE
repeat = 0
end

begin
prog = irexec
button = Stop
config = tvtime-command QUIT
repeat = 0
end

begin
prog = irexec
button = Back
config = tvtime-command QUIT
repeat = 0
end

###########
#### vlc ####
###########

# no se puede utilizar irxevent
# vlc no responde a algunas teclas
# es necesario habilitar la interfaz infrarroja de control
# remoto en Preferencias-Interfaces_de_control
# ver comandos de teclado ejecutando vlc --help --advanced

begin
prog = vlc
button = LiveTV
config = key-fullscreen
repeat = 0
end

begin
prog = vlc
button = Play
config = key-play-pause
repeat = 0
end

begin
prog = vlc
button = Pause
config = key-play-pause
repeat = 0
end

begin
prog = vlc
button = Forward
config = key-faster
repeat = 0
end

begin
prog = vlc
button = Rewind
config = key-slower
repeat = 0
end

begin
prog = vlc
button = ChanUp
config = key-next
repeat = 0
end

begin
prog = vlc
button = ChanDown
config = key-prev
repeat = 0
end

begin
prog = vlc
button = Stop
config = key-stop
repeat = 0
end

begin
prog = vlc
button = Replay
config = key-jump-medium
repeat = 2
end

begin
prog = vlc
button = Skip
config = key-jump+medium
repeat = 2
end

begin
prog = vlc
button = OK
config = key-nav-activate
repeat = 0
end

begin
prog = vlc
button = Enter
config = key-nav-activate
repeat = 0
end

begin
prog = vlc
button = Up
config = key-nav-up
repeat = 0
end

begin
prog = vlc
button = Down
config = key-nav-down
repeat = 0
end

begin
prog = vlc
button = Left
config = key-nav-left
repeat = 0
end

begin
prog = vlc
button = Right
config = key-nav-right
repeat = 0
end

begin
prog = vlc
button = DVD
config = key-disc-menu
repeat = 0
end

begin
prog = vlc
button = Back
config = key-quit
repeat = 0
end

begin
prog = vlc
button = Yellow
config = key-subdelay-up
repeat = 0
end

begin
prog = vlc
button = Blue
config = key-subdelay-down
repeat = 0
end

begin
prog = vlc
button = Red
config = key-audiodelay-up
repeat = 0
end

begin
prog = vlc
button = Green
config = key-audiodelay-down
repeat = 0
end

begin
prog = vlc
button = Star
config = key-audio-track
repeat = 0
end

begin
prog = vlc
button = Hash
config = key-subtitle-track
repeat = 0
end

begin
prog = vlc
button = Guide
config = key-intf-show
config = key-intf-hide
repeat = 0
end

begin
prog = vlc
button = Record
config = key-record
repeat = 0
end

begin
prog = vlc
button = More
config = key-aspect-ratio
repeat = 0
end

begin
prog = vlc
button = Teletext
config = key-position
repeat = 0
end


##############
#### MPlayer ####
##############

# ... igual que vlc ...

begin
prog = mplayer
button = LiveTV
config = vo_fullscreen
repeat = 0
end

begin
prog = mplayer
button = Play
config = pause
repeat = 0
end

begin
prog = mplayer
button = Pause
config = pause
repeat = 0
end

begin
prog = mplayer
button = Forward
config = speed_mult 2
repeat = 0
end

begin
prog = mplayer
button = Rewind
config = speed_mult 0.5
repeat = 0
end

begin
prog = mplayer
button = Stop
config = pause
repeat = 0
end

begin
prog = mplayer
button = Replay
config = seek -120
repeat = 2
end

begin
prog = mplayer
button = Skip
config = seek +120
repeat = 2
end

begin
prog = mplayer
button = OK
config = speed_set 1
repeat = 0
end

begin
prog = mplayer
button = Enter
config = speed_set 1
repeat = 0
end

begin
prog = mplayer
button = Up
config = seek +120
repeat = 2
end

begin
prog = mplayer
button = Down
config = seek -120
repeat = 2
end

begin
prog = mplayer
button = Left
config = seek -120
repeat = 2
end

begin
prog = mplayer
button = Right
config = seek +120
repeat = 2
end

begin
prog = mplayer
button = Back
config = quit
repeat = 0
end

begin
prog = mplayer
button = Yellow
config = sub_delay +0.050
repeat = 0
end

begin
prog = mplayer
button = Blue
config = sub_delay -0.050
repeat = 0
end

begin
prog = mplayer
button = Red
config = audio_delay +0.050
repeat = 0
end

begin
prog = mplayer
button = Green
config = audio_delay -0.050
repeat = 0
end

begin
prog = mplayer
button = Star
config = switch_audio
repeat = 0
end

begin
prog = mplayer
button = Hash
config = sub_visibility
repeat = 0
end

begin
prog = mplayer
button = Guide
config = osd
repeat = 0
end

begin
prog = mplayer
button = More
config = switch_ratio
repeat = 0
end

begin
prog = mplayer
button = Teletext
config = osd
repeat = 0
end

#######################


This is all

:D :D :D :D :D :D
Last edited by electron45 on Mon Mar 17, 2008 4:24 pm, edited 3 times in total.

User avatar
arj
Site Admin
Posts: 2316
Joined: Thu Dec 01, 2005 8:51 pm
Location: Denmark
Contact:

Postby arj » Sun Mar 16, 2008 10:14 pm

thanks. Nice guide

User avatar
Uatschitchun
Overlord
Posts: 3189
Joined: Tue Dec 06, 2005 6:55 pm
Location: Germany
Contact:

Postby Uatschitchun » Mon Mar 17, 2008 6:43 am

Sweet ;)

I added some quote&code tags ... hope it's ok ...
Lg
Roman

electron45
Posts: 3
Joined: Sun Mar 16, 2008 4:09 pm
Location: Spain

Postby electron45 » Mon Mar 17, 2008 7:38 am

Thanks for the presentation improvements.

:D :D :D :D :D :D

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Re: How to use vlc like videoplayer in mms

Postby acmelabs » Mon Mar 17, 2008 10:30 am

electron45 wrote:...

Wow, thanks a lot. I will link from Wiki onto here.
Thanks,

Regards,
Andreas

EDIT: done

msmazur
Posts: 1
Joined: Sun Mar 30, 2008 11:44 pm

Postby msmazur » Sun Mar 30, 2008 11:51 pm

:/

i have done this but .... i received this :

running mplayer with following command:/etc/mms/mplayer2vlc.sh -cache 8192 -vo xv -fs -ao alsa:device=default /home/songo/media/video/divx/dvd_022/36.Quai.Des.Orfevres.2004.PROPER.DVDRip.XviD-DMT.avi
VLC media player 0.8.6c Janus
wxvlc: unknown option or missing mandatory argument `-s'
Try `wxvlc --help' for more information.

I am just regular user so maby sollution is simple but i do not know it.
Any sugestions ?

mms
/this is abbreviation of my surname first and second name which i use every day 8) /

User avatar
Uli
Posts: 60
Joined: Tue May 20, 2008 12:48 pm
Location: MUC
Contact:

Postby Uli » Wed May 21, 2008 8:38 am

Check every config file you can find in /etc/mms (don't know which version you're running) and replace

this

Code: Select all

mplayeropts = -cache 8192 -vo xv -fs -ao alsa:device=default


by that

Code: Select all

#mplayeropts = -cache 8192 -vo xv -fs -ao alsa:device=default
#I love Uli!
mplayeropts =


That's it. :D

By the bye: mms passes filename parameters without backslashing blanks:

/files/movies/Graf Porno blaest zum Zapfenstreich.avi

not as I'd expected:

/flies/movies/Graf\ Porno\ blaest\ zum\ Zapfenstreich.avi

Any reason why?

User avatar
acmelabs
Overlord
Posts: 2365
Joined: Mon Feb 20, 2006 9:18 pm
Location: Germany
Contact:

Postby acmelabs » Wed May 21, 2008 8:46 am

Uli wrote:/flies/movies/Graf\ Porno\ blaest\ zum\ Zapfenstreich.avi

Any reason why?

That's simple, we don't intent to give pr0n any space in MMS ;-)

SCNR

Regards,
Andreas

User avatar
Uli
Posts: 60
Joined: Tue May 20, 2008 12:48 pm
Location: MUC
Contact:

Postby Uli » Wed May 21, 2008 9:04 am

Lousy try. Already got a workaround. :D :D :D

Was Du auch denkst... ;)

User avatar
magicamun
master
Posts: 688
Joined: Thu Feb 28, 2008 7:42 am
Location: Germany

Postby magicamun » Wed May 21, 2008 9:19 am

Tach auch - da haben wir ja nen echten Spaßvogel in unserer Mitte - sehr lustig dir zu folgen - und dann noch einer der sich zu helfen weis - sehr gut

User avatar
Uli
Posts: 60
Joined: Tue May 20, 2008 12:48 pm
Location: MUC
Contact:

Postby Uli » Wed May 21, 2008 2:23 pm

Spaßvogel? Zum Einen ist "Graf P." ein herausragendes Werk zeitgenössischer Erwachsenbildung und wenn sich unser geschätzter Kollege msmazur schon ungestraft als Raubkopierer outen darf, hatte ich eigentlich nicht erwartet, dass sich Mitmembers an meinem persönlichen Kinofilmgeschmack stören. :D

For our non-german-speaking friends: we're going to begin an interesting discussion about German educational movies. Keep you updated. ;)


Return to “other”

Who is online

Users browsing this forum: No registered users and 2 guests