Skip to content

Commit 8fc41a9

Browse files
Update RenderingMode.hx
1 parent 19125da commit 8fc41a9

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

src/ffmpeg/RenderingMode.hx

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -402,7 +402,8 @@ class RenderingMode {
402402
'-c:v','h264_vaapi',
403403
'-qp','28',
404404
'-global_quality','28',
405-
'-low_power','1'
405+
'-vaapi_device', '/dev/dri/renderD128',
406+
'-vf', 'format=rgb565le,hwupload',
406407
]},
407408

408409
// AMD AMF on Linux
@@ -461,7 +462,7 @@ class RenderingMode {
461462
'-global_quality','28',
462463
'-look_ahead', '0',
463464
'-look_ahead_depth', '0',
464-
'-async_depth','4'
465+
'-async_depth','8'
465466
]}
466467
];
467468

@@ -559,7 +560,7 @@ class RenderingMode {
559560
process = new Process('ffmpeg', args);
560561

561562
#if cpp
562-
nativeProcessHandle = untyped process.stdin.p;
563+
nativeProcessHandle = untyped process?.stdin?.p;
563564
#end
564565
}
565566

0 commit comments

Comments
 (0)