LINUX.ORG.RU

История изменений

Исправление Ros, (текущая версия) :

Ладно, запустил и толку 0, скорость точь в точь, как на проце

vspipe --y4m script.vpy - | ffmpeg -hide_banner -hwaccel auto -i pipe: -c:v libx264 -crf 18 -preset slower -tune film -x264-params bframes=8:keyint=600:min-keyint=60:merange=24 -x264opts opencl 'video.mkv'
Input #0, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 704x478, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
[libx264 @ 0x55a14e5af800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x55a14e5af800] OpenCL acceleration enabled with NVIDIA Corporation NVIDIA GeForce GTX 970 
[libx264 @ 0x55a14e5af800] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x55a14e5af800] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: opencl=1 cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=600 keyint_min=60 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'video.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(progressive), 704x478, q=2-31, 59.94 fps, 1k tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
Came= 1091 fps= 27 q=24.0 size=    3840kB time=00:00:16.90 bitrate=1861.3kbits/s speed=0.423x


И Нвидия какой-то лог создает

NVIDIA GeForce GTX 970
NVIDIA Corporation
470.129.06
f4b6c29ca248858bb7177e64694e42a8
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-31334601
// Unknown Toolkit Version
// Based on LLVM 3.4svn
//

.version 7.4
.target sm_52, texmode_independent
.address_size 64

	// .globl	mode_selection
.global .samplerref sampler = { addr_mode_0 = clamp_to_edge, addr_mode_1 = clamp_to_edge, addr_mode_2 = clamp_to_edge, filter_mode = nearest, force_unnormalized_coords = 1 };
.const .align 8 .b8 dia_offs[32] = {0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0};
// sum_inter_cost$buffer has been demoted
// mb_intra_cost_satd_8x8$cache has been demoted
// mb_intra_cost_satd_8x8$cost_buf has been demoted
// mb_intra_cost_satd_8x8$top has been demoted
// mb_intra_cost_satd_8x8$left has been demoted
// mb_intra_cost_satd_8x8$left_top has been demoted
// sum_intra_cost$buffer has been demoted
.const .align 8 .b8 hpoffs[32] = {0, 0, 0, 0, 254, 255, 255, 255, 254, 255, 255, 255, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0};

.entry mode_selection(
	.param .texref mode_selection_param_0,
	.param .texref mode_selection_param_1,
	.param .texref mode_selection_param_2,
	.param .u64 .ptr .global .align 4 mode_selection_param_3,
	.param .u64 .ptr .global .align 4 mode_selection_param_4,
	.param .u64 .ptr .global .align 4 mode_selection_param_5,
	.param .u64 .ptr .global .align 2 mode_selection_param_6,
	.param .u64 .ptr .global .align 2 mode_selection_param_7,
	.param .u64 .ptr .global .align 2 mode_selection_param_8,
	.param .u64 .ptr .global .align 2 mode_selection_param_9,
	.param .u64 .ptr .global .align 4 mode_selection_param_10,
	.param .u64 .ptr .shared .align 2 mode_selection_param_11,
	.param .u64 .ptr .shared .align 4 mode_selection_param_12,
	.param .u32 mode_selection_param_13,
	.param .u32 mode_selection_param_14,
	.param .u32 mode_selection_param_15,
	.param .u32 mode_selection_param_16,
	.param .u32 mode_selection_param_17,
	.param .u32 mode_selection_param_18,
	.param .u32 mode_selection_param_19
)
...

Исправление Ros, :

Ладно, запустил и толку 0, скорость точь в точь, как на проце

