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>  
> 
> but
> 
> > [EMAIL PROTECTED]:~/Video/GreenWing> mplayer -identify -frames 0 -vo null 
> > -ao null GreenWing.ts 2>/dev/null | grep =[1-9] | more
> > ID_AUDIO_ID=562
> > ID_AUDIO_ID=562
> > ID_AUDIO_ID=562
> > ID_AUDIO_ID=562
> ...
> > ID_VIDEO_ID=560
> > ID_AUDIO_ID=561
> > VIDEO MPEG2(pid=560) AUDIO MPA(pid=561) NO SUBS (yet)!  PROGRAM N. 8384
> > ID_VIDEO_ID=560
> > ID_AUDIO_ID=561
> > ID_AUDIO_ID=562
> > ID_VIDEO_BITRATE=10000000
> > ID_VIDEO_WIDTH=704
> > ID_VIDEO_HEIGHT=576
> > ID_VIDEO_FPS=25.000
> > ID_AUDIO_FORMAT=80
> > ID_LENGTH=2412.93
> > ID_AUDIO_BITRATE=192000
> > ID_AUDIO_RATE=48000
> > ID_AUDIO_NCH=2
> > [EMAIL PROTECTED]:~/Video/GreenWing> 
> 
> Please can you point me in the right direction? Apologies for apparent
> stupidity :-(


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)?

Reply via email to