5MP Motion Camera JPEG Image and Movie Catcher  1.1.1.1
A CGI interface to capture and display pictures and movies using OpenCV.
opencv_util Class Reference

#include <opencv_util.hpp>

Public Member Functions

bool mjpeg_to_mp4 (string &input_file)
 

Member Function Documentation

◆ mjpeg_to_mp4()

bool opencv_util::mjpeg_to_mp4 ( string &  input_file)

Uses OpenCV to convert camera MJPEG output to MPEG-4 part 10/H.264 streaming video.

Parameters
input_fileThe source file path/name in MJPEG format (from the camera). See note.
Returns
true on successful conversion to MP4 or false otherwise.
Note
cv::VideoCapture does not recognize the input_file as MJPEG unless the filename ends in ".avi".
See also
https://en.wikipedia.org/wiki/Motion_JPEG
https://en.wikipedia.org/wiki/Advanced_Video_Coding
https://docs.opencv.org/3.4/d8/dfe/classcv_1_1VideoCapture.html
https://docs.opencv.org/3.4/dd/d9e/classcv_1_1VideoWriter.html
https://docs.opencv.org/3.4/d4/d15/group__videoio__flags__base.html

The documentation for this class was generated from the following files: