#!/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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* | |
| insert into flussonic.conf: | |
| web_script securetoken /etc/flussonic/securetoken.lua key=mysecretkey password=mypassword; | |
| auth /etc/flussonic/securetoken.lua key=mysecretkey; | |
| Read more at: | |
| English - http://flussonic.com/doc/auth/securelink | |
| Russian - http://erlyvideo.ru/doc/auth/securelink | |
| */ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // 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; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| echo "Downloading ipvtl Software \n" | |
| cd /home | |
| wget http://www.ipvideotrans.com/download/ipvtl_trial-x64.tar.xz |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
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
- FFMpeg, Muxers, Encoders, Protocols
- FFMPEG multiple outputs
- VLC Docu, Advanced Use