Skip to content

Instantly share code, notes, and snippets.

Script to record and convert video off HD Homerun

#!/bin/bash
function show_help {
    echo "Usage: $0 -g GO [-v verbose] [-h help] [-c CRF=26 ] [-d duration=3600 ] [-f output_file=capture_] [ -i DeviceID=101176E2 ] [ -n Channel=19 ] [ -o output_dest=/mnt/BigUSBDisk/movies/TV_VARIOUS ] [ -p program=0 ] [ -t title=capture_ ] [ -u tuner=0 ] [ -y delay (secs) to start] ]" >&2
    exit 1
}

# A POSIX variable
OPTIND=1         # Reset in case getopts has been used previously in the shell.
#EXTM3U url-tvg="https://iptvx.one/EPG"
#EXTINF:-1 group-title="Общие", Первый канал HD
http://live-okkotv.cdnvideo.ru/okkotv/1tv.smil/tracks-v1a1/mono.m3u8
#EXTINF:-1 group-title="Общие" tvg-id="pervy", Первый канал HD (Для зарубежья)
http://109.200.135.130:8080/ort_hd/index.m3u8
#EXTINF:-1 catchup="append" catchup-days="7" catchup-source="?offset=-${offset}&utcstart=${timestamp}" group-title="Общие" tvg-id="pervy", Первый канал (Архив)
#EXTVLCOPT:http-user-agent=WINK/1.40.1 (AndroidTV/9) HlsWinkPlayer
https://zabava-htlive.cdn.ngenix.net/hls/CH_1TVSD/variant.m3u8
#EXTINF:-1 group-title="Общие", Первый канал +2
http://213.59.128.165:8888/play/Pervij/index.m3u8
@strumica
strumica / fluss.sh
Created June 22, 2024 07:58 — forked from Domin8-IPTV/fluss.sh
flussonic
#!/bin/bash
# cracked flussonic
wget -q -O - http://debian.erlyvideo.org/binary/gpg.key | apt-key add -;
echo "deb http://debian.erlyvideo.org binary/" > /etc/apt/sources.list.d/erlyvideo.list;
apt-get update;
apt-get -y install flussonic flussonic-transcoder;
echo 'l4|8Ku8ypPgOUySHysCdkFHW0|r6BzpmVPpjgKpn9IunpFp6lLbCZOp3' >> /etc/flussonic/license.txt
/etc/init.d/flussonic start
@strumica
strumica / php_get_cpu.php
Created March 21, 2019 23:52 — forked from htylab/php_get_cpu.php
PHP get CPU usage
// copy from http://www.blogbyben.com/2011/09/gotcha-of-day-detecting-cpu-usage-on.html
function win_sys_current_cpu_usage() {
$cmd = 'typeperf -sc 1 "\Processor(_Total)\% Processor Time"';
exec($cmd, $lines, $retval);
if($retval == 0) {
$values = str_getcsv($lines[2]);
return floatval($values[1]);
} else {
return false;
@strumica
strumica / script.sh
Created March 18, 2019 22:29 — forked from phpcodertop/script.sh
install ipvtl trial and hack its trial
#!/bin/bash
echo "Downloading ipvtl Software \n"
cd /home
wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz
@strumica
strumica / flussonic.sh
Created February 10, 2019 02:10 — forked from maxlapshin/flussonic.sh
Debian initscript for erlyvideo (flussonic)
#!/bin/bash
### BEGIN INIT INFO
# Provides: flussonic
# Required-Start: $local_fs $network $syslog
# Required-Stop: $local_fs $network $syslog
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Start/stop flussonic streaming server
### END INIT INFO

Live Transcoding

This is a collection of working commandline examples to show how one could use FFMpeg and VLC for live transcoding of video streams. All examples have been tested on OSX 10.7.5 with FFMPeg 1.1.3 and VLC 2.0.5 in early 2013.

Documentation links