-
-
Notifications
You must be signed in to change notification settings - Fork 131
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
V4L2 issues with ffmpeg #29
Comments
Hey there, I made a PR for this. Unfortunately, your ffmpeg logs are gone, can i get them again? |
@Artiume By the way, in the previous version of jellyfin, openmax was working fine, but in the latest it is no longer working. I'm looking into it and will post logs in a bit. |
When I select openmax (only for encode, the decode ones are unchecked), playback never starts and results in a pop up error:
Here's the log: https://pastebin.com/0hAFiwdB |
Updated to include mappings |
With openmax it did not even start playback, resulted in a pop up error in web gui (attempting playback in browser), and the log I posted is the entire transcode log. I can try again, if there was a new release since |
I have confirmed the commit @aptalca pointed out does give us v4l2 playback in ARM without the green overlay. After compiling ffmpeg from the master branch and providing jellyfin with this ffmpeg build I am getting normal playback with x264 and x265, so far. My build and tests are with Pi 4 + Debian 10 (slim). |
Hey guys, finally got a chance to repeat my experiment with omx. With both the latest stable and nightly, it works for hw encode. Tested on rpi4 with raspbian buster. And one bit of surprise. . . drum roll. . . I got hw decode of h264 working on rpi4 with mmal. I'll update the linuxserver image readme with instructions and will link here. |
Awesome. For HEVC, I was reading into this ticket
We might have upstream issues blocking the hevc support :( |
Here's the updated instructions for mmal: https://github.com/linuxserver/docker-jellyfin#openmax-raspberry-pi In jellyfin gui settings, when you enable h264 decoding with omx, it will attempt mmal for decode and it works. @Artiume btw, we also added jellyfin's opencollective donation link to our github repo's sponsor button , as well the container logs. Sharing the FOSS love |
Thank you. It's awesome that we now have h264 decoding added to the Rpi4. It's turning into an indomitable little machine. I need to work out getting it working for our image and fix the docs. I need to change it to compose version 2 so I use group_add for the video group. Just haven't gotten time to work on it 😅 |
@Artiume I did notice a bug, though (weird one) with the latest stable. I set hw accel to OpenMax and enable H264 decoding. I play H264 media, everything's great, mmal decoding, omx encoding. But once I play hevc media (native hevc decode, omx encode), the H264 decode option in openmax transcode settings gets disabled. I can reproduce this every time. EDIT: Tested to confirm that the disabling of H264 decoding happens right after hevc playback starts |
@dkanada might be able to help here. That bug was supposed to be fixed |
+1, I face the same issue as @aptalca with OMX H264 hardware decoding being automatically disabled after HEVC playback, as referenced in the issue linked above. |
What you're referring to is probably fixed in jellyfin/jellyfin#2809 and is a bug in Jellyfin, not its ffmpeg build. |
For anyone who is looking for solution for green output when using V4L2 M2M: |
Excuse me.How can i set the -pix_fmt yuv420p in Jellyfin? |
ffmpeg.zip Rename your ffmpeg binary to ffmpeg-ext (in my case: /usr/lib/jellyfin-ffmpeg/ffmpeg to /usr/lib/jellyfin-ffmpeg/ffmpeg-ext) and copy this script as ffmpeg (/usr/lib/jellyfin-ffmpeg/ffmpeg in my case). Don't forget about correct ownership and executable permission. I'm also using binary from https://johnvansickle.com/ffmpeg/ as it seems to be a bit more faster than jellyfin one. |
Pixel format selection should be fixed in 10.8, v4l2 on rpi still has some limitations though, see #129 |
Hi guys,
Just want to report that I've been doing some tests with hw encode on an rpi4 via both openmax and v4l2. Openmax seems to work as expected, without issues (encode only).
V4L2 on the other hand results in some issues and errors (also encode only).
The encoded video appears in shades of green, no other colors.
Here's a full ffmpeg log output: https://pastebin.com/h6Awbv9X
Here are the errors that occur:
The helpful folks over at LibreELEC pointed me in the right direction (especially 6by9 from raspberry pi). The shades of green is due to jellyfin's ffmpeg missing this commit which is merged to master but is not in 4.2
I'll let you decide whether you want to patch it for the arm/aarch64 builds or not. But I thought you should know.
Thanks.
The text was updated successfully, but these errors were encountered: