hi!

i just wanna share this little script to convert canon generated videos to something that cinelerra can read correctly.
i own a canon powershot a70 and i can record 320x240 and 640x480 videos.
it seems that canon uses an extrange codec/container mixing so cinelerra can't read it.

i found this simple settings to convert those videos to mov:

ffmpeg -i prova.avi -b 5000 -r 25 -ac 2 -ar 44100 prova.mov

so finally i wrote this script:

###########################################################
#!/bin/bash

DIR="$1"
[ "$DIR" == "" ] && DIR=.

for i in $DIR/* ; do
        ffmpeg -i "$i" -b 5000 -r 25 -ac 2 -ar 44100 "${i%.*}".mov
done
###########################################################

you can pass a directory as argument to process all videos in that dir.
obviously you need ffmpeg to use it.

i hope this can help anyone.

if you find a way to improve conversion i'll be very glad to hear it because im not sure these are best settings to work with cinelerra.

see you!

--
========================
     ^ ^
     O O
    (_ _)
muzzol(a)mail.ru
========================
jabber id: muzzol(a)jabber.dk
========================
No atribueixis qualitats humanes als ordinadors.
No els hi agrada.
========================
<echelon spamming>
bomb terrorism bush aznar teletubbies
</echelon spamming>


_______________________________________________
Cinelerra mailing list
[email protected]
https://init.linpro.no/mailman/skolelinux.no/listinfo/cinelerra

Reply via email to