Giter Club home page Giter Club logo

img2mov's Introduction

img2mov

Requires: OpenCV Development Files

This program should be easy to compile, you will just need GCC,OpenCV development files,Autoconf,Automake

In Debian/Ubuntu use:

$ sudo apt-get install libopencv-dev

To compile use

$ ./autogen.sh && ./configure && make 

Note: if your CPU has more than one core use -j with number of cores will speed up compilation. Example if your CPU has 8 cores

$ make -j8

Or to compile with CMake use:

$ mkdir build && cd build

$ cmake ..

$ make -j8

$ sudo make install

to use program

-v print version info
-i input directory
-r "search with regular expression"
-m "match with regular expression"
-t input file list in text file
-l output_filename search only do not create video instead output list
-o output video file mov
-w frame width
-h frame height
-f frames per second
-s stretch image (if not set will resize to keep aspect ratio)
-n do not sort list of files
-q quiet mode
-I file for images to be extracted
-L file output prefix for file extraction (test1 or ./folder/testl)
-j output as JPEG
-b output as BMP
-p output as PNG 
-E extract frame by index
-H output as HEVC x265
-4 Pipe to ffmpeg as x264
-5 Pipe to ffmpeg as x265
-7 Path to ffmpeg
-c CRF Value for ffmpeg pipe

Program now default outputs video as AVC. To use HEVC use -H unless you pipe to ffmpeg

example use:

$ img2mov -i . -o videofile.mp4 -w 1920 -h 1080 -f 24 
$ img2mov -i ~/Movies -o outputfile.mp4 -w 1280 -h 720 -f 24 -r 'jpg$'
$ img2mov -i ~/Movies -l file_list.txt -r 'jpg$'
$ img2mov -i . -l output_text.txt -r 'jpg$'
$ img2mov -t input_list.txt -f 24 -w 640 -h 360 -o output.mp4
$ img2mov -t input_list.txt -f 24 -w 640 -h 360 -4 -o output.mp4
$ img2mov -t input_list.txt -f 24 -w 640 -h 360 -5 -o output.mp4 -c 26

extract frames: use -I and -L to pass video file and save prefix (location and filename).

$ mkdir frames
$ img2mov -I test.mp4 -L frames/testprefix

optional convert video to jpeg use:

$ img2mov -I test.mp4 -L frames/testprefix -j 

or to output as bmp:

$ img2mov -I test.mp4 -L testprog -b

or to extract a single frame example extract frame 5

$ img2mov -I test.mp4 -L prefix -E 5

img2mov's People

Contributors

lostjared avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

lcsouzamenezes

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.