257 |
static int ARG_VBVMAXRATE = 0; |
static int ARG_VBVMAXRATE = 0; |
258 |
static int ARG_VBVPEAKRATE = 0; |
static int ARG_VBVPEAKRATE = 0; |
259 |
static int ARG_THREADS = 0; |
static int ARG_THREADS = 0; |
260 |
|
static int ARG_SLICES = 1; |
261 |
static int ARG_VFR = 0; |
static int ARG_VFR = 0; |
262 |
static int ARG_PROGRESS = 0; |
static int ARG_PROGRESS = 0; |
263 |
static int ARG_COLORSPACE = XVID_CSP_YV12; |
static int ARG_COLORSPACE = XVID_CSP_YV12; |
448 |
} else if (strcmp("-threads", argv[i]) == 0 && i < argc -1) { |
} else if (strcmp("-threads", argv[i]) == 0 && i < argc -1) { |
449 |
i++; |
i++; |
450 |
ARG_THREADS = atoi(argv[i]); |
ARG_THREADS = atoi(argv[i]); |
451 |
|
} else if (strcmp("-slices", argv[i]) == 0 && i < argc -1) { |
452 |
|
i++; |
453 |
|
ARG_SLICES = atoi(argv[i]); |
454 |
} else if (strcmp("-bquant_ratio", argv[i]) == 0 && i < argc - 1) { |
} else if (strcmp("-bquant_ratio", argv[i]) == 0 && i < argc - 1) { |
455 |
i++; |
i++; |
456 |
ARG_BQRATIO = atoi(argv[i]); |
ARG_BQRATIO = atoi(argv[i]); |
1902 |
fprintf(stderr, " -drop integer : Frame Drop Ratio (0..100) (0)\n"); |
fprintf(stderr, " -drop integer : Frame Drop Ratio (0..100) (0)\n"); |
1903 |
fprintf(stderr, " -start integer : Starting frame number\n"); |
fprintf(stderr, " -start integer : Starting frame number\n"); |
1904 |
fprintf(stderr, " -threads integer : Number of threads\n"); |
fprintf(stderr, " -threads integer : Number of threads\n"); |
1905 |
|
fprintf(stderr, " -slices integer : Number of slices\n"); |
1906 |
fprintf(stderr, " -progress [integer] : Show progress updates every n frames (10)\n"); |
fprintf(stderr, " -progress [integer] : Show progress updates every n frames (10)\n"); |
1907 |
fprintf(stderr, " -par integer[:integer] : Set Pixel Aspect Ratio.\n"); |
fprintf(stderr, " -par integer[:integer] : Set Pixel Aspect Ratio.\n"); |
1908 |
fprintf(stderr, " 1 = 1:1\n"); |
fprintf(stderr, " 1 = 1:1\n"); |
2270 |
#endif |
#endif |
2271 |
|
|
2272 |
xvid_enc_create.num_threads = ARG_THREADS; |
xvid_enc_create.num_threads = ARG_THREADS; |
2273 |
|
xvid_enc_create.num_slices = ARG_SLICES; |
2274 |
|
|
2275 |
/* Frame rate */ |
/* Frame rate */ |
2276 |
xvid_enc_create.fincr = ARG_DWSCALE; |
xvid_enc_create.fincr = ARG_DWSCALE; |