[Solved] VLC as GenericMoviePlayer for DVDs

everything about the current big update and the latest stable branch

Moderator: Moderator

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

[Solved] VLC as GenericMoviePlayer for DVDs

Postby naicheben » Mon Oct 05, 2009 1:51 pm

Hello all,
I need some help getting VLC to work as GenericMoviePlayer. I figured out, that I must set the device in /etc/mms/GenericPlayerConfig. Instead of

Code: Select all

dvd://%d/%t
it now is

Code: Select all

%f %a "dvd:///dev/dvd1"

The option %f should pass the setting Fullscreen from the option menu out of MMS, and it does work.
The option %a should give the Aspect setting ... but VLC wouldn't even start then. So I must leave this setting at "default"

Did VLC change so much or is it hardly supported by the GenericMoviePlayer?
Do I need a wrapper?
Maybe Lorenzodes could give some notes about it.
Last edited by naicheben on Mon Oct 05, 2009 9:30 pm, edited 1 time in total.
mit Hellseherschein ;.)

phelin
Posts: 46
Joined: Thu Oct 23, 2008 7:49 pm

Re: VLC as GenericMoviePlayer for DVDs

Postby phelin » Mon Oct 05, 2009 6:10 pm

You need to modify genericplayer.ops to contain something like this:

Code: Select all

...
&Full screen|Full screen|f
=On| --fullscreen,
=Off| --no-fullscreen,
$

&Aspect ratio|Aspect ratio|a
=default|
=4:3| --aspect-ratio 4:3
=14:9| --aspect-ratio 14:9
=16:9| --aspect-ratio 16:9
$
...


Note that you can add any options you desire in a similar fashion. Like for example crop:

Code: Select all

&Crop|Crop to size|c
=default|
=4:3| --crop 4:3
=14:9| --crop 14:9
=16:9| --crop 16:9
$


and zoom

Code: Select all

&Zoom|Zoom|z
=default|
=10%| --zoom 1.10
=20%| --zoom 1.20
=50%| --zoom 1.50
$


Then just use those new options in the GenericPlayerConfig file:

generic_dvd_opts = %f %a "dvd://%d/%t" vlc//:quit

That should work, but is not tested... that last part, "vlc://quit" makes vlc quit after replay.

BTW, if you need to define the dvd device absolutely, hten there is something wrong with your config...
Last edited by phelin on Mon Oct 05, 2009 9:36 pm, edited 1 time in total.

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: VLC as GenericMoviePlayer for DVDs

Postby naicheben » Mon Oct 05, 2009 8:15 pm

I thought my configs were ok, would you please have a look at them?.:

Code: Select all

etchbox:~# cat /etc/fstab
#
#               /etc/fstab:        static     file system information.
#               <file              system>    <mount point> <type> <options> <dump> <pass>
#/dev/sda1      /media/usb         auto       noauto,users,ro 0 0
/dev/hda1       /boot              ext3       defaults 0 2
/dev/hda2       swap               swap       sw 0 0
/dev/hda3       /                  ext3       errors=remount-ro 0 1
#external CDROM-Drive
/dev/sr0        /media/cdrom0      udf,iso9660 user,noauto 0 0
#internet CDROM-Drive
/dev/hdb        /media/cdrom0      udf,iso9660 user,noauto     0       0


Code: Select all

etchbox:~# cat /etc/mms/GenericPlayerConfig
### GENERIC PLAYER ####
...
#This does not work:
#generic_dvd_opts = %f %a "dvd://%d/%t"
#But this works for me:
generic_dvd_opts = "dvd:///dev/sr0"


I will try to change the settings in GenericPlayerOptions. Is it this file you ask me edit?:

Code: Select all

etchbox:~# cat /home/s100/.mms/options/GenericPlayerOptions
Full screen,
Aspect ratio,
DVD track,
VCD track,
mit Hellseherschein ;.)

phelin
Posts: 46
Joined: Thu Oct 23, 2008 7:49 pm

Re: VLC as GenericMoviePlayer for DVDs

