HW accel seems broken to me on AMD laptop
HI, I try to set up hw accel decoding for AMD laptop, but if I enable vaapi or vdpau I see a 'file not found' error. Hw accel works OK for the rest of the software. I unpacked appimage and removed boundled libvdpau.so, this results in working hwaccel via vdpau. The same with if I start cinelerra with the LD_PRELOAD environment variable. Maybe this library should be excluded from the appimage bundle? Best regards, Andrey
пт, 4 нояб. 2022 г., 00:08 Андрей Спицын via Cin <[email protected]
:
HI, I try to set up hw accel decoding for AMD laptop, but if I enable vaapi or vdpau I see a 'file not found' error. Hw accel works OK for the rest of the software. I unpacked appimage and removed boundled libvdpau.so, this results in working hwaccel via vdpau. The same with if I start cinelerra with the LD_PRELOAD environment variable. Maybe this library should be excluded from the appimage bundle?
but may be cin will stop to work (on systems without this lib) because missing library? I hear somewhere you can dynamically load so on linux instead of linking to it at build time, but no idea if it works with ffmpeg libs .... https://stackoverflow.com/questions/3454909/sharing-data-with-a-dynamically-... thanks for (re) testing!
Best regards, Andrey -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
пт, 4 нояб. 2022 г., 00:18 Andrew Randrianasulu <[email protected]>:
пт, 4 нояб. 2022 г., 00:08 Андрей Спицын via Cin < [email protected]>:
HI, I try to set up hw accel decoding for AMD laptop, but if I enable vaapi or vdpau I see a 'file not found' error. Hw accel works OK for the rest of the software. I unpacked appimage and removed boundled libvdpau.so, this results in working hwaccel via vdpau. The same with if I start cinelerra with the LD_PRELOAD environment variable. Maybe this library should be excluded from the appimage bundle?
but may be cin will stop to work (on systems without this lib) because missing library?
I hear somewhere you can dynamically load so on linux instead of linking to it at build time, but no idea if it works with ffmpeg libs ....
some more search showed chromium dlsyms vaapi ... https://chromium.googlesource.com/chromium/src/+/b5ded6e76b0f0a95c17de3a1b59... at the end so may be this can be made to work with libav too (while 6 years ago devs were not thrilled by this idea: https://patchwork.libav.org/patch/60659/ )
https://stackoverflow.com/questions/3454909/sharing-data-with-a-dynamically-...
thanks for (re) testing!
Best regards, Andrey -- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
I tried compiling CinGG with the --with-hwaccel=auto option but it is not recognized: configure: WARNING: unrecognized options: --with-hwaccel Any advice on what I could do? I looked for the library "libvdpau.so" in ../cinelerra5/cinelerra-5.1/ but I can't find it... PS (@Phyllis): In ../thirdparty/src/ there are still the ffmpeg4.4 files and patches. I don't remember if they were for something or we forgot to remove them.
пт, 4 нояб. 2022 г., 11:31 Andrea paz <[email protected]>:
I tried compiling CinGG with the --with-hwaccel=auto option but it is not recognized:
configure: WARNING: unrecognized options: --with-hwaccel
Any advice on what I could do?
oh, this is ffmpeg's binary runtime option, not compile time thing ... I looked for the library "libvdpau.so" in ../cinelerra5/cinelerra-5.1/
but I can't find it...
well, appimage creation procedure add it as dependency from system, I think ... as long as you do not use appimage you should be safe from this particular hazard
PS (@Phyllis): In ../thirdparty/src/ there are still the ffmpeg4.4 files and patches. I don't remember if they were for something or we forgot to remove them.
I've done some research on the hardware acceleration problem with appimage. Non-working hardware acceleration is a drawback of portability. There is no general solution available. I've found that I can preload system libraries ahead of bundled with appimage with LD_LIBRARY_PATH=/usr/lib/x86_64-linux-gnu/ in case of Debian. This solution works for me in case of vaapi and vdpau acceleration. Vdpau gives me a more smooth playback of 4k h264 video. Best regards, Andrey пт, 4 нояб. 2022 г. в 12:09, Andrew Randrianasulu via Cin < [email protected]>:
пт, 4 нояб. 2022 г., 11:31 Andrea paz <[email protected]>:
I tried compiling CinGG with the --with-hwaccel=auto option but it is not recognized:
configure: WARNING: unrecognized options: --with-hwaccel
Any advice on what I could do?
oh, this is ffmpeg's binary runtime option, not compile time thing ...
I looked for the library "libvdpau.so" in ../cinelerra5/cinelerra-5.1/
but I can't find it...
well, appimage creation procedure add it as dependency from system, I think ...
as long as you do not use appimage you should be safe from this particular hazard
PS (@Phyllis): In ../thirdparty/src/ there are still the ffmpeg4.4 files and patches. I don't remember if they were for something or we forgot to remove them.
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin
participants (3)
-
Andrea paz -
Andrew Randrianasulu -
Андрей Спицын