import sys, os
import gi
gi.require_version('Gst', '1.0')
from gi.repository import Gst, GObject, GLib
GObject.threads_init()

stephenwei 發表在 痞客邦 留言(0) 人氣()

#include <gst/gst.h>
void on_pad_added (GstElement *element, GstPad *pad, gpointer data){
gst_element_link_pads(element, gst_pad_get_name(pad), GST_ELEMENT(data), "sink");
}
int main(int argc, char *argv[]) {

stephenwei 發表在 痞客邦 留言(0) 人氣()

下載 caffe 後安裝

mkdir build

cmake -Dblas=open -Dpython3_version=3 ..

make -j4

sudo make install

stephenwei 發表在 痞客邦 留言(0) 人氣()

原型

rtspsrc lolcaiton=rtsp://192.168.50.246 user-id=admin user-pw=admin protocols=4 ! rtph264depay ! h264parse ! avdec_h264 ! videoscale ! videorate ! videoconvert ! autovideosink

void on_pad_added (GstElement *element, GstPad *pad, gpointer data)

{

        gst_element_link_pads(element, gst_pad_get_name(pad), GST_ELEMENT(data), "sink");

stephenwei 發表在 痞客邦 留言(0) 人氣()

如官方網站提供的文件

Dynamic Pad

通常 demux 的時候會用到 dynamic(somestime) pad, 下面是 Element matroskademux 的資料

Pad Templates:
  SRC template: 'video_%u'

stephenwei 發表在 痞客邦 留言(0) 人氣()

解說請去這裡

Bus通常是用來監聽的, 當在 Bus 的 callback 收到 message 訊號時,  我們可以根據 message 的 type 來做相對應的反應

type種類可以參考這裡, 不過就如同sample code 一樣, 你真的很少用到那麼多, 通常開發的過程會比較需要收到EOS或者ERROR

bus callback是透過 gst_bus_add_watch 建立的, 型態是

guint gst_bus_add_watch (GstBus *bus,

stephenwei 發表在 痞客邦 留言(0) 人氣()

以下是我自己的看法, 你可以參照官網

在Gstreamer 的架構當中, 一個管線(pipeline)通常會有一個以上的Bin以及2個以上的元件(Element),

封包流會依照你給的順序從 Element的 srcpad 流向 另一個 Element的 sinkpad.

在這裡 srcpad 就是送, sinkpad 就是收

所以我們從sample code範例當中可以看到建立pipeline以及bin之後

stephenwei 發表在 痞客邦 留言(0) 人氣()

想寫一份Gstreamer的文章, 因為實在是不懂為什麼他沒什麼資源,  明明很多家企業都在用它

所以又開始在這個blog寫寫東西

如果你想學Gstreamer 有些東西你必需要知道

1. 一定要知道官網 https://gstreamer.freedesktop.org/

2. 要看這一篇https://gstreamer.freedesktop.org/documentation/application-development/index.html

stephenwei 發表在 痞客邦 留言(0) 人氣()

安裝的原因除了本身nam無法使用之外,還有一點就是如果要改source code 當然還是要自己安裝

一樣的安裝方式

差別在於安裝過程中會有幾個失敗點

需要安裝linsx

需要修改ns-2.35/linkstate/ls.h

stephenwei 發表在 痞客邦 留言(0) 人氣()

結束了~只花了3小時我就不知道要做什麼

今年沒有什麼變化 ~ 或者說NVR已經成熟?

這是錯的,不少家廠商都已經意識到IPCAM resolution的發產已經超出 NVR的極限

所以有不少廠商做了一些變化,不明顯的就是大陸的H跟D公司

很明顯的就是台灣的A,I,H公司

stephenwei 發表在 痞客邦 留言(0) 人氣()

linux server 竟然這麼舊,真的很意外.

設備是多核,還要裝上smp

rpm --install kernel-smp-2.4.20-30.9.i686.rpm

mkinitrd -v -f /boot/initrd-2.4.30-30.9.i686smp.img 2.4.20-30.9smp

stephenwei 發表在 痞客邦 留言(0) 人氣()

訂了protocol已經夠糟糕了, 然後stream 卻用RTSP.

我不得不說,每家IPCAM的RTSP都很精采

有些人在一個socket 同時傳送video 跟audio

有些人可以分開送

有些人只送UDP

stephenwei 發表在 痞客邦 留言(0) 人氣()

1 2
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。