MrBrax / LiveStreamDVR

An automatic livestream recorder
MIT License
350 stars 26 forks source link

[Feature] Add Intel QSV H265 #304

Open Serph91P opened 2 years ago

Serph91P commented 2 years ago

You already have the Reencode integrated and tried to use nvidia. Would there be a possiblity to add Intel QSV H265? https://trac.ffmpeg.org/wiki/Encode/H.265

MrBrax commented 2 years ago

ffmpeg needs to be built with the --enable-gpl --enable-libx265 configuration flags

this is always the larger problem, i'm guessing it needs a lot of libraries to build, i guess this one was just for h265 though

i tried to combine the nvidia container and mine but it didn't work

Serph91P commented 2 years ago

ffmpeg needs to be built with the --enable-gpl --enable-libx265 configuration flags

this is always the larger problem, i'm guessing it needs a lot of libraries to build, i guess this one was just for h265 though

i tried to combine the nvidia container and mine but it didn't work

Dunno if I am wrong but this seems pretty straight forward for me. https://ffmpeg.org/ffmpeg-all.html#Intel-QuickSync-Video

MrBrax commented 2 years ago

so you need to build your own ffmpeg binary and then attach your cpu or whatever via docker commands, that's a bit above my understanding, and i don't even use linux/intel

Serph91P commented 2 years ago

so you need to build your own ffmpeg binary and then attach your cpu or whatever via docker commands, that's a bit above my understanding, and i don't even use linux/intel

yeah how to get the gpu to the docker is quite easy. The only thing is ffmpeg to be build with those commands as far as I understand. Got there from the other page I linked in frist post. Where it said: You can also download a static build, all of which bundle libx265. So its already in there with those static builds.

MrBrax commented 2 years ago

so it should be in the installed one in the docker container already? i have no way of testing this, so not really any practical way of doing it

Serph91P commented 2 years ago

so it should be in the installed one in the docker container already? i have no way of testing this, so not really any practical way of doing it

will look into it and report back.

MrBrax commented 2 years ago

also seems like the command line arguments for it are double that of regular encodes, bloating the selection up even more

Serph91P commented 2 years ago

also seems like the command line arguments for it are double that of regular encodes, bloating the selection up even more

Would it be bad if I encoded the files with another application?

MrBrax commented 2 years ago

bad? uh not really, but replacing the segments would still keep the old mediainfo and such

Serph91P commented 2 years ago

bad? uh not really, but replacing the segments would still keep the old mediainfo and such

ok will try and see what is happening.