Example setups: Difference between revisions
No edit summary |
|||
(47 intermediate revisions by 8 users not shown) | |||
Line 1: | Line 1: | ||
This page |
This page provides examples of working hardware and software system configurations that may provide guidance for readers as to what can be accomplished on or with their own system. |
||
If you believe you have a PVR / Linuxtv box that works well, please post a description that may be beneficial for others to read [such as your system hardware (mobo/chip/video), what TV tuner device you have (ideally with a link to the manufacturer's product page or to the device's entry here in the wiki) and with what kernel, drivers and software applications you operate on your system]. |
|||
''For a complete list of programs, see the [[commented software list]] page --- here, you'll find solutions, not just simple programs. For testing purposed or small systems, have a look at the [[First steps with a budget DVB card]].'' |
|||
In order to be most useful for the reader, this page is |
In order to be most useful for the reader, this page is divided into three sections: |
||
* setups for |
* setups for DVB cards that rely on "software decoding" (aka [[budget]] cards ... DVB cards without hardware decoders) |
||
* setups for |
* setups for DVB cards with hardware decoders (aka [[Full-featured Card|full featured cards]]) |
||
* setups for analog TV cards |
* setups for analog TV cards |
||
Each of the three sections can, in turn, be subdivided into categories covering the different standards (DVB-{C,S,T}, ATSC) for that type of hardware. Please add to the appropriate one, or create a new one if need be. |
|||
Readers should note that the suggestions found here are just that -- suggestions. For a more complete listing of available programs, see the commented [[TV Related Software]] page. Likewise, for more complete listings of supported hardware, consult the [Hardware & Components] section of the wiki. |
|||
Line 14: | Line 17: | ||
After installing the card drivers, I tried several solutions. I didn't get the [[VDR Software Decoder Plugin]] working so I tried [[xine]] -- which worked on the first trial and provides much functionality (for watching) on an easy and intuitive interface. |
After installing the card drivers, I tried several solutions. I didn't get the [[VDR Software Decoder Plugin]] working so I tried [[xine]] -- which worked on the first trial and provides much functionality (for watching) on an easy and intuitive interface. |
||
--- |
|||
I use a [[TwinHan]] Express compatible card [http://www.axtrom.com/ Axtrom] which works great with linux. So far kaffeine is the best choice to use with a budget card. Since xine does not let you to record and it's interface is buggy and [[VDR]] is very hard to setup and startup I decided to stick to kaffeine. It lets you record un-attended. you can even record and watch multiple channels within same transponder. |
|||
== A sample solution for a system with a full-featured card == |
|||
My system is a Mythtv pc installed with Fedora Core 6 following this howto [http://www.wilsonet.com/mythtv/fcmyth.php]. I use the Technotrend Premium DVB-C 2300 Hybrid dvb-c card |
|||
[http://www.linuxtv.org/wiki/index.php/Use_cases#Grimstad_Cable_TV_.5B1.5D]bought from Dvb shop in Germany [http://www.dvbshop.net/index.php/cat/c17_Premium-PCI.html]. I was thinking buying the Technotrend Budget C-1500, but it was out of stock from Dvbshop that time [http://www.dvbshop.net/product_info.php/info/p16_Technotrend-Budget-C-1500-incl--Remote--W98-ME-2K-XP-MCE-.html]. |
|||
The Linux 2.6 kernel had already support for Technotrend Premium DVB-C 2300 so the card was autodetected after first time boot. The firmware for the card was not in place so you must download the correct dvb-ttpci-01.fw-2622 (or newer) firmware file from this place [http://www.linuxtv.org/downloads/firmware/]. Place this file in the hotplug directory /lib/firmware and rename to dvb-ttpci-01.fw. Change the permission on the file. After a reboot you should get some file in /dev/dvb/adapter0/ |
|||
--- |
|||
Using Fedora, assume root privileges then install the dvb utilities with |
|||
# yum install dvb-apps |
|||
==== DVB-T example ==== |
|||
Scan will need some idea of where to start searching; for this reasons it takes a file for your location as a starting point. Therefore, you need to find channel information for your locality. Again, the location where they are installed may vary. In the following examples, the directory is /usr/share/doc/dvb-utils/examples/scan/dvb-t/; other installations also use /usr/share/doc/dvb-apps-1.1.1 or /usr/local/share/dvb/scan/dvb-t/. DVB-S users should use the folders /usr/share/doc/dvb-utils/examples/scan/dvb-s/, /usr/share/doc/dvb-apps-1.1.1 or /usr/local/share/dvb/scan/dvb-s/. In each case, the name of the file you're looking for is of the form cc-Ttttt, where cc is a two-letter country abbreviation, and Ttttt is the name of the location of the transmitter. So in Adelaide, Australia, you'd look for a file called au-Adelaide; the following example relates to Oxford in the United Kingdom. |
|||
Location: Hampshire, UK |
|||
Device: [http://www.hauppauge.co.uk/pages/products/data_novatstick.html Nova-T stick] |
|||
I live in Norway and use Grimstad cabeltv. I did not find any channel information file I could use. But I find one for Norwegian UPC which I first take a copy of and then edited it. I got the correct frequency setting, QAM and so on from the cable box Grimstad cabeltv has delivered me. |
|||
Hardware: Via SP13000 epia system |
|||
[mythtv@mythpc ~]$ cat no-oslo-UPC |
|||
# no-oslo-UPC (cable) |
|||
C 410000000 6875000 NONE QAM64 |
|||
C 418000000 6875000 NONE QAM64 |
|||
C 426000000 6875000 NONE QAM64 |
|||
C 442000000 6875000 NONE QAM64 |
|||
C 450000000 6875000 NONE QAM64 |
|||
C 458000000 6875000 NONE QAM64 |
|||
C 466000000 6875000 NONE QAM64 |
|||
C 474000000 6875000 NONE QAM64 |
|||
C 482000000 6875000 NONE QAM64 |
|||
C 490000000 6875000 NONE QAM64 |
|||
C 498000000 6875000 NONE QAM64 |
|||
OS: Fedora Core 6 |
|||
After I have edited the file no-oslo-UPC I did a scan. |
|||
kernel: 2.6.18-1.2869.fc6 |
|||
$ /usr/bin/dvbscan /home/mythtv/no-oslo-UPC |
|||
Drivers: extracted from hg |
|||
This should produce output saying "WARNING: >>> tuning failed!!!" if a signal was not found on that particular frequency. Eventually, a list of services found should be displayed. Here is a sample list: |
|||
Works reasonably well, records about 8 TV programs a day using freevo. Get kernel ops requiring reboot about once a month, can be slow to tune and sometimes doesn't tune at all. Wouldn't recommend this device if you are looking for a hastle free solution ;) Also worth noting that I can only watch live TV with mplayer / xine, and record using mplayer. Things like dvbstreamer don't work with this stick, I just get mt2060 errors to syslog and no data. |
|||
dumping lists (7 services) |
|||
NRK mP3:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:706:1515 |
|||
NRK Stortinget:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:705:1514 |
|||
NRK Sami Radio:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:49:1510 |
|||
NRK2:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:525:47:1502 |
|||
NRK Klassisk:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:703:1507 |
|||
NRK P3:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:702:1505 |
|||
NRK P2:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:701:1504 |
|||
NRK P1:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:0:35:1503 |
|||
NRK1 sorlandet:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:512:640:3507 |
|||
ZTV Norway:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:2161:2162:2160 |
|||
TV3 Norge:410000000:INVERSION_AUTO:6875000:FEC_NONE:QAM_64:1111:1112:1110 |
|||
This is a list with both radio and tv channels. You have both encrypted and unencrypted channels her also. |
|||
UPDATE - see [http://www.linuxtv.org/wiki/index.php/Hauppauge_WinTV-NOVA-T-Stick here] for new driver / firmware details to solve the various problems. Now streaming works correctly and I no longer get mt2060 errors, seems to work very well. Will update and remove previous comments once stability and long term lack of ops is proved. |
|||
Next try to create a "channels.conf", a file in a hidden (dotted) directory off your "home" directory. I make a directory called .czap because I shall use czap to tune in the channels. |
|||
==== Another DVB-T example ==== |
|||
$ mkdir ~/.czap |
|||
$ /usr/bin/dvbscan /home/mythtv/no-oslo-UPC > ~/.czap/channels.conf |
|||
Location: Sydney, Australia |
|||
Next display the contents of the channels.conf file to make sure the file creation proceeded correctly |
|||
$ cat ~/.azap/channels.conf |
|||
Devices: 2 x LifeView TV Walker Twin |
|||
Note: For reasons not readily apparent, tzap used in the UK example above didn't work. So try azap instead, picking the first entry from ~/.azap/channels.conf (The KPAX-DT part) |
|||
$ /usr/bin/azap -r -c ~/.azap/channels.conf "KPAX-DT" |
|||
which in turn displays lines similar to (terminate with Ctrl-C) |
|||
Distribution: Debian |
|||
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0' |
|||
tuning to 177028615 Hz |
|||
status 1f | signal 0000 | snr ff28 | ber 00000000 | unc 00000000 | FE_HAS_LOCK |
|||
... (repeated output) ... |
|||
Kernel: 2.6.20 |
|||
Then for some statistics, try |
|||
$ /usr/bin/dvbtraffic |
|||
Drivers: from http://linuxtv.org/hg/~aapot/m920x |
|||
Software: kaffeine |
|||
Works fine playing and recording. It should be possible to play/record up to 4 channels simultaneously with this setup. Tuning a new channel takes 1-2 seconds. |
|||
== Another example, using Terratec Card == |
|||
It was really easy to setup the following, good working configuration: |
|||
* Debian linux |
|||
* kernel.org sources for 2.6.23.12 |
|||
* Terratec Cinergy HT !CardBus card, [http://tven.terratec.net/modules.php?op=modload&name=News&file=article&sid=245] |
|||
* kernel modules: |
|||
** tda827x |
|||
** saa7134_dvb |
|||
** video_buf_dvb |
|||
** dvb_core |
|||
** tda1004x |
|||
** tuner |
|||
** saa7134 |
|||
** video_buf |
|||
** compat_ioctl32 |
|||
** ir_kbd_i2c |
|||
** ir_common |
|||
** videodev |
|||
** v4l2_common |
|||
** v4l1_compat (for older software, compatibility with e.g. {{{camE}}} |
|||
* no additional firmware was required |
|||
* no kernel parameters were required |
|||
* watching analog + composite works fine with: |
|||
** gxine, xawtv |
|||
* watching dvb-t works fine with |
|||
** gxine |
|||
To get the DVB-channels for '''Austria / Linz''', i had the following line in the scan-script: |
|||
<code> |
|||
T 650000000 8MHz 3/4 NONE QAM16 8k 1/4 NONE #K43, Linz |
|||
</code> |
|||
found on [http://dvb-t.the-media-channel.com/oesterreich/dvb-t-oberoesterreich.html]. |
|||
== A sample solution for MPEG-4 encoded / PAFF interlaced streams with budget card == |
|||
* Transmiter: Emitel/POT - Warsaw; Poland |
|||
* Compression: video - MPEG-4; audio MPEG-2/AC3 |
|||
* Hardware: |
|||
** AMD 1.7XP/512MB DDR400 as MythTV server & client (frontend) |
|||
** AMD64 3200+ Venice/1024MB DDR400 as MythTV client (frontend) |
|||
** [http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_DVB-T_777_%28A16A-C%29 AverMedia 777 A16A-C] budget card (with Fedora 8/9 ia32 & Gentoo ~amd64) |
|||
** [http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_Hybrid%2BFM_PCI AVerTV Hybrid+FM PCI (A16D)] (with PLD Th ia32) |
|||
* Software: |
|||
** Tested systems: |
|||
*** Fedora 8/9 ia32 as MythTV server & client (frontend) |
|||
*** Gentoo ~x86_64 as MythTV server & client (frontend) |
|||
*** PLD Th test as MythTV server & client (frontend) |
|||
** kernel versions 2.6.25 2.6.26 for Fedora&Gentoo/Aver 777; 2.6.25 + [http://linuxtv.org/hg/v4l-dvb Mercurial drivers rev. e2a8b9b9c294] for PLD/Aver Hybrid |
|||
** CoreAVC win32 codec + [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver |
|||
** [http://http://svn.mythtv.org/trac/ Mythtv 0.21] with dshowserver patch - Fedora&Gentoo |
|||
** [http://svn.mythtv.org/trac/ Mythtv 0.22 svn18642 snapshot] with dshowserver patch - PLD |
|||
** [http://xinehq.de/ xine-libs-1.1.15+xine-ui] with dshowserver patch |
|||
** [http://mplayerhq.hu mplayer/mencoder] with dshowserver patch for watching/converting recordings |
|||
Due to MPEG-4 encoding and no PAFF interlacing in x264 must use CoreAVC commercial codec v. 1.7 ~ 15 €. |
|||
Served by [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver. |
|||
Note that works good with [http://www.mythtv.org/ Mythtv 0.21] and [http://xinehq.de/ xine-libs+xine-ui.] Other xine front-ends freezes when changing channels. To convert such streams use 32bit [http://mplayerhq.hu mencoder] with dshowserver patch. |
|||
It's a pity both my computers are too slow to decode HD/MPEG-4 streams. |
|||
== A sample solution for a system with a full-featured card == |
|||
'''DVB-C example'''<BR> |
|||
My system is a MythTV pc installed with Fedora Core 6 following [http://www.wilsonet.com/mythtv/fcmyth.php this howto]. I use the [[TechnoTrend Premium C-2300]] hybrid [[DVB-C]] card, which I bought from [http://www.dvbshop.net/index.php/cat/c17_Premium-PCI.html Dvbshop] in Germany. I was thinking buying the [[TechnoTrend Budget C-1500]], but it was out of stock from [http://www.dvbshop.net/product_info.php/info/p16_Technotrend-Budget-C-1500-incl--Remote--W98-ME-2K-XP-MCE-.html Dvbshop] at that time. I am going to document in the [http://www.mythtv.org/wiki/index.php/Adding_Digital_Cable_Channels_For_DVB-C_Tuner_Cards_--_Norway MythTV Wiki] how to use the [[Norway - Grimstad]] channels.conf file for setting up channels in MythTV. Also see, the [[Conditional Access Module Usage Examples#Grimstad_Cable_TV_.5B1.5D|Grimstad Cable TV use example]]. |
|||
(The budget setup above of course also works for FF cards.) |
|||
== A sample solution for a system with an analog card == |
== A sample solution for a system with an analog card == |
||
My PVR is constructed with a low-power, fanless, mini-itx computer hidden within a former dual-tape recorder. |
|||
''write it down if you have one -- I can't do it cause I haven't'' |
|||
* Zotac ION N230 with integrated Intel ATOM CPU and Nvidia GPU |
|||
* HVR-1950, which has a MPEG2 encoder |
|||
This seems like a weak setup for PVR use. However, it works because of the specific hardware combinations:- |
|||
* MPEG2 from the HVR-1950 imposes little CPU demand when recording. |
|||
* VDPAU libraries use the integrated GPU with little CPU demand during playback. |
|||
Here is a script for NTSC-tv or cable:- |
|||
<nowiki> |
|||
#!/bin/bash |
|||
# record analog TV (MPEG2 Transport Stream) from HVR-1950 |
|||
# file: tv1.sh |
|||
# tested with Sabayon Linux, a Gentoo derivative |
|||
PREFIX=`date +%F-%H-%M` |
|||
echo "[tv1.sh channel=$1 duration=$2 seconds]" |
|||
ivtv-tune --freqtable=us-cable --channel=$1 |
|||
(cat /dev/video0 > ~/Videos/${PREFIX}_$1.ts)& |
|||
pid=$! |
|||
echo waiting $2 seconds for channel $1 process $pid |
|||
sleep $2 |
|||
kill $pid |
|||
echo Bye.. |
|||
</nowiki> |
|||
You can use the "at" command to schedule a future recording. |
|||
== See |
== Also See:== |
||
* [[ |
* [[Testing your DVB device]] |
||
* [[TV Related Software]] - a commented software list |
|||
* [[First steps with a budget DVB card]] |
|||
[[Category:Hardware]] |
Latest revision as of 00:35, 18 May 2014
This page provides examples of working hardware and software system configurations that may provide guidance for readers as to what can be accomplished on or with their own system.
If you believe you have a PVR / Linuxtv box that works well, please post a description that may be beneficial for others to read [such as your system hardware (mobo/chip/video), what TV tuner device you have (ideally with a link to the manufacturer's product page or to the device's entry here in the wiki) and with what kernel, drivers and software applications you operate on your system].
In order to be most useful for the reader, this page is divided into three sections:
- setups for DVB cards that rely on "software decoding" (aka budget cards ... DVB cards without hardware decoders)
- setups for DVB cards with hardware decoders (aka full featured cards)
- setups for analog TV cards
Each of the three sections can, in turn, be subdivided into categories covering the different standards (DVB-{C,S,T}, ATSC) for that type of hardware. Please add to the appropriate one, or create a new one if need be.
Readers should note that the suggestions found here are just that -- suggestions. For a more complete listing of available programs, see the commented TV Related Software page. Likewise, for more complete listings of supported hardware, consult the [Hardware & Components] section of the wiki.
A sample solution for a system with a budget DVB card
My system is a Twinhan DTV Mini Ter on a cheap HP Pentium 4 1.2GHz. The graphic card is only an on-board Intel 82810E with shared memory, so nothing fancy.
After installing the card drivers, I tried several solutions. I didn't get the VDR Software Decoder Plugin working so I tried xine -- which worked on the first trial and provides much functionality (for watching) on an easy and intuitive interface.
---
I use a TwinHan Express compatible card Axtrom which works great with linux. So far kaffeine is the best choice to use with a budget card. Since xine does not let you to record and it's interface is buggy and VDR is very hard to setup and startup I decided to stick to kaffeine. It lets you record un-attended. you can even record and watch multiple channels within same transponder.
---
DVB-T example
Location: Hampshire, UK
Device: Nova-T stick
Hardware: Via SP13000 epia system
OS: Fedora Core 6
kernel: 2.6.18-1.2869.fc6
Drivers: extracted from hg
Works reasonably well, records about 8 TV programs a day using freevo. Get kernel ops requiring reboot about once a month, can be slow to tune and sometimes doesn't tune at all. Wouldn't recommend this device if you are looking for a hastle free solution ;) Also worth noting that I can only watch live TV with mplayer / xine, and record using mplayer. Things like dvbstreamer don't work with this stick, I just get mt2060 errors to syslog and no data.
UPDATE - see here for new driver / firmware details to solve the various problems. Now streaming works correctly and I no longer get mt2060 errors, seems to work very well. Will update and remove previous comments once stability and long term lack of ops is proved.
Another DVB-T example
Location: Sydney, Australia
Devices: 2 x LifeView TV Walker Twin
Distribution: Debian
Kernel: 2.6.20
Drivers: from http://linuxtv.org/hg/~aapot/m920x
Software: kaffeine
Works fine playing and recording. It should be possible to play/record up to 4 channels simultaneously with this setup. Tuning a new channel takes 1-2 seconds.
Another example, using Terratec Card
It was really easy to setup the following, good working configuration:
- Debian linux
- kernel.org sources for 2.6.23.12
- Terratec Cinergy HT !CardBus card, [1]
- kernel modules:
- tda827x
- saa7134_dvb
- video_buf_dvb
- dvb_core
- tda1004x
- tuner
- saa7134
- video_buf
- compat_ioctl32
- ir_kbd_i2c
- ir_common
- videodev
- v4l2_common
- v4l1_compat (for older software, compatibility with e.g. {{{camE}}}
- no additional firmware was required
- no kernel parameters were required
- watching analog + composite works fine with:
- gxine, xawtv
- watching dvb-t works fine with
- gxine
To get the DVB-channels for Austria / Linz, i had the following line in the scan-script:
T 650000000 8MHz 3/4 NONE QAM16 8k 1/4 NONE #K43, Linz
found on [2].
A sample solution for MPEG-4 encoded / PAFF interlaced streams with budget card
- Transmiter: Emitel/POT - Warsaw; Poland
- Compression: video - MPEG-4; audio MPEG-2/AC3
- Hardware:
- AMD 1.7XP/512MB DDR400 as MythTV server & client (frontend)
- AMD64 3200+ Venice/1024MB DDR400 as MythTV client (frontend)
- AverMedia 777 A16A-C budget card (with Fedora 8/9 ia32 & Gentoo ~amd64)
- AVerTV Hybrid+FM PCI (A16D) (with PLD Th ia32)
- Software:
- Tested systems:
- Fedora 8/9 ia32 as MythTV server & client (frontend)
- Gentoo ~x86_64 as MythTV server & client (frontend)
- PLD Th test as MythTV server & client (frontend)
- kernel versions 2.6.25 2.6.26 for Fedora&Gentoo/Aver 777; 2.6.25 + Mercurial drivers rev. e2a8b9b9c294 for PLD/Aver Hybrid
- CoreAVC win32 codec + coreavc-for-linux dshowserver
- Mythtv 0.21 with dshowserver patch - Fedora&Gentoo
- Mythtv 0.22 svn18642 snapshot with dshowserver patch - PLD
- xine-libs-1.1.15+xine-ui with dshowserver patch
- mplayer/mencoder with dshowserver patch for watching/converting recordings
- Tested systems:
Due to MPEG-4 encoding and no PAFF interlacing in x264 must use CoreAVC commercial codec v. 1.7 ~ 15 €. Served by coreavc-for-linux dshowserver. Note that works good with Mythtv 0.21 and xine-libs+xine-ui. Other xine front-ends freezes when changing channels. To convert such streams use 32bit mencoder with dshowserver patch.
It's a pity both my computers are too slow to decode HD/MPEG-4 streams.
A sample solution for a system with a full-featured card
DVB-C example
My system is a MythTV pc installed with Fedora Core 6 following this howto. I use the TechnoTrend Premium C-2300 hybrid DVB-C card, which I bought from Dvbshop in Germany. I was thinking buying the TechnoTrend Budget C-1500, but it was out of stock from Dvbshop at that time. I am going to document in the MythTV Wiki how to use the Norway - Grimstad channels.conf file for setting up channels in MythTV. Also see, the Grimstad Cable TV use example.
A sample solution for a system with an analog card
My PVR is constructed with a low-power, fanless, mini-itx computer hidden within a former dual-tape recorder.
- Zotac ION N230 with integrated Intel ATOM CPU and Nvidia GPU
- HVR-1950, which has a MPEG2 encoder
This seems like a weak setup for PVR use. However, it works because of the specific hardware combinations:-
- MPEG2 from the HVR-1950 imposes little CPU demand when recording.
- VDPAU libraries use the integrated GPU with little CPU demand during playback.
Here is a script for NTSC-tv or cable:-
#!/bin/bash # record analog TV (MPEG2 Transport Stream) from HVR-1950 # file: tv1.sh # tested with Sabayon Linux, a Gentoo derivative PREFIX=`date +%F-%H-%M` echo "[tv1.sh channel=$1 duration=$2 seconds]" ivtv-tune --freqtable=us-cable --channel=$1 (cat /dev/video0 > ~/Videos/${PREFIX}_$1.ts)& pid=$! echo waiting $2 seconds for channel $1 process $pid sleep $2 kill $pid echo Bye..
You can use the "at" command to schedule a future recording.
Also See:
- Testing your DVB device
- TV Related Software - a commented software list