Skip to content

Instantly share code, notes, and snippets.

●チュートリアル

チューニング賞を受賞さいたディープラーニングの父Hinton教授のビデオが公開!(英語)

メディカルAI専門コース オンライン講義資料(日本語)

@herryliq
herryliq / gstreamer-recording-dynamic-from-stream.c
Created November 2, 2021 07:08 — forked from crearo/gstreamer-recording-dynamic-from-stream.c
Example of dynamic recording of a stream received from udpsrc.
#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
@herryliq
herryliq / gstreamer_fps_test.cpp
Created October 8, 2021 04:22 — forked from peter-moran/gstreamer_fps_test.cpp
Example code for displaying (and finding FPS of) gstreamer video in OpenCV.
/*
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:
@herryliq
herryliq / pubclient.cpp
Created March 17, 2021 09:19 — forked from kuenishi/pubclient.cpp
ZeroMQ sample codes
#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";
@herryliq
herryliq / gstreamer-recording-dynamic.c
Created January 12, 2021 15:21 — forked from crearo/gstreamer-recording-dynamic.c
Example of dynamic pipeline in Gstreamer (recording + display). Stop recording at will by hitting ctrl+c.
#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;
@herryliq
herryliq / open_momo.rst
Created October 19, 2020 13:45 — forked from voluntas/open_momo.rst
OpenMomo プロジェクト
@herryliq
herryliq / receipt5.md
Created October 18, 2020 00:02
How to make a Raspberry Pi an RTSP streamer and how to consume this?

RTSP streaming from Raspberry PI

Introduction

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.

Prerequisites

@herryliq
herryliq / README.md
Created October 17, 2020 15:05 — forked from Samfox2/README.md
GStreamer stream to HTML5

Description

[Server] GStreamer ---> HTML [Client]

Require

  • gstreamer-1.x
  • Browser which supports video tag of HTML5

debian

@herryliq
herryliq / gstreamer.md
Created October 17, 2020 15:04 — forked from nebgnahz/gstreamer.md
Collections of GStreamer usages

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.

@herryliq
herryliq / myqueue.py
Created June 14, 2020 04:44 — forked from bofm/myqueue.py
Enhanced Python queue with additional .getall(), .clear() and .close() methods.
import threading
from queue import Empty, Full
class QueueClosed(Exception):
pass
class MyQueue():