· 5 years ago · Jul 04, 2020, 07:52 PM
1Sat Jul 4 19:41:20 2020
2+-----------------------------------------------------------------------------+
3| NVIDIA-SMI 440.100 Driver Version: 440.100 CUDA Version: 10.2 |
4|-------------------------------+----------------------+----------------------+
5| GPU Name Persistence-M| Bus-Id Disp.A | Volatile Uncorr. ECC |
6| Fan Temp Perf Pwr:Usage/Cap| Memory-Usage | GPU-Util Compute M. |
7|===============================+======================+======================|
8| 0 Tesla P100-PCIE... Off | 00000000:02:00.0 Off | 0 |
9| N/A 53C P0 31W / 250W | 0MiB / 16280MiB | 3% Default |
10+-------------------------------+----------------------+----------------------+
11
12+-----------------------------------------------------------------------------+
13| Processes: GPU Memory |
14| GPU PID Type Process name Usage |
15|=============================================================================|
16| No running processes found |
17+-----------------------------------------------------------------------------+
18
19# cat /opt/cuda/version.txt
20CUDA Version 10.2.89
21
22# nvcc --version
23nvcc: NVIDIA (R) Cuda compiler driver
24Copyright (c) 2005-2019 NVIDIA Corporation
25Built on Wed_Oct_23_19:24:38_PDT_2019
26Cuda compilation tools, release 10.2, V10.2.89
27
28
29PRE-RECOMPILE FFMPEG
30
31
32ffmpeg version n4.2.3 Copyright (c) 2000-2020 the FFmpeg developers
33 built with gcc 10.1.0 (GCC)
34 configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-avisynth --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmfx --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
35 libavutil 56. 31.100 / 56. 31.100
36 libavcodec 58. 54.100 / 58. 54.100
37 libavformat 58. 29.100 / 58. 29.100
38 libavdevice 58. 8.100 / 58. 8.100
39 libavfilter 7. 57.100 / 7. 57.100
40 libswscale 5. 5.100 / 5. 5.100
41 libswresample 3. 5.100 / 3. 5.100
42 libpostproc 55. 5.100 / 55. 5.100
43[mov,mp4,m4a,3gp,3g2,mj2 @ 0x556f1a787440] st: 0 edit list: 1 Missing key frame while searching for timestamp: 1001
44[mov,mp4,m4a,3gp,3g2,mj2 @ 0x556f1a787440] st: 0 edit list 1 Cannot find an index entry before timestamp: 1001.
45Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
46 Metadata:
47 major_brand : mp42
48 minor_version : 1
49 compatible_brands: mp42avc1CAEP
50 make :
51 make-eng :
52 model :
53 model-eng :
54 copyright :
55 copyright-eng :
56 creation_time : 2016-06-11T02:39:50.000000Z
57 Duration: 00:01:01.06, start: 0.000000, bitrate: 34940 kb/s
58 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 34796 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
59 Metadata:
60 creation_time : 2016-06-11T02:39:50.000000Z
61 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
62 Metadata:
63 creation_time : 2016-06-11T02:39:50.000000Z
64Stream mapping:
65 Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
66 Stream #0:1 -> #0:1 (copy)
67Press [q] to stop, [?] for help
68Output #0, mp4, to 'output.mp4':
69 Metadata:
70 major_brand : mp42
71 minor_version : 1
72 compatible_brands: mp42avc1CAEP
73 make :
74 make-eng :
75 model :
76 model-eng :
77 copyright :
78 copyright-eng :
79 encoder : Lavf58.29.100
80 Stream #0:0(eng): Video: h264 (h264_nvenc) (Main) (avc1 / 0x31637661), cuda, 1920x1080, q=-1--1, 5000 kb/s, 59.94 fps, 60k tbn, 59.94 tbc (default)
81 Metadata:
82 creation_time : 2016-06-11T02:39:50.000000Z
83 encoder : Lavc58.54.100 h264_nvenc
84 Side data:
85 cpb: bitrate max/min/avg: 0/0/5000000 buffer size: 10000000 vbv_delay: -1
86 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
87 Metadata:
88 creation_time : 2016-06-11T02:39:50.000000Z
89frame= 3660 fps=457 q=37.0 Lsize= 40068kB time=00:01:01.04 bitrate=5377.1kbits/s speed=7.61x
90video:39050kB audio:950kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.169746%
91
92
93
94POST FFMPEG RECOMPILE
95
96
97
98# ffmpeg -y -vsync 0 -hwaccel cuda -hwaccel_output_format cuda -i 1.mp4 -c:a copy -c:v h264_nvenc -preset fast -b:v 5M output.mp4
99ffmpeg version n4.2 Copyright (c) 2000-2019 the FFmpeg developers
100 built with gcc 10.1.0 (GCC)
101 configuration: --prefix=/usr --extra-cflags=-I/opt/cuda/include --extra-ldflags=-L/opt/cuda/lib64 --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-nonfree --enable-cuda-nvcc --enable-cuvid --enable-libnpp --enable-ffnvcodec --enable-libdrm --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
102 libavutil 56. 31.100 / 56. 31.100
103 libavcodec 58. 54.100 / 58. 54.100
104 libavformat 58. 29.100 / 58. 29.100
105 libavdevice 58. 8.100 / 58. 8.100
106 libavfilter 7. 57.100 / 7. 57.100
107 libswscale 5. 5.100 / 5. 5.100
108 libswresample 3. 5.100 / 3. 5.100
109 libpostproc 55. 5.100 / 55. 5.100
110[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d9272bdc80] st: 0 edit list: 1 Missing key frame while searching for timestamp: 1001
111[mov,mp4,m4a,3gp,3g2,mj2 @ 0x55d9272bdc80] st: 0 edit list 1 Cannot find an index entry before timestamp: 1001.
112Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '1.mp4':
113 Metadata:
114 major_brand : mp42
115 minor_version : 1
116 compatible_brands: mp42avc1CAEP
117 make :
118 make-eng :
119 model :
120 model-eng :
121 copyright :
122 copyright-eng :
123 creation_time : 2016-06-11T02:39:50.000000Z
124 Duration: 00:01:01.06, start: 0.000000, bitrate: 34940 kb/s
125 Stream #0:0(eng): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 1920x1080, 34796 kb/s, 59.94 fps, 59.94 tbr, 60k tbn, 120k tbc (default)
126 Metadata:
127 creation_time : 2016-06-11T02:39:50.000000Z
128 Stream #0:1(eng): Audio: aac (LC) (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 127 kb/s (default)
129 Metadata:
130 creation_time : 2016-06-11T02:39:50.000000Z
131Stream mapping:
132 Stream #0:0 -> #0:0 (h264 (native) -> h264 (h264_nvenc))
133 Stream #0:1 -> #0:1 (copy)
134Press [q] to stop, [?] for help
135[h264_nvenc @ 0x55d9272d27c0] Driver does not support the required nvenc API version. Required: 10.0 Found: 9.1
136[h264_nvenc @ 0x55d9272d27c0] The minimum required Nvidia driver for nvenc is 418.30 or newer
137Error 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
138Conversion failed!