Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSergey Sharybin <sergey.vfx@gmail.com>2012-12-18 21:46:59 +0400
committerSergey Sharybin <sergey.vfx@gmail.com>2012-12-18 21:46:59 +0400
commitdebe07d9e4fdc46be99c1c213bbf70b43882142e (patch)
treee827afbd75207689fe851a7ff071c6d1d5db61d7 /source/blender/blenkernel/intern/writeffmpeg.c
parent460a9619754c4fea315b99d688becad6fcbef26c (diff)
Fix #33586: Encoding to mpeg4 makes first frame(s) blocky
Issue was caused by rc_initial_buffer_occupancy being set for context Commented this option for now -- it's not used in ffmpeg.c. Now encoding seems to be working nice for MPEG4 and other codecs as well. However, if there're some gurus around please check :)
Diffstat (limited to 'source/blender/blenkernel/intern/writeffmpeg.c')
-rw-r--r--source/blender/blenkernel/intern/writeffmpeg.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/source/blender/blenkernel/intern/writeffmpeg.c b/source/blender/blenkernel/intern/writeffmpeg.c
index 0f861a7ed37..cf2a165c2b2 100644
--- a/source/blender/blenkernel/intern/writeffmpeg.c
+++ b/source/blender/blenkernel/intern/writeffmpeg.c
@@ -497,8 +497,15 @@ static AVStream *alloc_video_stream(RenderData *rd, int codec_id, AVFormatContex
c->rc_max_rate = rd->ffcodecdata.rc_max_rate * 1000;
c->rc_min_rate = rd->ffcodecdata.rc_min_rate * 1000;
c->rc_buffer_size = rd->ffcodecdata.rc_buffer_size * 1024;
+
+#if 0
+ /* this options are not set in ffmpeg.c and leads to artifacts with MPEG-4
+ * see #33586: Encoding to mpeg4 makes first frame(s) blocky
+ */
c->rc_initial_buffer_occupancy = rd->ffcodecdata.rc_buffer_size * 3 / 4;
c->rc_buffer_aggressivity = 1.0;
+#endif
+
c->me_method = ME_EPZS;
codec = avcodec_find_encoder(c->codec_id);