cc4c Transcoding Fails on UGREEN NAS:
[LIBVA]:CRITICAL - DdiMedia_SyncBuffer:4286: Invalid buffer
Hi all,
I'm running into a persistent hardware transcoding error when using cc4c in a Docker container on my UGREEN NAS.
The strange part is that the transcode seems to work perfectly, but the process crashes with a critical error at the very end, right as it's finishing. This isn't a "permission denied" error at the start, but a crash during what looks like memory cleanup.
My Setup
• NAS: UGREEN 480T Plus
• NAS OS: UGOS Pro (Latest Firmware: 1.9.0.0075)
• Container: cc4c running in Docker, managed via Portainer
• GPU Passthrough: "Graphics Card Performance" is enabled in the UGOS Docker app.
The Error Log
The log shows the Intel iHD driver initializes correctly, the stream maps, and the h264_vaapi encoder successfully encodes all 60 frames. But then, it terminates with this error:
[AVHWDeviceContext @ 0x48053d40] VAAPI driver: Intel iHD driver for Intel(R) Gen Graphics - 24.4.2 (b813073).
[h264_vaapi @ 0x4869bc00] Using VAAPI profile VAProfileH264High (7).
Stream #0:0: Video: h264 (High), 1 reference frame, vaapi... 1280x720 ... 4000 kb/s, 60 fps
frame= 60 fps=0.0 q=-0.0 Lsize=N/A time=00:00:00.96 bitrate=N/A speed= 3.3x
Output file #0 (/dev/null):
Output stream #0:0 (video): 60 frames encoded; 60 packets muxed (37764 bytes);
Total: 60 packets (37764 bytes) muxed
Terminating demuxer thread 0
[LIBVA]:CRITICAL - DdiMedia_SyncBuffer:4286: Invalid buffer
What I've Tried So Far
Based on my investigation, this seems to be a driver/library incompatibility, not a user permission error.
- Updated NAS Firmware: I am running the latest UGOS Pro 1.9.0.0075, which was supposed to include a "new transcoding framework" to fix bugs. The problem persists.
- Re-pulled Container Image: In Portainer, I forced a "Re-pull image" on my cc4c stack and updated it to ensure I have the latest container with the newest FFmpeg/libva libraries.
- Toggled GPU Passthrough: I have turned the "Graphics Card Performance" setting off and on again in the UGOS Docker settings.
- Rebooted: I have rebooted the NAS multiple times.
My hypothesis is that the FFmpeg/libva libraries inside the cc4c container are still incompatible with the new Intel iHD driver (v24.4.2) that UGREEN is using in its latest firmware.
Is this a known issue? Is there a beta or dev tag for the cc4c container I should be using that has newer, more compatible libraries?
Thanks for any help you can provide!