Phil Ehrens wrote: > Richard (MQ) wrote: >> Phil Ehrens wrote: >> >>> Looks like maybe you need to give it some hints: >>> >>> http://www.transcoding.org/cgi-bin/transcode?MplayerProbe >> >> Sorry, I think I must be getting a bit dim. I saved 2 files from link, >> named as "mplayerprobe.sh" & "fortyeightk.sh" and chmod +x both. Then: >> >>> [EMAIL PROTECTED]:~/Video/GreenWing> sh mplayerprobe.sh GreenWing.ts >>> mplayerprobe.sh: eval: line 9544: syntax error near unexpected token `(' >>> mplayerprobe.sh: eval: line 9544: `VIDEO MPEG2(pid=560) AUDIO MPA(pid=561) >>> NO SUBS (yet)! PROGRAM N. 8384' >>> mplayerprobe.sh: line 25: [: =: unary operator expected >>> mplayerprobe.sh: line 26: [: =: unary operator expected >>> mplayerprobe.sh: line 27: [: =: unary operator expected >>> (standard_in) 6: parse error >>> -g x --import_asr -f ,0 >>> [EMAIL PROTECTED]:~/Video/GreenWing>
> Woah. Strange. I just cut and pasted mplayerprobe.sh > straight from the webpage and ran it: > > [EMAIL PROTECTED]:/hdb4-90g$ vim -N mplayerprobe > [EMAIL PROTECTED]:/hdb4-90g$ sh mplayerprobe One_Piece_220.mp4 > -g 704x400 --import_asr 3 -f 23.976,1 > > It all looks sensible and capable of being backticked > into a transcode invocation. Strangely, your errors are > very similar to those burped out by zsh: > > [EMAIL PROTECTED]:/hdb4-90g$ zsh mplayerprobe One_Piece_220.mp4 > mplayerprobe:1: [1-9] not found > mplayerprobe:25: parse error: condition expected: = > mplayerprobe:26: parse error: condition expected: = > mplayerprobe:27: parse error: condition expected: = > (standard_in) 6: parse error > -g x --import_asr -f ,0 > > Could you have some bad shell linking/aliasing? Maybe, > HORRORS, bc isn't installed (wild guessing)? Nothing obvious to me: [EMAIL PROTECTED]:~/Video/GreenWing> bc --version bc 1.06 Copyright 1991-1994, 1997, 1998, 2000 Free Software Foundation, Inc. [EMAIL PROTECTED]:~/Video/GreenWing> sh --version GNU bash, version 3.1.17(1)-release (i586-suse-linux-gnu) Copyright (C) 2005 Free Software Foundation, Inc. [EMAIL PROTECTED]:~/Video/GreenWing> mplayer -v MPlayer 1.0rc1-4.1.2 (C) 2000-2006 MPlayer Team CPU: AMD Athlon(tm) 64 Processor 3200+ (Family: 15, Model: 47, Stepping: 2) CPUflags: MMX: 1 MMX2: 1 3DNow: 1 3DNow2: 1 SSE: 1 SSE2: 1 Compiled for x86 CPU with extensions: MMX MMX2 3DNow 3DNowEx SSE SSE2 System is pretty much standard OpenSuSE 10.2 (kernel 2.6.18.8) running on AMD 3200. I have the same OS running on my laptop, with a different AMD processor (same mplayer etc.), behaviour is exactly the same. Might be worth a note that mplayer plays the input file just fine, with grumbles about codecs but no error messages. I have an alpha build of 10.3 running on another machine, will try it on that. Also have (I think) a machine with a 2.4 kernel, not sure what state it's in but will give it a try. Maybe take the opportunity to put a fresh install of OpenSuSE 10.2 on it (I'm not so familiar with other distros, but could try one - what are you using, Phil?) Does anyone else on this list have strange results running this script? Regards, -- Richard (MQ)
