Comments (3)
Nevermind! This is actually a problem with OvenMediaEngine (https://github.com/AirenSoft/OvenMediaEngine), which was the receiving rtmp sever. The example above is solved when a different RTMP server is used.
from opencv_ffmpeg_streaming.
I didn't get an error from cmake,also no error from make.
The examples given in the project also work.But I don't konw hwot to use this by python. Can you teach me how to use this by python?
from opencv_ffmpeg_streaming.
This is a very helpful implementation, thank you very much. I've gotten it to work well from Opencv to RTMP via Python using one stream.
My issue is when I try to open a second something like this:
sc_clean = StreamerConfig() sc_clean.source_width = frame.shape[1] sc_clean.source_height = frame.shape[0] sc_clean.stream_width = frame.shape[1] sc_clean.stream_height = frame.shape[0] sc_clean.stream_fps = 25 sc_clean.stream_bitrate = 3500000 sc_clean.stream_profile = 'main' #'high444' # 'main' sc_clean.stream_server = 'rtmp://localhost:1935/app/clean' streamer_clean = Streamer() streamer_clean.init(sc_clean) streamer_clean.enable_av_debug_log() sc_cooked = StreamerConfig() sc_cooked.source_width = frame.shape[1] sc_cooked.source_height = frame.shape[0] sc_cooked.stream_width = frame.shape[1] sc_cooked.stream_height = frame.shape[0] sc_cooked.stream_fps = 25 sc_cooked.stream_bitrate = 3500000 sc_cooked.stream_profile = 'main' #'high444' # 'main' sc_cooked.stream_server = 'rtmp://localhost:1935/app/cooked' streamer_cooked = Streamer() streamer_cooked.init(sc_cooked) streamer_cooked.enable_av_debug_log() while (True): clean_frame = frame.copy() frame = some_process(frame) #some processing is done on the frame in opencv now = time.time() duration = now - prev streamer_clean.stream_frame_with_duration(frame, int(duration*1000)) streamer_cooked.stream_frame_with_duration(clean_frame, int(duration*1000)) prev = now
Running the above will still run, but the first RTMP stream itself will seem garbled like if it were combining and streaming a mix of both streamer data into one and the second RTMP stream won't work at all.
Is there anyway that I can open up more than one Streaming object in python?
I didn't get an error from cmake,also no error from make.
The examples given in the project also work.But I don't konw hwot to use this by python. Can you teach me how to use this by python?
from opencv_ffmpeg_streaming.
Related Issues (15)
- Cannot get an image on nginx-rtmp (or any streaming services) HOT 1
- bad output display HOT 1
- 如何通过python进行推流开发
- how to use this by python HOT 3
- No default whitelist set
- [rtmp @ 0xfb5cd30] Cannot read RTMP handshake response
- how to push rtsp streaming??
- error: invalid conversion from ‘const AVCodec*’ to ‘AVCodec*’
- failed to open stream output context, stream will not work? HOT 1
- undefined reference when compile HOT 4
- I use video.js play the stream ,it not worked,but vlc worked ,how to fix it ? HOT 1
- Stream Opencv frames to rtmp in python HOT 4
- failed to open stream context HOT 1
- Steps for FFMPEG and OPENVC2 requirements HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opencv_ffmpeg_streaming.