Pixelflut/Pixelnuke ansteuern mit gstreamer

Raspberri Pi, Banana Pi, Cubieboard etc. mit ARM CPU
Post Reply
User avatar
h3rb3rn
Administrator
Posts: 189
Joined: Mon 9. Feb 2015, 23:29

Pixelflut/Pixelnuke ansteuern mit gstreamer

Post by h3rb3rn »

Fassung vom 07.09.2018

Getestet unter Ubuntu 18.04 LTS auf der MRMCD 2018

Basis Voraussetzung schaffen

Code: Select all

sudo apt install libgstreamer1.0-0 gstreamer1.0-plugins-base gstreamer1.0-plugins-good gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly gstreamer1.0-libav gstreamer1.0-doc gstreamer1.0-tools build-essential libevent-dev libglew-dev libglfw3-dev libgstreamer-plugins-base1.0-dev netcat git pkg-config libsdl2-dev

Pixelflut Server clonen und kompilieren

Quelle: https://github.com/larsmm/pixelflut

Code: Select all

git clone --recursive https://github.com/larsmm/pixelflut.git
cd pixelflut
make
Pixelflut Server starten

Code: Select all

./pixelflut


gstreamer Programming Workshop

Quelle: https://pads.schaffenburg.org/mrmcd

Code: Select all

git clone https://github.com/fraxinas/gst-pixelflut.git
cd gst-pixelflut
git checkout step_00
autoreconf --force --install
./configure
make
gst-inspect-1.0 pixelflut
export GST_PLUGIN_PATH=$PWD
gst-inspect-1.0 pixelflut
git checkout step_01 && make
git checkout step_02 && make
git checkout step_03 && make
git checkout step_04 && make
git checkout step_05 && make
git checkout step_06 && make
git checkout step_07 && make
git checkout step_08 && make
git checkout step_09 && make
git checkout step_10 && make
Test mit Beispielcode

Code: Select all

export PXFHOST=127.0.0.1
gst-launch-1.0 videotestsrc pattern=pinwheel ! video/x-raw, width=400, height=300 ! pixelflutsink host=$PXFHOST offset-top=360 offset-left=480 port=1234
Testprogramm

Code: Select all

git checkout testapp
make
cd test/
export PXFHOST=127.0.0.1
./gstpixelflutsinktest --uri https://5images.cgames.de/images/gamestar/4/day-of-the-tentacle-remastered_2747904.jpg -i 1 -x 250 -y 250 -h $PXFHOST
Die Standardeinstellungen für den Host sind auf den Port 1337 festgelegt. Die Servereinstellung kann in der Datei gstpixelflutsinktest.c geändert werden.

Alternativ geht auch die Comando Erweiterung -p 1234 oder port=1234 an das Ende der Codezeile.
Attachments
Programming Workshop Commandlines.pdf
(48.48 KiB) Downloaded 664 times
Post Reply