Skip to content

Instantly share code, notes, and snippets.

View HefnySco's full-sized avatar

MHefny HefnySco

View GitHub Profile
@HefnySco
HefnySco / gist:371fe0fc1cbf3abef5d6db04a2a1f20d
Created July 31, 2022 15:02
ffmpeg test counter screen
ffmpeg -f lavfi -i testsrc=rate=10 -pix_fmt yuv420p -c:v rawvideo -f v4l2 /dev/video2
#include <boost/signals2.hpp>
#include <boost/bind.hpp>
#include <iostream>
using namespace boost;
using namespace std;
struct ClassA
{
@HefnySco
HefnySco / gist:fd967a50037aaab393aad793aeccdb23
Created April 15, 2021 13:28
Start Ardupilot SITL as Command Line
arducopter -S --mode x --speedup 1 --defaults" "/home/me/ardupilot/Tools/autotest/default_params/copter.parm
@HefnySco
HefnySco / init_xbox_gamepad.sh
Created November 29, 2020 02:53
Run XBOX GamePAd on Ubuntu
#!/bin/bash
sudo killall xboxdrv
sudo xboxdrv --detach-kernel-driver
@HefnySco
HefnySco / WebRTC Compile & CrossCompile.md
Last active December 14, 2023 07:42
Compiling WebRTC Step By Step on x64 and ARM "Cross-compiling"

Create a python2 env using conda

$ conda create -n yourenvname python=2.7

Create folder and enter it

$ mkdir webrtc $ cd webrtc

Clone depot tools

$ git clone https://chromium.googlesource.com/chromium/tools/depot_tools.git --depth 1

@HefnySco
HefnySco / recv_stream_fwd_to_virtual_video.sh
Last active November 29, 2020 02:46
Stream from Desktop using ffmpeg on ubuntu and receiving stream
#!/bin/bash
fmpeg -f mpegts -i udp://192.168.1.145:5000 -f v4l2 /dev/video3
@HefnySco
HefnySco / ffmpeg_single_window_square.sh
Created November 28, 2020 17:47
Capture 640x480 block from desktop and forward it to video driver.
#!/usr/bin/env bash
set -e
echo "pass video param: $1"
echo "pass window left: $2 zero based"
echo "pass window top: $3 zero based"
echo "Display number $4 zero based"
#if [$1 -lt 11]; then
# echo 'video parameter should be /dev/videoN'