[MPlayer-users] Unable to use colon in option value

78 views
Skip to first unread message

Pavel Stánek

unread,
Jan 17, 2009, 3:55:41 PM1/17/09
to mplaye...@mplayerhq.hu
If I use colon in option value, I get error in parsing arguments.
I use jpeg output with option "outdir", value of a "outdir" option is "c:\tmp", but mplayer parse value as another option "\".

Repro (OS: windows):
mplayer.exe -ss 900 -frames 1 -vo jpeg:outdir=c:\tmp -vf scale=320:200 -nosound a.avi


MPlayer 1.0rc2-4.2.1 (C) 2000-2007 MPlayer Team
CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-60 (Family: 15, Model: 104, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
Warning unknown option cp at line 32
c:/arial.ttf doesn't look like a bitmap font description, ignoring.
Cannot load bitmap font: c:/arial.ttf
c:/arial.ttf doesn't look like a bitmap font description, ignoring.

Playing a.avi.
AVI file format detected.
[aviheader] Video stream found, -vid 0
[aviheader] Audio stream found, -aid 1
VIDEO: [DIV3] 576x432 24bpp 29.970 fps 2011.8 kbps (245.6 kbyte/s)
Clip info:
Software: Nandub v1.0rc2
jpeg: Parsing suboptions.
Could not parse arguments at the position indicated below:
outdir=c:\tmp
^
Error opening/initializing the selected video_out (-vo) device.
_______________________________________________
MPlayer-users mailing list
MPlaye...@mplayerhq.hu
https://lists.mplayerhq.hu/mailman/listinfo/mplayer-users

Reimar Döffinger

unread,
Jan 17, 2009, 7:39:58 PM1/17/09
to MPlayer usage questions, feature requests, bug reports
On Sat, Jan 17, 2009 at 09:55:41PM +0100, Pavel Stánek wrote:
> If I use colon in option value, I get error in parsing arguments.
> I use jpeg output with option "outdir", value of a "outdir" option is "c:\tmp", but mplayer parse value as another option "\".
>
> Repro (OS: windows):
> mplayer.exe -ss 900 -frames 1 -vo jpeg:outdir=c:\tmp -vf scale=320:200 -nosound a.avi

Just quote it:
-vo jpeg:outdir="c:\tmp"
Make sure you quote it in a way so that your shell/command line will not
remove the " but passes them to MPlayer.

Pavel Stánek

unread,
Jan 18, 2009, 3:50:42 AM1/18/09
to mplaye...@mplayerhq.hu
Thanks.
Finally I must use tripple quote cahracter (windows shell removes first and last character and pass to mplayer only middle quote character).

This works fine:

mplayer.exe -ss 900 -frames 1 -vo jpeg:outdir="""c:\tmp""" -vf scale=320:200 -nosound a.avi

Krzysztof Duchnowski

unread,
Jan 18, 2009, 4:36:27 AM1/18/09
to MPlayer usage questions, feature requests, bug reports
Pavel Stánek pisze:

> Finally I must use tripple quote cahracter (windows shell removes first and last character and pass to mplayer only middle quote character).

> This works fine:

> mplayer.exe -ss 900 -frames 1 -vo jpeg:outdir="""c:\tmp""" -vf scale=320:200 -nosound a.avi


You could use a single quote as well:


mplayer.exe -ss 900 -frames 1 -vo jpeg:outdir="'c:\tmp'" -vf
scale=320:200 -nosound a.avi

For MPlayer it's as good as double quote.


--
Krzysztof 'DK75' Duchnowski
GetFirefox - http://www.mozilla.com/firefox/
Konfiguracja UTF-8 dla czytników - http://evil.pl/pip/utf/

Reply all
Reply to author
Forward
0 new messages