On Wed, Mar 25, 2009 at 11:41 AM, Duncan Webb <dun...@freevo.org> wrote: > Art S R wrote: >> On Mon, Mar 23, 2009 at 11:00 AM, Duncan Webb <dun...@freevo.org> wrote: >>> Art S R wrote: >>>> On Fri, Mar 20, 2009 at 2:32 PM, Art S R <arty94...@gmail.com> wrote: > >>>> instead of from a string in a shell. >>> Changing the debug to print the list instead of the string will help, it >>> should show something like this: >>> >>> ['/usr/bin/mplayer', '-slave', '-vo', 'xv,sdl,x11,', '-ao', >>> 'oss:/dev/dsp', '-autosync 100', '-nolirc', '-nojoystick', '-autoq', >>> '100', '-screenw', '800', '-screenh', '600', '-fs', '-nocache', 'tv://', >>> '-tv', >>> 'driver=v4l2:freq=55.250:device=/dev/video0:input=0:norm=NTSC:width=640:height=480:outfmt=yuy2' >>> ] >>> >>> Where each argument is a quoted string separated by a comma. My guess is >>> that one of the string is like: 'tv:// -tv' so it is treated as a single >>> argument and so gives a error. >>> >>> Duncan >>> >> >> OK, here's the list: >> >> ['--prio=-20', '/usr/bin/mplayer', '-slave', '-vo', 'xv,sdl,x11,', >> '-ao', 'oss:/dev/dsp', '-autosync', '100', '-nolirc', '-nojoystick', >> '-autoq', '100', '-screenw', '800', '-screenh', '600', '-fs', >> '-nocache', 'tv:// -tv >> driver=v4l2:freq=55.250:device=/dev/video0:input=0:norm=NTSC:width=640:height=480:outfmt=yuy2 >> '] > > Thanks Art for all your errors, will you try the following patch as the > error is now clear; the url is not correctly split up. > > =================================================================== > --- src/tv/plugins/mplayer.py (revision 11364) > +++ src/tv/plugins/mplayer.py (working copy) > @@ -242,9 +242,10 @@ > > #command = self.sort_filter(command) > > - command += ['%(url)s' % args] > + url = '%(url)s' % args > + command += url.split() > > - _debug_(' '.join(command[1:])) > + _debug_('%r' % command) > > self.mode = mode > > Duncan >
Hi Duncan, That did the trick! Thanks for all your help with this problem. Art S R ------------------------------------------------------------------------------ _______________________________________________ Freevo-users mailing list Freevo-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-users