Friday, 15 April 2011

ffmpeg for loop into bash script -


I use a loop on the Mac command line to convert a group of Ai into MP3, The script is so that I can run the script on any given directory.

For example {shelf script name} [directory]

And do it for yourself.

Do I just open a text editor and

  #! / Bin / bash  

, then for my loop and FFMPG arguments, then all of them?

Then make it executable? Is it easy?

@RobertRothry

Thanks a lot for the link It seems that it can be very useful for me. I am not aware of the consensate, so I never know that information. Will be found.

It appears that I can read a group of files on the command line with ffmpeg or text file and ffmpeg can output them all in one format, at least this in MP4 of my case That is what I think looks like does.

"These inputs should be of the same frame size, and some other features have to match." I have a bit worried, do I need to check the frame rates of every movie so that Can they all match?

My final goal would be to run a script on it, output 30 mixed video files, AV, WMV, MKV, MPG etc. and much to MP3, but I think it is very complicated for me

I usually repeat the MKV MPP and quality and size are good and I am happy with the result and speed. However, I tried to recapitulate only one afiorementioned avi and the quality was poor and was pixelated. I searched around and finally found this example;

ffmpeg -i input.avi -c: v libx264 -crf 19 -preset slower-c: an AAC -active experimental-B: 192 -K2 out MP4 (what can be done to improve it? Upwards?)

That's what produces great quality MP4 files, but it takes a long time. So why did I originally ask for help in creating a script which I intend to run in AV folder?

Be the best to run a script on every non-mp3 files and to be able to get good results every time :) But with different codec and frame rate etc., suppose it is ever Will not be possible.

Any other help or input will be received too.

Thanks again

Yes, it is easy for you to read Bash's Man page, that is,

   

and anything about shell programming online.


No comments:

Post a Comment