![]() Note on FFmpeg options and preset selection: c:v libx264 -preset veryfast -b:v 6000k -c:a copy -r 30 -vf "scale=1280:720" -f flv rtmp:///app/my-stream-keyNote the addition of -r 30 to drop from 60 fps to 30 fps. c:v copy -c:a copy rtmp://a./live2/my-youtube-stream-key ![]() Let's test it first by remuxing the local stream and re-streaming it to our own server:įfmpeg -hide_banner -i rtmp://localhost:1935/live/stream To broadcast to multiple platforms or channels at once, we can use the "tee" protocol and separate play paths with the | character. Start and stop multiple livestreams simultaneously, all services/channels will receive the same video quality, no reencoding FFmpeg will try to exit cleanly, which may be slow if you need to force-quit FFmpeg, sending Ctrl+C four or more times will cause a force-quit. ![]() You can stop the stream by either closing the CMD/PowerShell window, or by pressing Ctrl+C. Here's an example command to start streaming to a single platform:įfmpeg -i rtmp://localhost:1935/live/stream -c:v copy -c:a copy -f flv rtmp:///app/my-stream-key This increases the total RAM and CPU footprint slightly. Start and stop streams independently of each other per-service, no reencodingįor this, you need to launch a separate FFmpeg instance for each service. Note that I could be using line breaks for more convenient reading in example commands you will need to remove them. To see the full list of ingest servers OBS Studio exposes, read. What this means is that your full play path for broadcasting on Twitch would be rtmp:///app/my-stream-key, where my-stream-key is your full stream key. ![]() Now you need your stream keys and the exact full path for each broadcast you intend to run.įor example, Twitch's ingest server in France is available at rtmp:///app/ and Youtube's primary ingest server is rtmp://a./live2. Quit ffplay by hitting q in its window or Ctrl+C in the command line window where you spawned it. Don't worry about the high stream delay, most of it came from ffplay's buffering, RTMP should introduce about 800 ms of extra latency at worst, 100-200 ms on average. Since I'm watching my own stream, I see a video feedback effect. ![]() Example command:įfplay -i rtmp://localhost:1935/live/stream The one I recommend personally for Windows is MonaServer, as it's relatively painless to set up - just extract and run.Įxtract it, then launch MonaServer.exe from the command line. The general idea is as follows: host a RTMP server on your PC, stream to that server, then use FFmpeg to copy the stream to as many streaming platforms as you need to, with or without reencoding. If you need help for your specific setup, ping Nakajima Megumi#7432 in the obsproject support Discord. Also, some of the more complicated setups might require a good understanding of command-line FFmpeg. But if you need FFmpeg filters, or you need to output at different frame rates, keep reading.īefore you read, please note that this is only useful if a third party service like doesn't suit your needs. UPD : Now that the amazing SoraYuki published their obs-multi-rtmp plugin, you probably don't need this guide anymore, as the plugin is a lot easier to use. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |