我使用gstreamer在我的NVIDIA Tegra jetson TK1板上运行了一个9秒的视频:
gst-launch-0.10 playbin uri=file:///home/ubuntu/widescreen.avi
我注意到这会丢弃很多帧,gstreamer会打印这些消息:
WARNING: from element /GstPlayBin:playbin0/GstBin:vbin/GstAutoVideoSink:videosink/GstXvImageSink:videosink-actual-sink-xvimage: A lot of buffers are being
我有一个可以通过UDP传输H264视频的IP摄像头,但是我不能用gstreamer以任何可用的质量捕捉它。
使用以下命令:
gst-launch-1.0.exe -vvv playbin uri=udp://192.168.1.66:30120
我从相机上得到了这张照片,但它有几秒钟的延迟。它确实会产生流动的输出:
Setting pipeline to PAUSED ...
Pipeline is live and does not need PREROLL ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer
我开发了一个Kivy Python应用程序。它应该有音效。在基维,这很简单,因为:
from kivy.core.audio import SoundLoader
...
def btn(self):
sound = SoundLoader.load("images/crunch.ogg")
if sound:
sound.play()
当这段代码运行时,我得到:
[WARNING] [AudioGstplayer] b"No decoder available for type 'audio/x-
我已经执行了开源社区链接发布的AudioPlayer.java示例
我得到了以下异常
Exception in thread "main" java.lang.IllegalArgumentException: No such Gstreamer factory: playbin
at org.gstreamer.ElementFactory.makeRawElement(ElementFactory.java:180)
at org.gstreamer.Element.makeRawElement(Element.java:92)
at org.gstreamer.e
我有一个使用GStreamer的小C项目。我想加载一个视频,并将其与字幕(textoverlay)和经过时间(timeoverlay)一起显示。
我的想法是这样的:
- create a textoverlay and set a sample subtitle
- create a timeoverlay
- create a videosink
- put the three elements in a new bin and link them:
textoverlay -> timeoverlay -> videosink
- use playbin2 for pla
当我尝试使用下面的对接客户端连接到远程主机时:
docker -H tcp://remothost:5555 ps
如果版本不匹配,我会得到一个错误:
FATA[0000] Error response from daemon: client and server don't have same version (client : 1.16, server: 1.15)
那么,我如何设置客户机,使其使用1.15版本(而不是1.16版),从而与远程主机的API版本相匹配?
我正在构建一个基于gstreamer-0.10的音乐播放器。我可以成功的发挥,但我有问题时,我改变了管道的状态。我在下面发布了初始化和启动管道的代码:
void start_gstreamer()
{
gst_init(0,NULL);//call to initialise gstreamer
time_val=0;//set to default value
volume = 1.0;//set volume to default value
player = gst_element_factory_make ("playbin2",
我需要检测当前播放的音频/视频何时暂停。我找不到1.0版的任何东西。我的应用程序有点复杂,但这里是浓缩代码。
/* This function is called when the pipeline changes states. We use it to
* keep track of the current state. */
static void state_changed_cb(GstBus *bus, GstMessage *msg, CustomData *data)
{
GstState old_state, new_state, pending_state;