Skip to content

Instantly share code, notes, and snippets.

@buckyball
Last active August 29, 2015 14:04
Show Gist options
  • Save buckyball/2f9ee1526c52749557b4 to your computer and use it in GitHub Desktop.
Save buckyball/2f9ee1526c52749557b4 to your computer and use it in GitHub Desktop.
#!/bin/bash
#
# run this within the dir containing the cam images
#
# replace moviename, xx, yy with the values you prefer
# the resulting movie file will be named according the
# parameters you choosed
#
### PARAMETERS:
#
FPS=60
BITRATE=1200
MOVIENAME=combined_x264_${FPS}fps_${BITRATE}br.mkv
#
#
# Start encoding
# alternate with scaling:
# mencoder mf://*.jpg -mf fps=60:type=jpg -ovc x264 -x264encopts bitrate=600:threads=auto -vf scale=320:240,noise=8a:4a -nosound -o haustuer_film_60fps_600br_320x240px.mkv
mencoder mf://*.jpg -mf fps=${FPS}:type=jpg -ovc x264 -x264encopts bitrate=${BITRATE}:threads=4 -o ${MOVIENAME}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment