Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is libva supported like in official telegram? #388

Open
userofryzen opened this issue Aug 30, 2022 · 15 comments
Open

[Question] Is libva supported like in official telegram? #388

userofryzen opened this issue Aug 30, 2022 · 15 comments
Labels
question Further information is requested

Comments

@userofryzen
Copy link

I mean for hardware video accel. Like a workaround I have enabled the open video files on local player until it gets supported or something( or not because I don't mind if I have to open video on another windows)

@userofryzen userofryzen added the question Further information is requested label Aug 30, 2022
@ilya-fedin
Copy link
Contributor

Well, official telegram doesn't have support for libva either. It only has NVDEC, Windows & macOS APIs support and all of them are so unstable that disabled by default.

@userofryzen
Copy link
Author

userofryzen commented Aug 30, 2022

Well, official telegram doesn't have support for libva either. It only has NVDEC, Windows & macOS APIs support and all of them are so unstable that disabled by default.

official telegram has support for libva since I have tested it with an amd card in Linux, the part that is disabled by default i dont remember if it's true but it's stable at least for me have been being stable a few weeks
imagen

and it's working(checked with VCN block enabled when playing a video)

@ilya-fedin
Copy link
Contributor

magic

@userofryzen
Copy link
Author

magic

sorry if it sounded bad or soemthing. English is not my native language and I was only pointing that there is on the official client

@ilya-fedin
Copy link
Contributor

Well, I pointed that it's unexpected

@userofryzen
Copy link
Author

maybe in the future releases is it possible @ilya-fedin ?

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 3, 2022

AFAIK tdesktop doesn't support libva and we don't have enough knowledge to integrate it to tdesktop codebase, so the answer is no

I don't know why it works for you though, this might be some addition of third party build if you use one or maybe some other magic.

@userofryzen
Copy link
Author

AFAIK tdesktop doesn't support libva and we don't have enough knowledge to integrate it to tdesktop codebase, so the answer is no

I don't know why it works for you though, this might be some addition of third party build if you use one or maybe some other magic.

I'm using the simple and official client from official repos of arch(manjaro) not anymore. Any weird thing since arch is not adding anything more than upstream to libs, apps and everything.
So.. yeah, libva is supported on the official ones from the latest update a few weeks ago.
But it's okey with that you don't know how to do it. Don't worry about because opening the video on celuloid do the job in a correct way so..
But srly, it's true, telegram supports video acceleration from the latests versions with amdgpu and intel at least

@ilya-fedin
Copy link
Contributor

ilya-fedin commented Sep 3, 2022

I'm using the simple and official client from official repos of arch(manjaro) not anymore.

Official distribution repos are third party packages from Telegram point of view, they can build Telegram with other versions of libraries built with other configuration and even patch Telegram sources adding addition features (e.g. Debian is known to do that). Try the binary from https://desktop.telegram.org and see what happens.

@userofryzen
Copy link
Author

I'm using the simple and official client from official repos of arch(manjaro) not anymore.

Official distribution repos are third party packages from Telegram point of view, they can build Telegram with other versions of libraries built with other configuration and even patch Telegram sources adding addition features (e.g. Debian is known to do that). Try the binary from https://desktop.telegram.org and see what happens.

tested.
imagen
but it's not working at all because it tries to load libcuda and not libva, no sense way .
But it's unabled by default, the only thing you have to do on arch /manjao package is to enable it and it works out of the box

@userofryzen
Copy link
Author

$ telegram-desktop -- %u
error: : cannot open
error: : cannot open
error: : cannot open
QObject::~QObject: Timers cannot be stopped from another thread
QObject::~QObject: Timers cannot be stopped from another thread
$ /tmp/firefox/Telegram/Telegram -workdir /home/albertogm/.local/share/TelegramDesktop/ -- %u
Invalid return value 0 for stream protocol
Invalid return value 0 for stream protocol
[AVHWDeviceContext @ 0x7f6566ed9b40] Cannot load libcuda.so.1
[AVHWDeviceContext @ 0x7f6566ed9b40] Could not dynamically load CUDA
These are the different outputs I have

@userofryzen
Copy link
Author

on the first the accel is working and on the second one there is no libva support
But I have not tested flatpak nor snap. Yet

@ilya-fedin
Copy link
Contributor

Yeah, that's the point, seem to be some Arch/Manjaro addition

@userofryzen
Copy link
Author

I dont think so, I think it's a bug from the official site because unless this the app should not decode the video through gpu, it0s not that easy to implement that on a program xD
So I have reported this, let's see what answer me on the issue telegramdesktop/tdesktop#25018

Copy link
Contributor

github-actions bot commented Jul 1, 2024

Hey there!

This issue was inactive for a long time and will be automatically closed in 30 days if there isn't any further activity. We therefore assume that the user has lost interest or resolved the problem on their own.

Don't worry though; if this is an error, let us know with a comment and we'll be happy to reopen the issue.

Thanks!

@github-actions github-actions bot added the stale label Jul 1, 2024
@EricKotato EricKotato removed the stale label Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

3 participants