Postby phelin » Mon Oct 05, 2009 9:00 pm

I guess ~/.mms/options/GenericPlayerOptions is the one with currently selected options and /etc/mms/genericplayer.ops has all the possible options. So, the right one to edit would be /etc/mms/genericplayer.ops

Replace the current contents of that file with this:

Code: Select all

# This is a comment
  and this is another comment (note the space at the beginning of line)
# Next is an header option
!General options|General options

&Full screen|Full screen|f
=On| --fullscreen
=Off| --no-fullscreen
$

&Aspect ratio|Aspect ratio|a
=default|
=4:3| --aspect-ratio 4:3
=14:9| --aspect-ratio 14:9
=16:9| --aspect-ratio 16:9
$

!DVD Options|DVD Options
&DVD track|DVD track|t
=whole disc|
=1|1
=2|2
=3|3
=4|4
=5|5
=6|6
=7|7
=8|8
=9|9
=10|10
=11|11
=12|12
=13|13
=14|14
=15|15
=16|16
=17|17
=18|18
=19|19
=20|20
=21|21
=22|22
=23|23
=24|24
=25|25
=26|26
=27|27
=28|28
=29|29
=30|30
=31|31
=32|32
=33|33
=34|34
=35|35
=36|36
=37|37
=38|38
=39|39
=40|40
=41|41
=42|42
=43|43
=44|44
=45|45
=46|46
=47|47
=48|48
=49|49
=50|50
=51|51
=52|52
=53|53
=54|54
=55|55
=56|56
=57|57
=58|58
=59|59
=60|60
=61|61
=62|62
=63|63
=64|64
=65|65
=66|66
=67|67
=68|68
=69|69
=70|70
=71|71
=72|72
=73|73
=74|74
=75|75
=76|76
=77|77
=78|78
=79|79
=80|80
=81|81
=82|82
=83|83
=84|84
=85|85
=86|86
=87|87
=88|88
=89|89
=90|90
=91|91
=92|92
=93|93
=94|94
=95|95
=96|96
=97|97
=98|98
=99|99
$

!VCD Options|VCD Options
&VCD track|VCD track|T
=whole disc|
=1|1
=2|2
=3|3
=4|4
=5|5
=6|6
=7|7
=8|8
=9|9
=10|10
=11|11
=12|12
=13|13
=14|14
=15|15
=16|16
=17|17
=18|18
=19|19
=20|20
=21|21
=22|22
=23|23
=24|24
=25|25
=26|26
=27|27
=28|28
=29|29
=30|30
=31|31
=32|32
=33|33
=34|34
=35|35
=36|36
=37|37
=38|38
=39|39
=40|40
=41|41
=42|42
=43|43
=44|44
=45|45
=46|46
=47|47
=48|48
=49|49
=50|50
=51|51
=52|52
=53|53
=54|54
=55|55
=56|56
=57|57
=58|58
=59|59
=60|60
=61|61
=62|62
=63|63
=64|64
=65|65
=66|66
=67|67
=68|68
=69|69
=70|70
=71|71
=72|72
=73|73
=74|74
=75|75
=76|76
=77|77
=78|78
=79|79
=80|80
=81|81
=82|82
=83|83
=84|84
=85|85
=86|86
=87|87
=88|88
=89|89
=90|90
=91|91
=92|92
=93|93
=94|94
=95|95
=96|96
=97|97
=98|98
=99|99
$


Then in /etc/mms/GenericPlayerConfig replace this:

Code: Select all

generic_dvd_opts = "dvd:///dev/sr0"


with this:

Code: Select all

generic_dvd_opts = %f %a "dvd:///dev/sr0"


That should give you fullscreen and three different aspect ratios to choose from.


What comes to the DVD device... perhaps you have something in your vlc config which is messing things up? What do you get with this (assuming vlc's config file is that one):

Code: Select all

cat ~/.config/vlc/vlcrc | grep dvd=
Last edited by phelin on Mon Oct 05, 2009 9:35 pm, edited 1 time in total.

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: VLC as GenericMoviePlayer for DVDs

Postby naicheben » Mon Oct 05, 2009 9:29 pm

AHHHHH! Great thanks a lot. It works like a charme :D
mit Hellseherschein ;.)

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

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby Uatschitchun » Tue Oct 06, 2009 5:54 pm

