Skip to content

Instantly share code, notes, and snippets.

View pearlboy's full-sized avatar
🎯
Focusing

MuthuKumar Anbalagan pearlboy

🎯
Focusing
View GitHub Profile
#!/bin/bash
# Make sure we have the dev tools
yum groupinstall "Development Tools"
# Just in case you started installing dependencies from yum
yum -y remove libnfnetlink
# lets put the source code here
mkdir -p ~/.src
ffmpeg -i INPUTFILE -vf "scale=960:540" -vcodec mpeg2video -acodec mp2 -b:v 25M -b:a 192k -muxrate 25M -f mpegts OUTPUTFILE
# vlc -vvv /home/heroapps/smartiptv/assets/videos/interlaced_bein11.ts --sout '#transcode{vcodec=mp2v,vb=2000,scale=.5,acodec=mpga,ab=128,channels=2,samplerate=44100}:std{access=udp{ttl=1},mux=ts,vsync=1,dst=236.1.1.1:9000}' --loop
gw=$(ip route get 8.8.8.8 | grep via | awk '{print $3}') && ping -W 2 -c 1 $gw > /dev/null 2>&1 && echo $?