View previous topic :: View next topic |
Author |
Message |
neoairus n00b
Joined: 09 Feb 2006 Posts: 12
|
Posted: Fri Oct 12, 2007 9:02 am Post subject: mplayer/vlc error opening avi file with space in the name |
|
|
I'm encountering problem with mplayer and vlc when i try to open from nautilus an avi file which have blank space in the name...
from .xsession-errors i can read:
Code: | MPlayer 1.0rc2-4.1.2 (C) 2000-2007 MPlayer Team
CPU: AMD Athlon(tm) 64 X2 Dual Core Processor 3800+ (Family: 15, Model: 43, Stepping: 1)
CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compilato per CPU x86 con estensioni: MMX MMX2 3DNow 3DNowEx SSE SSE2
Riproduco file:///mnt/down/amule/Incoming/film/Frankstein%20junior.avi.
File non trovato: '/mnt/down/amule/Incoming/film/Frankstein%20junior.avi'
Apertura di 'file:///mnt/down/amule/Incoming/film/Frankstein%20junior.avi' fallita.
|
When i try to use mplayer from terminal i not incurred in any errors. Also when i use Movie Player(Totem) the file is correctly open and there isn't any problem.
Anyone can help me??
Thanks, bye |
|
Back to top |
|
|
Sadako Advocate
Joined: 05 Aug 2004 Posts: 3792 Location: sleeping in the bathtub
|
Posted: Fri Oct 12, 2007 1:44 pm Post subject: |
|
|
I actually get the same thing with gthumb, which is very much a gnome rather than a gtk+ application.
Opening files with spaces in them in feh from gthumb gives the same error, but opening them in the gimp is fine.
As a workaround a threw the following wrapper "scriplet" in /usr/local/bin, and I have gthumb using that instead of calling feh directly; Code: | #! /bin/bash
/usr/bin/feh "`echo "$*" | sed s/"file:\/\/"// | sed s/%20/' '/g`"
exit |
It's ugly as hell, but it works, replace feh with mplayer and save as /usr/local/bin/nautilus-mplayer or something like that, and try having nautilus use that instead.
I don't understand why the hell gnome insists on using the web URL escape sequences when not all unix apps support them, and there are far more standard alternatives...
Maybe it's something in our setup, as I doubt you are the only person using mplayer to open files with spaces in the filenames from nautilus. _________________ "You have to invite me in" |
|
Back to top |
|
|
soka Tux's lil' helper
Joined: 27 Dec 2006 Posts: 99 Location: Argentina
|
Posted: Fri Oct 12, 2007 11:25 pm Post subject: |
|
|
Open the fille /usr/share/applications/mplayer.desktop in a text editor and make sure the Exec line reads |
|
Back to top |
|
|
neoairus n00b
Joined: 09 Feb 2006 Posts: 12
|
Posted: Sat Oct 13, 2007 8:22 am Post subject: |
|
|
soka wrote: | Open the fille /usr/share/applications/mplayer.desktop in a text editor and make sure the Exec line reads |
I have opne the fille /usr/share/applications/mplayer.desktop and i have found the line . Then i have canged from %U to %f and now all it's ok... mplayer works fine. Thanks for trick |
|
Back to top |
|
|
gr0x0rd Guru
Joined: 12 Aug 2006 Posts: 311
|
Posted: Fri Mar 21, 2008 6:08 pm Post subject: |
|
|
Great tip, worked like a charm for me, thank you soka! _________________ ~g
emerge -FML... |
|
Back to top |
|
|
yngwin Retired Dev
Joined: 19 Dec 2002 Posts: 4572 Location: Suzhou, China
|
|
Back to top |
|
|
|