Skip to content

Instantly share code, notes, and snippets.

@44213
44213 / Backup.sh
Created September 18, 2021 13:31 — forked from produnis/Backup.sh
Scriptordner
#!/bin/bash
###
#### Dies ist mein persoenliches Backup-Script
#### Es benoetigt folgende Pakete: - keine -
# Bitte geben Sie das Zielverzeichnis an
ZIEL="/home/produnis/Downloads/" # default =/home/produnis/Desktop/
USER=produnis # default =produnis
MYSQLPWD=VerySecret # Set your root-pwd for MySQL
###########################################
Data Hoarding General /dhg/ (sauce - https://github.com/simon987/awesome-datahoarding)
### Web Archiving
* Collect - https://github.com/xarantolus/Collect: A server to collect & archive websites that also supports video downloads
* grab-site - https://github.com/ludios/grab-site: The archivist's web crawler: WARC output, dashboard for all crawls, dynamic ignore patterns
* Heritrix - https://github.com/internetarchive/heritrix3: Extensible, web-scale, archival-quality web crawler
* HTTrack - https://www.httrack.com/: Download a website from the Internet to a local directory
* wail - https://github.com/machawk1/wail: Web Archiving Integration Layer: One-Click User Instigated Preservation
* wikiteam - https://github.com/WikiTeam/wikiteam: set of tools for archiving wikis
@44213
44213 / Links.txt
Created September 18, 2021 13:26
Open Directories
@44213
44213 / podcatch
Created September 18, 2021 13:25 — forked from jmcantrell/podcatch
simple podcast downloader
#!/usr/bin/env bash
set -e
me=${0##*/}
cache=${XDG_CACHE_HOME:-$HOME/.cache}/$me
config=${XDG_CONFIG_HOME:-$HOME/.config}/$me
urls=$config/urls
@44213
44213 / videos.js
Created September 18, 2021 08:45 — forked from m4n1ok/videos.js
Encode video directory into mp4 and webm
/**
* Generate web videos mp4 + webm from given folder
* You can pass options by file in videos.json
* Options are crop size
* NODE and FFMEPG is required. On mac brew install node && brew install ffmpeg
* FFMPEG command are inspired by https://gist.github.com/Vestride/278e13915894821e1d6f
* eg: node videos.js --input=../inputDir --output=../dir/outputDir --prefix=compressed --r-audio
* if missing outputDir, inputDir will be use
*/
ffmpeg Cheat Sheet
-------------------------------------------
Lossless x264 compression:
ffmpeg -i capture1.00.avi -c:v libx264 -preset veryslow -crf 0 -c:a flac -compression_level 12 capture1.mkv
Lossless x265 compression:
ffmpeg -i capture1.00.avi -c:v libx265 -preset veryslow -x265-params lossless=1 -c:a flac -compression_level 12 capture1.mkv
Lossless compress audio in a video file:
ffmpeg -i capture1.00.avi -c:v copy -c:a flac -compression_level 12 capture1.mkv
@44213
44213 / ffmpeg_examples.md
Created September 18, 2021 08:44 — forked from j9ac9k/ffmpeg_examples.md
Short summary of ffmpeg usage

FFmpeg Walkthrough

basics

ffmpeg is a command line utility that presents a API to interacting with a variety of media types/encodings in a uniform fashion.

Depending on the ffmpeg distribiont, you may get access to utilities such as ffprobe (which provides information on a file) and ffplay (will play back a file). Those tools are critical.

Those tools, by default, will show all the arguments that ffmpeg was compiled with, which can get a little verbose. If you're going to run many ffmpeg commands, I suggest you get used to passing the -hide_banner argument.

ffmpeg -y -i input.mp4
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset slow -b:v 3000k -maxrate 3000k -bufsize 3000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720high.mp4
-c:a libfaac -ac 2 -ab 192k -ar 44100 -c:v libx264 -profile:v high -level 4.0 -preset medium -b:v 2000k -maxrate 2000k -bufsize 2000k -filter:v scale=-1:720 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_720low.mp4
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset slow -b:v 1500k -maxrate 1500k -bufsize 1500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576high.mp4
-c:a libfaac -ac 2 -ab 160k -ar 44100 -c:v libx264 -profile:v main -level 3.0 -preset fast -b:v 500k -maxrate 500k -bufsize 500k -filter:v scale=-1:576 -f mp4 -r 25 -g 25 -pix_fmt yuv420p encode_576low.mp4
-c:a libfaac -ac 2 -ab 128k -ar 44100 -c:v libx264 -profile:v baseline -level 3.0 -preset slow -b:v 800k -maxrate 800k -bufsize 800k -filter:v scale=-1:288 -f
@44213
44213 / README.md
Created September 18, 2021 08:44 — forked from keiya/README.md
How to broadcast to Icecast2 by using ffmpeg (FLAC,Opus,Vorbis,AAC,MP3/Windows, Mac)

FFMpeg to Icecast2 Streaming Samples

Examples usage of various codecs with FFMpeg.

Samples

  • flac.sh : An Icecast Source Client
    • for Windows (Cygwin is required)
    • and macOS (brew install ffmpeg)
  • another_examples.sh : Samples
  • FFMpeg can push to Icecast2 in various formats: Opus/Vorbis/AAC/MP3

Install ffmpeg with ALL includes

brew install ffmpeg $(brew options ffmpeg | grep -vE '\s' | grep -- '--with-' | tr '\n' ' ')

Cut video from 00:00:43 sec to 00:00:58 sec (15 sec duration).
Resize it to 720p.
Max quality options, but small size.

MP4

With audio: