summaryrefslogtreecommitdiffstats
path: root/ext
diff options
context:
space:
mode:
Diffstat (limited to 'ext')
-rw-r--r--ext/divx/gstdivxdec.c2
-rw-r--r--ext/divx/gstdivxenc.c19
2 files changed, 12 insertions, 9 deletions
diff --git a/ext/divx/gstdivxdec.c b/ext/divx/gstdivxdec.c
index 011836f9..e1cfd2c9 100644
--- a/ext/divx/gstdivxdec.c
+++ b/ext/divx/gstdivxdec.c
@@ -220,6 +220,8 @@ gst_divxdec_setup (GstDivxDec *divxdec)
/* initialize the handle */
memset(&xinit, 0, sizeof(DEC_INIT));
+ xinit.smooth_playback = 0;
+ xinit.codec_version = 500;
if ((ret = decore(&handle, DEC_OPT_INIT, &xinit, NULL)) != 0) {
gst_element_error(GST_ELEMENT(divxdec),
"Error initializing divx decoding library: %s (%d)",
diff --git a/ext/divx/gstdivxenc.c b/ext/divx/gstdivxenc.c
index bd7547a1..718b226d 100644
--- a/ext/divx/gstdivxenc.c
+++ b/ext/divx/gstdivxenc.c
@@ -272,17 +272,16 @@ gst_divxenc_setup (GstDivxEnc *divxenc)
input.biCompression = divxenc->csp;
memset(&output, 0, sizeof(SETTINGS));
- output.vbr_mode = 0;
+ output.vbr_mode = RCMODE_VBV_1PASS;
output.bitrate = divxenc->bitrate;
output.quantizer = 0;
- output.use_bidirect = 0;
+ output.use_bidirect = 1;
output.input_clock = 0;
output.input_frame_period = 1000000;
output.internal_timescale = divxenc->fps * 1000000;
output.max_key_interval = (divxenc->max_key_interval == -1) ?
- (2 * divxenc->fps) :
- divxenc->max_key_interval;
- output.key_frame_threshold = 0;
+ 150 : divxenc->max_key_interval;
+ output.key_frame_threshold = 50;
output.vbv_bitrate = 0;
output.vbv_size = 0;
output.vbv_occupancy = 0;
@@ -290,16 +289,18 @@ gst_divxenc_setup (GstDivxEnc *divxenc)
output.deinterlace = 0;
output.quality = divxenc->quality;
output.data_partitioning = 0;
- output.quarter_pel = 0;
- output.use_gmc = 0;
+ output.quarter_pel = 1;
+ output.use_gmc = 1;
output.psychovisual = 0;
output.pv_strength_frame = 0;
output.pv_strength_MB = 0;
output.interlace_mode = 0;
output.enable_crop = 0;
output.enable_resize = 0;
- output.temporal_enable = 0;
- output.spatial_passes = 0;
+ output.temporal_enable = 1;
+ output.spatial_passes = 3;
+ output.spatial_level = 1.0;
+ output.temporal_level = 1.0;
if ((ret = encore(&handle, ENC_OPT_INIT, &input, &output))) {
gst_element_error(GST_ELEMENT(divxenc),