Lines 42-50
gst_ffmpeg_pass_get_type (void)
Link Here
|
42 |
if (!ffmpeg_pass_type) { |
42 |
if (!ffmpeg_pass_type) { |
43 |
static const GEnumValue ffmpeg_passes[] = { |
43 |
static const GEnumValue ffmpeg_passes[] = { |
44 |
{0, "Constant Bitrate Encoding", "cbr"}, |
44 |
{0, "Constant Bitrate Encoding", "cbr"}, |
45 |
{CODEC_FLAG_QSCALE, "Constant Quantizer", "quant"}, |
45 |
{AV_CODEC_FLAG_QSCALE, "Constant Quantizer", "quant"}, |
46 |
{CODEC_FLAG_PASS1, "VBR Encoding - Pass 1", "pass1"}, |
46 |
{AV_CODEC_FLAG_PASS1, "VBR Encoding - Pass 1", "pass1"}, |
47 |
{CODEC_FLAG_PASS2, "VBR Encoding - Pass 2", "pass2"}, |
47 |
{AV_CODEC_FLAG_PASS2, "VBR Encoding - Pass 2", "pass2"}, |
48 |
{0, NULL, NULL}, |
48 |
{0, NULL, NULL}, |
49 |
}; |
49 |
}; |
50 |
|
50 |
|
Lines 66-72
gst_ffmpeg_lim_pass_get_type (void)
Link Here
|
66 |
if (!ffmpeg_lim_pass_type) { |
66 |
if (!ffmpeg_lim_pass_type) { |
67 |
static const GEnumValue ffmpeg_lim_passes[] = { |
67 |
static const GEnumValue ffmpeg_lim_passes[] = { |
68 |
{0, "Constant Bitrate Encoding", "cbr"}, |
68 |
{0, "Constant Bitrate Encoding", "cbr"}, |
69 |
{CODEC_FLAG_QSCALE, "Constant Quantizer", "quant"}, |
69 |
{AV_CODEC_FLAG_QSCALE, "Constant Quantizer", "quant"}, |
70 |
{0, NULL, NULL}, |
70 |
{0, NULL, NULL}, |
71 |
}; |
71 |
}; |
72 |
|
72 |
|
Lines 121-129
gst_ffmpeg_mb_cmp_get_type (void)
Link Here
|
121 |
{FF_CMP_VSSE, "VSSE", "vsse"}, |
121 |
{FF_CMP_VSSE, "VSSE", "vsse"}, |
122 |
#if 0 |
122 |
#if 0 |
123 |
/* economize a bit for now */ |
123 |
/* economize a bit for now */ |
124 |
{FF_CMP_NSSE, "NSSE", "nsse"}, |
124 |
{AV_CMP_NSSE, "NSSE", "nsse"}, |
125 |
{FF_CMP_W53, "W53", "w53"}, |
125 |
{AV_CMP_W53, "W53", "w53"}, |
126 |
{FF_CMP_W97, "W97", "w97"}, |
126 |
{AV_CMP_W97, "W97", "w97"}, |
127 |
#endif |
127 |
#endif |
128 |
{0, NULL, NULL}, |
128 |
{0, NULL, NULL}, |
129 |
}; |
129 |
}; |
Lines 260-280
gst_ffmpeg_flags_get_type (void)
Link Here
|
260 |
/* FIXME: This needs some serious resyncing with avcodec.h */ |
260 |
/* FIXME: This needs some serious resyncing with avcodec.h */ |
261 |
if (!ffmpeg_flags_type) { |
261 |
if (!ffmpeg_flags_type) { |
262 |
static const GFlagsValue ffmpeg_flags[] = { |
262 |
static const GFlagsValue ffmpeg_flags[] = { |
263 |
{CODEC_FLAG_QSCALE, "Use fixed qscale", "qscale"}, |
263 |
{AV_CODEC_FLAG_QSCALE, "Use fixed qscale", "qscale"}, |
264 |
{CODEC_FLAG_4MV, "Allow 4 MV per MB", "4mv"}, |
264 |
{AV_CODEC_FLAG_4MV, "Allow 4 MV per MB", "4mv"}, |
265 |
{CODEC_FLAG_QPEL, "Quartel Pel Motion Compensation", "qpel"}, |
265 |
{AV_CODEC_FLAG_QPEL, "Quartel Pel Motion Compensation", "qpel"}, |
266 |
{CODEC_FLAG_GMC, "GMC", "gmc"}, |
266 |
//{AV_CODEC_FLAG_GMC, "GMC", "gmc"}, |
267 |
{CODEC_FLAG_MV0, "Always try a MB with MV (0,0)", "mv0"}, |
267 |
//{AV_CODEC_FLAG_MV0, "Always try a MB with MV (0,0)", "mv0"}, |
268 |
{CODEC_FLAG_LOOP_FILTER, "Loop filter", "loop-filter"}, |
268 |
{AV_CODEC_FLAG_LOOP_FILTER, "Loop filter", "loop-filter"}, |
269 |
{CODEC_FLAG_GRAY, "Only decode/encode grayscale", "gray"}, |
269 |
{AV_CODEC_FLAG_GRAY, "Only decode/encode grayscale", "gray"}, |
270 |
{CODEC_FLAG_NORMALIZE_AQP, |
270 |
//{AV_CODEC_FLAG_NORMALIZE_AQP, |
271 |
"Normalize Adaptive Quantization (masking, etc)", "aqp"}, |
271 |
// "Normalize Adaptive Quantization (masking, etc)", "aqp"}, |
272 |
{CODEC_FLAG_GLOBAL_HEADER, |
272 |
{AV_CODEC_FLAG_GLOBAL_HEADER, |
273 |
"Global headers in extradata instead of every keyframe", |
273 |
"Global headers in extradata instead of every keyframe", |
274 |
"global-headers"}, |
274 |
"global-headers"}, |
275 |
{CODEC_FLAG_AC_PRED, "H263 Advanced Intra Coding / MPEG4 AC prediction", |
275 |
{AV_CODEC_FLAG_AC_PRED, |
|
|
276 |
"H263 Advanced Intra Coding / MPEG4 AC prediction", |
276 |
"aic"}, |
277 |
"aic"}, |
277 |
{CODEC_FLAG_CLOSED_GOP, "Closed GOP", "closedgop"}, |
278 |
{AV_CODEC_FLAG_CLOSED_GOP, "Closed GOP", "closedgop"}, |
278 |
{0, NULL, NULL}, |
279 |
{0, NULL, NULL}, |
279 |
}; |
280 |
}; |
280 |
|
281 |
|
Lines 487-517
gst_ffmpeg_cfg_init (void)
Link Here
|
487 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
488 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
488 |
gst_ffmpeg_add_pspec (pspec, config.qblur, FALSE, mpeg, NULL); |
489 |
gst_ffmpeg_add_pspec (pspec, config.qblur, FALSE, mpeg, NULL); |
489 |
|
490 |
|
|
|
491 |
#if 0 |
490 |
pspec = g_param_spec_float ("rc-qsquish", "Ratecontrol Limiting Method", |
492 |
pspec = g_param_spec_float ("rc-qsquish", "Ratecontrol Limiting Method", |
491 |
"0 means limit by clipping, otherwise use nice continuous function", |
493 |
"0 means limit by clipping, otherwise use nice continuous function", |
492 |
0, 99.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
494 |
0, 99.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
493 |
gst_ffmpeg_add_pspec (pspec, config.rc_qsquish, FALSE, mpeg, NULL); |
495 |
gst_ffmpeg_add_pspec (pspec, config.rc_qsquish, FALSE, mpeg, NULL); |
|
|
496 |
#endif |
494 |
|
497 |
|
|
|
498 |
#if 0 |
495 |
pspec = g_param_spec_float ("rc-qmod-amp", "Ratecontrol Mod", |
499 |
pspec = g_param_spec_float ("rc-qmod-amp", "Ratecontrol Mod", |
496 |
"Ratecontrol Mod", 0, 99.0f, 0, |
500 |
"Ratecontrol Mod", 0, 99.0f, 0, |
497 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
501 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
498 |
gst_ffmpeg_add_pspec (pspec, config.rc_qmod_amp, FALSE, mpeg, NULL); |
502 |
gst_ffmpeg_add_pspec (pspec, config.rc_qmod_amp, FALSE, mpeg, NULL); |
|
|
503 |
#endif |
499 |
|
504 |
|
|
|
505 |
#if 0 |
500 |
pspec = g_param_spec_int ("rc-qmod-freq", "Ratecontrol Freq", |
506 |
pspec = g_param_spec_int ("rc-qmod-freq", "Ratecontrol Freq", |
501 |
"Ratecontrol Freq", 0, 0, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
507 |
"Ratecontrol Freq", 0, 0, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
502 |
gst_ffmpeg_add_pspec (pspec, config.rc_qmod_freq, FALSE, mpeg, NULL); |
508 |
gst_ffmpeg_add_pspec (pspec, config.rc_qmod_freq, FALSE, mpeg, NULL); |
|
|
509 |
#endif |
503 |
|
510 |
|
504 |
pspec = g_param_spec_int ("rc-buffer-size", "Ratecontrol Buffer Size", |
511 |
pspec = g_param_spec_int ("rc-buffer-size", "Ratecontrol Buffer Size", |
505 |
"Decoder bitstream buffer size", 0, G_MAXINT, 0, |
512 |
"Decoder bitstream buffer size", 0, G_MAXINT, 0, |
506 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
513 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
507 |
gst_ffmpeg_add_pspec (pspec, config.rc_buffer_size, FALSE, mpeg, NULL); |
514 |
gst_ffmpeg_add_pspec (pspec, config.rc_buffer_size, FALSE, mpeg, NULL); |
508 |
|
515 |
|
|
|
516 |
#if 0 |
509 |
pspec = |
517 |
pspec = |
510 |
g_param_spec_float ("rc-buffer-aggressivity", |
518 |
g_param_spec_float ("rc-buffer-aggressivity", |
511 |
"Ratecontrol Buffer Aggressivity", "Ratecontrol Buffer Aggressivity", 0, |
519 |
"Ratecontrol Buffer Aggressivity", "Ratecontrol Buffer Aggressivity", 0, |
512 |
99.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
520 |
99.0f, 1.0f, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
513 |
gst_ffmpeg_add_pspec (pspec, config.rc_buffer_aggressivity, FALSE, mpeg, |
521 |
gst_ffmpeg_add_pspec (pspec, config.rc_buffer_aggressivity, FALSE, mpeg, |
514 |
NULL); |
522 |
NULL); |
|
|
523 |
#endif |
515 |
|
524 |
|
516 |
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT (57, 3, 0) |
525 |
#if LIBAVCODEC_VERSION_INT < AV_VERSION_INT (57, 3, 0) |
517 |
pspec = g_param_spec_int ("rc-max-rate", "Ratecontrol Maximum Bitrate", |
526 |
pspec = g_param_spec_int ("rc-max-rate", "Ratecontrol Maximum Bitrate", |
Lines 529-545
gst_ffmpeg_cfg_init (void)
Link Here
|
529 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
538 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
530 |
gst_ffmpeg_add_pspec (pspec, config.rc_min_rate, FALSE, mpeg, NULL); |
539 |
gst_ffmpeg_add_pspec (pspec, config.rc_min_rate, FALSE, mpeg, NULL); |
531 |
|
540 |
|
|
|
541 |
#if 0 |
532 |
pspec = |
542 |
pspec = |
533 |
g_param_spec_float ("rc-initial-cplx", |
543 |
g_param_spec_float ("rc-initial-cplx", |
534 |
"Initial Complexity for Pass 1 Ratecontrol", |
544 |
"Initial Complexity for Pass 1 Ratecontrol", |
535 |
"Initial Complexity for Pass 1 Ratecontrol", 0, 9999999.0f, 0, |
545 |
"Initial Complexity for Pass 1 Ratecontrol", 0, 9999999.0f, 0, |
536 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
546 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
537 |
gst_ffmpeg_add_pspec (pspec, config.rc_initial_cplx, FALSE, mpeg, NULL); |
547 |
gst_ffmpeg_add_pspec (pspec, config.rc_initial_cplx, FALSE, mpeg, NULL); |
|
|
548 |
#endif |
538 |
|
549 |
|
|
|
550 |
#if 0 |
539 |
pspec = g_param_spec_string ("rc-eq", "Ratecontrol Equation", |
551 |
pspec = g_param_spec_string ("rc-eq", "Ratecontrol Equation", |
540 |
"Ratecontrol Equation", "tex^qComp", |
552 |
"Ratecontrol Equation", "tex^qComp", |
541 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
553 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
542 |
gst_ffmpeg_add_pspec (pspec, config.rc_eq, FALSE, mpeg, NULL); |
554 |
gst_ffmpeg_add_pspec (pspec, config.rc_eq, FALSE, mpeg, NULL); |
|
|
555 |
#endif |
543 |
|
556 |
|
544 |
pspec = g_param_spec_float ("b-quant-factor", "B-Quantizer Factor", |
557 |
pspec = g_param_spec_float ("b-quant-factor", "B-Quantizer Factor", |
545 |
"Factor in B-Frame Quantizer Computation", |
558 |
"Factor in B-Frame Quantizer Computation", |
Lines 630-648
gst_ffmpeg_cfg_init (void)
Link Here
|
630 |
0, 16000, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
643 |
0, 16000, 0, G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
631 |
gst_ffmpeg_add_pspec (pspec, config.me_range, FALSE, mpeg, NULL); |
644 |
gst_ffmpeg_add_pspec (pspec, config.me_range, FALSE, mpeg, NULL); |
632 |
|
645 |
|
|
|
646 |
#if 0 |
633 |
pspec = g_param_spec_int ("intra-quant-bias", |
647 |
pspec = g_param_spec_int ("intra-quant-bias", |
634 |
"Intra Quantizer Bias", |
648 |
"Intra Quantizer Bias", |
635 |
"Intra Quantizer Bias", |
649 |
"Intra Quantizer Bias", |
636 |
-1000000, 1000000, FF_DEFAULT_QUANT_BIAS, |
650 |
-1000000, 1000000, AV_DEFAULT_QUANT_BIAS, |
637 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
651 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
638 |
gst_ffmpeg_add_pspec (pspec, config.intra_quant_bias, FALSE, mpeg, NULL); |
652 |
gst_ffmpeg_add_pspec (pspec, config.intra_quant_bias, FALSE, mpeg, NULL); |
|
|
653 |
#endif |
639 |
|
654 |
|
|
|
655 |
#if 0 |
640 |
pspec = g_param_spec_int ("inter-quant-bias", |
656 |
pspec = g_param_spec_int ("inter-quant-bias", |
641 |
"Inter Quantizer Bias", |
657 |
"Inter Quantizer Bias", |
642 |
"Inter Quantizer Bias", |
658 |
"Inter Quantizer Bias", |
643 |
-1000000, 1000000, FF_DEFAULT_QUANT_BIAS, |
659 |
-1000000, 1000000, AV_DEFAULT_QUANT_BIAS, |
644 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
660 |
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS); |
645 |
gst_ffmpeg_add_pspec (pspec, config.inter_quant_bias, FALSE, mpeg, NULL); |
661 |
gst_ffmpeg_add_pspec (pspec, config.inter_quant_bias, FALSE, mpeg, NULL); |
|
|
662 |
#endif |
646 |
|
663 |
|
647 |
pspec = g_param_spec_int ("noise-reduction", |
664 |
pspec = g_param_spec_int ("noise-reduction", |
648 |
"Noise Reduction", |
665 |
"Noise Reduction", |