vspipe --y4m script.vpy - | ffmpeg -hide_banner -hwaccel auto -i pipe: -c:v libx264 -crf 18 -preset slower -tune film -x264-params bframes=8:keyint=600:min-keyint=60:merange=24 -x264opts opencl 'video.mkv'
Input #0, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 704x478, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
[libx264 @ 0x55a14e5af800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x55a14e5af800] OpenCL acceleration enabled with NVIDIA Corporation NVIDIA GeForce GTX 970 
[libx264 @ 0x55a14e5af800] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x55a14e5af800] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: opencl=1 cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=600 keyint_min=60 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'video.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(progressive), 704x478, q=2-31, 59.94 fps, 1k tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
^Came= 1091 fps= 27 q=24.0 size=    3840kB time=00:00:16.90 bitrate=1861.3kbits/s speed=0.423x     
[1]+  Остановлен    vspipe --y4m script.vpy - | ffmpeg -hide_banner -hwaccel auto -i pipe: -c:v libx264 -crf 18 -preset slower -tune film -x264-params bframes=8:keyint=600:min-keyint=60:merange=24 -x264opts opencl 'video.mkv'


И Нвидия какой-то лог создает

NVIDIA GeForce GTX 970
NVIDIA Corporation
470.129.06
f4b6c29ca248858bb7177e64694e42a8
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-31334601
// Unknown Toolkit Version
// Based on LLVM 3.4svn
//

.version 7.4
.target sm_52, texmode_independent
.address_size 64

	// .globl	mode_selection
.global .samplerref sampler = { addr_mode_0 = clamp_to_edge, addr_mode_1 = clamp_to_edge, addr_mode_2 = clamp_to_edge, filter_mode = nearest, force_unnormalized_coords = 1 };
.const .align 8 .b8 dia_offs[32] = {0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0};
// sum_inter_cost$buffer has been demoted
// mb_intra_cost_satd_8x8$cache has been demoted
// mb_intra_cost_satd_8x8$cost_buf has been demoted
// mb_intra_cost_satd_8x8$top has been demoted
// mb_intra_cost_satd_8x8$left has been demoted
// mb_intra_cost_satd_8x8$left_top has been demoted
// sum_intra_cost$buffer has been demoted
.const .align 8 .b8 hpoffs[32] = {0, 0, 0, 0, 254, 255, 255, 255, 254, 255, 255, 255, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0};

.entry mode_selection(
	.param .texref mode_selection_param_0,
	.param .texref mode_selection_param_1,
	.param .texref mode_selection_param_2,
	.param .u64 .ptr .global .align 4 mode_selection_param_3,
	.param .u64 .ptr .global .align 4 mode_selection_param_4,
	.param .u64 .ptr .global .align 4 mode_selection_param_5,
	.param .u64 .ptr .global .align 2 mode_selection_param_6,
	.param .u64 .ptr .global .align 2 mode_selection_param_7,
	.param .u64 .ptr .global .align 2 mode_selection_param_8,
	.param .u64 .ptr .global .align 2 mode_selection_param_9,
	.param .u64 .ptr .global .align 4 mode_selection_param_10,
	.param .u64 .ptr .shared .align 2 mode_selection_param_11,
	.param .u64 .ptr .shared .align 4 mode_selection_param_12,
	.param .u32 mode_selection_param_13,
	.param .u32 mode_selection_param_14,
	.param .u32 mode_selection_param_15,
	.param .u32 mode_selection_param_16,
	.param .u32 mode_selection_param_17,
	.param .u32 mode_selection_param_18,
	.param .u32 mode_selection_param_19
)
...

Исходная версия Ros, :

Ладно, запустил и толку 0, скорость точь в точь, как на проце

vspipe --y4m script.vpy - | ffmpeg -hide_banner -hwaccel auto -i pipe: -c:v libx264 -crf 18 -preset slower -tune film -x264-params bframes=8:keyint=600:min-keyint=60:merange=24 -x264opts opencl 'video.mkv'
Input #0, yuv4mpegpipe, from 'pipe:':
  Duration: N/A, start: 0.000000, bitrate: N/A
  Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p(progressive), 704x478, 59.94 fps, 59.94 tbr, 59.94 tbn, 59.94 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
