radxa-pkg / jellyfin-ffmpeg

FFmpeg for Jellyfin
https://jellyfin.org
Other
0 stars 0 forks source link

Package ffmpeg #1

Open RadxaYuntian opened 5 months ago

CodeChenL commented 5 months ago

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

RadxaYuntian commented 5 months ago

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

CodeChenL commented 5 months ago

能不能尝试backport这个pr

RadxaYuntian commented 5 months ago

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

CodeChenL commented 5 months ago

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

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

RadxaYuntian commented 5 months ago

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

CodeChenL commented 5 months ago

要不要尝试一下在debian打包源码的基础上,加上https://github.com/jellyfin/jellyfin-ffmpeg/pull/318 的patches

RadxaYuntian commented 5 months ago

可以试试看

RadxaYuntian commented 5 months ago

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

RadxaYuntian commented 5 months ago

可能还是直接用6.0.1最省事

CodeChenL commented 5 months ago

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

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

CodeChenL commented 5 months ago

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

nyanmisaka commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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 commented 4 months ago

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!