Git Product home page Git Product logo

duperphew's Introduction

duperphew

execute it with

./dupwephew 1 20 3245

This skips 1 minute and 20 seconds into the video and the infile is /home/martin/Videos/GOPR3245.MP4 and outfile is /home/martin/Videos/3245.mp4

1920x1440 to 2560x1440 stretch of a videoclip using OpenCV.

The stretch is only in horizontal direction and is based on projecting the image on a

The pixel from the 1920 wide original comes by making this calculation where x is the column in the new 2560 wide image:

(18821485518263.0*x^5)/401598620231335912189339500.0

- (132758679464694919.0*x^4)/401598620231335912189339500.0

+ (3402878089027632059.0*x^3)/4897544149162633075479750.0

- (171993524775281717309.0*x^2)/489754414916263307547975.0

+ (2524031576682848584635617.0*x)/4015986202313359121893395.0;

The program is started from the command line and expect a file named c.MP4 (1920x1440 30fps) to exist in the same folder. It will produce a file called outcpp.mp4.

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.