[rygel/wip/phako/hw-transcode: 1/4] engine-gst: Enable MPEG2 encoding using VA-API




commit 1d3c8063369d430dfbdd8015270b7c6b33c345c1
Author: Jens Georg <mail jensge org>
Date:   Tue Dec 22 15:57:05 2020 +0100

    engine-gst: Enable MPEG2 encoding using VA-API

 data/presets/GstVaapiEncodeMpeg2.prs | 6 ++++++
 data/presets/meson.build             | 1 +
 src/rygel/meson.build                | 2 +-
 src/rygel/rygel-main.vala            | 2 ++
 4 files changed, 10 insertions(+), 1 deletion(-)
---
diff --git a/data/presets/GstVaapiEncodeMpeg2.prs b/data/presets/GstVaapiEncodeMpeg2.prs
new file mode 100644
index 00000000..a9f59960
--- /dev/null
+++ b/data/presets/GstVaapiEncodeMpeg2.prs
@@ -0,0 +1,6 @@
+[_presets_]
+version=1.0
+element-name=GstVaapiEncodeMpeg2
+
+[Rygel DLNA preset]
+bitrate=15000
diff --git a/data/presets/meson.build b/data/presets/meson.build
index d2088d9d..e91683d2 100644
--- a/data/presets/meson.build
+++ b/data/presets/meson.build
@@ -2,6 +2,7 @@ install_data(
     ['avenc_aac.prs',
      'avenc_mp2.prs',
      'avenc_mpeg2video.prs',
+     'vaapimpeg2enc.prs',
      'avenc_wmav1.prs',
      'avenc_wmv1.prs',
      'GstFaac.prs',
diff --git a/src/rygel/meson.build b/src/rygel/meson.build
index a4b55079..4085cdcb 100644
--- a/src/rygel/meson.build
+++ b/src/rygel/meson.build
@@ -6,6 +6,6 @@ rygel_sources = [
 executable('rygel',
            rygel_sources,
            c_args : ['-DG_LOG_DOMAIN="Rygel"'],
-           dependencies : rygel_deps + [build_config, rygel_core, rygel_server],
+           dependencies : rygel_deps + [build_config, rygel_core, rygel_server, dependency('x11')],
            install: true
            )
diff --git a/src/rygel/rygel-main.vala b/src/rygel/rygel-main.vala
index 94b6c303..f6c507cd 100644
--- a/src/rygel/rygel-main.vala
+++ b/src/rygel/rygel-main.vala
@@ -294,6 +294,8 @@ internal class Rygel.Main : Object {
         Main main = null;
         DBusService service = null;
 
+        X.init_threads ();
+
         var original_args = args;
 
         Intl.setlocale (LocaleCategory.ALL, "");


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]