mirror of
https://github.com/nyanmisaka/ffmpeg-rockchip.git
synced 2026-01-24 07:31:22 +01:00
FFMPEG Causing color conversion causing kernel warning using HDMIRX #84
Labels
No labels
bug
enhancement
help wanted
invalid
pull-request
question
upstream
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: starred/ffmpeg-rockchip#84
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @benhoff on GitHub (Aug 8, 2024).
Hey trying to using HDMI-In on an orange pi 5 plus with a transition from BGR24 to RGBA is causing an error/kernel warning.
Or at least, I think it is, if I'm not doing something wrong.
Command line invocation :
ffmpeg -f video4linux2 -i /dev/video2 -pix_fmt bgra -f fbdev /dev/fb0result:
Journalctl log:
The reason I think this is an issue with ffmpeg-rockchip is because this code works without crashing:
ffmpeg -f video4linux2 -input_format bgr24 -i /dev/video1 -f rawvideo out.rawAny thoughts on how to fix/debug this? Happy to drop a patch if I can.
@nyanmisaka commented on GitHub (Aug 8, 2024):
This ffmpeg fork is only targeted for use with the rockchip BSP kernel such as 5.10 or 6.1.
With mainline kernel you should use the vanilla ffmpeg instead.
@benhoff commented on GitHub (Aug 9, 2024):
@nyanmisaka , is it worth porting the rga device patches in ffmpeg to mainline? I assumed maybe naively that the kernel wouldn't matter much.
I've thought about just doing the color space conversion in opengl as well
@nyanmisaka commented on GitHub (Aug 9, 2024):
I don't think it's worth it, the rga in mainline and bsp is a completely different thing, which uses the v4l2 interface and only supports rga2.
If you need full functionality, use the bsp kernel, the mainline is currently not suitable for daily use, especially media functions.
@benhoff commented on GitHub (Aug 9, 2024):
Thanks for the tips and the patience with me!
After compiling mainline/upstream, I found out that I actually need multiplanar support from ffmpeg, which only got added last month. With the current device you always get the error/exception: "Not a video capture device"
See that commit here.
I'll close this as it's out of scope for the repo. Huge thanks for the wiki and the repo, I learned how to compile ffmpeg due to your documentation.