[longomatch] Write x264 log in a writable place
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch] Write x264 log in a writable place
- Date: Tue, 1 Apr 2014 23:22:54 +0000 (UTC)
commit 106641c35e24dd57e9d44eba432ed69e53d7fe60
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date: Wed Apr 2 01:22:21 2014 +0200
Write x264 log in a writable place
libcesarplayer/video-utils.c | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
---
diff --git a/libcesarplayer/video-utils.c b/libcesarplayer/video-utils.c
index 21662d8..7657153 100644
--- a/libcesarplayer/video-utils.c
+++ b/libcesarplayer/video-utils.c
@@ -456,13 +456,17 @@ GstElement * lgm_create_video_encoder (VideoEncoderType type, guint quality,
name = "Xvid video encoder";
break;
- case VIDEO_ENCODER_H264:
+ case VIDEO_ENCODER_H264: {
+ gchar *stats_file = g_build_path (G_DIR_SEPARATOR_S, g_get_tmp_dir(),
+ "x264.log", NULL);
encoder = gst_element_factory_make ("x264enc", "video-encoder");
g_object_set (encoder, "key-int-max", 25, "pass", 17,
- "speed-preset", 3,
+ "speed-preset", 3, "stats-file", stats_file,
"bitrate", quality, NULL);
+ g_free (stats_file),
name = "X264 video encoder";
break;
+ }
case VIDEO_ENCODER_THEORA:
encoder = gst_element_factory_make ("theoraenc", "video-encoder");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]