andreanobile/opencv_ffmpeg_streaming
概要
rtmp streaming from opencv with ffmpeg / avcodec using C++ or Python
デザイン・メディア計測したスター増加
- 24時間
- 0
- 7日間
- 0
- 15日間
- 0
- 1か月
- 履歴を収集中
期間ごとの純増数です。期間は重複しており、日別の値ではありません。未計測の値は空欄です。スター数は注目度の指標であり、品質の保証ではありません。
README.md
オリジナルopencv_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
関連プロジェクトを探す
読み込み中…