Giter Site home page Giter Site logo

cuda-video-project's Introduction

CUDA Video Processing Project

This project utilizes parallel computing to improve the efficiency of post-processing video footage.

The code currently supports post-processing in up to 3 dimensions, using convolution filters.

###How To Process A Video:

  1. Find a video you want to process, and put it in ./input_videos

  2. Download and install FFmpeg

  3. Use FFmpeg to break the video into frames. This code breaks off the first 20 frames of video sample_video:

ffmpeg -i input_videos/sample_video.mp4 -vframes 20 infiles/tmp%03d.ppm
  1. Choose an operation, compile and run it
  • Serial (slower execution)
    • 1D Convolution (Black & White Recoloring): make serial-bw, then ./serial-bw
    • 2D Convolution: make serial-convolution, then ./serial-convolution
    • 3D Convolution: cd 3Dconvolution, make serial, then ./ser_3D_conv
  • Parallel (faster execution, requires CUDA and a valid GPU)
    • 1D Convolution (Black & White Recoloring): make bandw, then ./bandw
    • 2D Convolution: make convolution , then ./convolution
    • 3D Convolution: cd 3Dconvolution, make parallel, then ./par_3D_conv

Where stride_len is an optional parameter that can be used to control the number of frames stored in memory at one time. The default value is 20.

  1. Use FFmpeg to combine the output frames into a video:
ffmpeg -framerate 24 -i outfiles/tmp%03d.ppm -c:v libx264 -r 30 -pix_fmt yuv420p output_video.mp4

cuda-video-project's People

Contributors

alexdalton avatar bojdell avatar cart avatar sidsethupathi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.