Updated [obsolete] Config and CmdLine (rest)

wm4 2014-09-12 01:45:34 -07:00
parent c1a9f938e0
commit 22b7c6c3f1
1 changed files with 176 additions and 176 deletions

@ -1,177 +1,177 @@
Warning: this is some old brainstorming about how the sub-option handling could be improved. It does not reflect current syntax. Whether something like this will be implemented or not is up to the stars. Warning: this is some old brainstorming about how the sub-option handling could be improved. It does not reflect current syntax. Whether something like this will be implemented or not is up to the stars.
Command line example 1:: Command line example 1::
--include=local.conf --include=local.conf
--softvol=yes --softvol=yes
--ass=yes --ass=yes
--embeddedfonts=yes --embeddedfonts=yes
--vf-add=screenshot --vf-add=screenshot
--vo=vdpau=[ deint=-4 pullup ] --vo=vdpau=[ deint=-4 pullup ]
--vc=[ item=ffmpeg12vdpau item=ffwmv3vdpau item=ffc1vdpau item=ffh264vdpau SUPER ] --vc=[ item=ffmpeg12vdpau item=ffwmv3vdpau item=ffc1vdpau item=ffh264vdpau SUPER ]
--vc-pre=ffh264vdpau --vc-pre=ffh264vdpau
--vc-pre=[ item=ffc1vdpau ] --vc-pre=[ item=ffc1vdpau ]
--vc-pre=ffwmv3vdpau --vc-pre=ffwmv3vdpau
--vc-pre=ffmpeg12vdpau --vc-pre=ffmpeg12vdpau
--vo=xv --vo=xv
--lavdopts=[ threads=4 ] --lavdopts=[ threads=4 ]
--ao=alsa --ao=alsa
--include=/usr/share/doc/mplayer/examples/encoding-example-profiles.conf --include=/usr/share/doc/mplayer/examples/encoding-example-profiles.conf
--profile=enc-to-iphone --profile=enc-to-iphone
--vf-add=ass --vf-add=ass
--ass-force-style="Fontname=sans" --ass-force-style="Fontname=sans"
--ovcopts-add=[ tune=animation threads=4 ] --ovcopts-add=[ tune=animation threads=4 ]
Config example 1:: Config example 1::
include = local.conf include = local.conf
# softvol = yes # softvol = yes
# softvol-max = 1200 # softvol-max = 1200
ass = yes ass = yes
embeddedfonts = yes embeddedfonts = yes
vf-add = screenshot vf-add = screenshot
#vo = vdpau = [ #vo = vdpau = [
# deint = -4 # deint = -4
# pullup # pullup
#] #]
#vc = [ #vc = [
# item = ffmpeg12vdpau # item = ffmpeg12vdpau
# item = ffwmv3vdpau # item = ffwmv3vdpau
# item = ffc1vdpau # item = ffc1vdpau
# item = ffh264vdpau # item = ffh264vdpau
# SUPER # SUPER
#] #]
# latter doing the same as # latter doing the same as
#vc-pre = ffh264vdpau #vc-pre = ffh264vdpau
#vc-pre = ffc1vdpau #vc-pre = ffc1vdpau
#vc-pre = ffwmv3vdpau #vc-pre = ffwmv3vdpau
#vc-pre = ffmpeg12vdpau #vc-pre = ffmpeg12vdpau
vo = xv vo = xv
lavdopts = [ lavdopts = [
threads = 4 threads = 4
] ]
ao = alsa ao = alsa
include = /usr/share/doc/mplayer/examples/encoding-example-profiles.conf include = /usr/share/doc/mplayer/examples/encoding-example-profiles.conf
[enc] [enc]
profile = enc-to-iphone profile = enc-to-iphone
vf-add = ass vf-add = ass
ass-force-style = "Fontname=sans" ass-force-style = "Fontname=sans"
ovcopts-add = [ ovcopts-add = [
tune = animation tune = animation
threads = 4 threads = 4
] ]
# NOTE: # NOTE:
# general shortcut for list options: # general shortcut for list options:
# #
# listoption = FOO,BAR # listoption = FOO,BAR
# means # means
# listoption = [ # listoption = [
# item = FOO # item = FOO
# item = BAR # item = BAR
# ] # ]
# #
# listoption-add = [ # listoption-add = [
# XYZZY # XYZZY
# ] # ]
# means # means
# listoption = [ # listoption = [
# SUPER # SUPER
# XYZZY # XYZZY
# ] # ]
# #
# listoption-pre = [ # listoption-pre = [
# XYZZY # XYZZY
# ] # ]
# means # means
# listoption = [ # listoption = [
# XYZZY # XYZZY
# SUPER # SUPER
# ] # ]
Command line example 2 (list starters are their own argument; an ambiguity ensues and is resolved by "if [ can be a list starter, it is and starts a list in the innermost scope possible"); we basically replaced =[ by space and [:: Command line example 2 (list starters are their own argument; an ambiguity ensues and is resolved by "if [ can be a list starter, it is and starts a list in the innermost scope possible"); we basically replaced =[ by space and [::
--include=local.conf --include=local.conf
--softvol=yes --softvol=yes
--ass=yes --ass=yes
--embeddedfonts=yes --embeddedfonts=yes
--vf-add=screenshot --vf-add=screenshot
--vo=vdpau [ deint=-4 pullup ] --vo=vdpau [ deint=-4 pullup ]
--vc [ item=ffmpeg12vdpau item=ffwmv3vdpau item=ffc1vdpau item=ffh264vdpau SUPER ] --vc [ item=ffmpeg12vdpau item=ffwmv3vdpau item=ffc1vdpau item=ffh264vdpau SUPER ]
--vc-pre=ffh264vdpau --vc-pre=ffh264vdpau
--vc-pre [ item=ffc1vdpau ] --vc-pre [ item=ffc1vdpau ]
--vc-pre ffwmv3vdpau --vc-pre ffwmv3vdpau
--vc-pre ffmpeg12vdpau --vc-pre ffmpeg12vdpau
--vo=xv --vo=xv
--lavdopts [ threads=4 ] --lavdopts [ threads=4 ]
--ao=alsa --ao=alsa
--include=/usr/share/doc/mplayer/examples/encoding-example-profiles.conf --include=/usr/share/doc/mplayer/examples/encoding-example-profiles.conf
--profile=enc-to-iphone --profile=enc-to-iphone
--vf-add=ass --vf-add=ass
--ass-force-style="Fontname=sans" --ass-force-style="Fontname=sans"
--ovcopts-add [ tune=animation threads=4 ] --ovcopts-add [ tune=animation threads=4 ]
Config example 2 (basically = [ replaced by mere [):: Config example 2 (basically = [ replaced by mere [)::
include = local.conf include = local.conf
# softvol = yes # softvol = yes
# softvol-max = 1200 # softvol-max = 1200
ass = yes ass = yes
embeddedfonts = yes embeddedfonts = yes
vf-add = screenshot vf-add = screenshot
#vo = vdpau [ #vo = vdpau [
# deint = -4 # deint = -4
# pullup # pullup
#] #]
#vc [ #vc [
# item = ffmpeg12vdpau # item = ffmpeg12vdpau
# item = ffwmv3vdpau # item = ffwmv3vdpau
# item = ffc1vdpau # item = ffc1vdpau
# item = ffh264vdpau # item = ffh264vdpau
# SUPER # SUPER
#] #]
# latter doing the same as # latter doing the same as
#vc-pre = ffh264vdpau #vc-pre = ffh264vdpau
#vc-pre = ffc1vdpau #vc-pre = ffc1vdpau
#vc-pre = ffwmv3vdpau #vc-pre = ffwmv3vdpau
#vc-pre = ffmpeg12vdpau #vc-pre = ffmpeg12vdpau
vo = xv vo = xv
lavdopts [ lavdopts [
threads = 4 threads = 4
] ]
ao = alsa ao = alsa
include = /usr/share/doc/mplayer/examples/encoding-example-profiles.conf include = /usr/share/doc/mplayer/examples/encoding-example-profiles.conf
[enc] [enc]
profile = enc-to-iphone profile = enc-to-iphone
vf-add = ass vf-add = ass
ass-force-style = "Fontname=sans" ass-force-style = "Fontname=sans"
ovcopts-add [ ovcopts-add [
tune = animation tune = animation
threads = 4 threads = 4
] ]
# NOTE: # NOTE:
# general shortcut for list options: # general shortcut for list options:
# #
# listoption = FOO,BAR # listoption = FOO,BAR
# means # means
# listoption [ # listoption [
# item = FOO # item = FOO
# item = BAR # item = BAR
# ] # ]
# #
# listoption-add [ # listoption-add [
# XYZZY # XYZZY
# ] # ]
# means # means
# listoption [ # listoption [
# SUPER # SUPER
# XYZZY # XYZZY
# ] # ]
# #
# listoption-pre [ # listoption-pre [
# XYZZY # XYZZY
# ] # ]
# means # means
# listoption [ # listoption [
# XYZZY # XYZZY
# SUPER # SUPER
# ] # ]