Skip to content

Instantly share code, notes, and snippets.

Avatar
🌳

Robin van Emden robinvanemden

🌳
View GitHub Profile
View test.sh
#!/bin/bash
# run as:
#
# sudo bash -c "$(wget -q -O - https://get.sclbl.net)"
if ! type "killall" >/dev/null 2>&1; then
echo 'Error: The POSIX "killall" command cannot be found. Please install and try again.' >&2
exit 1
fi
View get-bbleap-client.sh
#!/bin/bash
# run as:
#
# sudo bash -c "$(wget -q -O - https://bit.ly/3SqXxxA)"
if [ "$(id -u)" -ne 0 ]; then
echo 'Please run as root.' >&2
exit 1
fi
View get-bbleap-server.sh
#!/bin/bash
# run as:
#
# sudo bash -c "$(wget -q -O - https://bit.ly/3UYetgs)"
if [ "$(id -u)" -ne 0 ]; then
echo 'Please run as root.' >&2
exit 1
fi
@robinvanemden
robinvanemden / gige_gst_v4l.md
Created September 23, 2022 15:22 — forked from nitheeshkl/gige_gst_v4l.md
Gstreamer pipelines to use GigE cams as webcam for Zoom/Teams/Skype
View gige_gst_v4l.md

Using GigE cam as webcam for Zoom/Skype/Teams

TL;DR: Creates a Gstreamer pipeline to read camera frames from a GigE camera, using Aravis library, and publish them as V4l2 camera source, using V4l2loopback, that can be read by video conferencing programs like Zoom/Skype/Teams.

gst-launch-1.0 aravissrc blocksize=5013504 h-binning=1 v-binning=1 ! video/x-bayer,format=rggb,framerate=100/5,width=2448,height=2048 ! bayer2rgb ! video/x-raw,format=RGBx ! videoconvert ! video/x-raw,format=YUY2 !  aspectratiocrop aspect-ratio=16/9 ! videoscale ! video/x-raw,width=1280,height=720 ! queue ! v4l2sink device=/dev/video0

The Basics

@robinvanemden
robinvanemden / gstreamer-tips.md
Created September 1, 2022 11:58 — forked from flufy3d/gstreamer-tips.md
gstreamer remote streaming
View gstreamer-tips.md

simple test

gst-launch-1.0 -v videotestsrc ! video/x-raw,width=1280,height=640 ! glimagesink

streaming mpegts

gst-launch-1.0 -v videotestsrc ! video/x-raw,width=1280,height=640 ! videoconvert ! x264enc key-int-max=12 byte-stream=true ! mpegtsmux ! tcpserversink port=8888 host=0.0.0.0

vlc using tcp://192.168.1.192:8888

View test.sh
#!/bin/bash
#set -e
#trap 'echo " * Script failed with exit code $?"' EXIT
echo ""
echo "==========================================================================="
echo "= Welcome to the Scailable Edge AI Manager installer ="
echo "==========================================================================="
echo ""
@robinvanemden
robinvanemden / minimal_rtsp.c
Created April 30, 2022 12:30
minimal gstreamer rtsp example: retrieve frame, save jpeg
View minimal_rtsp.c
#include <stdio.h>
#include <gst/gst.h>
#include <gst/app/gstappsink.h>
#include <glib.h>
#include <libavcodec/avcodec.h>
#include "stb/stb_image.h"
void minimal_rtsp() {
View cleangit.sh
#!/bin/bash
default_branch=`basename $(git symbolic-ref --short refs/remotes/origin/HEAD)`
git checkout --orphan tmp
git add -A # Add all files and commit them
git commit
git branch -D $default_branch # Deletes the default branch
git branch -m $default_branch # Rename the current branch to default
git push -f origin $default_branch # Force push default branch to github
@robinvanemden
robinvanemden / reset.sh
Last active January 29, 2022 19:33
Reset Scailable Edge AI Manager
View reset.sh
#!/bin/bash
echo ""
echo "========================================================================"
echo "= Welcome to the Scailable Edge AI Manager Test Install ="
echo "========================================================================"
echo ""
# run as:
#
View get.sclbl.sh
#!/bin/bash
# run as:
#
# sudo bash -c "$(wget -q -O - https://get.sclbl.net)"
echo "==========================================================================="
echo "= Welcome to the Scailable Edge AI Manager installer ="
echo "==========================================================================="
echo ""