Comments (2)
Hello,
There is an example in the nginx.template.conf file (line 61).
By default, the resolution and quality transmit to the services is the one you broadcast from your PC, but there is an example where the stream is re-encoded on the fly by FFMpeg for Twitch:
# Send the default resolution and quality to Youtube
push rtmp://localhost/youtube/${name};
# Stream re-encoded by FFMpeg for Twitch
exec ffmpeg -i rtmp://localhost/$app/$name -c:v libx264 -preset veryfast -c:a copy
-threads 2
-c:v libx264
-profile:v main
-preset:v veryfast
-level 4.2
-b:v 2000k
-bufsize 2000k
-maxrate 2000k
-s 1280x720 -r 30
-g 120 -keyint_min 60 -x264opts "keyint=120:min-keyint=120:no-scenecut"
-tune zerolatency
-c:a copy
-f flv rtmp://localhost/twitch/${name};
FYI, back in the day, I struggled a lot to know what was wrong with my changes in the Nginx configuration file until I found a command that can tell you if your config is valid or not (here). It could be useful 😄
from multi-streaming-server.
Bless you, Noxalus.
You just saved me after 3 hours of troubleshooting torture. Not only did I not realize that section was only for Twitch, but I also have no idea how I screwed that part up... That command you linked probably would have helped.
I have it working with both Twitch and YouTube now. Thank you!
from multi-streaming-server.
Related Issues (19)
- Problem connecting from OBS to nginx HOT 6
- Private key? HOT 4
- command: vagrant up, fails when trying to connect to VM HOT 1
- Facebook Live? HOT 2
- Guide to install on dedicated server? HOT 14
- Obs restart loop HOT 10
- ./bootstrap.sh fails HOT 11
- not pushing to facebook HOT 2
- Multi Instances HOT 8
- Secure RTMP Url with token?
- Could not connect to server HOT 8
- Nginx Conf Watcher missing HOT 1
- Nginx not starting with "vagrant up" HOT 10
- Restart just one service HOT 1
- Issue with remote connection HOT 6
- nginx.conf HOT 13
- Vagrant twitch HOT 3
- New Error HOT 5
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 multi-streaming-server.