Find the answer to your Linux question:
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 ...
  1. #1
    Just 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:

    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
    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:
    HandBrake 0.9.3 (2009012200) - 
    1 CPU detected
    Opening “/media/disk/TV/Lost/01.avi″...
    No title found.
    HandBrake has exited.
    But If I run this cmd from terminal it works:

    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
    It works so I know the avi is ok. I just cant work out why the script isnt doing the same thing.

    Many Thanks for any help

  2. #2
    Linux 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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...