source: smplayer/trunk/Watching_TV.txt@ 107

Last change on this file since 107 was 106, checked in by Silvan Scherrer, 15 years ago

smplayer: 0.6.9

File size: 4.5 KB
Line 
1Since 0.6.8 it's possible to watch the TV in smplayer (dvb:// and tv://).
2
3This document provides some info about how to do it.
4
5INTRO:
6
7smplayer doesn't include any option to scan for channels, so mplayer must be
8configured to tune to TV channels.
9
10That means that the following:
11
12mplayer dvb://
13or
14mplayer tv://
15
16should work (should display a TV channel).
17
18And the following should tune to the specified channel:
19
20mplayer dvb://Channel_name
21or
22mplayer tv://Channel_name
23
24
25DVB:
26
27The support for dvb in smplayer is intented for dvb-t (terrestrial). It can
28work with dvb-c and dvb-s (cable and satellite) but it hasn't been tested.
29
30smplayer will look for the file ~/.mplayer/channels.conf.ter (or
31~/.mplayer/channels.conf if that doesn't exist), and the menus Open->TV and
32Open->Radio will be populated with the channels there (the menu Open->Radio
33will show the channels without video pid. Notice that for dvb-s and dvb-c the
34check for audio and video pids will probably fail and all channels will end up
35in the TV menu).
36
37If you don't have a ~/.mplayer/channels.conf you can create with scan (in
38ubuntu is in the dvb-apps package):
39
40scan initial_file > ~/.mplayer/channels.conf
41
42The initial_file contains info about the frequencies that have to be scanned,
43you'll find a lot in /usr/share/dvb/dvb-t/ (use the one for your town).
44
45You can also use w_scan, which doesn't require any initial file.
46
47
48TV:
49
50The support for analog TV (tv://) in smplayer is very basic (it can recognize
51a tv:// stream as being a TV channel, but that's all) and configuration
52has to be done manually.
53
54First you need some lines in your ~/.mplayer/config with the TV configuration
55(driver, norms, frequencies...). Example:
56
57tv=driver=v4l:input=0:width=768:height=576:device=/dev/video0:audiorate=48000:n
58orm=PAL:chanlist=europe-west:channels=46-TV_1,43-TV_2,50-TV_3,53-TV_4
59
60For more info take a look at the mplayer manpage.
61
62After that you have to introduce all channels in smplayer (Open->TV->Edit).
63
64
65THE CHANNEL EDITOR:
66
67The channel editor allows you to add, modify and remove TV channels. You'll
68see a table with all channels. Each channel contains 3 fields: icon, name
69and stream. The name will appear in the menu, the stream is what mplayer will
70open to tune the channel. Examples:
71
72ICON NAME STREAM
73 CNN dvb://CNN
74 BBC tv://TV_1
75 Webcam tv://
76
77The list of TV channels is saved to ~/.config/smplayer/tv.m3u8, while the
78list of radio is saved to ~/.config/smplayer/radio.m3u8.
79
80Note 1: by default smplayer will scan the file ~/.mplayer/channels.conf on every
81startup and will add the new channels it finds there. That means that if you
82delete dvb channels from the editor they will appear again in the next session
83(smplayer will think they are new). To avoid that, there's an option in
84Preferences->TV to disable the scanning of the channels.conf file.
85
86Note 2: it's possible to set an icon for each channel. The icon will be
87displayed in the menus. Currently it's possible to set an icon, change it
88but there's now way to remove it... (unless you edit manually the *.m3u8 files)
89
90Note 3: the tv and radio lists can be "misused" as favorite lists, you can
91enter any other kind of media (internet streams, local files...) not only tv
92channels.
93
94
95OPTIONS FOR TV
96
97Some options have been added for TV:
98
99 * there's a new section for TV in Preferences, which allows for instance to
100 set the default deinterlacer to be use with TV channels.
101 * it's possible to set a cache for TV in Preferences -> Performance -> Cache
102
103
104REMEMBERING THE TV SETTINGS
105
106One nice thing: the settings of TV channels are remembered. That means that
107filters, options (like zoom) and so on will be remembered when you tune that
108channel again.
109
110
111(ADVANCED) ADDITIONAL AUDIO TRACKS IN DVB CHANNELS
112
113You'll notice that when you tune a dvb channel only the first audio track is
114available. To fix the problem you need to add manually the additional audio pids
115to channels.conf.
116
117For instance, take a look at this line taken from ~/.mplayer/channels.conf:
118
119ANTENA.NEOX:858000000:INVERSION_AUTO:BANDWIDTH_8_MHZ:FEC_2_3:FEC_2_3:QAM_64:TRANSMISSION_MODE_8K:GUARD_INTERVAL_1_4:HIERARCHY_NONE:501:503:141
120
121Let's see the 3 last fields:
122501:503:141
123
124501 is the video pid, 503 is the audio pid (and 141 I think is the teletext pid)
125Several audio pids can be added separated by "+". For instance:
126
127501:503+504:141
128
129This way the 2nd audio track (504) will be available when you watch that channel
130in smplayer. Notice that to be able to actually switch audio tracks in dvb
131channels you need a recent version of mplayer (r29381).
Note: See TracBrowser for help on using the repository browser.