AGiLiT
26th April 2019, 18:11
This is my first post to the forums, so please be gentle. ;) I'm hoping to provide a little payback for all the help I've gotten here in understanding processing in general and specifically using AvsPmod, Avisynth+, and FFmpeg. I'm just now learning how to use these tools.
I also have to give a shoutout to Andrew Swan's tutorials at http://macilatthefront.blogspot.com for helping me develop workflows.
So, the issue: I am getting around to processing some old batches of .avi files created from miniDV tapes. They needed resizing because they weren't getting displayed correctly, and needed to be properly deinterlaced. I got to the point of having an avs script using QTGMC. However, since I had split by scene in my original processing, I had up to a couple of hundred files from each tape. I searched the forums and found an old post asking how to batch process with QTGMC, but no answer there.
I next found the batch example macro in AvsPmod. I haven't done any programming since the last century and have never worked with Python, but used the example as a template and modified it into one that will read a directory of files and write a batch of scripts into a chosen directory.
It's pretty simple and I think easily adaptable to use wherever the need is to batch process a bunch of files. Simply take the attached text file, change the extension to .py, and place it in the Macros folder under AvsPmod. (I created a separate subfolder under Macros named 'Personal' and put it there.) Change the lines for the avs script string as needed.
The only other wrinkle is that it may require modification (depending on source input command you need) of an extension template (under options menu) in AvsPmod. For example, for avi, I had to change it to: # FFmpegSource2(*** , atrack=1). See AvsPmod help... Macros for an explanation.
I hope it helps someone else down the road.
I also have to give a shoutout to Andrew Swan's tutorials at http://macilatthefront.blogspot.com for helping me develop workflows.
So, the issue: I am getting around to processing some old batches of .avi files created from miniDV tapes. They needed resizing because they weren't getting displayed correctly, and needed to be properly deinterlaced. I got to the point of having an avs script using QTGMC. However, since I had split by scene in my original processing, I had up to a couple of hundred files from each tape. I searched the forums and found an old post asking how to batch process with QTGMC, but no answer there.
I next found the batch example macro in AvsPmod. I haven't done any programming since the last century and have never worked with Python, but used the example as a template and modified it into one that will read a directory of files and write a batch of scripts into a chosen directory.
It's pretty simple and I think easily adaptable to use wherever the need is to batch process a bunch of files. Simply take the attached text file, change the extension to .py, and place it in the Macros folder under AvsPmod. (I created a separate subfolder under Macros named 'Personal' and put it there.) Change the lines for the avs script string as needed.
The only other wrinkle is that it may require modification (depending on source input command you need) of an extension template (under options menu) in AvsPmod. For example, for avi, I had to change it to: # FFmpegSource2(*** , atrack=1). See AvsPmod help... Macros for an explanation.
I hope it helps someone else down the road.