nginx-rtmp-module
nginx-rtmp-module copied to clipboard
Input dependent adaptive bitrate variants
Hi together,
i have implemented an adaptive hls configuration at the moment. There are three variants which are produced by ffmpeg (2Mbit, 4Mbit, 8Mbit) and everything is working fine.
Now i have to work with 4k streams too and want to extend this with a 30Mbit variant. The configuration shouldnt be a problem but i think that this would be a waste of resources if the rtmp-input has a much lower bitrate for some streams because not all of them will be sent with >=30Mbit and ffmpeg would "upscale" it to 30Mbit even if the input is only 2Mbit right?
Is there any way to prevent this and only generate a 30Mbit variant if the input is >=30Mbit?
Many thanks for the ideas
Alex
i have implemented an adaptive hls configuration at the moment. There are three variants which are produced by ffmpeg (2Mbit, 4Mbit, 8Mbit) and everything is working fine.
can you post an example of how you did it? a thousand thanks