Created
December 13, 2017 16:54
-
-
Save maxsvetlik/529fd965956be7d05c1587285fc99cb2 to your computer and use it in GitHub Desktop.
Create a video file from an image stream using avconv. The JPG images must be ordered in a standard format filename in order for correct results.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#This script merges a photo sequence into a video file | |
#The filenames for the images must be standardized which | |
#can be accomplished by using the 'rename_images.sh' script | |
# | |
#Obviously avconv must be installed. It is part of the libav-tools pkg | |
avconv -framerate 30 -f image2 -i %04d.JPG -b 65536k output_test.mov | |
#Now combine the audio | |
#Replace NNNNN.wav with the desired audio file | |
avconv -i output_test.mov -i NNNNNNN.wav -c copy audio_and_video.mov |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment