-
Creating an if-then statement when using FFMPEG
Hey Everyone,
I was wondering if there was a way to create an IF-THEN statement using FFMPEG for files in a certain directory. For example, I am using FFMPEG to crunch down file sizes of videos to 50MB or lower. I would ideally like to do the following:
For file sizes in excess of 200MB:
Encode video bit rate at 1500k
Encode audio bit rate at 128kFor file sizes 100-100MB:
Encode video bit rate at 1100k
Encode audio bit rate at 128kFor file sizes less than 100MB:
Encode video bit rate at 555k
Encode audio bit rate at 128kIs this possible? And yes, I have run tests on individual file to ensure there is no real perceptible quality loss when dropping the bit rates that low.
Any help that you could give would be amazing, and greatly appreciated.
Thanks!
– Chris
2012 Mac Pro
2x 2.4GHz Intel Xeon
24GB RAM
1GB ATI Radeon 57702011 Macbook Pro
2.4GHz i7
8GB RAM