Skip to content

Instantly share code, notes, and snippets.

@azbesthu
Last active August 7, 2019 21:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save azbesthu/4d4b91cd32b565d7b23e to your computer and use it in GitHub Desktop.
Save azbesthu/4d4b91cd32b565d7b23e to your computer and use it in GitHub Desktop.
Raspi2 tvheadend & oscam setup
Raspi2 tvheadend & oscam setup
Raspbian current
sudo apt-get update
sudo apt-get upgrade
# libs for tvheadend & oscam
sudo apt-get install build-essential subversion pcscd pcsc-tools libpcsclite-dev libccid libssl-dev debhelper libavahi-client-dev libcurl4-gnutls-dev liburiparser-dev git
# tvheadend 4.2.x unsable master branch
# sudo apt-get install cmake libpcre3-dev dvb-apps python-requests libdvbcsa-dev
# optional utils
sudo apt-get install mc htop
# create a 'tvstream' directory for making componenst ready
mkdir tvstream
cd tvstream
# get firmware for it9135 based tuner or for your tuner a different one
wget https://github.com/OpenELEC/dvb-firmware/raw/master/firmware/dvb-usb-it9135-02.fw
sudo cp dvb-usb-it9135-02.fw /lib/firmware/
# get tvheadend source files
git clone https://github.com/tvheadend/tvheadend.git
cd tvheadend
# select latest stable, if you want the latest unstable, then use master branch
git checkout v4.0.10
# For pi2/pi3, to increase performance
export CFLAGS=" -mcpu=cortex-a7 -mfpu=neon-vfpv4 -mfloat-abi=hard"
# For 4.2.x master, disable video transcoding with cpu, it has not enought performance anyway
# export AUTOBUILD_CONFIGURE_EXTRA=" --disable-ffmpeg_static --disable-libav"
# build installer
./Autobuild.sh -j4
cd ..
sudo dpkg -i tvheadend_4.0.10_armhf.deb
// on pc: tvheadend_4.0.10_amd64.deb
---------------
svn checkout http://www.streamboard.tv/svn/oscam/trunk oscam-svn
cd oscam-svn
make pcsc -j4
cd Distribution
sudo cp oscam*pcsc /usr/local/bin/oscam
# Create configuration files
# eg. https://gist.github.com/azbesthu/4551674
# place them to /etc/oscam/
# create startup script for starting oscam
# eg. https://gist.github.com/azbesthu/f4f864dafd7e34ec68e5
# save it as /etc/init.d/oscam
# enable it with
# update-rc.d oscam defaults
@azbesthu
Copy link
Author

azbesthu commented Apr 12, 2017

Channel icons:

git clone https://github.com/picons/picons-source.git
cd picons-source

sudo apt-get install jq pngguant imagemagick librsvg2-bin

build-input/tvheadend.serverconf

./1-build-servicelist.sh snp

./2-build-picons.sh snp-full

setup tvheadend picon path in general tab
see: https://tvheadend.org/boards/5/topics/13408

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment