andreanobile/opencv_ffmpeg_streaming
소개
rtmp streaming from opencv with ffmpeg / avcodec using C++ or Python
디자인 및 미디어측정된 스타 증가
- in 24h
- 0
- in 7 days
- 0
- in 15 days
- 0
- in 1 month
- 기록 수집 중
서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.
README.md
Originalopencv_ffmpeg_streaming
rtmp streaming from opencv with ffmpeg / avcodec
Using ffmpeg libraries from C/C++ is tricky and I could not easily find easy examples without memory leaks or bad crashes that used OpenCV as input or for image processing. This is an example for using the ffmpeg and opencv libraries from C++ for rtmp streaming. The input is from the OpenCV VideoCapture class. To build Release:
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Release ..
$ make
To build Debug:
$ mkdir build
$ cd build
$ cmake -DCMAKE_BUILD_TYPE=Debug ..
$ make
In main.cpp the stream url is defined as "rtmp://localhost/live/mystream" and must be adapted to your rtmp server settings
Run the program on a video:
$ ./build/simple_opencv_streaming <video_file>
From camera
$ ./build/simple_opencv_streaming 0
To convert the rtmp stream to HLS and publish the stream to a browser I have written a tutorial on a blog post
관련 프로젝트 살펴보기
불러오는 중…