gstreamer

How to get Pipeline created by playbin in textual format in Gstreamer?

浪尽此生 提交于 2019-12-09 18:43:32
问题 I'm playing a transport stream file (*.ts) using the following pipeline: gst-launch-0.10 playbin2 uri=file:///c:/bbb.ts But I need to convert that into a pipeline myself. I'm not sure how to achieve this. So far I have tried: (works fine) gst-launch-0.10 -v filesrc location=c:/bbb.ts ! tsdemux ! audio/x-ac3 ! fakesink But if i replace fakesink with autoaudiosink it fails with a not-linked error. And even the fakesink doesn't work for video: gst-launch-0.10 -v filesrc location=c:/bbb.ts !

fedora下安装媒体播放器与解码器

白昼怎懂夜的黑 提交于 2019-12-09 15:48:30
由于授权问题,Fedora不支持播放mp3等格式的文件,而且无法yum安装,需要自己寻找安装,下面是一个在Fedora下听音乐看电影的方法: rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm rpm -ivh http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm yum install gstreamer-plugins-bad gstreamer-ffmpeg gstreamer-plugins-ugly -y yum install mplayer mplayer-gui mencode -y 完了之后在点击mp3文件就可以听了,rmvb/rm/mkv/mp4/wmv也可以看,我试过,可以用的!另外,linux下有音乐预听功能 的,即不用打开文件,只要把鼠标移到音乐文件上面就可以听到了! 来源: oschina 链接: https://my.oschina.net/u/213692/blog/36635

How to embed video in GTK+ application window using GStreamer & XOverlay?

穿精又带淫゛_ 提交于 2019-12-09 13:24:53
问题 I am trying to write a small media player using GTK+ and GStreamer and currently using the XOverlay Interface to embed the video in a GtkDrawing Area INSIDE the mainwindow. The program was compiled using this command: g++ /home/phongcao/cacao.cc -o /home/phongcao/cacao `pkg-config --cflags --libs gtk+-2.0 gstreamer-0.10 gstreamer-plugins-base-0.10 gstreamer-interfaces-0.10` The problem is that the video was displayed in a SEPARATED window (instead of under the toolbar of the main window):

How to convert raw BGRA image to JPG using GStreamer 1.0?

只谈情不闲聊 提交于 2019-12-08 18:04:24
I'm trying to display a raw image (1.8MB) with gst-launch-1.0 . I understand that the data needs to be encoded to JPG before this can be achieve. If image was already stored as a jpg file the story would be quite simple: gst-launch-1.0.exe -v filesrc location=output.jpg ! decodebin ! imagefreeze ! autovideosink However, I need to assemble the pipeline to display a raw BGRA 800x600 image (looks the same as the above) that was dumped to the disk by a 3D application. This is what I've done so far, but the problem is that it creates a completely black image on the disk: gst-launch-1.0.exe -v

Python having trouble accessing usb microphone using Gstreamer to perform speech recognition with Pocketsphinx on a Raspberry Pi

不打扰是莪最后的温柔 提交于 2019-12-08 17:11:32
问题 So python is acting like acting like it can't hear ANYTHING from my microphone at all. Here's the problem. I have a Python ( 2.7 ) script that is suppose to be using Gstreamer to access my microphone and do speech recognition for me via Pocketsphinx . I'm using Pulse Audio and my device is a Raspberry Pi . My microphone is a Playstation 3 Eye . Now off the bat, I have already gotten pocketsphinx_continuous to run correctly and recognize the words I have defined in my .dict and .lm files. The

why qt can run without x server and gtk cant

蓝咒 提交于 2019-12-08 13:27:08
问题 I am developing a gstreamer based app on AM335x starter kit running arago linux. "gst-launch"(with a test pipeline) gives proper command line output (serial) but shows nothing on the screen. BTW the screen by default shows a qt demo app. Killing this demo app makes the gst-launch fail. I compiled a "hello world" gtk app, which gives "Gtk-WARNING **: cannot open display:" error. BTW there is no X here. But when I ran a Qt "hello world" app, a pop up window was displayed on top of the demo app.

How to pass kinectV2 data streams by connecting multiple servers to single client computer using c++.Each server is connected to kinect sensor

烈酒焚心 提交于 2019-12-08 11:48:44
问题 I have 3 machines which are connected to kinect sensorV2 and i need kinect data from all the three machines and it will be passed to my client computer.How can i achieve this in C++ Thanks, kiruba 回答1: Have a look at kv2Streamer. It streams Kinect v2 data from one computer to another using gstreamer (I think). By default, kv2Streamer is most likely not capable of streaming from multiple clients, but you might be able to adapt it to your needs. For more details see kv2Stramer issue #6. But

Gstreamer - stream h264 video from Logitech c920 over tcp

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-08 10:14:06
问题 I am trying to stream video from Logitech c920 which outputs h264 directly. The sending side is a Raspberry Pi and the receiving side is a Windows 7 PC. Using udp this works flawlessly in Gstreamer: Sender: gst-launch-1.0 -v v4l2src device=/dev/video0 ! \ video/x-h264,width=1280,height=720,framerate=30/1 ! h264parse ! rtph264pay \ pt=127 config-interval=4 ! udpsink host=$myip port=$myport Receiver: gst-launch-1.0 -e -v udpsrc port=5001 ! ^ application/x-rtp, payload=96 ! ^ rtpjitterbuffer ! ^

Building gstreamer from source in windows using cerbero … issues with building gst-libav-1.0

删除回忆录丶 提交于 2019-12-08 09:30:51
问题 I am first time compiling gstreamer from source code and I am facing difficulty in building gst-libav-1.0 in windows. I followed link given in the gstreamer website. only creation of .cerbero.cbc is avoided (as it gives lots more problems ,but default will work it say in site) compiling gstreamer from source code-- gstreamer website ISSUES 1) After running build command I am getting error of " /w32pthreads.h:137:1: error: unknown type name 'INIT_ONCE'" For more detailed error see error.txt

What is the 'export GST_DEBUG=<#>' equivalent for Android?

我的未来我决定 提交于 2019-12-08 07:50:28
问题 On Linux systems I've used 'export GST_DEBUG=<#>' to debug problems with a program's use of GStreamer. I'm now working on Android and would like to do the same - see the GStreamer output included in the logcat output. I have a Google Nexus 5 phone and I'm using the full_hammerhead_userdebug build. I've seen the following suggested: Add the following in JNI_OnLoad: setenv("GST_DEBUG", "*:5", 1); setenv("GST_DEBUG_NO_COLOR", "1", 1); Unfortunately I'm trying to debug a C library, so I would