Scripting help for noob

Ask questions about Arch Linux ARM. Please search before making a new topic.

Scripting help for noob

Postby Socaltom » Fri Mar 16, 2012 9:00 pm

Ok, I'm trying to make a simple script to automate some ffmpeg conversions.
This what I have so far
$this->bbcode_second_pass_code('', '
#!bin/bash

#Script to convert mp4 files to mpg2
#

echo "Movie name please:"
read mname

echo "Converting $mname to tivo compatible file"

/usr/bin/ffmpeg -i /media/hd-sda2/temp/new/$mname.mp4 -vcodec mpeg2video -b 163$


')
I did chmod +x on the file, but when I try to run it I get
-bash: mkmp2: command not found

What am I doing wrong?
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: Scripting help for noob

Postby pepedog » Fri Mar 16, 2012 9:23 pm

./mkmp2
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: Scripting help for noob

Postby xenoxaos » Sat Mar 17, 2012 12:58 pm

Are you actually doing transcoding on a plug?
Arch Linux ARM exists and continues to grow through community support, please donate today!
xenoxaos
Developer
 
Posts: 323
Joined: Thu Jan 06, 2011 1:45 am

Re: Scripting help for noob

Postby Socaltom » Sat Mar 17, 2012 3:07 pm

well, im trying... I just posted a script file that will run ffmpeg as a daemon so i can use they cpu thats running anyhow without leaving the pc on all night to keep the terminal open. if im in a hurry i use the quad core, but if im not, why not use the plug?
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to User Questions

Who is online

Users browsing this forum: No registered users and 9 guests