eli2k
7th September 2023, 01:54
Hi, I am using NVENC to convert a video file to compressed lower resolution. I have tried a few variations of ffmpeg command but they all end up with an error. On a shortened extract video the encode succeeds, but on a full length (2-3 hours), it will fail at the end. Looking for advice to troubleshoot. I am trying to do everything in hardware (decode, scaling, encode), unless something else is better. Thanks.
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale_cuda=-1:480:interp_algo=4" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'Parsed_scale_cuda_0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale=-1:480" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -rc-lookahead 32 -b_adapt 0 -coder:v cabac -spatial_aq 1 -maxrate 120M -bufsize 1000M -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale_cuda=-1:480:interp_algo=4" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -rc-lookahead 32 -b_adapt 0 -coder:v cabac -spatial_aq 1 -maxrate 120M -bufsize 1000M -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'Parsed_scale_cuda_0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale_cuda=-1:480:interp_algo=4" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'Parsed_scale_cuda_0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale=-1:480" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -rc-lookahead 32 -b_adapt 0 -coder:v cabac -spatial_aq 1 -maxrate 120M -bufsize 1000M -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'graph 0 input from stream 0:0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0
./ffmpeg.exe -init_hw_device cuda=cu:0 -filter_hw_device cu -hwaccel cuda -hwaccel_output_format cuda -i "input.mp4" -vf "scale_cuda=-1:480:interp_algo=4" -c:v h264_nvenc -preset p7 -rc:v constqp -qp:v 28 -rc-lookahead 32 -b_adapt 0 -coder:v cabac -spatial_aq 1 -maxrate 120M -bufsize 1000M -c:a aac -b:a 64k -f mp4 "output.mp4"
Impossible to convert between the formats supported by the filter 'Parsed_scale_cuda_0' and the filter 'auto_scale_0' Error reinitializing filters! Failed to inject frame into filter network: Function not implemented Error while processing the decoded data for stream #0:0