-
本人曰くやや古い内容ですが、共通の基礎的な概念のところは参考になるところも多いでしょうと
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
// udpsrc port=8554 caps="application/x-rtp, media=(string)video, clock-rate=(int)90000, width=(int)720, height=(int)480, encoding-name=(string)H264, payload=(int)96" ! | |
// rtpjitterbuffer name=rtpjitbuff ! rtph264depay ! | |
// tee name=t t. ! avdec_h264 ! appsink name=sink sync=false |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* | |
Example code for displaying (and finding FPS of) gstreamer video in OpenCV. | |
Created by Peter Moran on 7/29/17. | |
Usage | |
------- | |
After compiling, run this program with the following arguments. All are optional, but must be used cumulatively. | |
`./gstreamer_test <width> <height> <fps> <window_size> <display_video>` | |
For example, to display 1080p video at 30 fps and calculate the true fps over a 15 sample running window, run: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <zmq.hpp> | |
#include <string.h> | |
#include <stdio.h> | |
#include <unistd.h> | |
int main (void) | |
{ | |
zmq::context_t context(1); | |
const char * protocol = | |
"tcp://localhost:5555"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <string.h> | |
#include <gst/gst.h> | |
#include <signal.h> | |
#include <unistd.h> | |
#include <stdlib.h> | |
#include <stdio.h> | |
// v4l2src ! tee name=t t. ! x264enc ! mp4mux ! filesink location=/home/rish/Desktop/okay.264 t. ! videoconvert ! autovideosink | |
static GMainLoop *loop; |
日時: | 2020-10-11 |
---|---|
作: | 時雨堂 |
資料 バージョン: | 2020.42 |
Github URL: | https://github.com/shiguredo/momo |
製品 URL: | https://momo.shiguredo.jp/ |
This gist describes the necessary software installation steps for a Raspberry PI in order to enable the PI's camera to act as an external camera for the Dragonfly Java application. This gist shows, how to make a Raspberry PI an RTSP streaming server. The resulting feed can then be used as input for the Dragonfly Java app or the Accuware Dragonfly Demo - Calibration Mode server. The RTSP server on the Raspberry PI must be made publicly available, if calibration is a requirement.
- Raspberry PI Zero W, 2, 3, 3b, 3b+, 4 with a Raspberry PI-Cam 5 MP or a [SainSmart Wide Angle Fish-Eye Cam](https://www.amazon.de/SainSmart-Fish-Eye-Camera-Raspberry-Arduino/dp/B00N1YJKFS/ref=asc_df_B00N1YJKFS/?tag=googshopde-21&linkCode=df0&hvadid=310638483583&hvpos=1o3&hvnetw=g&hvrand=12314684975119410116&hvpone=&hvptwo=&hvqmt=&hvdev=c&h
Most GStreamer examples found online are either for Linux or for gstreamer 0.10.
This particular release note seems to have covered important changes, such as:
- ffmpegcolorspace => videoconvert
- ffmpeg => libav
Applying -v
will print out useful information. And most importantly the negotiation results.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import threading | |
from queue import Empty, Full | |
class QueueClosed(Exception): | |
pass | |
class MyQueue(): |
NewerOlder