Commit 4d3dda41 authored by Linshizhi's avatar Linshizhi

Use h264_nvenc.

parent 0fd03d10
...@@ -66,7 +66,7 @@ BUILTIN(InitEncodeContext) { ...@@ -66,7 +66,7 @@ BUILTIN(InitEncodeContext) {
framerate->ToUint32(&framerate_int); framerate->ToUint32(&framerate_int);
enc = new LAIPIC_ENCODER::Encoder { enc = new LAIPIC_ENCODER::Encoder {
libpath_cppstr, outpath, width_int, height_int, bitrate_int }; libpath_cppstr, outpath, width_int, height_int, bitrate_int, AV_PIX_FMT_YUV420P, 30, "h264_nvenc" };
if (!enc->isReady()) { if (!enc->isReady()) {
// Fail to initialize LAIPIC_ENCODER::Encoder. // Fail to initialize LAIPIC_ENCODER::Encoder.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment