I'm curious about FFMPEG and GPU hardware acceleration. My Windows 10 system uses the Asus / nVidia GTX 760 graphics card and Intel i5-2500K CPU. My graphics card claims to be of the Kepler architecture with CUDA 3.0 as shown here.
Instead of going through the hassles of compiling FFMPEG with hw acceleration support i downloaded a pre-compiled binary from here and here.
Next, i tried running a test with hw acceleration options as recommended by nVidia here:
ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:a copy -c:v h264_nvenc "output.mp4"
I then received the error message:
[h264_nvenc @ 000001c34eeda8c0] Lossless encoding not supported
[h264_nvenc @ 000001c34eeda8c0] Provided device doesn't support required NVENC features
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
What am i doing wrong? For the record i installed the CUDA Setup file but it made no difference. I am using the latest nVidia drivers.
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
Last edited by tempes1971; 10th Jul 2022 at 17:20.
-
try it like this - ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i input.mp4 -c:v h264_nvenc -b:v 5M output.mp4
https://developer.nvidia.com/blog/nvidia-ffmpeg-transcoding-guide/ -
Ok, here's the updated command:
ffmpeg -hwaccel cuda -hwaccel_output_format cuda -i "input.mkv" -c:v h264_nvenc -b:v 5M "output.mkv"
The new error message is:
[h264_nvenc @ 000001eeb1be7100] Lossless encoding not supported
[h264_nvenc @ 000001eeb1be7100] Provided device doesn't support required NVENC features
Error initializing output stream 0:0 -- Error while opening encoder for output stream #0:0 - maybe incorrect parameters such as bit_rate, rate, width or height
Similar Threads
-
ffmpeg error with hw acceleration
By Alberto78 in forum Video ConversionReplies: 18Last Post: 9th Aug 2021, 15:24 -
using ffmpeg to convert a mkv or mp4 to MPEG-4 suitable for a DVD player
By NeilTelford in forum Video ConversionReplies: 5Last Post: 3rd Jun 2021, 10:55 -
Can't find suitable output format for X265
By smike in forum EditingReplies: 5Last Post: 30th Nov 2020, 07:18 -
ffmpeg: bgr24 rawvideo => Output Turned 180 Degrees & Flipped Horizontally
By mapg in forum Newbie / General discussionsReplies: 19Last Post: 16th Apr 2019, 20:20 -
No suitable output format found
By max_cady in forum Newbie / General discussionsReplies: 8Last Post: 20th Aug 2018, 13:15