rkmpp Convert to yuv422p10le #192

Closed
opened 2025-12-23 10:35:35 +01:00 by backuprepo · 4 comments
Owner

Originally created by @zyKrip on GitHub (Jul 9, 2025).

/lib/jellyfin-ffmpeg/ffmpeg -init_hw_device rkmpp=rk -hwaccel rkmpp -hwaccel_output_format drm_prime -i "114-135736328_tiny.mp4" -vf "scale_rkrga=w=1920:h=1080:format=nv12:afbc=1,format=yuv422p10le" -c:v prores_ks -profile:v 0 -c:a copy "output.mov"
How to deal with it in the simplest way possible?

Impossible to convert between the formats supported by the filter 'Parsed_scale_rkrga_0' and the filter 'auto_scale_0'
[vf#0:0 @ 0x559304d500] Error reinitializing filters!
[vf#0:0 @ 0x559304d500] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x559304d500] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/prores_ks @ 0x559304d060] Could not open encoder before EOF
[vost#0:0/prores_ks @ 0x559304d060] Task finished with error code: -22 (Invalid argument)
[vost#0:0/prores_ks @ 0x559304d060] Terminating thread with return code -22 (Invalid argument)
[out#0/mov @ 0x55930535b0] Nothing was written into output file, because at least one of its streams received no packets.

Originally created by @zyKrip on GitHub (Jul 9, 2025). /lib/jellyfin-ffmpeg/ffmpeg -init_hw_device rkmpp=rk -hwaccel rkmpp -hwaccel_output_format drm_prime -i "114-135736328_tiny.mp4" -vf "scale_rkrga=w=1920:h=1080:format=nv12:afbc=1,format=yuv422p10le" -c:v prores_ks -profile:v 0 -c:a copy "output.mov" How to deal with it in the simplest way possible? Impossible to convert between the formats supported by the filter 'Parsed_scale_rkrga_0' and the filter 'auto_scale_0' [vf#0:0 @ 0x559304d500] Error reinitializing filters! [vf#0:0 @ 0x559304d500] Task finished with error code: -38 (Function not implemented) [vf#0:0 @ 0x559304d500] Terminating thread with return code -38 (Function not implemented) [vost#0:0/prores_ks @ 0x559304d060] Could not open encoder before EOF [vost#0:0/prores_ks @ 0x559304d060] Task finished with error code: -22 (Invalid argument) [vost#0:0/prores_ks @ 0x559304d060] Terminating thread with return code -22 (Invalid argument) [out#0/mov @ 0x55930535b0] Nothing was written into output file, because at least one of its streams received no packets.
backuprepo 2025-12-23 10:35:35 +01:00
  • closed this issue
  • added the
    question
    label
Author
Owner

@nyanmisaka commented on GitHub (Jul 9, 2025):

There is no support for yuv422p10le on RGA hardware, so you can only disable AFBC in scale_rkrga, then hwmap to nv12, and then use the CPU to convert it to yuv422p10le.

@nyanmisaka commented on GitHub (Jul 9, 2025): There is no support for `yuv422p10le` on RGA hardware, so you can only disable AFBC in `scale_rkrga`, then `hwmap` to `nv12`, and then use the CPU to convert it to `yuv422p10le`.
Author
Owner

@zyKrip commented on GitHub (Jul 9, 2025):

ffmpeg
-init_hw_device rkmpp=rk
-hwaccel rkmpp
-hwaccel_output_format drm_prime
-afbc rga
-i "114-135736328_tiny.mp4"
-vf "scale_rkrga=w=1920:h=1080:format=nv12:afbc=0,hwmap,format=yuv422p10le"
-c:v prores_ks
-profile:v 0
-b:v 2000k
"_tiny_0.mov"

it's right? but

Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42mp41isomavc1
creation_time : 2015-08-08T09:13:38.000000Z
Duration: 00:00:14.56, start: 0.000000, bitrate: 275 kb/s
Stream #0:00x1: Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 480x270 [SAR 1:1 DAR 16:9], 274 kb/s, 25 fps, 25 tbr, 25 tbn (default)
Metadata:
creation_time : 2015-08-08T09:13:38.000000Z
handler_name : L-SMASH Video Handler
vendor_id : [0][0][0][0]
encoder : AVC Coding
Stream mapping:
Stream #0:0 -> #0:0 (h264 (h264_rkmpp) -> prores (prores_ks))
Press [q] to stop, [?] for help
[Parsed_hwmap_1 @ 0x7f80002930] Failed to map frame: -38.
[vf#0:0 @ 0x559e1f9490] Error while filtering: Function not implemented
[vf#0:0 @ 0x559e1f9490] Task finished with error code: -38 (Function not implemented)
[vf#0:0 @ 0x559e1f9490] Terminating thread with return code -38 (Function not implemented)
[vost#0:0/prores_ks @ 0x559e1f9190] Could not open encoder before EOF
[vost#0:0/prores_ks @ 0x559e1f9190] Task finished with error code: -22 (Invalid argument)
[vost#0:0/prores_ks @ 0x559e1f9190] Terminating thread with return code -22 (Invalid argument)
[out#0/mov @ 0x559e1fa500] Nothing was written into output file, because at least one of its streams received no packets.
frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A
Conversion failed!

@zyKrip commented on GitHub (Jul 9, 2025): ffmpeg \ -init_hw_device rkmpp=rk \ -hwaccel rkmpp \ -hwaccel_output_format drm_prime \ -afbc rga \ -i "114-135736328_tiny.mp4" \ -vf "scale_rkrga=w=1920:h=1080:format=nv12:afbc=0,hwmap,format=yuv422p10le" \ -c:v prores_ks \ -profile:v 0 \ -b:v 2000k \ "_tiny_0.mov" it's right? but Metadata: major_brand : mp42 minor_version : 0 compatible_brands: mp42mp41isomavc1 creation_time : 2015-08-08T09:13:38.000000Z Duration: 00:00:14.56, start: 0.000000, bitrate: 275 kb/s Stream #0:0[0x1](und): Video: h264 (Constrained Baseline) (avc1 / 0x31637661), yuv420p(progressive), 480x270 [SAR 1:1 DAR 16:9], 274 kb/s, 25 fps, 25 tbr, 25 tbn (default) Metadata: creation_time : 2015-08-08T09:13:38.000000Z handler_name : L-SMASH Video Handler vendor_id : [0][0][0][0] encoder : AVC Coding Stream mapping: Stream #0:0 -> #0:0 (h264 (h264_rkmpp) -> prores (prores_ks)) Press [q] to stop, [?] for help [Parsed_hwmap_1 @ 0x7f80002930] Failed to map frame: -38. [vf#0:0 @ 0x559e1f9490] Error while filtering: Function not implemented [vf#0:0 @ 0x559e1f9490] Task finished with error code: -38 (Function not implemented) [vf#0:0 @ 0x559e1f9490] Terminating thread with return code -38 (Function not implemented) [vost#0:0/prores_ks @ 0x559e1f9190] Could not open encoder before EOF [vost#0:0/prores_ks @ 0x559e1f9190] Task finished with error code: -22 (Invalid argument) [vost#0:0/prores_ks @ 0x559e1f9190] Terminating thread with return code -22 (Invalid argument) [out#0/mov @ 0x559e1fa500] Nothing was written into output file, because at least one of its streams received no packets. frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A Conversion failed!
Author
Owner

@nyanmisaka commented on GitHub (Jul 9, 2025):

No. hwmap,format=nv12,format=yuv422p10le

@nyanmisaka commented on GitHub (Jul 9, 2025): No. `hwmap,format=nv12,format=yuv422p10le`
Author
Owner

@zyKrip commented on GitHub (Jul 10, 2025):

thanks bro

@zyKrip commented on GitHub (Jul 10, 2025): thanks bro
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: starred/ffmpeg-rockchip#192
No description provided.