Comments (4)
Could you gives the video source to test? and the steps to reproduce this issue?
from srs.
sure
forest.mp4
then
fmpeg -d -stream_loop -1 -re -i ./forest.mp4 -c copy -f flv -y rtmp:/{your_ip}/live/test </dev/null
from srs.
ffprobe -show_frames forest.mp4 | grep -i 'pict_type'
There are B frames in this video, while webrtc don't support B frame, which will be drop by default at SRS.
That's the reason of bad quality.
How to workaround
ffmpeg -d -stream_loop -1 -re -i ./forest.mp4 -vcodec h264 -profile:v baseline -f flv -y rtmp:/{your_ip}/live/test </dev/null
or
ffmpeg -d -stream_loop -1 -re -i ./forest.mp4 -vcodec h264 -profile:v high -bf 0 -f flv -y rtmp:/{your_ip}/live/test </dev/null
Both of above publish cmd will resolve your problem.
About the GPU Acceleration question
No, SRS will not do any decode or encode, but just demux the video format, get the nalu elements inside the video frames, for the RTMP which is flv tags, then remux the nalu to the RTP packet. In short, the most common job of a live stream server is just do video format demux -> remux, or just re-streaming.
For the OvenMediaEngine, I didn't read it's source code yet, but he process video stream in this way: demux -> decode -> encode -> remux. Which means he did video decode->encode which is cpu | gpu intense job, and this kinds of server will be quite different than general live media server.
from srs.
Well thks for the clarification.
That was not really intensive on a RTX Titan GPU though (around 1% usage if I remember well..)
I will go back to SRS if I see that OvenMediaEngine is consuming too much resources (not the case right now 😉)
from srs.
Related Issues (20)
- FFmepg: Transcode will result in endless ffmpeg process HOT 1
- High latency on raspberry pi 5 HOT 1
- WebRTC: Occasionally issue the SSRC is not found. HOT 2
- GB28181: Large latency when playing WebRTC. HOT 3
- it can generate and audio url like .mp3 or other HOT 1
- DVR: The mp4 file from DVR for camera can't play on window, MacOS, iOS HOT 5
- WHEP: The 'Access-Control-Allow-Origin' header is missing for CORS HOT 2
- FFmpeg concurrent streaming. HOT 1
- SRT:How to support Origin Cluster HOT 2
- WebRTC: Support G711A audio codec HOT 6
- RTC2RTMP: No sound in the audio for the first six seconds HOT 4
- SRS only supports H.264 Baseline profile in WebRTC, not High profile HOT 1
- Forward and Cluster.
- RTMP2RTC: Transcode AAC to Opus failed using GoPro Hero12 Black. HOT 8
- How deploy srs edge cluster with docker swarm mode
- SrsLiveSource cleanup is different to SrsSrtSource HOT 3
- Source: The memory leak seems still exist HOT 4
- HLS Multiple Connections from same IP
- no pushing stream scenario, http-flv fails to pull stream for the second time
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 srs.