Jump to content

transcoding not working with AMD GPU under ubuntu 20.04


Recommended Posts

Posted

Hi All,

I recently upgrade to emby 4.7.2.0.

Since that version of emby, trancoding woth AMD GPU is not working.

There is an error during the detection of the GPU card : Error VaapiCodecProvider: Timeout while running ffdetect for vaencdec

(It the same PB that in that post but for the new version of emby)

If I launch manually ffdetect, it work

Barnum

Posted

Hi there, please attach the emby server and hardware detection log files. 

Thanks.

Posted (edited)

Hi All,

I recently upgrade to emby 4.7.2.0.

Since that version of emby, trancoding woth AMD GPU is not working.

There is an error during the detection of the GPU card : Error VaapiCodecProvider: Timeout while running ffdetect for vaencdec

2022-06-14 09:44:44.234 Debug VaapiCodecProvider: Start GetCodecList()
2022-06-14 09:44:44.241 Info VaapiCodecProvider: ProcessRun 'ffdetect_vaencdec' Execute: /opt/emby-server/bin/ffdetect -hide_banner -show_program_version -loglevel 48 -show_error -show_log 40 vaencdec -print_format json 
2022-06-14 09:44:44.244 Debug VaapiCodecProvider: ProcessRun 'ffdetect_vaencdec' Started.
2022-06-14 09:44:44.966 Debug TaskManager: Check for plugin updates Completed after 0 minute(s) and 1 seconds
2022-06-14 09:44:46.470 Debug XmlSerializer: Deserializing file /var/lib/emby-server/config/users/8c84062477cf438fa5cce5d5f1333ee8/policy.xml
2022-06-14 09:44:46.614 Info HttpClient: POST https://connect.emby.media/service/Servers?id=dd09d2de2dad0d939b0cbd15711f0806
2022-06-14 09:44:54.757 Error VaapiCodecProvider: Timeout while running ffdetect for vaencdec - args: -hide_banner -show_program_version -loglevel 48 -show_error -show_log 40 vaencdec -print_format json 
2022-06-14 09:44:54.758 Error VaapiCodecProvider: ProcessRun 'ffdetect_vaencdec' Error Output:
        ffdetect version 5.0.0-emby_2022_05_07 Copyright (c) 2018-2022 softworkz for Emby LLC
          built with gcc 8.3.0 (crosstool-NG 1.24.0)
          configuration: --cc=x86_64-emby-linux-gnu-gcc --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --disable-alsa --disable-debug --disable-doc --disable-ffplay --disable-libpulse --disable-libxcb --disable-vdpau --di
sable-xlib --enable-chromaprint --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libaribb24 --enable-libass --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --ena
ble-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzvbi --enable-pic --enable-version3 --enable-libtesseract --enable-cuda-llvm --enable-cuvid --enable-libdrm --enable-libm
fx --enable-nvdec --enable-nvenc --enable-vaapi --enable-opencl --enable-cross-compile --cross-prefix=x86_64-emby-linux-gnu- --arch=x86_64 --target-os=linux --enable-shared --disable-static --pkg-config=pkg-config --pkg-config-flags=
--static --extra-libs='-lm -lstdc++ -pthread'
          libavutil      57. 19.100 / 57. 19.100
        Begin GetVaAdapterInfo
        Found 28 device entries
        Begin get_nodes
        Found 3 drm entries
        End GetVaAdapterInfo
2022-06-14 09:44:54.766 Debug VaapiCodecProvider: End GetCodecList()

if I launch manually, I have no error/timeout :

