Each line in the animation above is the average colour at ten-second intervals for the selected film.
This project is a webpage that allows you to view that for a variety of films.
http://robson.plus/film-barcodes/
The output for this project is designed for desktop and mobile.
Platform | OS | Browser | Version | Status |
---|---|---|---|---|
Desktop | Windows | Firefox | 85 | Working |
Desktop | Windows | Opera | 74 | Working |
Desktop | Windows | Chrome | 88 | Working |
Desktop | Windows | Edge | 88 | Working |
Mobile | Android | Chrome | 85 | Working |
Last tested on 17th February 2021.
To run this on your computer:
- Download the repository.
- Unzip anywhere.
- Open index.html in your browser.
This is the JSON data with one line per film. Each film has an array of hex colour codes.
This is the webpage to show the barcodes and the JavaScript that generates the barcodes at run time.
These are the stylesheets that format each of the views. The user can switch between these at any time.
This is built using:
- HTML
- CSS
- JavaScript
Follow these steps to make your own version of this project with your own set of films.
The steps are currently untested. If you encounter a problem, just create an issue in this repository and I'll help you out.
You will need Visual Studio and very basic C# knowledge.
- Create the path: c:\temp\films\
- Put all your films in there. The film format can be any of: mp4, mkv, avi, etc...
- Get FFmpeg
- Put the exe/dlls in c:\temp\films\ with your films.
- Download this repository. Unzip it somewhere that is not c:\temp\films\
Repeat this for each film:
- In c:\temp\films\ make a folder that has the name of your film.
- In that new folder, create a file called name-of-your-film.bat
- In the BAT file, put this line: (make sure to edit the filename of your film)
C:\Temp\films\ffmpeg -i C:\Temp\films\filename-of-your-film-including-the-file-extension -r 0.1 frame_%%04d.png
- After that line, put a new line which just has:
pause
- Save the BAT file.
- Run the BAT file.
- Wait.
Multiple BAT files can be run at the same time, which will greatly speed up this step.
- In your downloaded copy of the repository, open JsonCreator\JsonCreator.sln in Visual Studio.
- Navigate to the code of FrmMain.cs
- In public FrmDisplay you will see a few lines starting with new FrameReader. For each of your films, you will need one equivalent line like this.
- For each of your films, create a new line in that format. The first bit of text is the name of the film. The second bit of text is the folder containing the frames for that film.
- Make sure to delete the three example lines (Frankenstein, Midsommar, Oppenheimer).
- Run the code.
- Wait.
- A window will appear saying "Done".
- In the folder for your JsonCreator project, navigate to Bin\Debug
- You will see a data.js file. Copy that file.
- In your downloaded version of the repository, overwrite the data.js file with your newly created data.js file.
- In your downloaded version of the repository, open index.html
- You should see the list of films and the barcode should appear for each film.