Browse Source

change h264

yuchuli 3 years ago
parent
commit
92aac213a1

+ 2 - 2
src/driver/driver_h264_enc/main.cpp

@@ -116,7 +116,7 @@ void ThreadEnc()
              exit(1);
 
          /* put sample parameters */
-         c->bit_rate = 1000000;
+         c->bit_rate = 4000000;
          /* resolution must be a multiple of two */
          c->width = 1920;
          c->height = 1080;
@@ -255,7 +255,7 @@ int main(int argc, char *argv[])
     gnheight = atoi(gstrheight);
 
     void * pa = iv::modulecomm::RegisterRecv("picfront",Listenpic);
-    gpaout = iv::modulecomm::RegisterSend("frame",1000000,1);
+    gpaout = iv::modulecomm::RegisterSend("h264frame",1000000,1);
     std::thread * pthreadenc = new std::thread(ThreadEnc);
     return a.exec();
 }

+ 1 - 0
src/driver/driver_h264_nvenc/video_encode_main.cpp

@@ -1383,6 +1383,7 @@ encode_proc(context_t& ctx, int argc, char *argv[])
 
     /* Parse application command line options. */
     ret = parse_csv_args(&ctx, argc, argv);
+    ctx.insert_sps_pps_at_idr = true;
     TEST_ERROR(ret < 0, "Error parsing commandline arguments", cleanup);
 
     /* Set thread name for encoder Output Plane thread. */