datarhei / restreamer

The Restreamer is a complete streaming server solution for self-hosting. It has a visually appealing user interface and no ongoing license costs. Upload your live stream to YouTube, Twitch, Facebook, Vimeo, or other streaming solutions like Wowza. Receive video data from OBS and publish it with the RTMP and SRT server.
https://docs.datarhei.com/restreamer/
Apache License 2.0
3.92k stars 448 forks source link

h264_nvenc enconde .m3u8 #713

Closed LuizStSantos closed 7 months ago

LuizStSantos commented 7 months ago

I installed a T400 4GB to encode and installed the cuda driver and toolkit and the latest installation of Docker along with the Datarhei restreamer nvenc and I'm having this problem when I try to hide an entry .m3u8 "http://10.0.0.3 :8787/live/playlist.m3u8" the other server is giving the input in the same way and encoding it with h264 of the processed one. see the error below

@1711053206 ffmpeg version 5.1.3-datahrei Copyright (c) 2000-2022 the FFmpeg developers
@1711053206   built with gcc 9 (Ubuntu 9.4.0-1ubuntu1~20.04.2)
@1711053206   configuration: --extra-version=datahrei --prefix=/usr/local --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --enable-nonfree --enable-gpl --enable-version3 --enable-postproc --enable-static --enable-openssl --enable-libxml2 --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp --enable-libv4l2 --enable-libfreetype --enable-alsa --enable-libsrt --enable-libx264 --enable-libx265 --enable-libvpx --enable-libmp3lame --enable-libopus --enable-libvorbis --disable-ffplay --disable-ffprobe --disable-debug --disable-doc
@1711053206   libavutil      57. 28.100 / 57. 28.100
@1711053206   libavcodec     59. 37.100 / 59. 37.100
@1711053206   libavformat    59. 27.100 / 59. 27.100
@1711053206   libavdevice    59.  7.100 / 59.  7.100
@1711053206   libavfilter     8. 44.100 /  8. 44.100
@1711053206   libswscale      6.  7.100 /  6.  7.100
@1711053206   libswresample   4.  7.100 /  4.  7.100
@1711053206   libpostproc    56.  6.100 / 56.  6.100
@1711053206 [hls       ] Skip ('#EXT-X-VERSION:3')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:24.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:30.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:36.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:42.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:48.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:32:54.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:33:00.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:33:06.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:33:12.780-0300')
@1711053206 [hls       ] Skip ('#EXT-X-PROGRAM-DATE-TIME:2024-03-21T17:33:18.780-0300')
@1711053206 [hls       ] Opening 'http://10.0.0.3:8787/live/stream-0-307097.ts' for reading
@1711053206 [hls       ] Opening 'http://10.0.0.3:8787/live/stream-0-307098.ts' for reading
@1711053206 [h264      ] Increasing reorder buffer to 2
@1711053206 Input #0, hls, from 'http://10.0.0.3:8787/live/playlist.m3u8':
@1711053206   Duration: N/A, start: 1818.020000, bitrate: N/A
@1711053206   Program 0 
@1711053206     Metadata:
@1711053206       variant_bitrate : 0
@1711053206   Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(tv, bt709), 1280x720 [SAR 1:1 DAR 16:9], 30 fps, 30 tbr, 90k tbn
@1711053206     Metadata:
@1711053206       variant_bitrate : 0
@1711053206   Stream #0:1: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz, stereo, fltp
@1711053206     Metadata:
@1711053206       variant_bitrate : 0
@1711053206 Stream mapping:
@1711053206   Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
@1711053206   Stream #0:1 -> #0:1 (copy)
@1711053206 Press [q] to stop, [?] for help
@1711053206 [http      ] Opening 'http://10.0.0.3:8787/live/stream-0-307099.ts' for reading
@1711053207 [h264_nvenc @ 0x55e6963f5c00] Cannot load libcuda.so.1
@1711053207 Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
@1711053207 Conversion failed!
recenn commented 6 months ago

What is the solution to this?