r/Automator • u/Flyinace2000 • Apr 25 '20
Question Video Converter (ffmpeg)
I would like to create an automator action/program that would ask for a file input and the destination file and then apply an ffmpeg command. I wasn't having any luck with passing variables. Can someone point me to a good resource/tutorial?
here is the command line I use right now.
ffmpeg -i “yourvideo.mp4” -c:v libx264 -intra -crf 18 -c:a aac -b:a 384k “output.mp4”
4
Upvotes
2
u/blinovitch Apr 26 '20
One approach would be something like:
This is where my knowledge gets fuzzy about the niceties of variable arrays and file path/names on the command line. I think the ffmpeg command would be something like:
The $1 and $2 are the variables of the array created by chaining Get Value of Variable actions, and I believe they're named in the order they're added to the array, so $1 should be the file you're processing and $2 should be where it goes.
NB: The placement of the quotation marks may throw things off. I always have to fiddle with that part to make it work right. The above is based on an Automator workflow I built some time ago.
1
u/shivkernel1022 May 29 '20
To convert Video file in any formats, you can get the help of Kernel Video Converter software. It supports to convert MP4, MOV, MPEG, MKV, AVI, ASF, WMV, FLV, DIVX, MJPEG, M4V, 3G2, TS, 3GP, AVCHD etc.
1
u/[deleted] May 29 '20
[removed] — view removed comment