Perfect thread!

So no wrapper is needed?
Lg
Roman

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby naicheben » Tue Oct 06, 2009 7:04 pm

Uatschitchun wrote:Perfect thread!

So no wrapper is needed?

That's right! :D
mit Hellseherschein ;.)

phelin
Posts: 46
Joined: Thu Oct 23, 2008 7:49 pm

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby phelin » Thu Oct 08, 2009 6:04 am

Would it make any sense to include several "prewritten" files for different media players in the repository (cfg dir)? I mean something like this:

genericplayer.ops.vlc
GenericMoviePlayer.vlc

genericplayer.ops.xine
GenericMoviePlayer.xine

genericplayer.ops.mplayer
GenericMoviePlayer.mplayer

Thus the files could contain options (i.e. cli parameters) specific to the particular media player and not be restricted to the common subset.

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby naicheben » Thu Oct 08, 2009 9:04 am

Hmmm.... mplayer works fine here by choosing it from the menu within MMS. What would be the bennefit in moving it to GenericPlayer?
I would think it's nice to have

Code: Select all

genericplayer.ops.vlc-example
GenericMoviePlayer.vlc-example
in the repos in addition to the current (for xine)
mit Hellseherschein ;.)

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby naicheben » Thu Oct 08, 2009 9:06 am

phelin wrote:Thus the files could contain options (i.e. cli parameters) specific to the particular media player and not be restricted to the common subset.

I allready tried to pass

Code: Select all

--intf dummy
to vlc, but it ignores it. Could you point out how to add this?
mit Hellseherschein ;.)

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

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby Uatschitchun » Mon Oct 12, 2009 6:34 am

I need a little help here:

Code: Select all

generic_movie_opts = %f %a %z %c vlc//:quit

Problem is, the "vlc://quit" is passed before the filename ;(
/usr/bin/vlc --no-fullscreen --aspect-ratio 16:9 --zoom 1.20 --crop 16:9 vlc//:quit /media/buffalo_300/Videos/Arbeitsplatzbeschaffung\ Toyota.mpg

So it's not used ;(

How could we solve this? GenericPlayer doesn't have a variable like %filename to pass the position of the file itself, else something like this would become possible:

Code: Select all

generic_movie_opts = %f %a %z %c %filename vlc//:quit


Do I need to file a feature-request on that?

naicheben wrote:I allready tried to pass

Code: Select all

--intf dummy
to vlc, but it ignores it. Could you point out how to add this?

you need to add a section on that in genericplayer.ops:

Code: Select all

&Interface|Interface|i
=none|
=dummy| --intf dummy
$
Lg

Roman

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

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby Uatschitchun » Mon Oct 12, 2009 6:54 am

Solved ;)

Instead of vlc://quit, simply use --play-and-exit:

Code: Select all

generic_movie_opts = %f %a %z %c %o --play-and-exit
Lg

Roman

User avatar
naicheben
Overlord
Posts: 1332
Joined: Tue Apr 04, 2006 12:50 pm
Location: Germany/Leck
Contact:

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby naicheben » Mon Oct 12, 2009 8:08 am

ah...I thougt that was the goal of %@

Code: Select all

%f %a %@ vlc:quit
to direct it to the correct sort order.
mit Hellseherschein ;.)

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

Re: [Solved] VLC as GenericMoviePlayer for DVDs

Postby Uatschitchun » Mon Oct 12, 2009 12:56 pm

naicheben wrote:ah...I thougt that was the goal of %@

Code: Select all

%f %a %@ vlc:quit
to direct it to the correct sort order.

Coolio ... that works :P

I have re-worked the genericplayer-configs 8)

Those are up in current devel-tree (revno 2220 - 2223):

GenericPlayerConfig

Code: Select all

