Skip to content

Instantly share code, notes, and snippets.

@bigdragon1977
bigdragon1977 / ffmpeg-merge-folder-of-videos.md
Created July 6, 2026 21:15 — forked from basperheim/ffmpeg-merge-folder-of-videos.md
Use FFmpeg to merge a directory of AVI files by appending each file name to a text file

FFmpeg: merge a folder of AVI files with names that include order number

You can merge a series of .avi files with ffmpeg using the concat filter. However, the concat filter requires that all inputs have the same streams (same codecs, same time base, etc.).

Here is an example of how you can do it (each video file should end in ..-01.avi, ..-02.avi, etc..):

Create the text file using echo

First, create a file that contains the list of all your .avi files. You can do this manually, but if your files are named in a sequence like 01.avi, 02.avi, 03.avi, and so on, you can generate this list automatically using a bash command. Here's how you can do it:

@bigdragon1977
bigdragon1977 / instructions.md
Created February 2, 2026 14:14 — forked from andersondanilo/instructions.md
ms2109 linux (MacroSilicon USB Video)

Play

ffplay -f video4linux2 -framerate 60 -video_size 1920x1080 -input_format mjpeg /dev/video2

You can try other video number (video3, video4)

Maybe you need:

Create: /etc/udev/rules.d/91-hdmi-to-usb-ms2109.rules With:

@bigdragon1977
bigdragon1977 / ovpn-server-with-certs.md
Created April 24, 2025 17:03 — forked from timefcuk/ovpn-server-with-certs.md
MikroTik (RouterOS) script for setup OpenVPN server and generate certificates
'float_time'
'many2manyattendee'
'many2many_tags'
'one2many'
'email'
'mail_followers'
'mail_thread'
'many2many_tags_avatar'
'pad'
'statinfo'

How to get Telegram Bot Chat ID

Create a Telegram Bot and get a Bot Token

  1. Open Telegram application then search for @BotFather
  2. Click Start
  3. Click Menu -> /newbot or type /newbot and hit Send
  4. Follow the instruction until we get message like so
    Done! Congratulations on your new bot. You will find it at t.me/new_bot.
    
/*
* See documentation at https://nRF24.github.io/RF24
* See License information at root directory of this library
* Author: Brendan Doherty (2bndy5), Tom Clement (tjclement)
*/
/**
* A modified example from the NRF24 library, that cycles through brightness levels of Neewer NL660-2.4 light panels.
*/
#include <SPI.h>
@bigdragon1977
bigdragon1977 / inverter-monitor.yaml
Created December 11, 2023 19:37 — forked from vladyspavlov/inverter-monitor.yaml
Must inverter ESPHome configuration for ESP32
substitutions:
inverter_id: inverter
updates: 5s
api_key: xxx
ota_password: xxx
esphome:
name: inverter-monitor
comment: "Inverter monitor"
@bigdragon1977
bigdragon1977 / compile.sh
Created June 20, 2022 12:37 — forked from alealexpro100/compile.sh
Build Rustdesk-Server under Alpine Linux + service to run it (based on samba service file).
#!/bin/bash
set -e
declare packages="git alpine-sdk cargo"
declare project_name="rustdesk-server"
echo "Installing build packages..."
sudo apk add $packages
@bigdragon1977
bigdragon1977 / fpv_hw_beginners.md
Created May 22, 2022 17:40
FPV квадрокоптеры: обзор оборудования для новичков