vexorian / dizquetv

Create live TV channels from your own media. Access the streams using the simulated HDHomerun tuner or the generated M3U URl.
zlib License
1.41k stars 92 forks source link

Unknown encoder 'h264_nvenc' #218

Open omrishiv opened 3 years ago

omrishiv commented 3 years ago

Hello, Running in docker with nvidia runtime, I'm getting the error: Unknown encoder 'h264_nvenc' when my stream starts.

I'm using : dizqueTV-backend | 1.1.4 dizqueTV-ui | 1.1.4 FFMPEG | 4.2.4

I have switched from pseudotv (tried both with a clean install as well as migrating my pseudotv install) and this was working in pseudotv

trancefam commented 3 years ago

what fixed it for me specifically was using this docker image vexorian/dizquetv:latest-nvidia instead of vexorian/dizquetv:latest.

Why it works: the latest-nvidia docker file https://github.com/vexorian/dizquetv/blob/main/Dockerfile-nvidia uses jrottenberg/ffmpeg:4.3-nvidia whereas the regular latest docker file https://github.com/vexorian/dizquetv/blob/main/Dockerfile uses jrottenberg/ffmpeg:4.3-ubuntu1804. Further looking into that docker, it explains it adds support for the --runtime=nvidia flag https://hub.docker.com/r/jrottenberg/ffmpeg/#:~:text=Use%20nvidia%20hardware%20acceleration%20enabled%20build

If you are using unraid, you will also need to perform these steps https://forums.unraid.net/topic/98978-plugin-nvidia-driver/?do=findComment&comment=913251