I don't really think that this credit is "proper". I didn't write any code myself (since I cannot post it on some site for everyone), so it's not the best idea. you could put me under "ideas contributions". And it would look nicer if you wrote my name, not the nickname: Ilia Denotkine. guess where the nick came from
code looks good. just for me, to make sure: the file you enter would be with or without the path, and if without, is the default root, user folder or the path where you are?
next, the bitrate is in what, bytes or kilobytes per second?
and one last comment: the difference between -framedrop and -hardframedrop should be determined by the bitrate and/or fps, not the ORIGINAL resolution. maybe it's better to write: Code: if $FPS -gt 25 $FRAMEDROP="hardframedrop" REST OF THE CODE HERE (the optimizations you wrote, this "if" thus remains independent of the rest" else $FRAMEDROP="framedrop" REST OF THE CODE (or a simple goto would do the trick here in order not to rewrite) fi looks good?
if $FPS -gt 25 $FRAMEDROP="hardframedrop" REST OF THE CODE HERE (the optimizations you wrote, this "if" thus remains independent of the rest" else $FRAMEDROP="framedrop" REST OF THE CODE (or a simple goto would do the trick here in order not to rewrite) fi