FFmpeg is an easy to use comand line tool. It enables you to automatically proccess images and videos recorded by multible surveillance systems.
These commands can be executed by a cronjob or a pyhton script handling differend proccesses like video/image transfomation, storage, maintenance and alerting.
Take all images in the current folder "*.jpg" (in alphabetical order) and create a *.mp4 video (H.264 codec).
ffmpeg -f image2 -pattern_type glob -i "*.jpg" -r 25 output.mp4 ffmpeg -f image2 -r 5 -pattern_type glob -i "*.jpg" -r 25 output.mp4
Extracting sound from a video, and save it as Mp3
ffmpeg -i video.mp4 -vn -ar 44100 -ac 2 -ab 192 -f mp3 sound.mp3
Convert .mp4 to animated gif(uncompressed)
ffmpeg -i video_origine.mp4 gif_anime.gif
ffmpeg -i input.mp4 -ab 56 -ar 44100 -b 200 -r 15 -s 320x240 -f flv video_finale.flv
ffmpeg -i input.mp4 video_finale.mpg
ffmpeg -i input.mpg video_finale.mp4
ffmpeg -i input.mp4 -i sound.mp3 -sameq video_sound.avi