Use NVENC on CENTOS

Questions involving a Windows version of FFmpeg.
Post Reply
someclick
Posts: 1
Joined: Mon Jun 03, 2019 3:19 am

Use NVENC on CENTOS

Post by someclick » Mon Jun 03, 2019 3:32 am

I am using ffmpeg on Gpu NVIDIA P6000
my test data is live stream 1920x1080 25fps 7Mbps, transcode to 4 profile 1080 3Mbps, 720 2Mbps, 480 1Mbps, 360 5Mbps
when i run 11 tasks, all fine
now, i push 12th task and more, all become slower
but system info is fine:
- cpu 25%
- ram 10%
- utilization.gpu 30%
- utilization.memory 30%
- disk and network is fine
can you help me for this issue?
thanks in advance

below is command:

Code: Select all

lib/ffmpeg -hide_banner -fflags +nobuffer+genpts -xerror -i "udp://ip:port?overrun_nonfatal=1&fifo_size=50000000" -filter_complex "[0:v]hwupload_cuda=device=1,yadif_cuda=1,split=4[v0][v1][v2][v3];[v0]scale_npp=1920:1080:format=yuv420p:interp_algo=lanczos[0];[v1]scale_npp=1280:720:format=yuv420p:interp_algo=lanczos[1];[v2]scale_npp=852:480:format=yuv420p:interp_algo=lanczos[2];[v3]scale_npp=640:360:format=yuv420p:interp_algo=lanczos[3]" \
-max_muxing_queue_size 1024 -map [0] -deint 1 -surfaces 8 -drop_second_field 1 -rc vbr -cq 1 -bf 2 -force_key_frames "expr:gte(t,n_forced*4)" -c:v h264_nvenc -b:v 3M -r 25 -zerolatency 1 -forced-idr 1 -preset llhq -map 0:a:0 -c:a aac -b:a 128000 -f hls -hls_delete_threshold 20 -use_localtime 1 -hls_time 4 -hls_list_size 10 -strftime 1 -hls_flags +second_level_segment_index+append_list+omit_endlist+delete_segments -hls_segment_filename hls/1080/%M%S_%%d.ts hls/1080/list.m3u8 \
-max_muxing_queue_size 1024 -map [1] -deint 1 -surfaces 8 -drop_second_field 1 -rc vbr -cq 1 -bf 2 -force_key_frames "expr:gte(t,n_forced*4)" -c:v h264_nvenc -b:v 2M -r 25 -zerolatency 1 -forced-idr 1 -preset llhq -map 0:a:0 -c:a aac -b:a 96000 -f hls -hls_delete_threshold 20 -use_localtime 1 -hls_time 4 -hls_list_size 10 -strftime 1 -hls_flags +second_level_segment_index+append_list+omit_endlist+delete_segments -hls_segment_filename hls/720/%M%S_%%d.ts hls/720/list.m3u8 \
-max_muxing_queue_size 1024 -map [2] -deint 1 -surfaces 8 -drop_second_field 1 -rc vbr -cq 1 -bf 2 -force_key_frames "expr:gte(t,n_forced*4)" -c:v h264_nvenc -b:v 1M -r 25 -zerolatency 1 -forced-idr 1 -preset llhq -map 0:a:0 -c:a aac -b:a 64000 -f hls -hls_delete_threshold 20 -use_localtime 1 -hls_time 4 -hls_list_size 10 -strftime 1 -hls_flags +second_level_segment_index+append_list+omit_endlist+delete_segments -hls_segment_filename hls/480/%M%S_%%d.ts hls/480/list.m3u8 \
-max_muxing_queue_size 1024 -map [3] -rc vbr -cq 1 -bf 2 -force_key_frames "expr:gte(t,n_forced*4)" -c:v h264_nvenc -b:v 500k -r 25 -zerolatency 1 -forced-idr 1 -preset llhq -map 0:a:0 -c:a aac -b:a 64000 -f hls -hls_delete_threshold 20 -use_localtime 1 -hls_time 4 -hls_list_size 10 -strftime 1 -hls_flags +second_level_segment_index+append_list+omit_endlist+delete_segments -hls_segment_filename hls/360/%M%S_%%d.ts hls/360/list.m3u8

Post Reply