Skip to content

Instantly share code, notes, and snippets.

@bilson
bilson / readme.md
Created April 9, 2024 20:51 — forked from mowings/readme.md
ffmpeg stream and save video from Dahua 4300s IP Camera

Use ffmpeg to stream video from a dahua 4300s to a file or files

You can use ffmpeg to directly pull frames off of a dahua 4300s at full resolution. May be a good alternative to pricey dvrs which likely cannot record at full resolution, may not work with the camera, or are prohibitevly expensive

Simple Stream to file

Simple stream to file. Full resolution

ffmpeg -loglevel debug -rtsp_transport tcp -i "rtsp://admin:admin@198.175.207.61:554/live" \

-c copy -map 0 foo.mp4

@bilson
bilson / private_fork.md
Created July 17, 2023 00:40 — forked from 0xjac/private_fork.md
Create a private fork of a public repository

The repository for the assignment is public and Github does not allow the creation of private forks for public repositories.

The correct way of creating a private frok by duplicating the repo is documented here.

For this assignment the commands are:

  1. Create a bare clone of the repository. (This is temporary and will be removed so just do it wherever.)

git clone --bare git@github.com:usi-systems/easytrace.git

@bilson
bilson / chroot-to-pi.sh
Created November 15, 2022 06:16 — forked from htruong/chroot-to-pi.sh
Chroot to pi sd card
#!/bin/bash
# This script allows you to chroot ("work on")
# the raspbian sd card as if it's the raspberry pi
# on your Ubuntu desktop/laptop
# just much faster and more convenient
# credits: https://gist.github.com/jkullick/9b02c2061fbdf4a6c4e8a78f1312a689
# make sure you have issued
@bilson
bilson / pjsip_install.sh
Created May 26, 2022 02:50 — forked from bgunebakan/pjsip_install.sh
PJSIP and PJSUA installation on Debian 8.8
#install depencies
apt install python-dev gcc make gcc binutils build-essential
#get pjsip
wget http://www.pjsip.org/release/2.6/pjproject-2.6.tar.bz2
tar -xjf pjproject-2.6.tar.bz2
cd pjproject-2.6
#configure
export CFLAGS="$CFLAGS -fPIC"
#build pjsip
@bilson
bilson / install-spyserver-rpi.sh
Last active April 26, 2024 01:21
Install Spyserver in Raspberry Pi for AirspyHF+, mini and R2. Autodetect 32 and 64 bits version.
#!/bin/bash
CURDIR=$(pwd)
CYAN='\033[0;36m'
GREEN='\033[0;32m'
NC='\033[0m'
ORANGE='\033[0;33m'
PURPLE='\033[0;35m'
RED='\033[0;31m'
YELLOW='\033[1;33m'
@bilson
bilson / install-wifi.sh
Created November 4, 2020 15:02 — forked from sighmon/install-wifi.sh
Raspberry Pi usb -> wifi dongle driver installation
#!/bin/bash
#set -e
# install-wifi - 12/02/2018 - by MrEngman.
UPDATE_SELF=${UPDATE_SELF:-1}
UPDATE_URI="http://downloads.fars-robotics.net/wifi-drivers/install-wifi"
ROOT_PATH=${ROOT_PATH:-"/"}
WORK_PATH=${WORK_PATH:-"${ROOT_PATH}/root"}
@bilson
bilson / install-rtl-sdr-ubuntu.sh
Last active January 29, 2023 21:46
Install script for rtl-sdr for ubuntu
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install curl git cmake libusb-1.0-0.dev build-essential
cat <<EOF >no-rtl.conf
blacklist dvb_core
blacklist dvb_usb_rtl28xxu
@bilson
bilson / install-rtl-sdr.sh
Last active May 17, 2023 12:40
Install script for rtl-sdr in raspberry pi
#!/bin/bash
cd ~
sudo apt-get update
sudo apt-get install -y git cmake libusb-1.0-0.dev build-essential
cat <<EOF >no-rtl.conf
blacklist dvb_core
blacklist dvb_usb_rtl28xxu
@bilson
bilson / keybase.md
Created June 14, 2017 19:05
Keybase

Keybase proof

I hereby claim:

  • I am bilson on github.
  • I am bilson (https://keybase.io/bilson) on keybase.
  • I have a public key ASD-chH0_e31RUohUMCt_J3N57eyQdpv4wpUX8sb-gbcSAo

To claim this, I am signing this object: