Skip to content

Reads a video stream using ffmpeg libraries and converts into OpenCV Mat object

License

Notifications You must be signed in to change notification settings

pijushbarik/videoreader-ffmpeg

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Video Reader Using FFMPEG

Reads a video stream from a input file, http feed, usb cam, ip cam etc. and converts the frame data into a OpenCV Mat object.

How to build

The code can be built with CMake. First create a directory called build and cd to the build folder. Then run cmake .. to create Makefiles.

After run make to compile the program.

How to run

To run the compiled code, from build directory run ./main <input video stream>

Examples:

# Video file
./main /home/pijush/videos/rain.avi

# http stream
# I used Droidcam to feed video stream from my phone
./main http://10.7.4.117:4747/mjpegfeed?640x480

About

Reads a video stream using ffmpeg libraries and converts into OpenCV Mat object

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published