Results 1 to 2 of 2
Hi all
I am trying to make a custom action for thunar to convert avi to mp4 with a click of the button for my PSP. My script is as ...
- 08-23-2009 #1Just Joined!
- Join Date
- Jul 2009
- Posts
- 5
Thunar Custom Action Convert avi to mp4
Hi all
I am trying to make a custom action for thunar to convert avi to mp4 with a click of the button for my PSP. My script is as follows:
This doesnt seem to work though. Im using sed to make it save as same file name with different extension. My log output is this:Code:#!/bin/bash time HandBrakeCLI -i “$1″ -o “$(echo $1 | sed ’s/avi$/mp4/’)” -B 128 -R 48 -E FAAC -e FFmpeg -f MP4 -b 300 -w 368 -l 208 &> /home/voorhees/myscript.log
But If I run this cmd from terminal it works:Code:HandBrake 0.9.3 (2009012200) - 1 CPU detected Opening “/media/disk/TV/Lost/01.avi″... No title found. HandBrake has exited.
It works so I know the avi is ok. I just cant work out why the script isnt doing the same thing.Code:time HandBrakeCLI -i /media/disk/TV/Lost/01.avi -o /media/disk2/l1.mp4 -B 128 -R 48 -E FAAC -e FFmpeg -f MP4 -b 300 -w 368 -l 208
Many Thanks for any help
- 08-31-2009 #2Linux Newbie
- Join Date
- Jan 2008
- Location
- Canada
- Posts
- 109
Hi
Run your script with the --debugger option set and see if the information provided is helpful. Cheers...
Robert


Reply With Quote