root@openmediavault:/var/lib/emby/logs# sudo -u emby  /opt/emby-server/bin/ffdetect -hide_banner -show_program_version -loglevel 48 -show_error -show_log 40 vaencdec -print_format json
ffdetect version 5.0.0-emby_2022_05_07 Copyright (c) 2018-2022 softworkz for Emby LLC
  built with gcc 8.3.0 (crosstool-NG 1.24.0)
  configuration: --cc=x86_64-emby-linux-gnu-gcc --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --disable-alsa --disable-debug --disable-doc --disable-ffplay --disable-libpulse --disable-libxcb --disable-vdpau --disable-xlib --enable-chromaprint --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libaribb24 --enable-libass --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzvbi --enable-pic --enable-version3 --enable-libtesseract --enable-cuda-llvm --enable-cuvid --enable-libdrm --enable-libmfx --enable-nvdec --enable-nvenc --enable-vaapi --enable-opencl --enable-cross-compile --cross-prefix=x86_64-emby-linux-gnu- --arch=x86_64 --target-os=linux --enable-shared --disable-static --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lm -lstdc++ -pthread'
  libavutil      57. 19.100 / 57. 19.100
{
    "ProgramVersion": {
        "Version": "5.0.0-emby_2022_05_07",
        "Copyright": "Copyright (c) 2018-2022 softworkz for Emby Llc",
        "Compiler": "gcc 8.3.0 (crosstool-NG 1.24.0)",
        "Configuration": "--cc=x86_64-emby-linux-gnu-gcc --prefix=/home/embybuilder/Buildbot/x64/ffmpeg-x64/staging --disable-alsa --disable-debug --disable-doc --disable-ffplay --disable-libpulse --disable-libxcb --disable-vdpau --disable-xlib --enable-chromaprint --enable-fontconfig --enable-gnutls --enable-gpl --enable-iconv --enable-libaribb24 --enable-libass --enable-libdav1d --enable-libfreetype --enable-libfribidi --enable-libmp3lame --enable-libopus --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libzvbi --enable-pic --enable-version3 --enable-libtesseract --enable-cuda-llvm --enable-cuvid --enable-libdrm --enable-libmfx --enable-nvdec --enable-nvenc --enable-vaapi --enable-opencl --enable-cross-compile --cross-prefix=x86_64-emby-linux-gnu- --arch=x86_64 --target-os=linux --enable-shared --disable-static --pkg-config=pkg-config --pkg-config-flags=--static --extra-libs='-lm -lstdc++ -pthread'"
    },
    "Devices": [
Begin GetVaAdapterInfo
Found 28 device entries
Begin get_nodes
Found 3 drm entries
End GetVaAdapterInfo
        {
            "DeviceIndex": 0,
            "DeviceInfo": {
                "VendorName": "Advanced Micro Devices, Inc. [AMD/ATI]",
                "DeviceName": "Baffin [Radeon RX 550 640SP / RX 560/560X]",
                "SubsytemVendorName": "Sapphire Technology Limited",
                "SubsytemDeviceName": "Radeon RX 550 640SP",
                "VendorId": 4098,
                "DeviceId": 26623,
                "SubsytemVendorId": 7586,
                "SubsytemDeviceId": 58215,
                "DevPath": "/sys/bus/pci/devices/0000:01:00.0",
                "DrmCard": "/dev/dri/card0",
                "DrmRender": "/dev/dri/renderD128",
                "IsEnabled": 1,
/dev/dri/renderD128: VA-API version: 1.8 (libva 1.12.0)
                "IsBootVga": 1,
                "ApiVersionMajor": 1,
/dev/dri/renderD128: Driver version: Mesa Gallium driver 21.3.0-devel for Radeon RX 550 Series (POLARIS11, DRM 3.43.0, 5.8.18-050818-generic, LLVM 12.0.1)
                "ApiVersionMinor": 8,
                "Driver": "Mesa Gallium driver 21.3.0-devel for Radeon RX 550 Series (POLARIS11, DRM 3.43.0, 5.8.18-050818-generic, LLVM 12.0.1)"
            },
            "Decoders": [
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_SIMPLE",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "MPEG2VIDEO",
                    "CodecProfile": "MPEG2_MAIN",
                    "CodecId": 2,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_SIMPLE",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_SIMPLE",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_MAIN",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_MAIN",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_COMPLEX",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "WMV3",
                    "CodecProfile": "VC1_ADVANCED",
                    "CodecId": 71,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_COMPLEX",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "VC1",
                    "CodecProfile": "VC1_ADVANCED",
                    "CodecId": 70,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_CONSTRAINED_BASELINE",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_MAIN",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_HIGH",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "HEVC",
                    "CodecProfile": "HEVC_MAIN",
                    "CodecId": 173,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                },
                {
                    "CodecName": "HEVC",
                    "CodecProfile": "HEVC_MAIN_10",
                    "CodecId": 173,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 P010 ",
                    "RTFormat": 259
                },
                {
                    "CodecName": "MJPEG",
                    "CodecProfile": "MJPEG_HUFFMAN_BASELINE_DCT",
                    "CodecId": 7,
                    "MaxWidth": 4096,
                    "MaxHeight": 4096,
                    "ColorFormats": "NV12 ",
                    "RTFormat": 3
                }
            ],
            "Encoders": [
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_CONSTRAINED_BASELINE",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 2304,
                    "ColorFormats": "NV12 P010 ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 1,
                    "EncMaxRefFrames": 1,
                    "EncRateControlExt": 0
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_MAIN",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 2304,
                    "ColorFormats": "NV12 P010 ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 1,
                    "EncMaxRefFrames": 1,
                    "EncRateControlExt": 0
                },
                {
                    "CodecName": "H264",
                    "CodecProfile": "H264_HIGH",
                    "CodecId": 27,
                    "MaxWidth": 4096,
                    "MaxHeight": 2304,
                    "ColorFormats": "NV12 P010 ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 1,
                    "EncMaxRefFrames": 1,
                    "EncRateControlExt": 0
                },
                {
                    "CodecName": "HEVC",
                    "CodecProfile": "HEVC_MAIN",
                    "CodecId": 173,
                    "MaxWidth": 4096,
                    "MaxHeight": 2304,
                    "ColorFormats": "NV12 P010 ",
                    "RTFormat": 1,
                    "RateControl": 22,
                    "EncPackedHeaders": 1,
                    "EncMaxRefFrames": 1,
                    "EncRateControlExt": 0
                }
            ],
            "Filters": [
                {
                    "FilterId": 2,
                    "FilterName": "Deinterlacing filter",
                    "Properties": [
                        {
                            "DeinterlacingType": 1
                        },
                        {
                            "DeinterlacingType": 2
                        },
                        {
                            "DeinterlacingType": 3
                        }
                    ],
                    "IsSupported": 1
                }
            ]
        }
    ],
    "Log": [
        {
            "Level": 40,
            "Category": 0,
            "Message": "Found 28 device entries"
        },
        {
            "Level": 40,
            "Category": 0,
            "Message": "/dev/dri/renderD128: VA-API version: 1.8 (libva 1.12.0)"
        },
        {
            "Level": 40,
            "Category": 0,
            "Message": "/dev/dri/renderD128: Driver version: Mesa Gallium driver 21.3.0-devel for Radeon RX 550 Series (POLARIS11, DRM 3.43.0, 5.8.18-050818-generic, LLVM 12.0.1)"
        }
    ]
}

 

Edited by barnum
add log files
Posted

As I already said, when you release the 4.6 version, this PB appear and you solved it in the 4.6.5/4.6.6 version (see the link in the first post)

 

Barnum

Posted

Hi Luke,

 

do you have any News/Infos about this PB ?

 

Barnum

Posted

Please install the Diagnostics plugin from the catalog, then restart the server.

Now, go to Diagnostic Options and select the "FFmpeg Options" tab. Further down you can see a libVA driver selection where you can choose from drivers that are shipped with Emby.

Please try thew "radeonsi" and see whether detection works.

When it doesn't work, you can try the option above to choose your system-installed libVA driver instead of the one that is included with Emby.

Please let me know how it goes!

Posted

So I don't understand since yesterday (the 23 of june), it work

I haven't made any modification on the system ?

 

regards,

Barnum

Posted
On 6/24/2022 at 10:13 AM, barnum said:

So I don't understand since yesterday (the 23 of june), it work

I haven't made any modification on the system ?

 

regards,

Barnum

Hi, how about now?

Posted (edited)

So today I upgrade to 4.7.5 and it still work :)

Do you have made some modification the 22/23 of june ?

 

Barnum

Edited by barnum
Posted

Hi, not that I'm aware of. Thanks for the feedback.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...