/gst-pipeapp

Primary LanguageCGNU General Public License v2.0GPL-2.0

gst-pipeapp

11.12.2015 - tested on the v2r

Application construct gstreamer pipe with appsink and run callback when each frame converted.

Divided on the app and lib. Allow connect script lang, tested on the python in the gst-pipeapp.py.

Pipeline may by readed from file, othewith default test pipeline

gst_jpg_frm [pipeline_txt_file_name]

Sample python callback in the gst-pipeapp.py.

osx appsink test

Need jpegenk, default install gst-plugins-good010 exist only pngenc.

brew uninstall gst-plugins-good010
brew install gst-plugins-good010 --with-jpeg
gst-launch-1.0 -v videotestsrc ! \
    video/x-raw,width=640,height=480,framerate=10/1 ! \
    autovideosink
gst-launch-1.0 -v videotestsrc ! \
    video/x-raw,width=640,height=480,framerate=10/1 ! \
    jpegenc ! \
    appsink
gst-launch -v -e videotestsrc ! \
    video/x-raw-rgb,framerate=10/1,width=1024,height=768 ! \
    pngenc snapshot=false ! 
    appsink name=sink drop=true
gst-launch -v -e videotestsrc num-buffers=1 ! \
    video/x-raw-rgb,framerate=10/1,width=1024,height=768 ! \
    jpegenc ! \
    filesink location=test.jpeg

v2r appsink

gst-launch -v -e v4l2src always-copy=false chain-ipipe=true ! \
    capsfilter caps=video/x-raw-yuv,format=\(fourcc\)NV12,width=640,height=480,framerate=10/1  ! \
    dmaiaccel ! \
    dmaienc_jpeg copyBuffer=true ! \
    appsink name=sink drop=true

problems on device

Segmentation fault, when try to atach callback. Callback address -xxxx big value. Renaming to pineapp_callback resolve problems.