English 中文(简体)
Can Anyone help with Scripting for Autohotkey to work with Handbrake?
原标题:

I m trying to make an autohotkey script so I can drag and drop movie files into autohotkey for it to put it into handbrake s queue to be converted into iphone format.

I just started with autohotkey and have no idea on how to record a macro like that. Can anyone point me the right way or maybe does anyone have a script like that to share?

最佳回答

Handbrake comes with a Command Line program (default path = C:Program FilesHandBrakeHandBrakeCLI.exe)

That would probably be your best bet versus trying to make a macro to interact with the GUI version of Handbrake. If you only wanted to do one at a time a simple DOS batch script would allow you to drag and drop files:

1) Open Notepad

2) Paste the following text:

"C:Program FilesHandBrakeHandBrakeCLI.exe" -i %1 -o %1.mp4 -e x264 -b 2000 -B 128 -X 480

3) Save the file as HandbrakeCLI.bat (or anything else you want as long as it ends in .bat)

4) Place that where the video you want to convert is located and drag the video file onto the .bat file. A DOS window should pop up and start converting the video.

问题回答

暂无回答




相关问题
What does it mean "to write a web service"?

I just asked a question about whether it was possible to write a web-page-checking code and run it from free web server, and one supporter answered and said that it was possible only if I run "a web ...

How can I use exit codes to run shell scripts sequentially?

Since cruise control is full of bugs that have wasted my entire week, I have decided the existing shell scripts I have are simpler and thus better. Here is what I have so far svn update /var/www/...

Dynamically building a command in bash

I am construcing a command in bash dynamically. This works fine: COMMAND="java myclass" ${COMMAND} Now I want to dynamically construct a command that redirectes the output: LOG=">> myfile.log ...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I ...

Ivy, ant and start scripts

I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, ...

热门标签