How do I batch with vid.stab with both steps below? The first step analyzes and creates a .trf file with vector data, the second step applies the vector data and creates a stabilized video.
When I enter the parameters in ffmpeg Batch, it creates a new MP4 file that is not stabilized and no .trf file.
For step 1, I would also like to create a file dependent name for each .trf file, and automatically name the output file.
Step 1 parameters tried but failed (this automatically creates "transform.trf" vector data in CLI):
-vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10 -f null -
Step 2 Parameters intended (not attempted since no .trf vector file was created)
-vf vidstabtransform=input=transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 FILE0048_Stabilized.MP4
The above commands work flawlessly in CLI as:
ffmpeg -i FILE0048.MP4 -vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10 -f null -
Hi, I think the issue is that that filter tries to write transforms.trf on the same folder as the application. If you run it as admin it will be able to do it.
The problem is that the filter does not seem to accept properly other paths for such middle file, I did some testing uncessfully, so as fas as I know this could not be automated with this application.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How do I batch with vid.stab with both steps below? The first step analyzes and creates a .trf file with vector data, the second step applies the vector data and creates a stabilized video.
When I enter the parameters in ffmpeg Batch, it creates a new MP4 file that is not stabilized and no .trf file.
For step 1, I would also like to create a file dependent name for each .trf file, and automatically name the output file.
Step 1 parameters tried but failed (this automatically creates "transform.trf" vector data in CLI):
-vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10 -f null -
Step 2 Parameters intended (not attempted since no .trf vector file was created)
-vf vidstabtransform=input=transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 FILE0048_Stabilized.MP4
The above commands work flawlessly in CLI as:
ffmpeg -i FILE0048.MP4 -vf vidstabdetect=stepsize=32:shakiness=10:accuracy=10 -f null -
ffmpeg -i FILE0048.MP4 -vf vidstabtransform=input=transforms.trf:zoom=0:smoothing=10,unsharp=5:5:0.8:3:3:0.4 FILE0048_Stabilized.MP4
Any help is greatly appreciated!
Brad
Hi, I think the issue is that that filter tries to write transforms.trf on the same folder as the application. If you run it as admin it will be able to do it.
https://gist.github.com/maxogden/43219d6dcb9006042849
The problem is that the filter does not seem to accept properly other paths for such middle file, I did some testing uncessfully, so as fas as I know this could not be automated with this application.
interesting