# Fix Video Resolution Lambda

This lambda is meant to fix video assets that fail Orchard validation due to their resolution.
The validation rejects any video with a non-standard resolution and black bars do not count as part of the video resolution.

This lambda adds black bars to videos that need it to turn them into the closest standard resolution.
It also adds a few near black frames to the start of the video as the validation does not count the black bars as part of the video resolution.
This tricks the validation into reading an accepted resolution without changing the content of the video.

To run locally use "make run_locally". Configure your input file in the Makefile command.
Make sure your output files has the same extension as the input file.
For an MP4 file your output file should be "output.mp4" and for a MOV file it should be "output.mov".
Processing the video file takes some time, 1 hour for a 7 GB ProRes file for example.
