go-transcode icon indicating copy to clipboard operation
go-transcode copied to clipboard

Adaptiv Bitrates

Open c-o-m-m-a-n-d-e-r opened this issue 2 years ago • 6 comments

Hi, first of all great project ... just did a few quick tests and its working great. in the next days i will get a system with an nvidia p4000 for testing and so i was thinking about how about a profile with adaptiv bitrates?

after reading the specs the p4000 should do round about 22 x h264 or 26 x h265 streams simultan.

c-o-m-m-a-n-d-e-r avatar Mar 13 '23 20:03 c-o-m-m-a-n-d-e-r

Do you mean vod transcoding or live transcoding? Because for live transcoding there is only missing playlist that aggregates them, since all layers are available already.

For VOD there is currently missing GPU support, but it has adaptive streaming.

m1k1o avatar Mar 13 '23 22:03 m1k1o

Hi, thanks for your reply. I'm talking about Live Stream. I build something similear some time ago written in nodejs but dropped all code after server change.

i think this is a good note about ABR (and also DASH) : https://blog.zazu.berlin/internet-programmierung/mpeg-dash-and-hls-adaptive-bitrate-streaming-with-ffmpeg.html

c-o-m-m-a-n-d-e-r avatar Mar 14 '23 06:03 c-o-m-m-a-n-d-e-r

Should be easy to integrate, by adding new profile to profiles/. I already have some ABR profiles in my other project: https://github.com/m1k1o/hls-restream/tree/master/profiles

m1k1o avatar Mar 14 '23 21:03 m1k1o

Hey, i did some teste and i think i created a good (cuda based) profile, BUT .... in my opinion i think this is not as easy as you think cause switching the playlist files breaks the routing ...

i think we have to handle the different resolutions playlist files as well in the routing ...

c-o-m-m-a-n-d-e-r avatar May 17 '23 10:05 c-o-m-m-a-n-d-e-r

If you have something you can share, or open PR, i would take a look.

m1k1o avatar May 17 '23 10:05 m1k1o

i think its to early for an PR, i will try it here. i see the files in the tmp folder ... but i think nothing happens cause there is no routing for the different playlists

wait will attach both files ... Archiv.zip

c-o-m-m-a-n-d-e-r avatar May 17 '23 10:05 c-o-m-m-a-n-d-e-r