1. 程式人生 > >[win10] ffmpeg gpu加速

[win10] ffmpeg gpu加速

ffmpeg -codecs | sls cuvid (備註:sls是powershell的命令,類似於linux下的grep命令)

DEV.LS h264                 H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10 (decoders: h264 h264_qsv h264_cuvid ) (encoders:  libx264 libx264rgb h264_amf h264_nvenc h264_qsv nvenc nvenc_h264 )

 DEV.L. hevc                 H.265 / HEVC (High Efficiency Video Coding) (decoders:

hevc hevc_qsv hevc_cuvid ) (encoder s: libx265 nvenc_hevc hevc_amf hevc_nvenc hevc_qsv )

 DEVIL. mjpeg                Motion JPEG (decoders: mjpeg mjpeg_cuvid ) (encoders: mjpeg mjpeg_qsv )

 DEV.L. mpeg1video           MPEG-1 video (decoders: mpeg1video mpeg1_cuvid )  DEV.L. mpeg2video           MPEG-2 video (decoders: mpeg2video mpegvideo mpeg2_qsv mpeg2_cuvid ) (encoders: mpeg2video mpeg2_qsv )  DEV.L. mpeg4

               MPEG-4 part 2 (decoders: mpeg4 mpeg4_cuvid ) (encoders: mpeg4 libxvid ) D.V.L. vc1                  SMPTE VC-1 (decoders: vc1 vc1_qsv vc1_cuvid ) DEV.L. vp8                  On2 VP8 (decoders: vp8 libvpx vp8_cuvid vp8_qsv ) (encoders: libvpx ) DEV.L. vp9                  Google VP9 (decoders: vp9 libvpx-vp9 vp9_cuvid ) (encoders: libvpx-vp9 )

記錄:

1.hevc

 ffmpeg.exe -i D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\test\%05d.tiff -v
codec hevc D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\output5.mkv

frame=  820 fps= 40 q=-0.0 Lsize=      89kB time=00:00:32.68 bitrate=  22.3kbits/s speed=1.61x video:81kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 9.601210% x265 [info]: frame I:      4, Avg QP:10.98  kb/s: 510.90 x265 [info]: frame P:    290, Avg QP:31.95  kb/s: 19.42 x265 [info]: frame B:    526, Avg QP:34.97  kb/s: 15.84 x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% x265 [info]: consecutive B-frames: 37.8% 8.8% 21.1% 1.4% 31.0%

encoded 820 frames in 19.72s (41.57 fps), 19.52 kb/s, Avg QP:33.78

2.libx265

ffmpeg.exe -i D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\test\%05d.tiff -v
codec libx265 D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\output5.mkv

frame=  820 fps= 43 q=-0.0 Lsize=      89kB time=00:00:32.68 bitrate=  22.3kbits/s speed=1.72x video:81kB audio:0kB subtitle:0kB other streams:0kB global headers:2kB muxing overhead: 9.601210% x265 [info]: frame I:      4, Avg QP:10.98  kb/s: 510.90 x265 [info]: frame P:    290, Avg QP:31.95  kb/s: 19.42 x265 [info]: frame B:    526, Avg QP:34.97  kb/s: 15.84 x265 [info]: Weighted P-Frames: Y:0.0% UV:0.0% x265 [info]: consecutive B-frames: 37.8% 8.8% 21.1% 1.4% 31.0%

encoded 820 frames in 19.00s (43.16 fps), 19.52 kb/s, Avg QP:33.78

3.hevc_nvenc

ffmpeg.exe -i D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\test\%05d.tiff -v codec hevc_nvenc D:\Liu_Dong\Brain_map_compression\ZhangYueYi\raw_brain\output5.mkv

frame=  820 fps=107 q=16.0 Lsize=      84kB time=00:00:32.76 bitrate=  20.9kbits/s speed=4.26x video:78kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 7.649312%