[libx264 @ 0x55a14e5af800] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
[libx264 @ 0x55a14e5af800] OpenCL acceleration enabled with NVIDIA Corporation NVIDIA GeForce GTX 970 
[libx264 @ 0x55a14e5af800] profile High, level 3.1, 4:2:0, 8-bit
[libx264 @ 0x55a14e5af800] 264 - core 164 - H.264/MPEG-4 AVC codec - Copyleft 2003-2021 - http://www.videolan.org/x264.html - options: opencl=1 cabac=1 ref=8 deblock=1:-1:-1 analyse=0x3:0x133 me=umh subme=9 psy=1 psy_rd=1.00:0.15 mixed_ref=1 me_range=24 chroma_me=1 trellis=2 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-3 threads=6 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=8 b_pyramid=2 b_adapt=2 b_bias=0 direct=3 weightb=1 open_gop=0 weightp=2 keyint=600 keyint_min=60 scenecut=40 intra_refresh=0 rc_lookahead=60 rc=crf mbtree=1 crf=18.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, matroska, to 'video.mkv':
  Metadata:
    encoder         : Lavf58.76.100
  Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p(progressive), 704x478, q=2-31, 59.94 fps, 1k tbn
    Metadata:
      encoder         : Lavc58.134.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/0 buffer size: 0 vbv_delay: N/A
^Came= 1091 fps= 27 q=24.0 size=    3840kB time=00:00:16.90 bitrate=1861.3kbits/s speed=0.423x     
[1]+  Остановлен    vspipe --y4m script.vpy - | ffmpeg -hide_banner -hwaccel auto -i pipe: -c:v libx264 -crf 18 -preset slower -tune film -x264-params bframes=8:keyint=600:min-keyint=60:merange=24 -x264opts opencl 'video.mkv'
[/cut]


И Нвидия какой-то лог создает

NVIDIA GeForce GTX 970
NVIDIA Corporation
470.129.06
f4b6c29ca248858bb7177e64694e42a8
//
// Generated by NVIDIA NVVM Compiler
//
// Compiler Build ID: CL-31334601
// Unknown Toolkit Version
// Based on LLVM 3.4svn
//

.version 7.4
.target sm_52, texmode_independent
.address_size 64

	// .globl	mode_selection
.global .samplerref sampler = { addr_mode_0 = clamp_to_edge, addr_mode_1 = clamp_to_edge, addr_mode_2 = clamp_to_edge, filter_mode = nearest, force_unnormalized_coords = 1 };
.const .align 8 .b8 dia_offs[32] = {0, 0, 0, 0, 255, 255, 255, 255, 255, 255, 255, 255, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0};
// sum_inter_cost$buffer has been demoted
// mb_intra_cost_satd_8x8$cache has been demoted
// mb_intra_cost_satd_8x8$cost_buf has been demoted
// mb_intra_cost_satd_8x8$top has been demoted
// mb_intra_cost_satd_8x8$left has been demoted
// mb_intra_cost_satd_8x8$left_top has been demoted
// sum_intra_cost$buffer has been demoted
.const .align 8 .b8 hpoffs[32] = {0, 0, 0, 0, 254, 255, 255, 255, 254, 255, 255, 255, 0, 0, 0, 0, 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 0, 0, 0};

.entry mode_selection(
	.param .texref mode_selection_param_0,
	.param .texref mode_selection_param_1,
	.param .texref mode_selection_param_2,
	.param .u64 .ptr .global .align 4 mode_selection_param_3,
	.param .u64 .ptr .global .align 4 mode_selection_param_4,
	.param .u64 .ptr .global .align 4 mode_selection_param_5,
	.param .u64 .ptr .global .align 2 mode_selection_param_6,
	.param .u64 .ptr .global .align 2 mode_selection_param_7,
	.param .u64 .ptr .global .align 2 mode_selection_param_8,
	.param .u64 .ptr .global .align 2 mode_selection_param_9,
	.param .u64 .ptr .global .align 4 mode_selection_param_10,
	.param .u64 .ptr .shared .align 2 mode_selection_param_11,
	.param .u64 .ptr .shared .align 4 mode_selection_param_12,
	.param .u32 mode_selection_param_13,
	.param .u32 mode_selection_param_14,
	.param .u32 mode_selection_param_15,
	.param .u32 mode_selection_param_16,
	.param .u32 mode_selection_param_17,
	.param .u32 mode_selection_param_18,
	.param .u32 mode_selection_param_19
)
...
[/cut]