-
-
Save prasmalla/1bafc0ee67ee197cb502d981671122de to your computer and use it in GitHub Desktop.
#!/bin/bash | |
# Bash script to install latest version of ffmpeg and its dependencies on Ubuntu 12.04 or 14.04 | |
# Inspired from https://gist.github.com/faleev/3435377 | |
# Remove any existing packages: | |
sudo apt-get -y remove ffmpeg x264 libav-tools libvpx-dev libx264-dev | |
# Get the dependencies (Ubuntu Server or headless users): | |
sudo apt-get update | |
sudo apt-get -y install build-essential checkinstall git libfaac-dev libgpac-dev \ | |
libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev librtmp-dev libtheora-dev \ | |
libvorbis-dev pkg-config texi2html yasm zlib1g-dev | |
# Install x264 | |
sudo apt-get -y install libx264-dev | |
cd | |
git clone --depth 1 git://git.videolan.org/x264 | |
cd x264 | |
./configure --enable-static | |
make | |
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ | |
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ | |
--fstrans=no --default | |
# Install AAC audio decoder | |
cd | |
wget http://downloads.sourceforge.net/opencore-amr/fdk-aac-0.1.0.tar.gz | |
tar xzvf fdk-aac-0.1.0.tar.gz | |
cd fdk-aac-0.1.0 | |
./configure | |
make | |
sudo checkinstall --pkgname=fdk-aac --pkgversion="0.1.0" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
# Install VP8 video encoder and decoder. | |
cd | |
git clone --depth 1 https://chromium.googlesource.com/webm/libvpx | |
cd libvpx | |
./configure | |
make | |
sudo checkinstall --pkgname=libvpx --pkgversion="1:$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
# Add lavf support to x264 | |
# This allows x264 to accept just about any input that FFmpeg can handle and is useful if you want to use x264 directly. See a more detailed explanation of what this means. | |
cd ~/x264 | |
make distclean | |
./configure --enable-static | |
make | |
sudo checkinstall --pkgname=x264 --pkgversion="3:$(./version.sh | \ | |
awk -F'[" ]' '/POINT/{print $4"+git"$5}')" --backup=no --deldoc=yes \ | |
--fstrans=no --default | |
# Installing FFmpeg | |
cd | |
git clone --depth 1 git://source.ffmpeg.org/ffmpeg | |
cd ffmpeg | |
./configure --enable-gpl --enable-libfaac --enable-libmp3lame --enable-libopencore-amrnb \ | |
--enable-libopencore-amrwb --enable-librtmp --enable-libtheora --enable-libvorbis \ | |
--enable-libvpx --enable-libx264 --enable-nonfree --enable-version3 | |
make | |
sudo checkinstall --pkgname=ffmpeg --pkgversion="5:$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default | |
hash x264 ffmpeg ffplay ffprobe | |
# Optional: install qt-faststart | |
# This is a useful tool if you're showing your H.264 in MP4 videos on the web. It relocates some data in the video to allow playback to begin before the file is completely downloaded. Usage: qt-faststart input.mp4 output.mp4. | |
cd ~/ffmpeg | |
make tools/qt-faststart | |
sudo checkinstall --pkgname=qt-faststart --pkgversion="$(date +%Y%m%d%H%M)-git" --backup=no \ | |
--deldoc=yes --fstrans=no --default install -Dm755 tools/qt-faststart \ | |
/usr/local/bin/qt-faststart |
adduser feg
su - feg
test -d ~/.linuxbrew && PATH="$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH"
test -d /home/linuxbrew/.linuxbrew && PATH="/home/linuxbrew/.linuxbrew/bin:/home/linuxbrew/.linuxbrew/sbin:$PATH"
test -r /.bash_profile && echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>/.bash_profile
echo "export PATH='$(brew --prefix)/bin:$(brew --prefix)/sbin'":'"$PATH"' >>~/.profile
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
brew install ffmpeg --with-openssl --with-freetype
brew install youtube-dl
#!/usr/bin/env bash
ffmpeg -i "$(youtube-dl -f best -g GmNm93AtKfM)" -c copy -bsf:a aac_adtstoasc -f flv rtmp://server:ip
apt install gcc autoconf build-essential
card=0
freq=177000
autoconfiguration=full
modulation=VSB8
multicast=0
multicast_ipv4=0
multicast_ipv6=0
unicast=1
ip_http=0.0.0.0
port_http=8000
w_scan -fa -A1 -c US -X >> channels.conf
WMBC Digital Television:497000000:VSB_8:49:52:3
QUEST on WMBC-DT2:497000000:VSB_8:65:68:4
Sinovision:497000000:VSB_8:81:84:5
New Tang Dynasty TV:497000000:VSB_8:113:116:7
63-7 on WMBC DT7:497000000:VSB_8:145:148:9
WDNJ on WMBC DT8:497000000:VSB_8:0:164:10
KCBN on WMBC-DT9:497000000:VSB_8:0:180:11
NYLIFE :533000000:VSB_8:49:52:1
NYGOV :533000000:VSB_8:65:68:2
CUNY :533000000:VSB_8:81:84:3
ION:575000000:VSB_8:49:52:3
qubo:575000000:VSB_8:65:68:4
IONLife:575000000:VSB_8:81:84:5
Shop:575000000:VSB_8:97:100:6
QVC:575000000:VSB_8:113:116:7
HSN:575000000:VSB_8:129:132:8
WNBC :605000000:VSB_8:113:116:1
COZI-TV:605000000:VSB_8:129:132:2
WNJU-HD:605000000:VSB_8:49:52:3
TeleX :605000000:VSB_8:65:68:4
WNBC :605000000:VSB_8:113:116:5
COZI-TV:605000000:VSB_8:129:132:6
mkdir /home/xtreamcodes/iptv_xtream_codes/wwwdir/images
chmod -R 777 /home/xtreamcodes/iptv_xtream_codes/wwwdir/images
chown -R xtreamcodes:xtreamcodes /home/xtreamcodes/iptv_xtream_codes/wwwdir/images