-
Notifications
You must be signed in to change notification settings - Fork 572
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
Update Rockchip presets #979
Comments
go2rtc/internal/ffmpeg/ffmpeg_test.go Line 163 in 5fa31fe
FYI there's also a HW accelerated transpose/crop filter |
Hey @AlexxIT , I just wanted to ask if the presets will be updated soon? It would be very nice to see them in the next version of Frigate. However, don't feel pressured. If you don't have time right now, that's fine too! |
Hi. It's a big task for me. I need to replicate the entire environment so I don't have to make edits blindly. |
Thank you for the clarification! Let me know, if I can help you somehow. |
Hi guys, Is there any relationship between audio transcoding and this issue here? Thanks in advance, |
AFAIK, these options shouldn't cause any issues if you don't use |
I don't have problems with transcoding. But have problems with scale on my Rockchip. Maybe someone can help me with downloading latest version. Because I don't have Baidu account. Baidu Cloud Link: https://pan.baidu.com/s/19t8AZV9SYTdjn2uObBiSGA Extraction code: hslu
|
Sorry, I can't help with downloading the newer image. Maybe sudo helps, if your issue is due to insufficient permission. But it seems your issue is related to outdated drivers. However, I can confirm that the above command works. |
LubanCat also build ffmpeg for their boards. Maybe something useful there: |
This is pretty old and based on the original FFmpeg fork from rockchip, that was discontinued due to license issues. I don't think it works on up to date systems. Currently, most users use this fork from nyanmisaka: https://github.com/nyanmisaka/ffmpeg-rockchip |
You can try commenting out these lines in FFmpeg to avoid the check for a valid value for the kernel returned fence_fd. It might work, but ultimately you're better off updating your RGA kernel drivers to the latest and enabling Multi-RGA and Async-RGA in defconfig, which will help performance a lot. |
Thanks. Building custom FFmpeg and updating RGA kernel drivers are too complicated things for me :) I can run some docker container if there are pre-made ones with the right contents. |
I have tested latest Ubuntu from LubanCat developers. Same error. |
@MarcA711 what about Frigate's docker container? If I can run it on this board, then theoretically it should have correct version of library? |
I don't think it will work. Your problem is outdated kernel drivers and docker containers use the same kernel as the host. Is there a lot that has to be done to update the presets? Maybe I am able to implement the presets if you point me to the right files. It should be similar to nvidia for example. However, I don't know Go. Alternatively, maybe I could give you access to a docker container on my board using https://tmate.io/. Do you need docker for your tests or do you just want to run ffmpeg commands? |
go2rtc doesn't just use presets. It rewrites the full ffmpeg command from firmware to hardware version. By modifying inputs and filters. Nvidia not best example. VAAPI has better API. https://github.com/AlexxIT/go2rtc/blob/master/internal/ffmpeg/hardware/hardware.go |
Thank you, I will have a look. Maybe I find out how to do it. And for your board, you can maybe ask here for an image: https://github.com/Joshua-Riek/ubuntu-rockchip |
Thanks. I think RockChip support is really important in go2rtc. I bought this board specifically for that purpose. It was pretty cheap. I didn't think there would be so many problems with it. |
Yes, I think the rockchip platform is important. Rockchip is perhaps the most important platform after Raspberry Pi. I was able to setup a dev environment on my board and hope to be able to implement the presets myself. |
It's not necessary to run go2rtc or dev on board. You can just fix code on any PC, run tests, and check output string after go2rtc/internal/ffmpeg/ffmpeg_test.go Lines 195 to 205 in ba34855
|
This helps a lot. Thank you! |
Hey,
In #768 I requested the implementation of presets for FFmpeg with Rockchip HW acceleration. These presets need to be updated, because the FFmpeg fork that most users used at this time was deprecated in favor of a new fork.
Now, most Rockchip users use this fork from nyanmisaka. Here is the documentation on how to use the fork and here is a static version of this fork that I compiled.
In short, these presets allow transcoding and resizing a video using hardware:
I would really appreciate if you could update the presets and I can help testing.
The text was updated successfully, but these errors were encountered: