MrBrax / LiveStreamDVR

An automatic livestream recorder
MIT License
330 stars 25 forks source link

Function Suggestion Encode #272

Open lucas19961 opened 2 years ago

lucas19961 commented 2 years ago

Function to Encode the VODS to get smaller file sizes

MrBrax commented 2 years ago

seems very obvious yeah, would need some very finely tuned presets for it to work well

MrBrax commented 2 years ago

reencoder added to develop branch, but unless you know what combos of options to use, it might just instantly crash

Serph91P commented 2 years ago

Yeah tested it with one stream, crashed the whole application. Passed through my GPU to enable NVENC HVEC encode. It says that it would use a preset? Log is attached dunno what else to setup so it wont crash. crash_log.txt

MrBrax commented 2 years ago

for the actual crash i might fix that, but the cause might be found in the software folder regarding ffmpeg

Serph91P commented 2 years ago

for the actual crash i might fix that, but the cause might be found in the software folder regarding ffmpeg

Found these two logs. reencode_h0llylp_202209_2.mp4_stderr.log reencode_h0llylp_202209_2.mp4_stdout.log

MrBrax commented 2 years ago

so it can't find the nvenc codec, probably tells me that the docker ffmpeg doesn't support hardware acceleration out of the box just like that

Serph91P commented 2 years ago

so it can't find the nvenc codec, probably tells me that the docker ffmpeg doesn't support hardware acceleration out of the box just like that

Just read the log myself, yeah it just states hvec:nvenc unknown. First i thought maybe my gpu does not support it but it should since its working in plex, transocding

Serph91P commented 2 years ago

so it can't find the nvenc codec, probably tells me that the docker ffmpeg doesn't support hardware acceleration out of the box just like that

found this on the web about it dunno about the effort. https://superuser.com/questions/1444978/using-ffmpeg-with-nvidia-gpu

MrBrax commented 2 years ago

yes the problem is that i'd need to change the base docker image adding probably tons of bloat, probably a bit out of scope

Serph91P commented 2 years ago

yes the problem is that i'd need to change the base docker image adding probably tons of bloat, probably a bit out of scope

dunno if this will help not so deep into linux https://github.com/vexorian/dizquetv/issues/218

MrBrax commented 2 years ago

it would, but then it would not build from the npm image leaving the most crucial part out. dunno if two images can be merged, haven't studied docker much

Serph91P commented 2 years ago

it would, but then it would not build from the npm image leaving the most crucial part out. dunno if two images can be merged, haven't studied docker much

its done here no? https://github.com/vexorian/dizquetv/blob/main/Dockerfile-nvidia

MrBrax commented 2 years ago

interesting, might have a look into it later

Serph91P commented 2 years ago

interesting, might have a look into it later

shouldnt this also work in docker? https://docs.nvidia.com/video-technologies/video-codec-sdk/ffmpeg-with-nvidia-gpu/

MrBrax commented 2 years ago

it probably would, but there's a lot of debugging and all that, i don't run linux so i can't test if it even works, and it would add a lot of bloat for people not using it