Den 12.12.2024 20:13, skrev Terje J. Hanssen:
Den 12.12.2024 11:07, skrev Andrea paz:
Try using a h264.mp4 video instead of hdv, to see if there is any difference.
Well, I have tried several input formats, h64 included. While the decoding benchmarks works ok in the range 25-30 fps, encoding still not work for me. It may be my faults, immature/buggy vulkan/ffmpeg video encoding and not at least insufficient or lack of documentation to do this.
But hopefully, as also av1 and ffv1 will be available next, more working command examples will come out. https://www.phoronix.com/news/FFmpeg-November-Vulkan-Video
In reply to my corresponding request on the ffmpeg-user mailiing list: https://ffmpeg.org/pipermail/ffmpeg-user/2024-December/058931.html /My tests even with the NVIDIA drivers are pretty much the same as Intel's./ /Perhaps AMD's RADV performs better in this front?/ /Will retest as soon as I get my hands on one of these AMD GPUs. /
ffmpeg -hide_banner -init_hw_device vulkan=vkdev:0 -filter_hw_device vkdev -i h264_8bit_yuv420p.mp4 -filter:v "format=nv12,hwupload" -c:v hevc_vulkan hevc_vulkan_8b420.mp4 ............ Stream mapping: Stream #0:0 -> #0:0 (h264 (native) -> hevc (hevc_vulkan)) .............. Stream #0:0(und): Video: hevc (Main) (hev1 / 0x31766568), vulkan(pc, smpte170m/unknown/unknown, top coded first (swapped)), 1920x1080 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 12800 tbn (default) Metadata: handler_name : VideoHandler vendor_id : [0][0][0][0] encoder : Lavc61.19.100 hevc_vulkan [hevc_vulkan @ 0x556581f59b80] Encode failed: -1409282976. [vost#0:0/hevc_vulkan @ 0x556581f6a080] Error submitting video frame to the encoder [vost#0:0/hevc_vulkan @ 0x556581f6a080] Error encoding a frame: Error number -1409282976 occurred [vost#0:0/hevc_vulkan @ 0x556581f6a080] Task finished with error code: -1409282976 (Error number -1409282976 occurred) [vost#0:0/hevc_vulkan @ 0x556581f6a080] Terminating thread with return code -1409282976 (Error number -1409282976 occurred) [out#0/mp4 @ 0x556581f7ec80] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown [out#0/mp4 @ 0x556581f7ec80] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used) frame= 0 fps=0.0 q=0.0 Lsize= 0KiB time=N/A bitrate=N/A speed=N/A Conversion failed!