This python script can create a barcode given a movie or a video file. Example.
python movie_barcode.py video_filename
The following parameters can be changed in source:
-
barcode_height - Defaults to 300. Change this to set the height of the barcode image manually.
-
output_file - Default behavior is to show the barcode image in a new window. Default output file is named "movie_barcode.jpg" and can be changed.
save_to_output_file
parameter needs to be set toTrue
. -
frame_skip - This parameter sets how many frames should be skipped between each target frame used to create to the barcode image. Default value is 10 and this should be changed to higher value for longer videos. Ideal value is 90 for a 2 hour long video.