### GENERIC PLAYER ####

version = 2

########################
# Movie Player options #
########################
#
# Options in a printf like format. The meaning of the %<letter> is
# defined in the genericplayer.ops file
#
# For to use VLC, uncomment all between VLC start/end
# and comment all between XINE start/end
#
# Only one of both may be active!

# VLC start
#generic_dvd_opts = %f %a %z %c %o -I lirc,dummy --dvd %d dvd://@%t:%C vlc://quit
#generic_vcd_opts = %f %a %z %c %o -I lirc,dummy --vcd %d vcd://@%T vlc://quit
#generic_movie_opts = %f %a %z %c %o -I lirc,dummy %@ vlc://quit
# VLC end

# XINE start
generic_dvd_opts = %f %A %g --no-splash --no-logo dvd://%d/%t
generic_vcd_opts = %f %A %g --no-splash --no-logo vcd://%d/%T
generic_movie_opts = %f %A %g --no-splash --no-logo
# XINE end

########
# Path #
########
#
# The path to the player, leave empty if the player doesn't support
# one of the playback modes
#
# For to use VLC, uncomment all between VLC start/end
# and comment all between XINE start/end
#
# Only one of both may be active!

# VLC start
#genericplayer_dvd_path = /usr/bin/vlc
#genericplayer_vcd_path = /usr/bin/vlc
#genericplayer_movie_path = /usr/bin/vlc
# VLC end

# XINE start
genericplayer_dvd_path = /usr/bin/xine
genericplayer_vcd_path = /usr/bin/xine
genericplayer_movie_path = /usr/bin/xine
# XINE end


genericplayer.ops:

Code: Select all

#
# genericplayer.ops for VLC & Xine
#

# Variables used:
##################

# General
 d = Device
 f = Fullscreen
# VLC
 a = Aspect Ratio (VLC)
 c = Crop
 z = Zoom
 o = OSD
# Xine
 A = Aspect Ratio (Xine)
 g = GUI (xine)
# DVD/VCD
 t = DVD-Title
 C = DVD-Chapter
 T = VCD-Track

# How to use:
#############

# This is a comment
  and this is another comment (note the space at the beginning of line)
# Headers: !Name|Name
# Options between & and $

# Configuration:
################

# General
#
!General options|General options
&Device|Device|d
=sr0| /dev/sr0
=sr1| /dev/sr1
$

&Full screen|Full screen|f
=On| -f
=Off|
$

# VLC
#
!VLC options|VLC options
&Aspect ratio|Aspect ratio|a
=Default|
=4:3| --aspect-ratio 4:3
=14:9| --aspect-ratio 14:9
=16:9| --aspect-ratio 16:9
$

&Crop|Crop to size|c
=Default|
=4:3| --crop 4:3
=14:9| --crop 14:9
=16:9| --crop 16:9
$

&Zoom|Zoom|z
=original|
=10%| --zoom 1.10
=20%| --zoom 1.20
=30%| --zoom 1.30
=40%| --zoom 1.40
=50%| --zoom 1.50
=60%| --zoom 1.60
=70%| --zoom 1.70
=80%| --zoom 1.80
=90%| --zoom 1.90
=double| --zoom 2.0
$

&OSD|OSD|o
=On| --osd
=Off| --no-osd
$

# Xine
#
!Xine options|Xine options
&Aspect|Aspect|A
=Default|
=auto| -r Auto
=4:3| -r 4:3
=square| -r Square
=anamorphic| -r Anamorphic
=dvb| -r dvb
$

&GUI|GUI|g
=On|
=Hide| -g
=Off| -I
$

