mplayer-users
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Original]

Re: [MPlayer-users] batch encode


To: "MPlayer user's list." <mplayer-users@xxxxxxxxxxxx>
Subject: Re: [MPlayer-users] batch encode
From: torsted <torsted@xxxxxxxxx>
Date: Thu, 08 May 2003 10:52:05 +0200
In-reply-to: <200305080236.13692.drwhat@hotmail.com>
References: <200305080236.13692.drwhat@hotmail.com>
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.3) Gecko/20030313

[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]
drwhat wrote:

>[Automatic answer: RTFM (read DOCS, FAQ), also read DOCS/bugreports.html]

howdy all,

I have been trying to setup a bash script to encode a bunch of video's in a
give directory, and havent had much luck :/


my script is:

#!/bin/bash
for filename in *
do mencoder "$filename" -o /tmp/video/"$filename" -ovc lavc -lavcopts
vcodec=mpeg4:vhq:vbitrate=800 -ofps 29.97 -oac mp3lame -lameopts
br-128:q=9:cbr:mode=1

but when I try to execute it, I get the following error:

mencoder-batch.sh: line 6: syntax error: unexpected end of file

any comments/suggetion greatly appreciated


drwhat



*******#######$$$$$$$$@@@@@@@@@@@@@@@@ Linux user #:265953 os:mandake v9.1/winME cpu:amd duron 1.2G mobo:asus a7v133 mem:256M cdr:LG-8080B nic:netgear fa311 graphics:nvidia geforce3 ti200 64m ddr hda:FUJITSU MPA3017AT, 1.7G hdb: WESTERN DIGITAL WD1200BB-00CAA1, 120G sound:ensoniq creative audiopci/es1370 videocapture:Hauppauge WinTV GO 190

Today is Tommorrow, is Yesterday, but neither, is niether
loc:48'02"N 122'49"W

If I understand the syntax right you have to add an
"done" at line 6
cut from man bash:
for name [ in word ] ; do list ; done
The list of words following in is expanded, generating a list of
items. The variable name is set to each element of this list in
turn, and list is executed each time. If the in word is omit-
ted, the for command executes list once for each positional
parameter that is set (see PARAMETERS below). The return status
is the exit status of the last command that executes. If the
expansion of the items following in results in an empty list, no
commands are executed, and the return status is 0.
_______________________________________________
RTFM!!! http://www.MPlayerHQ.hu/DOCS
Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch
http://mplayerhq.hu/mailman/listinfo/mplayer-users





_______________________________________________ RTFM!!! http://www.MPlayerHQ.hu/DOCS Search: http://www.MPlayerHQ.hu/cgi-bin/htsearch http://mplayerhq.hu/mailman/listinfo/mplayer-users


[Prev in Thread] Current Thread [Next in Thread]