https://www.linuxtv.org/wiki/api.php?action=feedcontributions&user=Tvister&feedformat=atomLinuxTVWiki - User contributions [en]2024-03-28T09:31:53ZUser contributionsMediaWiki 1.39.6https://www.linuxtv.org/wiki/index.php?title=Zap&diff=33388Zap2014-05-19T00:48:29Z<p>Tvister: /* Exiting after tuning */</p>
<hr />
<div>{{lowercase|zap}}<br />
<br />
<br />
The process of tuning a television channel is sometimes referred to as "zapping"; the term is apparently in reference to the use of early Set Top Boxes " which could let you zap through a channel list but not much more" (see [http://linuxtv.org/downloads/linux-dvb-api-v4/ The Linux DVB API]). <br />
<br />
In the spectrum of analog TV software, "zapping" is also the name of a popular Gnome based tv viewer application.<br />
<br />
In terms of DVB software, the abbreviated 'zap' relates to several small command line utilities found in the contents of the [[LinuxTV dvb-apps]] package .<br />
* The program zap (found within the ~/dvb-apps/util/zap directory of the package download) is really intended for developer use.<br />
* The four {a,c,s,t}zap utility programs (all found within the ~/dvb-apps/util/szap directory of the package download), on the other hand, are highly useful for the end user in setting up and testing dvb hardware devices. A given '_zap' command (''azap'', ''czap'', ''szap'' or ''tzap'') will respectively allow the user to tune a [[Digital TV|digital television (DTV)]] channel from a [[ATSC]], [[DVB-C]], [[DVB-S]] or [[DVB-T]] transmission. It is these utilities that will be discussed in the remainder of this article.<br />
<br />
==Introduction==<br />
In order to successfully tune with an {a,c,s,t}zap utility, the user must first have a valid channel configuration file (channels.conf) setup. A channels.conf file is generated by running the '[dvb]scan' utility, which is also found in the [[LinuxTV dvb-apps|dvb-apps]] package -- see the [[Scan|scan]] documentation for specific details on how to create a channels.conf file. The '_zap' usage examples shown below assume that the user has already undertaken those steps to setup their channels.conf file. <br />
<br />
==Documentation==<br />
Within the dvb-apps package download itself (~/dvb-apps/util/szap directory) you will find a README file that gives a very brief explanation of how to use the {a,c,s,t}zap utilites. <br />
<br />
Otherwise, passing an {a,c,s,t}zap command with the -h option, or without any parameters, will provide a summary of the commands usage. For example, running 'tzap' produces:<br />
usage:<br />
tzap [options] <channel_name><br />
zap to channel channel_name (case insensitive)<br />
-a number : use given adapter (default 0)<br />
-f number : use given frontend (default 0)<br />
-d number : use given demux (default 0)<br />
-c file : read channels list from 'file'<br />
-x : exit after tuning<br />
-r : set up /dev/dvb/adapterX/dvr0 for TS recording<br />
-s : only print summary<br />
-S : run silently (no output)<br />
-F : set up frontend only, don't touch demux<br />
-t number : timeout (seconds)<br />
-o file : output filename (use -o - for stdout)<br />
-h -? : display this help and exit<br />
<br />
Most experts or experienced users will likely find that this information conveys sufficient details in so far as how to manipulate a specific DVB hardware device with {a,c,s,t}zap. 'New users', however, are probably left scratching their heads by some of the options listed in the output -- but fear not!<br />
<br />
One thing that is noteworthy from the output above is that ''tzap'' does ''not'' take file system device names; instead, it cobbles them together from the adaptor, frontend and demux numbers. If you only have one tuner, you don't need to worry about this detail.<br />
<br />
==Tuning a channel==<br />
If you examine your 'channels.conf' file, you will discover that its contents are formated something like:<br />
<br />
'''For ATSC''' (unless you saved it elsewhere, the location of the file is in the directory ~/.azap)<br />
KPAX-DT:177028615:8VSB:49:52:1<br />
KPAX-CW:177028615:8VSB:65:68:2<br />
...<br />
...<br />
KECI-1:629028615:8VSB:49:52:3<br />
<br />
'''For DVB-T''' (unless you saved it elsewhere, the location of the file is in the directory ~/.tzap)<br />
ABC HDTV:226500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:2314:0:592<br />
ABC DiG Jazz:226500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_3_4:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:0:2318:599<br />
...<br />
...<br />
TEN Digital:219500000:INVERSION_AUTO:BANDWIDTH_7_MHZ:FEC_3_4:FEC_1_2:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_16:HIERARCHY_NONE:512:650:1617<br />
<br />
What we're interested in here is the channel name contained in the first field of each line. (If you are interested in what the omitted fields mean, see the [[Scan|scan]] documentation for more details). <br />
<br />
:{{Note|For purposes of illustration, use of the 'tzap' utility is continued, however, the information contained in the following examples should largely be applicable for usage with the other '_zap' programs as well.}}<br />
<br />
:{{Note|You need the data right format in this file. Different scanning programs produce different output formats. For example [[W_scan|w_scan]] must be run with the '-X' argument to obtain a channels.conf suitable for 'tzap'.}}<br />
<br />
We use the specific name of a channel to tune with tzap. For example, to tune the channel named 'TEN Digital',you would enter the following in the command console:<br />
$ tzap -r 'ten digital'<br />
:{{Note|''You need to put the channel name in single or double quotes if it contains spaces. On the other hand, as can be seen (and as outlined in the documentation section above), you don't have to match case.''}}<br />
<br />
Running that command should produce output similar to the following:<br />
<br />
using '/dev/dvb/adapter0/frontend0' and '/dev/dvb/adapter0/demux0'<br />
reading channels from file '/root/.tzap/channels.conf'<br />
tuning to 219500000 Hz<br />
video pid 0x020, audio pid 0x028a<br />
status 00 | signal 933f | snr 0000 | ber 00000000 | unc 00000000 | <br />
status 1f | signal a70f | snr d0d0 | ber 00000000 | unc 00000000 | FE_HAS_LOCK<br />
status 1f | signal aadf | snr cccc | ber 00000000 | unc 00000000 | FE_HAS_LOCK<br />
...(repeated updated output) ...<br />
<br />
The first four lines in the above output show what ''tzap'' is doing; they should reflect the corresponding fields in the ''channels.conf'' file. <br />
<br />
Starting on the fifth line, several fields of information are presented. Each successive line afterwards simply displays the updated state or condition of each of these representative fields. The updating process will repeat continuously on its own, once every second (i.e. a new line is generated every other second), but you can terminate it at any time with Ctrl-C. In any regard, these information fields are: <br />
<br />
*status: The current status of the receiver.<br>You will notice that the value found on the fifth line is "status 00". This shows that the tuner card has been initialized, but no signal has been decoded.<br>On successive lines, ideally the status value should be 1f (as is the case in the example output), which would indicate that correct tuning is established.<br> The actual bitmapped field possibilities are:<br />
** 0x01 = FE_HAS_SIGNAL - found something above the noise level<br />
** 0x02 = FE_HAS_CARRIER - found a DVB signal<br />
** 0x04 = FE_HAS_VITERBI - FEC is stable<br />
** 0x08 = FE_HAS_SYNC - found sync bytes<br />
** 0x10 = FE_HAS_LOCK - everything's working...<br />
** 0x20 = FE_TIMEDOUT - no lock within the last ~2 seconds<br />
** 0x40 = FE_REINIT - frontend was reinitialized<br><br />
*signal: Signal strength. The values shown here can vary from card to card, so if yours appears abnormally high or low, it probably means you're using a different card. In general, though, higher values mean better signal.<br />
*snr: The signal to noise ratio. This is more important than the signal strength. Many cards really only supply 8 bits of data (2 digits); the other two may be 00 or repeat the first two, as in this example.<br />
*ber: The bit error rate. This should be as low as possible, preferably 0.<br />
*unc: Uncorrected block errors. This should be 0 for a good signal; if it isn't, you'll have defects in the output stream.<br />
*FE_HAS_LOCK: This indicates that the tuner has tuned ("locked") into the stream.<br />
<br />
Not all the numbers are implemented in some drivers, but good is signal > 8000, status 1f (all bits set), snr (Signal to Noise Ratio) should be > 8000, ber (bit error rate) - low is good, unc (Uncorrectable blocks) - low is good.<br />
<br />
==Recording a program==<br />
There are two ways to record a program. ''tzap'' can copy the data directly to a file:<br />
<br />
tzap -o foo 'SBS digital 1'<br />
<br />
This variant tunes to SBS digital 1 and then copies the stream to the file ''foo''. It continues until you stop the ''tzap'' process.<br />
<br />
Or, to record a channel for a specified period of time (this could be run from ''at'' to record at a specific time):<br />
<br />
tzap -t 3600 -o foo.ts "BBC ONE"<br />
<br />
(This records from the channel BBC ONE for 1 hour (3600 seconds)).<br />
<br />
Alternatively, you can make the MPEG stream available via one of the DVB adaptor devices, typically ''/dev/dvb/adaptor0/dvr0''. For this, you need to specify at least the -r option. If you have more than one tuner and want a different device, for example ''/dev/dvb/adaptor3/dvr0'', use the option '-a 3' as well. You will also probably want to use the -S option to stop the status output every second.<br />
<br />
tzap -r -a 3 -S 'SBS digital 1'<br />
<br />
You can then copy the stream to a file or view it with ''mplayer'', for example:<br />
<br />
cp /dev/dvb/adapter0/dvr0 foo<br />
<br />
or<br />
<br />
mplayer /dev/dvb/adapter0/dvr0<br />
<br />
or distribute via network with nc (nc has more options)<br />
#Server<br />
cat /dev/dvb/adapter0/dvr0 | nc -l -p $PortNum<br />
#Client<br />
nc $ServerName $PortNum | mplayer -<br />
<br />
==Exiting after tuning==<br />
The -x option tells ''tzap'' to exit once it has tuned the tuner. This is only of interest if you don't want to do anything more; when ''tzap'' exits, the connection to the tuner also goes away.<br />
<br />
----<br />
There are 2 processes running where recording DVB:-<br />
* zap drives the device output stream.<br />
* the other process writes to a file.<br />
<br />
It is best to run from a script which runs zap in the background while waiting for the record interval to expire. The following example accepts channel name, record time, and exits cleanly.<br />
<pre><br />
#!/bin/bash<br />
# record ATSC transport stream<br />
# tested with HVR-1950, UHF antenna, and Sabayon Linux<br />
#e.g. ./tv2.sh WIVB-HD 3600<br />
<br />
echo "[ ./tv2.sh channel=$1 seconds=$2 ]"<br />
PREFIX=`date +%F-%H-%M` # part of filename<br />
FNAME=~/Videos/${PREFIX}_$1.ts<br />
echo "..Selecting the DVB-T channel"<br />
( azap -r $1 > /dev/null 2>&1 )&<br />
ps1=$!<br />
echo "..Starting record of ${FNAME}"<br />
( cat /dev/dvb/adapter0/dvr0 > ${FNAME} )&<br />
ps2=$!<br />
echo ..Waiting $2 seconds before kill of $ps1 and $ps2<br />
sleep $2<br />
kill $ps2 $ps1<br />
echo Bye..<br />
#<br />
</pre><br />
<br />
==Footnote==<br />
<br />
For users in North America note that szap uses an LO of 10000 for the STANDARD Ku lnb definition. To make szap work with a standard Ku band lnb in North America you can either edit the source code replacing 10000 with 10750 for the STANDARD lnb or run szap like so .....<br />
<br />
szap -l 10750 -r CHANNEL<br />
[[Category:Software]]</div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=MPlayer&diff=33387MPlayer2014-05-18T15:48:29Z<p>Tvister: /* Watching Analogue TV */</p>
<hr />
<div>The Linux video "Swiss Army knife", which plays almost every movie format imaginable [http://www.mplayerhq.hu/design7/info.html].<br />
<br />
:''The player is rock solid playing damaged MPEG files (useful for some VCDs), and it plays bad AVI files which are unplayable with the famous windows media player. Even AVI files without index chunk are playable, and you can temporarily rebuild their indexes with the -idx option, or permanently with MEncoder, thus enabling seeking! As you see, stability and quality are the most important things, but the speed is also amazing. There is also a powerful filter system for video and audio manipulation.'' [http://www.mplayerhq.hu/DOCS/HTML/en/intro.html]<br />
<br />
In addition, MPlayer can also serve as:<br />
* a TV viewer application for both analogue TV or DVB.<br />
* a Radio listening application<br />
* a [[Webcam]] viewing application <br />
<br />
==Using MPlayer to Watch TV==<br />
<br />
=== Useful MPlayer Global Keyboard Hotkeys When Watching TV===<br />
These are global settings applicable for either analogue or DVB.<br />
<br />
You can change the channel and control the volume with those keys:<br />
{| border="1" cellpadding="2"<br />
!width="100"|Keys<br />
!width="200"|Meaning<br />
|-<br />
| / and * || Decrease/increase volume<br />
|-<br />
| 9 and 0 || Decrease/increase volume<br />
|-<br />
| m || Mute sound<br />
|-<br />
| h and k || Select previous/next channel<br />
|}<br />
<br />
For more info about MPlayer command line parameters and other control keys, please read the [http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html MPlayer man page]<br />
<br />
=== Watching Analogue TV===<br />
A sample MPlayer command line that will play TV for Europe, channel E2, for devices that use analog audio wired from the TV card audio output into the aux or cd audio input on the motherboard or on the audio card:<br />
<br />
mplayer tv:// -tv driver=v4l2:norm=PAL:input=0:amode=1:width=384:height=288:outfmt=yv12:device=/dev/video0:chanlist=europe-west:channel=E2<br />
<br />
If your board provides a digital audio input, don't forget to load the alsa module for it. In this case, you'll need to teach mplayer to read the audio stream as well. This is an example of using mplayer for viewing TV on a NTSC video stream, reading also the audio stream:<br />
<br />
mplayer -tv driver=v4l2:device=/dev/video0:norm=NTSC:chanlist=us-bcast:channel=10:alsa=1:adevice=hw.1:audiorate=48000:immediatemode=0:amode=1 tv://<br />
<br />
In this case, it is assumed that the -alsa module created as the second audio adapter (hw:1), and supports an audio rate of 48 kHz. There are more useful information about audio setups with alsa modules on [[Saa7134-alsa]].<br />
<br />
To avoid having to specify all the above parameters, it is recommended to write them to the ~/.mplayer/config:<br />
zoom = yes<br />
vo = x11<br />
tv = "driver=v4l2:device=/dev/video0:norm=NTSC:chanlist=us-bcast:channel=10:alsa=1:adevice=hw.1:audiorate=48000:immediatemode=0:amode=1"<br />
monitoraspect = "16:9"<br />
<br />
For simple example using IVTV, MPlayer, and MPEG2 card see [[Tuning]]<br />
<br />
=== Watching DVB Streams ===<br />
One method of using MPlayer to watch DVB streams is outlined in the [[Testing your DVB device]] article. However, it is a convoluted solution, and is much more suited for testing purposes rather then daily use. A much simpler and convenient method is outlined below.<br />
<br />
{{Note|The following methods require that you configure a ''channels.conf'' file and store it in ''~/.mplayer'' (instructions on how to do this are detailed in the [[Testing your DVB device]] article) before you can actually use MPlayer to view or record DVB streams.}}<br />
<br />
If you have a single DVB device, which itself has a single [[Frontend|frontend]](a usage case which will be true for most persons; See the section below for MPlayer [[MPlayer#Usage with more complex DVB device configurations|usage with more complex DVB device configurations]]), you can start watching DVB streams with MPlayer simply by typing:<br />
<br />
$ mplayer dvb:// <br />
<br />
That command will result in your DVB device receiving the first channel listed in your channels.conf and displaying that stream's contents in MPlayer. You can then move forward through your channel list by pressing h (next) on your keyboard. Conversely, pressing k (previous) on your keyboard will move backwards through your channel list. <br />
<br />
If you wish to open a specific DVB stream (as listed in the ''channels.conf'' file), type:<br />
<br />
$ mplayer dvb://"STREAM NAME" <br />
<br />
"STREAM NAME" is, of course, a generic descriptor and you will have to substitute the correct name accordingly (e.g. BBC, CBS, CBC, ....)<br />
{{Note|Around the stream name you can use double parenthesis, single parenthesis, or none at all}}<br />
<br />
Of course, for even better results, you may wish to run MPlayer with some options (<code>mplayer dvb:// <options></code>). For example, to utilise linear blend deinterlacing for display/playback, run: <br />
<br />
$ mplayer dvb:// -vf pp=lb<br />
<br />
You may have to force demuxer type for better results. For example, for a DVB-T device (all DVB devices?):<br />
<br />
$ mplayer dvb:// -demuxer mpegts<br />
<br />
See the MPlayer man page (i.e. in a console run "man mplayer") for a lengthy list of available options (an online version is found below in the links section).<br />
<br />
====Usage with more complex DVB device configurations====<br />
If you choose not to specify a device adapter and/or frontend, as was the case in the examples shown in the section above, then MPlayer will default to using <code>/dev/dvb/adapter0</code> and <code>/dev/dvb/adapter0/frontend0</code>. Alternatively, you can be very specific with MPlayer in terms of which hardware is to be used -- a point of interest to those:<br />
* with multiple DVB device adapters in their system, or <br />
* whose device adapter has multiple frontends, or<br />
* who have multiple adapters and some, or even all, of which have multiple frontends!<br />
<br />
If you have more than one DVB device adapter installed in your system you can specify the device to use by passing the device number in the command syntax. MPlayer uses device numbers of 1-4. For example:<br />
<br />
$ mplayer dvb://"DEVICE NUMBER"@"STREAM NAME" <options><br />
<br />
Which will open the default frontend ("frontend0") on the adapter you specify.<br />
<br />
Some device adapters also have multiple frontends. In which case, you can specify which frontend on the adapter to use by passing the frontend number along with the device adapter number. For example:<br />
$ mplayer dvb://"DEVICE NUMBER":"FRONTEND NUMBER"@"STREAM NAME" <options><br />
<br />
Again, to avoid having to specify all the above parameters, it is recommended to write them to the ~/.mplayer/config file.<br />
<br />
==== Limitations with DVB Streams ====<br />
* Only free-to-air broadcasts are supported. Decryption through [[CAM]] is not implemented in MPlayer.<br />
But you can use virtual interface such as sasc-ng or utilite ca_zap from dvb-apps/util:<br />
cat ~/.mplayer/channels.conf:<br />
#Eutelsat W4 36' <br />
Sport 1:11727:h:0:27500:101:201:1<br />
Sport 2:11727:h:0:27500:102:202:2<br />
First Automotive:11727:h:0:27500:103:203:3<br />
BIZ TV:11727:h:0:27500:105:205:5<br />
RUTV:11727:h:0:27500:109:209:9<br />
O2TV:11727:h:0:27500:110:210:10<br />
RTVi:11727:h:0:27500:111:211:11<br />
<br />
ca_zap -m -c ~/.mplayer/channels.conf -t sat -a 0 -n 'Sport 1'<br />
mplayer dvb://'0@Sport 1'<br />
* There is (presently) no DVB subtitle support in MPlayer.<br />
<br />
==== Recording DVB Streams ====<br />
If you want to record a DVB stream with MPlayer, you can use:<br />
<br />
$ mplayer -dumpstream dvb://"STREAM NAME" -dumpfile stream.ts<br />
<br />
This will dump the stream in MPEG-TS format to the file ''stream.ts'' ('''Note''' that this file can be very large - ~1GB for 30 minutes). <br />
<br />
You can then use MPlayer or [[MEncoder]], a command-line encoder built on the MPlayer code, to convert that file to a usable video format.<br />
<br />
There is even more functionality in [[MEncoder]] when it comes to recording streams. <br />
<br />
==== MPlayer and Satellite Dishes ====<br />
If you are using MPlayer with a satellite dish that has a C-Band lnb LO: 5150 or standard Ku Band lnb LO: 10750 such as are commonly used in North America, MPlayer will tune the channel if you use the L Band frequency in your .mplayer/channels.conf file instead of the C or Ku Band frequency. To calculate the L Band frequency for C Band, 5150 minus frequency in Mhz equals L Band frequency in Mhz. For Ku Band, frequency in Mhz minus 10750 equals L Band frequency in Mhz. <br />
<br />
For example to tune C Band 4.060 Ghz<br />
<br />
5150 - 4060 = 1090<br />
<br />
Use 1090 for the frequency in channels.conf instead of 4060.<br />
<br />
For Ku Band 11.799 Ghz<br />
<br />
11799 - 10750 = 1049<br />
<br />
==Using MPlayer for Radio Listening==<br />
You can do a lot of things with MPlayer. An example of commandline syntax used for radio listening is:<br />
<br />
mplayer -rawaudio rate=48000 radio://2/capture -radio adevice=hw=2:arate=48000:channels=93.8-Radio_Zones,94.7-SSR_1<br />
<br />
Note that this command will work even without audio cable between the output of the radio card and a line input of the audio card.<br />
<br />
This will start MPlayer with sample rate = 48 kHz (using the same sample rate that the sound card is using gives best results), listening to the second station on the list, the tuner is the third sound card (ALSA device hw:2). For more examples and syntax: [http://www.mplayerhq.hu/DOCS/HTML/en/radio-input.html#radio-tips MPlayer radio tips].<br />
<br />
You can add as many stations as wanted and use LIRC to control MPlayer.<br />
<br />
If you are, say, running JACK all the time, you can add<br />
ao=jack,alsa<br />
into ~.mplayer/config (for MPlayer) and mplayerplug-in.conf (for Firefox mplayerplug-in). For recording, you can use any JACK aware recording application.<br />
<br />
A XDialog wrapper can be made for radio listening using MPlayer and v4l2-ctl. The authour found that it was so good that they decided to make it public under the name [http://slashdot.org/firehose.pl?op=view&id=5214989 XDRadio]. You will have to make a list of your stations during the installation (very easy to do). After that, all that is required is to just to run it and enjoy the radio.<br />
<br />
==Using MPlayer for Webcam Viewing==<br />
Can be used to view webcam video by invoking 'mplayer tv://'.<br />
<br />
<br />
==High Quality Video Playback==<br />
<br />
MPlayer will play almost anything with the default settings, but with careful selection of the command line parameters (i.e. test samples, trial-and-error and patience) it is possible to achieve very high quality video playback. When you are satisfied with the results provided by certain parameters, you can add them to the ~.mplayer/config file so that they are used persistently and don't have to be manually passed to the application. Type "man mplayer" for a detailed listing of available options. Pay particular attention to:<br />
<br />
* Video Output Driver (-vo option)<br />
** xv is reliable<br />
** vdpau may be useful if you have an nvidia card (and not enough CPU)<br />
* Deinterlacing<br />
** See http://guru.multimedia.cx/deinterlacing-filters/<br />
** -vf yadif=1 is good, doubles the frame rate to preserve information (at the cost of CPU)<br />
* Upscaling<br />
** -vf scale with -sws 9 is very good (at the cost of CPU)<br />
* Buffering<br />
* Vertical sync (check for tearing artefacts in the video)<br />
** check video card options, desktop compositing, OpenGL<br />
** video card frame rate should equal (or be a multiple of) video frame rate<br />
* Audio sync<br />
** -delay option<br />
* Screensaver<br />
** ensure it is disabled when playing video and reenabled afterwards<br />
* Resolutions<br />
** you will probably need different settings for SD and HD<br />
* Smoothness<br />
** check news tickers for smooth flow and readability<br />
<br />
<br />
== Also See==<br />
*[[BBC HD]] (Patches and Info for Watching BBC HD on Astra 28.8e)<br />
<br />
== External Links ==<br />
* [http://www.mplayerhq.hu MPlayer Home page]<br />
* [http://www.mplayerhq.hu/DOCS/HTML/en/index.html MPlayer documentation]<br />
* [http://www.mplayerhq.hu/DOCS/man/en/mplayer.1.html MPlayer man page (online version)]<br />
<br />
[[Category:Software]]<br />
[[Category:Apps & Utilities]]</div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=Tuning&diff=33386Tuning2014-05-18T15:36:03Z<p>Tvister: Created page with "Here is a script for tuning one of the Hauppague devices:- <pre> #!/bin/bash # watch analogue TV from HVR-1950 (or other MPEG encoding card) echo "[live1.sh channel=$1]" ki..."</p>
<hr />
<div>Here is a script for tuning one of the Hauppague devices:-<br />
<br />
<pre><br />
#!/bin/bash<br />
# watch analogue TV from HVR-1950 (or other MPEG encoding card)<br />
<br />
echo "[live1.sh channel=$1]"<br />
<br />
killall mplayer # kill leftovers<br />
<br />
ivtv-tune --freqtable=us-cable --channel=$1 # tune MPEG2 stream<br />
<br />
echo "Starting MPlayer.."<br />
mplayer /dev/video0 \<br />
-vo vdpau -vc ffmpeg12vdpau \<br />
-quiet -msglevel all=0<br />
<br />
</pre></div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=Example_setups&diff=33385Example setups2014-05-18T00:35:28Z<p>Tvister: /* A sample solution for a system with an analog card */</p>
<hr />
<div>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. <br />
<br />
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]. <br />
<br />
In order to be most useful for the reader, this page is divided into three sections: <br />
* setups for DVB cards that rely on "software decoding" (aka [[budget]] cards ... DVB cards without hardware decoders) <br />
* setups for DVB cards with hardware decoders (aka [[Full-featured Card|full featured cards]])<br />
* setups for analog TV cards <br />
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.<br />
<br />
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.<br />
<br />
<br />
== A sample solution for a system with a budget DVB card ==<br />
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. <br />
<br />
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. <br />
<br />
---<br />
<br />
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.<br />
<br />
---<br />
<br />
==== DVB-T example ====<br />
Location: Hampshire, UK<br />
<br />
Device: [http://www.hauppauge.co.uk/pages/products/data_novatstick.html Nova-T stick]<br />
<br />
Hardware: Via SP13000 epia system<br />
<br />
OS: Fedora Core 6<br />
<br />
kernel: 2.6.18-1.2869.fc6<br />
<br />
Drivers: extracted from hg<br />
<br />
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.<br />
<br />
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.<br />
<br />
==== Another DVB-T example ====<br />
<br />
Location: Sydney, Australia<br />
<br />
Devices: 2 x LifeView TV Walker Twin<br />
<br />
Distribution: Debian<br />
<br />
Kernel: 2.6.20<br />
<br />
Drivers: from http://linuxtv.org/hg/~aapot/m920x<br />
<br />
Software: kaffeine<br />
<br />
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.<br />
<br />
== Another example, using Terratec Card ==<br />
<br />
It was really easy to setup the following, good working configuration:<br />
<br />
* Debian linux<br />
* kernel.org sources for 2.6.23.12<br />
* Terratec Cinergy HT !CardBus card, [http://tven.terratec.net/modules.php?op=modload&name=News&file=article&sid=245]<br />
* kernel modules:<br />
** tda827x <br />
** saa7134_dvb <br />
** video_buf_dvb <br />
** dvb_core <br />
** tda1004x <br />
** tuner <br />
** saa7134 <br />
** video_buf <br />
** compat_ioctl32 <br />
** ir_kbd_i2c <br />
** ir_common <br />
** videodev <br />
** v4l2_common<br />
** v4l1_compat (for older software, compatibility with e.g. {{{camE}}}<br />
* no additional firmware was required<br />
* no kernel parameters were required<br />
* watching analog + composite works fine with:<br />
** gxine, xawtv<br />
* watching dvb-t works fine with<br />
** gxine<br />
<br />
To get the DVB-channels for '''Austria / Linz''', i had the following line in the scan-script:<br />
<code><br />
T 650000000 8MHz 3/4 NONE QAM16 8k 1/4 NONE #K43, Linz<br />
</code><br />
found on [http://dvb-t.the-media-channel.com/oesterreich/dvb-t-oberoesterreich.html].<br />
<br />
== A sample solution for MPEG-4 encoded / PAFF interlaced streams with budget card ==<br />
<br />
* Transmiter: Emitel/POT - Warsaw; Poland<br />
* Compression: video - MPEG-4; audio MPEG-2/AC3<br />
* Hardware:<br />
** AMD 1.7XP/512MB DDR400 as MythTV server & client (frontend)<br />
** AMD64 3200+ Venice/1024MB DDR400 as MythTV client (frontend)<br />
** [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)<br />
** [http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_Hybrid%2BFM_PCI AVerTV Hybrid+FM PCI (A16D)] (with PLD Th ia32)<br />
* Software:<br />
** Tested systems:<br />
*** Fedora 8/9 ia32 as MythTV server & client (frontend) <br />
*** Gentoo ~x86_64 as MythTV server & client (frontend)<br />
*** PLD Th test as MythTV server & client (frontend)<br />
** 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<br />
** CoreAVC win32 codec + [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver<br />
** [http://http://svn.mythtv.org/trac/ Mythtv 0.21] with dshowserver patch - Fedora&Gentoo<br />
** [http://svn.mythtv.org/trac/ Mythtv 0.22 svn18642 snapshot] with dshowserver patch - PLD<br />
** [http://xinehq.de/ xine-libs-1.1.15+xine-ui] with dshowserver patch<br />
** [http://mplayerhq.hu mplayer/mencoder] with dshowserver patch for watching/converting recordings<br />
<br />
Due to MPEG-4 encoding and no PAFF interlacing in x264 must use CoreAVC commercial codec v. 1.7 ~ 15 €.<br />
Served by [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver.<br />
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.<br />
<br />
It's a pity both my computers are too slow to decode HD/MPEG-4 streams.<br />
<br />
== A sample solution for a system with a full-featured card ==<br />
<br />
'''DVB-C example'''<BR><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]].<br />
<br />
<br />
<br />
== A sample solution for a system with an analog card ==<br />
My PVR is constructed with a low-power, fanless, mini-itx computer hidden within a former dual-tape recorder.<br />
* Zotac ION N230 with integrated Intel ATOM CPU and Nvidia GPU<br />
* HVR-1950, which has a MPEG2 encoder<br />
<br />
This seems like a weak setup for PVR use. However, it works because of the specific hardware combinations:-<br />
* MPEG2 from the HVR-1950 imposes little CPU demand when recording.<br />
* VDPAU libraries use the integrated GPU with little CPU demand during playback.<br />
<br />
Here is a script for NTSC-tv or cable:-<br />
<nowiki><br />
#!/bin/bash<br />
# record analog TV (MPEG2 Transport Stream) from HVR-1950 <br />
# file: tv1.sh<br />
# tested with Sabayon Linux, a Gentoo derivative<br />
<br />
PREFIX=`date +%F-%H-%M`<br />
echo "[tv1.sh channel=$1 duration=$2 seconds]"<br />
<br />
ivtv-tune --freqtable=us-cable --channel=$1<br />
(cat /dev/video0 > ~/Videos/${PREFIX}_$1.ts)&<br />
pid=$!<br />
echo waiting $2 seconds for channel $1 process $pid<br />
sleep $2<br />
kill $pid<br />
echo Bye..<br />
</nowiki><br />
<br />
You can use the "at" command to schedule a future recording.<br />
<br />
== Also See:==<br />
* [[Testing your DVB device]]<br />
* [[TV Related Software]] - a commented software list<br />
[[Category:Hardware]]</div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=Example_setups&diff=33384Example setups2014-05-18T00:30:13Z<p>Tvister: /* A sample solution for a system with an analog card */</p>
<hr />
<div>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. <br />
<br />
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]. <br />
<br />
In order to be most useful for the reader, this page is divided into three sections: <br />
* setups for DVB cards that rely on "software decoding" (aka [[budget]] cards ... DVB cards without hardware decoders) <br />
* setups for DVB cards with hardware decoders (aka [[Full-featured Card|full featured cards]])<br />
* setups for analog TV cards <br />
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.<br />
<br />
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.<br />
<br />
<br />
== A sample solution for a system with a budget DVB card ==<br />
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. <br />
<br />
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. <br />
<br />
---<br />
<br />
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.<br />
<br />
---<br />
<br />
==== DVB-T example ====<br />
Location: Hampshire, UK<br />
<br />
Device: [http://www.hauppauge.co.uk/pages/products/data_novatstick.html Nova-T stick]<br />
<br />
Hardware: Via SP13000 epia system<br />
<br />
OS: Fedora Core 6<br />
<br />
kernel: 2.6.18-1.2869.fc6<br />
<br />
Drivers: extracted from hg<br />
<br />
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.<br />
<br />
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.<br />
<br />
==== Another DVB-T example ====<br />
<br />
Location: Sydney, Australia<br />
<br />
Devices: 2 x LifeView TV Walker Twin<br />
<br />
Distribution: Debian<br />
<br />
Kernel: 2.6.20<br />
<br />
Drivers: from http://linuxtv.org/hg/~aapot/m920x<br />
<br />
Software: kaffeine<br />
<br />
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.<br />
<br />
== Another example, using Terratec Card ==<br />
<br />
It was really easy to setup the following, good working configuration:<br />
<br />
* Debian linux<br />
* kernel.org sources for 2.6.23.12<br />
* Terratec Cinergy HT !CardBus card, [http://tven.terratec.net/modules.php?op=modload&name=News&file=article&sid=245]<br />
* kernel modules:<br />
** tda827x <br />
** saa7134_dvb <br />
** video_buf_dvb <br />
** dvb_core <br />
** tda1004x <br />
** tuner <br />
** saa7134 <br />
** video_buf <br />
** compat_ioctl32 <br />
** ir_kbd_i2c <br />
** ir_common <br />
** videodev <br />
** v4l2_common<br />
** v4l1_compat (for older software, compatibility with e.g. {{{camE}}}<br />
* no additional firmware was required<br />
* no kernel parameters were required<br />
* watching analog + composite works fine with:<br />
** gxine, xawtv<br />
* watching dvb-t works fine with<br />
** gxine<br />
<br />
To get the DVB-channels for '''Austria / Linz''', i had the following line in the scan-script:<br />
<code><br />
T 650000000 8MHz 3/4 NONE QAM16 8k 1/4 NONE #K43, Linz<br />
</code><br />
found on [http://dvb-t.the-media-channel.com/oesterreich/dvb-t-oberoesterreich.html].<br />
<br />
== A sample solution for MPEG-4 encoded / PAFF interlaced streams with budget card ==<br />
<br />
* Transmiter: Emitel/POT - Warsaw; Poland<br />
* Compression: video - MPEG-4; audio MPEG-2/AC3<br />
* Hardware:<br />
** AMD 1.7XP/512MB DDR400 as MythTV server & client (frontend)<br />
** AMD64 3200+ Venice/1024MB DDR400 as MythTV client (frontend)<br />
** [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)<br />
** [http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_Hybrid%2BFM_PCI AVerTV Hybrid+FM PCI (A16D)] (with PLD Th ia32)<br />
* Software:<br />
** Tested systems:<br />
*** Fedora 8/9 ia32 as MythTV server & client (frontend) <br />
*** Gentoo ~x86_64 as MythTV server & client (frontend)<br />
*** PLD Th test as MythTV server & client (frontend)<br />
** 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<br />
** CoreAVC win32 codec + [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver<br />
** [http://http://svn.mythtv.org/trac/ Mythtv 0.21] with dshowserver patch - Fedora&Gentoo<br />
** [http://svn.mythtv.org/trac/ Mythtv 0.22 svn18642 snapshot] with dshowserver patch - PLD<br />
** [http://xinehq.de/ xine-libs-1.1.15+xine-ui] with dshowserver patch<br />
** [http://mplayerhq.hu mplayer/mencoder] with dshowserver patch for watching/converting recordings<br />
<br />
Due to MPEG-4 encoding and no PAFF interlacing in x264 must use CoreAVC commercial codec v. 1.7 ~ 15 €.<br />
Served by [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver.<br />
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.<br />
<br />
It's a pity both my computers are too slow to decode HD/MPEG-4 streams.<br />
<br />
== A sample solution for a system with a full-featured card ==<br />
<br />
'''DVB-C example'''<BR><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]].<br />
<br />
<br />
<br />
== A sample solution for a system with an analog card ==<br />
My PVR is constructed with a low-power, fanless, mini-itx computer hidden within a former dual-tape recorder.<br />
* Zotac ION N230 with integrated Intel ATOM CPU and Nvidia GPU<br />
* HVR-1950, which has a MPEG2 encoder<br />
<br />
These seems like a weak setup for PVR use. However, it works because of the specific hardware combinations:-<br />
* MPEG2 from the HVR-1950 imposes little CPU demand when recording.<br />
* VDPAU libraries use the integrated GPU with little CPU demand during playback.<br />
<br />
Here is a script for NTSC-tv or cable:-<br />
<nowiki><br />
#!/bin/bash<br />
# record analog TV (MPEG2 Transport Stream) from HVR-1950 <br />
# file: tv1.sh<br />
<br />
PREFIX=`date +%F-%H-%M`<br />
echo "[tv1.sh channel=$1 duration=$2 seconds]"<br />
<br />
ivtv-tune --freqtable=us-cable --channel=$1<br />
(cat /dev/video0 > ~/Videos/${PREFIX}_$1.ts)&<br />
pid=$!<br />
echo waiting $2 seconds for channel $1 process $pid<br />
sleep $2<br />
kill $pid<br />
echo Bye..<br />
</nowiki><br />
<br />
== Also See:==<br />
* [[Testing your DVB device]]<br />
* [[TV Related Software]] - a commented software list<br />
[[Category:Hardware]]</div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=Example_setups&diff=33383Example setups2014-05-18T00:19:58Z<p>Tvister: /* A sample solution for a system with an analog card */</p>
<hr />
<div>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. <br />
<br />
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]. <br />
<br />
In order to be most useful for the reader, this page is divided into three sections: <br />
* setups for DVB cards that rely on "software decoding" (aka [[budget]] cards ... DVB cards without hardware decoders) <br />
* setups for DVB cards with hardware decoders (aka [[Full-featured Card|full featured cards]])<br />
* setups for analog TV cards <br />
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.<br />
<br />
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.<br />
<br />
<br />
== A sample solution for a system with a budget DVB card ==<br />
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. <br />
<br />
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. <br />
<br />
---<br />
<br />
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.<br />
<br />
---<br />
<br />
==== DVB-T example ====<br />
Location: Hampshire, UK<br />
<br />
Device: [http://www.hauppauge.co.uk/pages/products/data_novatstick.html Nova-T stick]<br />
<br />
Hardware: Via SP13000 epia system<br />
<br />
OS: Fedora Core 6<br />
<br />
kernel: 2.6.18-1.2869.fc6<br />
<br />
Drivers: extracted from hg<br />
<br />
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.<br />
<br />
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.<br />
<br />
==== Another DVB-T example ====<br />
<br />
Location: Sydney, Australia<br />
<br />
Devices: 2 x LifeView TV Walker Twin<br />
<br />
Distribution: Debian<br />
<br />
Kernel: 2.6.20<br />
<br />
Drivers: from http://linuxtv.org/hg/~aapot/m920x<br />
<br />
Software: kaffeine<br />
<br />
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.<br />
<br />
== Another example, using Terratec Card ==<br />
<br />
It was really easy to setup the following, good working configuration:<br />
<br />
* Debian linux<br />
* kernel.org sources for 2.6.23.12<br />
* Terratec Cinergy HT !CardBus card, [http://tven.terratec.net/modules.php?op=modload&name=News&file=article&sid=245]<br />
* kernel modules:<br />
** tda827x <br />
** saa7134_dvb <br />
** video_buf_dvb <br />
** dvb_core <br />
** tda1004x <br />
** tuner <br />
** saa7134 <br />
** video_buf <br />
** compat_ioctl32 <br />
** ir_kbd_i2c <br />
** ir_common <br />
** videodev <br />
** v4l2_common<br />
** v4l1_compat (for older software, compatibility with e.g. {{{camE}}}<br />
* no additional firmware was required<br />
* no kernel parameters were required<br />
* watching analog + composite works fine with:<br />
** gxine, xawtv<br />
* watching dvb-t works fine with<br />
** gxine<br />
<br />
To get the DVB-channels for '''Austria / Linz''', i had the following line in the scan-script:<br />
<code><br />
T 650000000 8MHz 3/4 NONE QAM16 8k 1/4 NONE #K43, Linz<br />
</code><br />
found on [http://dvb-t.the-media-channel.com/oesterreich/dvb-t-oberoesterreich.html].<br />
<br />
== A sample solution for MPEG-4 encoded / PAFF interlaced streams with budget card ==<br />
<br />
* Transmiter: Emitel/POT - Warsaw; Poland<br />
* Compression: video - MPEG-4; audio MPEG-2/AC3<br />
* Hardware:<br />
** AMD 1.7XP/512MB DDR400 as MythTV server & client (frontend)<br />
** AMD64 3200+ Venice/1024MB DDR400 as MythTV client (frontend)<br />
** [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)<br />
** [http://www.linuxtv.org/wiki/index.php/AVerMedia_AVerTV_Hybrid%2BFM_PCI AVerTV Hybrid+FM PCI (A16D)] (with PLD Th ia32)<br />
* Software:<br />
** Tested systems:<br />
*** Fedora 8/9 ia32 as MythTV server & client (frontend) <br />
*** Gentoo ~x86_64 as MythTV server & client (frontend)<br />
*** PLD Th test as MythTV server & client (frontend)<br />
** 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<br />
** CoreAVC win32 codec + [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver<br />
** [http://http://svn.mythtv.org/trac/ Mythtv 0.21] with dshowserver patch - Fedora&Gentoo<br />
** [http://svn.mythtv.org/trac/ Mythtv 0.22 svn18642 snapshot] with dshowserver patch - PLD<br />
** [http://xinehq.de/ xine-libs-1.1.15+xine-ui] with dshowserver patch<br />
** [http://mplayerhq.hu mplayer/mencoder] with dshowserver patch for watching/converting recordings<br />
<br />
Due to MPEG-4 encoding and no PAFF interlacing in x264 must use CoreAVC commercial codec v. 1.7 ~ 15 €.<br />
Served by [http://code.google.com/p/coreavc-for-linux/ coreavc-for-linux] dshowserver.<br />
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.<br />
<br />
It's a pity both my computers are too slow to decode HD/MPEG-4 streams.<br />
<br />
== A sample solution for a system with a full-featured card ==<br />
<br />
'''DVB-C example'''<BR><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]].<br />
<br />
<br />
<br />
== A sample solution for a system with an analog card ==<br />
My PVR is constructed with a low-power, fanless, mini-itx computer hidden within a former dual-tape recorder.<br />
* Zotac ION N230 with integrated Intel ATOM CPU and Nvidia GPU<br />
* HVR-1950, which has a MPEG2 encoder<br />
<br />
These seems like a weak setup for PVR use. However, it works because of the specific hardware combinations:-<br />
* MPEG2 from the HVR-1950 imposes little CPU demand when recording.<br />
* VDPAU libraries use the integrated GPU with little CPU demand during playback.<br />
<br />
== Also See:==<br />
* [[Testing your DVB device]]<br />
* [[TV Related Software]] - a commented software list<br />
[[Category:Hardware]]</div>Tvisterhttps://www.linuxtv.org/wiki/index.php?title=Freevo&diff=33373Freevo2014-05-06T04:36:15Z<p>Tvister: </p>
<hr />
<div>Freevo is an open-source home theatre PC platform based on Linux and a number of open-source audio/video tools. MPlayer and/or Xine can be used to play audio and video files in most popular formats. Freevo can be used both for a standalone PVR computer with a TV+remote, as well as on a regular desktop computer using the monitor and keyboard.<br />
<br />
Freevo is easy to download and install for new users. Most hardware is supported (graphic boards, sound cards and video capture devices).<br />
<br />
The Freevo core is under heavy development for version 2. It is mostly written in the Python programming language which is very well suited for high-level control applications like Freevo.<br />
<br />
<br />
[http://freevo.sourceforge.net/ http://freevo.sourceforge.net/]<br />
<br />
----<br />
<br />
Freevo is in a dormant state. The authors explains why. [http://www.freevo.org/ The story]<br />
<br />
[[Category:Software]]</div>Tvister