Home

Awesome

description

w_scan2 is a small channel scan tool which generates ATSC, DVB-C, DVB-S/S2 and DVB-T/T2 channels.conf files.

It's based on the old "scan" tool from linuxtv-dvb-apps-1.1.0. The differences are:

w_scan2 is a fork of the original w_scan from https://www.gen2vdr.de/wirbel/w_scan/index2.html

main changes from w_scan to w_scan2

requirements

build

./configure
make

(developers making changes to "configure.ac" and "Makefile.am" also need to run ./autogen.sh)

distro support

Gentoo

eselect repository enable stefantalpalaru
emaint sync --repo stefantalpalaru
emerge w_scan2

Ubuntu

basic usage

NOTE: Newer versions of w_scan2 need the '-c' option for specifying the country (ATSC, DVB-C and DVB-T) or '-s' for satellite (DVB-S).

DVB-C (using Germany as country, option -c)

./w_scan2 -fc -c DE > channels.conf

DVB-T

./w_scan2 -c DE > channels.conf

DVB-C and DVB-T

./w_scan2 -c DE > channels.conf && ./w_scan2 -fc -c DE > channels.conf

ATSC (terrestrial, using United States as country)

./w_scan2 -fa -c US > channels.conf

US Digital Cable (QAM Annex-B)

./w_scan2 -A2 -c US > channels.conf

ATSC, both terrestrial and digital cable

./w_scan2 -A3 -c US > channels.conf

DVB-S, here: Astra 19.2 east

./w_scan2 -fs -s S19E2

NOTE: see ./w_scan2 -s? for list of satellites.

generate (dvb)scan initial-tuning-data

./w_scan2 -c DE -x > initial_tuning_data.txt

For more sophisticated scan options see ./w_scan2 -h and ./w_scan2 -H.

development

code formatting

We are using clang-format through the wrapper script code_style.sh (make format also works).

Vim integration, using vim-clang-format:

" in your ~/.vimrc
autocmd defgroup BufNewFile,BufRead /path/to/w_scan2/*.{c,h} setlocal shiftwidth=4 softtabstop=4 expandtab
autocmd defgroup BufNewFile,BufRead /path/to/w_scan2/*.{c,h} ClangFormatAutoEnable

Git integration, using a ".git/hooks/pre-commit" with executable permissions:

#!/bin/sh

root="$(git rev-parse --show-toplevel)"
"${root}/code_style.sh" --check

credits

license

w_scan2 is licensed under GPLv2. See the included file COPYING for details.

homepage

https://github.com/stefantalpalaru/w_scan2