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

Package ffmpeg #1

Open
RadxaYuntian opened this issue Jan 22, 2024 · 16 comments
Open

Package ffmpeg #1

RadxaYuntian opened this issue Jan 22, 2024 · 16 comments

Comments

@RadxaYuntian
Copy link
Member

No description provided.

@RadxaYuntian RadxaYuntian moved this to Pending in RadxaOS Jan 22, 2024
@CodeChenL
Copy link
Collaborator

感觉打包代码需要替换成debian的模板,这样打包mpv的时候才好管理依赖

@RadxaYuntian
Copy link
Member Author

debian 11自带的ffmpeg和这个版本不匹配,不能直接替换。
看看怎么让这两个保存在独立的地方,至少ffmpeg不和系统自带的冲突

@CodeChenL
Copy link
Collaborator

能不能尝试backport这个pr

@RadxaYuntian
Copy link
Member Author

先看看他这个预编译的ffmpeg能不能用:https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v6.0.1-2

@CodeChenL
Copy link
Collaborator

先看看他这个预编译的ffmpeg能不能用:https://github.com/jellyfin/jellyfin-ffmpeg/releases/tag/v6.0.1-2

转码正常,hdmi in因为没打patch识别不了,这是已知问题,可打patch解决

@RadxaYuntian
Copy link
Member Author

那还是要我们自己编译一个版本才行

@CodeChenL
Copy link
Collaborator

CodeChenL commented Jan 30, 2024

要不要尝试一下在debian打包源码的基础上,加上jellyfin#318 的patches

@RadxaYuntian
Copy link
Member Author

可以试试看

@RadxaYuntian
Copy link
Member Author

主要是担心debian的版本太老了,缺功能或者代码差异太大

@RadxaYuntian
Copy link
Member Author

可能还是直接用6.0.1最省事

@CodeChenL
Copy link
Collaborator

主要是担心debian的版本太老了,缺功能或者代码差异太大

试了一下确实,很多patch需要修改才能apply,感觉改好了,也不能正常运行。

@CodeChenL
Copy link
Collaborator

CodeChenL commented Feb 4, 2024

我试试在debian ffmpeg的打包源码基础上加上--enable-rkmpp,看看能不能正常解码吧

@nyanmisaka
Copy link

nyanmisaka commented Feb 27, 2024

https://github.com/hbiyik/ffmpeg-rockchip/wiki/Rendering
Read through this section if you want to use hardware acceleration in common video players.

Also for common use cases, it's enough to use ffmpeg-rockchip, just apply the patches from it to upstream Debuntu ffmpeg 6.0.1/6.1.1. Then add extra build configs: --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga.

There are also patches for MPP & RGA to satisfy all corner cases.

@CodeChenL
Copy link
Collaborator

CodeChenL commented Feb 27, 2024

https://github.com/hbiyik/ffmpeg-rockchip/wiki/Rendering Read through this section if you want to use hardware acceleration in common video players.

Also for common use cases, it's enough to use ffmpeg-rockchip, just apply the patches from it to upstream Debuntu ffmpeg 6.0.1/6.1.1. Then add extra build configs: --enable-gpl --enable-version3 --enable-libdrm --enable-rkmpp --enable-rkrga.

There are also patches for MPP & RGA to satisfy all corner cases.

Thanks for your comment, the main thing we're struggling with now is that the version of ffmpeg6 is too new, and packaging it could potentially invalidate other packages that depend ffmpeg for debian11/12

@nyanmisaka
Copy link

It seeems that hbiyik made a 5.1.2 backport. I haven't tested it so use at your own risk.

https://github.com/hbiyik/ffmpeg-rockchip/tree/5.1.2

@CodeChenL
Copy link
Collaborator

It seeems that hbiyik made a 5.1.2 backport. I haven't tested it so use at your own risk.

https://github.com/hbiyik/ffmpeg-rockchip/tree/5.1.2

Thank you for your help, we will consider using this repo!

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

No branches or pull requests

3 participants