GST: Add ability to encode video
Signed-off-by: Vasiliy Doylov <nekocwd@mainlining.org>
This commit is contained in:
parent
af4fe35b88
commit
c97950a8df
1 changed files with 5 additions and 1 deletions
|
@ -165,7 +165,11 @@ public class EyeNeko.Gstreamer : Object {
|
||||||
pipe_elements ("Video Pipeline",
|
pipe_elements ("Video Pipeline",
|
||||||
Gst.ElementFactory.make ("queue"),
|
Gst.ElementFactory.make ("queue"),
|
||||||
Gst.ElementFactory.make ("videoconvert"),
|
Gst.ElementFactory.make ("videoconvert"),
|
||||||
Gst.ElementFactory.make ("x264enc")));
|
Gst.parse_launch (Env.get_variable_or
|
||||||
|
(
|
||||||
|
"VIDEO_ENCODE",
|
||||||
|
"x264enc tune=zerolatency speed-preset=ultrafast bitrate=8192"
|
||||||
|
))));
|
||||||
camerabin.bind_property ("idle", this, "ready", BindingFlags.SYNC_CREATE);
|
camerabin.bind_property ("idle", this, "ready", BindingFlags.SYNC_CREATE);
|
||||||
this.bind_property ("camerabin-mode", camerabin, "mode");
|
this.bind_property ("camerabin-mode", camerabin, "mode");
|
||||||
add_enc_profile ();
|
add_enc_profile ();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue