Asg 4: OpenCV video transcode

Assignment

Implement a basic video transcoder using OpenCV.

Suggestions (e.g., for Python implementation)

  1. Simply put, you mainly need three function calls: and then the main loop that read and writes each frame.
  2. The main concern here is output format, size, and sampling rate. The latter is interesting as it allows you to effectively alter the video speed.

Further Suggestions

  1. Just about the only tricky part is not forgetting to close the output file via out.release().

Example Program Input

None. Find a short video that you like.

Example Program Output

None. Ideally an .mp4 video could be made, although that may need to be encoded post-facto by ffmpeg as OpenCV might only output raw video.

Turn in

Turn in all of your code, in one tar.gz archive of your asg##/ directory, including:
  1. A README file containing
    1. Course id--section no
    2. Name
    3. Brief solution description (e.g., program design, description of algorithm, etc., however appropriate).
    4. Lessons learned, identified interesting features of your program
    5. Any special usage instructions
  2. Makefile
  3. source code
  4. short video

How to hand in

See handin notes

Grading scheme