[MEncoder-users] Bits per block
Moritz Barsnick
barsnick at gmx.net
Fri Jul 13 19:09:53 CEST 2007
On Thu, Jul 12, 2007 at 15:33:51 +0200, Federico Zema wrote:
> > echo $(($((900*1000))/25*$((640*480))/$((16*16))))
> you are missing a couple of double parenthesis:
> echo $(($((900*1000))/$((25*$((640*480))/$((16*16))))))
> 30
Bash may be able to calculate, but it's just not the right tool. :)
'bc' should be available on all Unices:
user at host:~ > echo '((900*1000)/(25*(640*480)/(16*16)))' | bc # caution, no precision!
30
user at host:~ > echo '((900*1000)/(25*(640*480)/(16*16)))' | bc -l
30.00000000000000000000
Sorry for OT,
Moritz
P.S.: I use calc, which is much more capable and usable than bc.
More information about the MEncoder-users
mailing list