google-code-export / tovid

Automatically exported from code.google.com/p/tovid
1 stars 0 forks source link

Issue with '$' character in filenames #51

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
tovid has an issue while trying to encode files that include the $
character in filenames. 

Basically, the eval command leaves double quotes in the command, which
preserves the special meaning of $

I am currently running tovid version svn-r2475

Relevant output of tovid.log:
MPlayer 1.0rc2-4.3.0 (C) 2000-2007 MPlayer Team
CPU: AMD Turion(tm) 64 X2 Mobile Technology TL-56 (Family: 15, Model: 104,
Stepping: 1)
CPUflags:  MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1
Compiled with runtime CPU detection.
115 audio & 237 video codecs
mplayer: could not connect to socket
mplayer: No such file or directory
Failed to open LIRC support. You will not be able to use your remote control.
Playing /home/jackson/music/Space Ghost C2C/Space Ghost C2C - 23 - 0.01.avi.
File not found: '/home/jackson/music/Space Ghost C2C/Space Ghost C2C - 23 -
0.01.avi'
Failed to open /home/jackson/music/Space Ghost C2C/Space Ghost C2C - 23 -
0.01.avi.
BENCHMARKs: VC:   0.000s VO:   0.000s A:   0.000s Sys:1166.554s = 1166.554s
BENCHMARK%: VC:  0.0000% VO:  0.0000% A:  0.0000% Sys:100.0000% = 100.0000%
Exiting... (End of file)
[tovid]: Encode stopped, killing all sub processes
[tovid]: Keeping temporary files used during encoding in
/home/jackson/music/Space Ghost C2C/Episode23.2
[tovid]: tovid encountered an error during encoding:
[tovid]:     Couldn't create file: "/home/jackson/music/Space Ghost
C2C/Episode23.2/video.m2v"

Original issue reported on code.google.com by j.pei...@gmail.com on 9 May 2008 at 11:03

GoogleCodeExporter commented 9 years ago
Oops, forgot to note, original file was named 'Space Ghost C2c - 23 - 
$20.01.avi'

Original comment by j.pei...@gmail.com on 10 May 2008 at 1:25

GoogleCodeExporter commented 9 years ago
I've just run into this issue myself.

I am using version svn-r2544.

In my case, the filename contained "$$".

Original comment by eat31415...@aim.com on 23 Jul 2008 at 10:13

GoogleCodeExporter commented 9 years ago
Confirmed; filenames with $ or $$, when immediately followed by a number, 
cannot be
encoded by tovid. This is yet another bad side-effect of tovid being written in 
shell
script. I can't think of an easy solution, but the workaround is easy--just 
rename
the file. Hopefully some day, when tovid is fully Python-based, problems like 
this
will go away. Leaving open in case someone wants to submit a patch to the shell 
script.

Original comment by wapcaplet88 on 31 Dec 2009 at 9:06