Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Video Encoding > MPEG-4 AVC / H.264

Reply
 
Thread Tools Search this Thread Display Modes
Old 7th September 2023, 01:54   #1  |  Link
eli2k
Registered User
 
Join Date: Dec 2002
Location: 4th Dimension
Posts: 9
Help with ffmpeg/h264_nvenc command for re-encode

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.

Code:
./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

Code:
./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

Code:
./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
__________________
- Eli
eli2k is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 10:47.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2024, vBulletin Solutions Inc.