[prev in list] [next in list] [prev in thread] [next in thread]
List: gstreamer-devel
Subject: GstPlayer with jackaudiosink, python3
From: Patrick Shirkey <patrickshirkey () protonmail ! com>
Date: 2021-01-23 23:10:47
Message-ID: SGtVJqjwc5RIB5IRW_ClPeuFuiGrMrZdBeHQdicGGbvAn6_NQW53ljp4I9YgXPKUE8yIum_kgyFfvvF7YoWFSBxfnJdkykESeERNX5YosyU= () protonmail ! com
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
[Attachment #4 (text/plain)]
Hi,
What is the correct method for routing through jackaudiosink with GstPlayer? I cannot \
find any examples for this online.
Here is my attempt:
from gi.repository import Gst
from gi.repository import GstPlayer
Gst.init(None)
player = GstPlayer.Player()
pipeline = player.get_pipeline()
sink = Gst.ElementFactory.make("jackaudiosink", "sink")
pipeline.add(sink)
p.set_uri('file:///home/user/Music/test.wav') p.play()
--
Patrick Shirkey
[Attachment #5 (text/html)]
<div>Hi,<br></div><div><br></div><div>What is the correct method for routing through \
jackaudiosink with GstPlayer? I cannot find any examples for this \
online.<br></div><div><br></div><div>Here is my \
attempt:</div><div><br></div><div>from gi.repository import Gst<br></div><div>from \
gi.repository import \
GstPlayer<br></div><div><br></div><div>Gst.init(None)<br></div><div>player = \
GstPlayer.Player()<br></div><div><br></div><div>pipeline = \
player.get_pipeline()<br></div><div>sink = Gst.ElementFactory.make("jackaudiosink", \
"sink")<br></div><div>pipeline.add(sink)<br></div><div><br></div><div>p.set_uri('file:///home/user/Music/test.wav') \
\
\
\
p.play()<br></div><div><br></div><div><br></div><div>--</div><div>Patrick \
Shirkey</div>
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic