Import all YouTube resolutions

Hello,

I have a suggestion to preserve small servers and avoid spending energy unnecessarily.

When we import from YouTube, Peertube should import all resolutions and don’t re-encod them.

Do you think it’s possible ?

Thank you.

I think you could modify the options of youtube_dl and put a loop in a " for cycle" to get all the versions in mp4 from youtube.

But then we should tell peertube engine to consider these videos as the same in different resolutions and rename them … so it is an important change in the operation of the peertube engine. It could cause many bugs.

You will also have an impressive network traffic.

It is likely that re-encoding the only downloaded video, is more efficient, especially if you have a multicore server.

You could also experience a second server that works as external encoders … I have to think about it