jbkda.blogg.se

Ffmpeg linux convert folder
Ffmpeg linux convert folder













ffmpeg linux convert folder

I’m going to assume you have FFmpeg set up (if not, here’s some info on how to install it) and know how to run it on terminal.

ffmpeg linux convert folder

But when things start to get more intricate it can be painful to work without the immediate feedback a video editing application gives you - for example when you’re trying making timing changes to sync up to your audio track, or zooming/panning.įirst step - a quick and dirty time-lapse But once I discovered how powerful the open-source command-line program FFmpeg is, I decided to give it a try.īefore I dive in, I should say that putting together a video on the command-line is quick, and efficient and gives you a lot of fine-grained control when you’re doing simple things (a straight time-lapse, joining together videos with simple transitions, cropping, adding an audio track in). Free software was limited and didn’t have much control, and I’m not quite ready to invest money into more professional software yet. Trying to find the right application to put the video together quickly got frustrating.

ffmpeg linux convert folder

I bought a cheap, second hand GoPro Hero 3+ Silver and a portable tripod to get started, and took them along on a trip to Manning Park. So it seemed like a good opportunity to experiment with time-lapse myself. I’ve been going camping a lot this summer, and I’m discovering just how spectacular British Columbia is. The ffmpeg code that I'm using does work (I can encode individual file) but I haven't figured out how to batch encode the entire directory.Time-lapse has fascinated me since I watched Terje Sørgjerd’s videos many, many years ago. It's giving me an "invalid argument" error message when I run it - probably because I haven't specified the names correctly(?) I've used the suggested code from this question ( ) But, I don't know how to capture the original file names (with spaces and punctuation) and use that as the new file name in the new directory.įfmpeg -i “$i” -vf "scale='if(gt(a*sar,16/9),640,-1)':'if(gt(a*sar,16/9),-1,360)',pad=640:360:(ow-iw)/2:(oh-ih)/2,setsar=1" -vcodec libx264 -b:v 1600k -bufsize:v 1600k -r 30000/1001 “encoded/$name.mp4” I'm trying to batch encode 45 video files, and copy the encoded files into an existing subfolder called "encode"















Ffmpeg linux convert folder