Hi All,
I can individually hardburn SRT files into MP4 files just fine with Avidemux (using 2.5.6 since 2.6 doesn't have SRT capability yet), but I'd like to automate the process for the 20 vids and corresponding SRT files. Can anyone point me to a good example script to do so? I've saved a template project off that I can feed into "--run", but where I'm getting stuck is finding a way to feed the SRT file name into the .js script, or how to do it on the command line with "--filters" if that'll be easier. Snippet of the shell script loop:
Problematic portion of the js script:Code:for VIDEO in "${EPISODES[@]}" do /usr/bin/avidemux2_cli --force-alt-h264 --load "$VIDEO" --run SubAdd.js --save /home/Videos/${VIDEO}.mp4 --quit done
Code://** Filters ** app.video.addFilter("subtitle","_fontsize=24","_subname=/home/Videos/somefile.srt","_fontname=/home/dave/Downloads/Arial.ttf","_charset=UTF-8","_baseLine=648","_Y_percent=255","_U_percent=0","_V_percent=0","_selfAdjustable=0","_delay=0","_useBackgroundColor=0","_bg_Y_percent=0","_bg_U_percent=0","_bg_V_percent=0","_blend=1");
Any ideas? I've read the documentation for scripting, searched posts, etc. but haven't seen a good example yet. The few I've seen usually revolved around people throwing their hands up and switching to another app, or their on a Windows box, etc.
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
AviDemux batch script
By jakhazell in forum Newbie / General discussionsReplies: 5Last Post: 21st Aug 2011, 21:16 -
Batch Processing
By keefytee in forum SVCD2DVD & VOB2MPGReplies: 0Last Post: 7th May 2011, 04:41 -
AviDemux - Script help?
By Cralis in forum Newbie / General discussionsReplies: 4Last Post: 7th Jun 2010, 13:00 -
Avidemux, script and MarkerA
By learn in forum EditingReplies: 0Last Post: 17th Feb 2010, 04:29 -
How to Batch Process Using Avidemux? Or Batch Processing H264 .m2ts or .ts?
By forgotpassword in forum Video ConversionReplies: 0Last Post: 14th Apr 2009, 00:00