shithub: openh264

Download patch

ref: 7b52c402dbbf6e137ce3d5bca47ca586cffc9753
parent: 8c2ee58fd908fb0d00e97276e49c10fa74750c54
author: Sijia Chen <[email protected]>
date: Tue Apr 14 13:49:47 EDT 2015

add command line option to set input frame rate

--- a/codec/console/enc/src/welsenc.cpp
+++ b/codec/console/enc/src/welsenc.cpp
@@ -378,6 +378,7 @@
   printf ("  -sw          the source width\n");
   printf ("  -sh          the source height\n");
   printf ("  -frms        Number of total frames to be encoded\n");
+  printf ("  -frin        input frame rate\n");
   printf ("  -numtl       Temporal layer number (default: 1)\n");
   printf ("  -iper        Intra period (default: -1) : must be a power of 2 of GOP size (or -1)\n");
   printf ("  -nalsize     the Maximum NAL size. which should be larger than the each layer slicesize when slice mode equals to SM_DYN_SLICE\n");
@@ -436,6 +437,9 @@
 
     else if (!strcmp (pCommand, "-frms") && (n < argc))
       sFileSet.uiFrameToBeCoded = atoi (argv[n++]);
+
+    else if (!strcmp (pCommand, "-frin") && (n < argc))
+      pSvcParam.fMaxFrameRate = atof (argv[n++]);
 
     else if (!strcmp (pCommand, "-numtl") && (n < argc))
       pSvcParam.iTemporalLayerNum = atoi (argv[n++]);