Hi, running ErsatzTV in a lxc on proxmox. GPU pass through. However I am having some playback issues on certain files, with the error being related to scale_cuda.
I have scale_npp also installed, but I cannot see where to configure ErsatzTV to use it. Would appreciate any pointers.
system info:
Nvidia capabilities
ffmpeg version n6.1.2-28-g7d383ac18b Copyright (c) 2000-2024 the FFmpeg developers
built with gcc 12 (Debian 12.2.0-14+deb12u1)
configuration: --prefix=/usr/local --extra-cflags=-I/usr/local/cuda/include --extra-ldflags=-L/usr/local/cuda/lib64 --extra-libs='-lpthread -lm' --nvccflags='-gencode arch=compute_61,code=sm_61' --enable-cuda --enable-cuvid --enable-nvenc --enable-libnpp --enable-nonfree --enable-gpl --enable-libx264 --enable-libx265 --enable-libvpx --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libass --enable-libfreetype --enable-libxml2 --disable-debug
libavutil 58. 29.100 / 58. 29.100
libavcodec 60. 31.102 / 60. 31.102
libavformat 60. 16.100 / 60. 16.100
libavdevice 60. 3.100 / 60. 3.100
libavfilter 9. 12.100 / 9. 12.100
libswscale 7. 5.100 / 7. 5.100
libswresample 4. 12.100 / 4. 12.100
libpostproc 57. 3.100 / 57. 3.100
Input #0, lavfi, from 'nullsrc':
Duration: N/A, start: 0.000000, bitrate: N/A
Stream #0:0: Video: wrapped_avframe, yuv420p, 320x240 [SAR 1:1 DAR 4:3], 25 fps, 25 tbr, 25 tbn
Stream mapping:
Stream #0:0 -> #0:0 (wrapped_avframe (native) -> h264 (h264_nvenc))
Press [q] to stop, [?] for help
[h264_nvenc @ 0x6120f80c2740] [ GPU #0 - < Quadro P400 > has Compute SM 6.1 ]
[vost#0:0/h264_nvenc @ 0x6120f80c2300] Error while opening encoder - maybe incorrect parameters such as bit_rate, rate, width or height.
Error while filtering: Immediate exit requested
[out#0/null @ 0x6120f80c0cc0] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0kB time=N/A bitrate=N/A speed=N/A
General:
{
"Version": "v25.1.0-linux-x64",
],
"FFmpegSettings": {
"FFmpegPath": "/usr/local/bin/ffmpeg",
"FFprobePath": "/usr/local/bin/ffprobe",
"DefaultFFmpegProfileId": 1,
"PreferredAudioLanguageCode": "eng",
"UseEmbeddedSubtitles": true,
"ExtractEmbeddedSubtitles": false,
"SaveReports": false,
"HlsSegmenterIdleTimeout": 60,
"WorkAheadSegmenterLimit": 1,
"InitialSegmentCount": 1,
"HlsDirectOutputFormat": "MpegTs"
},
*channel info excluded.
],
"FFmpegProfiles": [
{
"Id": 1,
"Name": "1920x1080 x264 ac3",
"ThreadCount": 0,
"HardwareAcceleration": "Nvenc",
"VaapiDisplay": "drm",
"VaapiDriver": "Default",
"QsvExtraHardwareFrames": 64,
"ResolutionId": 3,
"Resolution": {
"Id": 3,
"Name": "1920x1080",
"IsCustom": false,
"Height": 1080,
"Width": 1920
},
"ScalingBehavior": "ScaleAndPad",
"VideoFormat": "H264",
"VideoProfile": "high",
"VideoPreset": "",
"AllowBFrames": false,
"BitDepth": "EightBit",
"VideoBitrate": 2000,
"VideoBufferSize": 4000,
"AudioFormat": "Aac",
"AudioBitrate": 192,
"AudioBufferSize": 384,
"NormalizeLoudnessMode": "Off",
"AudioChannels": 2,
"AudioSampleRate": 48,
"NormalizeFramerate": false,
"DeinterlaceVideo": true
}
]
}
Error :
[13:05:55 ERR] HLS process for channel 1 has terminated unsuccessfully with exit code 8: [AVFilterGraph @ 0x567cd7dbfc80] No such filter: 'scale_cuda'
Failed to set value '[0:1]aresample=async=1:first_pts=0,apad[a];[0:0]scale_cuda=format=yuv420p[vpf]' for option 'filter_complex': Filter not found
Error parsing global options: Filter not found
Thanks
PS love the project. great work.