# DVD/VCD
#
!DVD Options|DVD Options
&DVD title|DVD title|t
=Whole disc|
=1|1
=2|2
=3|3
=4|4
=5|5
=6|6
=7|7
=8|8
=9|9
=10|10
=11|11
=12|12
=13|13
=14|14
=15|15
=16|16
=17|17
=18|18
=19|19
=20|20
=21|21
=22|22
=23|23
=24|24
=25|25
=26|26
=27|27
=28|28
=29|29
=30|30
=31|31
=32|32
=33|33
=34|34
=35|35
=36|36
=37|37
=38|38
=39|39
=40|40
=41|41
=42|42
=43|43
=44|44
=45|45
=46|46
=47|47
=48|48
=49|49
=50|50
=51|51
=52|52
=53|53
=54|54
=55|55
=56|56
=57|57
=58|58
=59|59
=60|60
=61|61
=62|62
=63|63
=64|64
=65|65
=66|66
=67|67
=68|68
=69|69
=70|70
=71|71
=72|72
=73|73
=74|74
=75|75
=76|76
=77|77
=78|78
=79|79
=80|80
=81|81
=82|82
=83|83
=84|84
=85|85
=86|86
=87|87
=88|88
=89|89
=90|90
=91|91
=92|92
=93|93
=94|94
=95|95
=96|96
=97|97
=98|98
=99|99
$

&DVD chapter|DVD chapter|C
=Whole disc|
=1|1
=2|2
=3|3
=4|4
=5|5
=6|6
=7|7
=8|8
=9|9
=10|10
=11|11
=12|12
=13|13
=14|14
=15|15
=16|16
=17|17
=18|18
=19|19
=20|20
=21|21
=22|22
=23|23
=24|24
=25|25
=26|26
=27|27
=28|28
=29|29
=30|30
=31|31
=32|32
=33|33
=34|34
=35|35
=36|36
=37|37
=38|38
=39|39
=40|40
=41|41
=42|42
=43|43
=44|44
=45|45
=46|46
=47|47
=48|48
=49|49
=50|50
=51|51
=52|52
=53|53
=54|54
=55|55
=56|56
=57|57
=58|58
=59|59
=60|60
=61|61
=62|62
=63|63
=64|64
=65|65
=66|66
=67|67
=68|68
=69|69
=70|70
=71|71
=72|72
=73|73
=74|74
=75|75
=76|76
=77|77
=78|78
=79|79
=80|80
=81|81
=82|82
=83|83
=84|84
=85|85
=86|86
=87|87
=88|88
=89|89
=90|90
=91|91
=92|92
=93|93
=94|94
=95|95
=96|96
=97|97
=98|98
=99|99
$

!VCD Options|VCD Options
&VCD track|VCD track|T
=Whole disc|
=1|1
=2|2
=3|3
=4|4
=5|5
=6|6
=7|7
=8|8
=9|9
=10|10
=11|11
=12|12
=13|13
=14|14
=15|15
=16|16
=17|17
=18|18
=19|19
=20|20
=21|21
=22|22
=23|23
=24|24
=25|25
=26|26
=27|27
=28|28
=29|29
=30|30
=31|31
=32|32
=33|33
=34|34
=35|35
=36|36
=37|37
=38|38
=39|39
=40|40
=41|41
=42|42
=43|43
=44|44
=45|45
=46|46
=47|47
=48|48
=49|49
=50|50
=51|51
=52|52
=53|53
=54|54
=55|55
=56|56
=57|57
=58|58
=59|59
=60|60
=61|61
=62|62
=63|63
=64|64
=65|65
=66|66
=67|67
=68|68
=69|69
=70|70
=71|71
=72|72
=73|73
=74|74
=75|75
=76|76
=77|77
=78|78
=79|79
=80|80
=81|81
=82|82
=83|83
=84|84
=85|85
=86|86
=87|87
=88|88
=89|89
=90|90
=91|91
=92|92
=93|93
=94|94
=95|95
=96|96
=97|97
=98|98
=99|99
$


With this, one is able to use Xine or VLC without changing genericplayer.ops! Within GenericPlayerConfig, one simply needs to un-/comment the settings for Xine or VLC.

Together with this, I posted a feature-request on genericplayer, for to make a change of player possible at runtime:
http://bugs.mymediasystem.org/?do=details&task_id=1043

Hope you like it :roll:
Lg

Roman


Return to “1.1.x”

Who is online

Users browsing this forum: No registered users and 4 guests