RE: Cant't transcode with NVENC » SPAWN_FFmpeg_NVENC_example.txt
1 |
|
---|---|
2 |
|
3 |
### Pre Vulkan |
4 |
/home/hts/scrips/ffmpeg -y -fflags +genpts-fastseek \ |
5 |
-threads 1 -loglevel verbose -nostdin -hide_banner \ |
6 |
-init_hw_device cuda=cuda -filter_hw_device cuda \ |
7 |
-hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 2 \ |
8 |
-vsync 1 -filter_threads 2 -filter_complex_threads 2 \ |
9 |
-reinit_filter 1 -probesize 550000 -refs 6 -f mpegts \ |
10 |
-i $INPUT \ |
11 |
-filter_complex \ |
12 |
"[0:v:0]yadif_cuda,hwdownload,format=nv12,hwupload_cuda,split=1[s0]; \ |
13 |
[s0]scale_npp=w=1920:h=1080:interp_algo=lanczos[v0]" \ |
14 |
-map "[v0]" -c:v:0 hevc_nvenc -preset llhp -tune ull -profile:v main10 \ |
15 |
-map 0:a -c:a libfdk_aac -ac 2 -ar 48000 -b:a 128k \ |
16 |
-f mpegts $OUTPUT |
17 |
|
18 |
|
19 |
|
20 |
### Vulkan |
21 |
/home/hts/scrips/ffmpeg -y -fflags +genpts-fastseek \ |
22 |
-threads 1 -loglevel verbose -nostdin -hide_banner \ |
23 |
-init_hw_device cuda=cuda -filter_hw_device cuda \ |
24 |
-hwaccel cuda -hwaccel_output_format cuda -extra_hw_frames 2 \ |
25 |
-vsync 1 -filter_threads 2 -filter_complex_threads 2 \ |
26 |
-reinit_filter 1 -probesize 550000 -refs 6 -f mpegts \ |
27 |
-i $INPUT -filter_complex \ |
28 |
"[0:v]hwupload=derive_device=vulkan,split=1[s0]; \ |
29 |
[s0]scale_vulkan=w=1920:h=1080:scaler=0,hwupload=derive_device=cuda[v0]" \ |
30 |
-map "[v0]" -c:v:0 hevc_nvenc -preset llhp -tune ull -profile:v main10 \ |
31 |
-map 0:a -c:a libfdk_aac -ac 2 -ar 48000 -b:a 128k \ |
32 |
-f mpegts $OUTPUT |
- « Previous
- 1
- 2
- 3
- Next »