Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
mplayer/vlc error opening avi file with space in the name
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
neoairus
n00b
n00b


Joined: 09 Feb 2006
Posts: 12

PostPosted: Fri Oct 12, 2007 9:02 am    Post subject: mplayer/vlc error opening avi file with space in the name Reply with quote

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
View user's profile Send private message
Sadako
Advocate
Advocate


Joined: 05 Aug 2004
Posts: 3792
Location: sleeping in the bathtub

PostPosted: Fri Oct 12, 2007 1:44 pm    Post subject: Reply with quote

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
View user's profile Send private message
soka
Tux's lil' helper
Tux's lil' helper


Joined: 27 Dec 2006
Posts: 99
Location: Argentina

PostPosted: Fri Oct 12, 2007 11:25 pm    Post subject: Reply with quote

Open the fille /usr/share/applications/mplayer.desktop in a text editor and make sure the Exec line reads
Code:
Exec=gmplayer %f
Back to top
View user's profile Send private message
neoairus
n00b
n00b


Joined: 09 Feb 2006
Posts: 12

PostPosted: Sat Oct 13, 2007 8:22 am    Post subject: Reply with quote

soka wrote:
Open the fille /usr/share/applications/mplayer.desktop in a text editor and make sure the Exec line reads
Code:
Exec=gmplayer %f


I have opne the fille /usr/share/applications/mplayer.desktop and i have found the line
Code:
Exec=gmplayer %U
. Then i have canged from %U to %f and now all it's ok... mplayer works fine. Thanks for trick :)
Back to top
View user's profile Send private message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Fri Mar 21, 2008 6:08 pm    Post subject: Reply with quote

Great tip, worked like a charm for me, thank you soka!
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
yngwin
Retired Dev
Retired Dev


Joined: 19 Dec 2002
Posts: 4572
Location: Suzhou, China

PostPosted: Sat Mar 22, 2008 12:31 pm    Post subject: Reply with quote

See https://bugs.gentoo.org/show_bug.cgi?id=210350
_________________
"Those who deny freedom to others deserve it not for themselves." - Abraham Lincoln
Free Culture | Defective by Design | EFF
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum