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

New Decoder/encoder available with pretty much all issues fixed, and huge speed increases. #112

Open
GavinDarkglider opened this issue Mar 23, 2022 · 5 comments

Comments

@GavinDarkglider
Copy link
Contributor

GavinDarkglider commented Mar 23, 2022

Main tree:
https://gitlab.com/switchroot/switch-l4t-multimedia/FFmpeg

FFMPEG replacement deb for bionic, built against bionic ffmpeg sources to keep app compatibilty. Should use decoder by default in most apps avalable via apt. :
https://gitlab.com/l4t-community/gnu-linux/switchroot-pipeline/-/jobs/2211932828/artifacts/download?file_type=archive

VLC replacement deb(Needed a patch from upstream): https://gitlab.com/l4t-community/gnu-linux/switchroot-pipeline/-/jobs/2211932829/artifacts/download?file_type=archive

Replacement libffmpeg for chromium, sorry, no package yet: https://gitlab.azka.li/l4t-community/gnu-linux/switchroot-pipeline/-/jobs/647/artifacts/download?file_type=archive

For chromium, you should edit .desktop files, replace %U with --no-sandbox --use-vulkan --enable-features=Vulkan %U, then find/replace libffmpeg.so with one in archive.

Dont know off the top of my head where this is stored.

Also, Chrome doesnt do vp9/av1 via ffmpeg, so you need to install a plugin called h264ify if you want decoder to work in youtube, also this disables 4k. Sorry, Blame chrome developers for this.

@kevmo314
Copy link

I'm curious what's the source of the speed increase? I see that the new lib is using the V4L2 API instead of the multimedia API, is that it?

@eusoubrasileiro
Copy link

@GavinDarkglider broken links there. I was looking for your faster ffmpeg. Where is that?

@GavinDarkglider
Copy link
Contributor Author

@GavinDarkglider broken links there. I was looking for your faster ffmpeg. Where is that?

Yeah, I dont know what happened with the links, it was all gitlab ci stuff, the first link is the ffmpeg 4.4 branch, but you will need to back port it to the version from bionic if you want it to be system-wide. I will see what I can do about the links, but no promises.

@Azkali
Copy link

Azkali commented May 13, 2022

We have a repo setup for jetson: https://jetson.repo.azka.li
Everything cited above works on Jetson and is contained in the repo (repackaged chromium, vlc and ffmpeg) no need to edit the desktop file since the deb already embed those configuration in chromium's configs

@xsacha
Copy link

xsacha commented Oct 5, 2022

@Azkali is it possible to publish a new build on the repo with latest changes (especially the close stream memory leak)? Also, with rtsp enabled. Thanks.
Edit: I'll build my own anyway.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants