gstreamer

How to change video source in Amazon kinesis_video_gstreamer_sample_app.cpp?

和自甴很熟 提交于 2020-01-15 09:43:13
问题 I am running kinesis_video_gstreamer_sample_app.cpp on MacOS and it streams to AWS Kinesis from FaceTime (iSight) camera. How can I switch the video source to a USB Webcam? Thanks :) 回答1: Ok, I figured it out finally, modify the file kinesis_video_gstreamer_sample_app.cpp as follows. Change: if (data.encoder) { data.source = gst_element_factory_make("autovideosrc", "source"); To: if (data.encoder) { data.source = gst_element_factory_make("avfvideosrc", "source"); g_object_set(G_OBJECT(data

Implement multi-stream in Gstreamer

寵の児 提交于 2020-01-13 21:37:08
问题 I've written a Gstreamer source plugin, it can produce buffers and transform to downstream elements and do preview. Recently I received a request to implement multi-stream, that one stream to do preview, and the other stream to do recording(using filesink, I suppose). I investigated 'tee' plugin before, but it turns out that it only supports multiple streams with the same formats/resolutions. What plugin should I use if two streams have different formats/resolutions , say, two capsfilters in

Gstreamer with gst-omx Raspberry Pi

半腔热情 提交于 2020-01-12 08:40:11
问题 I compiled the gstreamer with gst-omx following this tutorial: http://www.onepitwopi.com/raspberry-pi/gstreamer-1-2-on-the-raspberry-pi/ Everything went fine and in the end when i ran gst-inspect-1.0 | grep omx I got: omx: omxmpeg2videodec: OpenMAX MPEG2 Video Decoder omx: omxmpeg4videodec: OpenMAX MPEG4 Video Decoder omx: omxh263dec: OpenMAX H.263 Video Decoder omx: omxh264dec: OpenMAX H.264 Video Decoder omx: omxtheoradec: OpenMAX Theora Video Decoder omx: omxvp8dec: OpenMAX VP8 Video

Stream webcam video with gstreamer 1.0 over UDP to PC

柔情痞子 提交于 2020-01-12 06:20:12
问题 Im trying to stream video from a Raspberry Pi (on Raspbian) to a Windows 7 PC like in this video: https://www.youtube.com/watch?v=lNvYanDLHZA I have a Logitech C270 connected to the Raspberry Pi, and have managed to stream webcam video over TCP using: gst-launch v4l2src device=/dev/video0 ! \ 'video/x-raw-yuv,width=640,height=480' ! \ x264enc pass=qual quantizer=20 tune=zerolatency ! \ rtph264pay ! tcpsink host=$pi_ip port=5000 from my Pi. Receive this using VLC works, but with a 3 sec delay.

Receiving video stream from an IP camera on android

我是研究僧i 提交于 2020-01-12 05:21:20
问题 I have an IP camera which is streaming video in MJPEG format. Now my aim is to receive it and display it in my own custom android app. For this I have three programming alternatives on android platform : Using inbuilt Anrdroid MediaPlayer class Using FFMPEG library in native C and accessing it through JNI Using GStreamer port on android to receive the stream So please suggest a better solution? I have no experience with FFMPEG or GStreamer. So what is the feasibility of doing this? 回答1: Use

Video Output In Tkinter From GStreamer?

不打扰是莪最后的温柔 提交于 2020-01-11 09:55:11
问题 does anyone know how i would go about using a tkinter window as an output from a videosink/pipeline from within python? i have found methods for lots of other GUI systems, but i dont want to have to use tkinter and something else together xxx thanks in advance x 回答1: This works for me on Windows 32-bit. I get a seg fault on Linux or Windows 64-bit. Sorry, I don't know about Mac. You have to use bus.connect("sync-message::element", on_sync_message) and pass a Tk widget ID ( winfo_id ), as you

OpenCV 3.0.0 error with Gstreamer

与世无争的帅哥 提交于 2020-01-11 07:05:25
问题 I just installed OpenCV 3.0 following this tutorial: http://rodrigoberriel.com/2014/10/installing-opencv-3-0-0-on-ubuntu-14-04/ I didn't encounter any error during the installation process. However, when I tried running the a sample program such as the following, cd cpp/ ./cpp-example-facedetect lena.jpg // (../data/lena.jpg) OpenCV 3.0 beta ./cpp-example-houghlines pic1.png // (../data/pic1.jpg) OpenCV 3.0 beta I get the following error: Processing 1 lena.jpg GStreamer: Error opening bin:

Orangepi DLAN Music Player

爱⌒轻易说出口 提交于 2020-01-07 15:56:09
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> sudo apt install -y gmediarender gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-alsa sudo nano /etc/asound.conf defaults.ctl.card 1 defaults.pcm.card 1 defaults.timer.card 1 sudo gmediarender -f "Pi" -d 来源: oschina 链接: https://my.oschina.net/lanseyujie/blog/3154386

How to tag or add metadata to a video file with GStreamer?

…衆ロ難τιáo~ 提交于 2020-01-06 19:50:53
问题 I would like to add metadatas to an MP4 video file with GStreamer: How to do it while recording the file? How to do it when the file is already recorded? Is that possible to check these modifications with GStreamer? For example, with FFmpeg, I can add a title to my video with this command line: ffmpeg -i in.mp4 -metadata title="my title" out.mp4 And then, I check the result with mediainfo: mediainfo out.mp4 回答1: I found a way to do it with a debug plugin: taginject For example, in order to

Video streaming over RTP using gstreamer

牧云@^-^@ 提交于 2020-01-06 07:24:42
问题 I am trying to stream a video file using gstreamer from one device to another over RTP. At the sender side I am using the following command : gst-launch filesrc location=/home/kuber/Desktop/MELT.MPG ! mpegparse ! rtpsend ip=localhost But this gives the following error : no element "rtpsend" , I downloaded all the rtp tools and still the same error. Am I using rtpsend in some wrong way? Also can someone give me the command line code for streaming video file(locally stored in my laptop and not