comparison DOCS/en/video.html @ 10615:65226e2ea605

DVB input documentation by Nico <nsabbi@libero.it> with some changes by me.
author diego
date Fri, 15 Aug 2003 12:47:18 +0000
parents 280e03620324
children 3e147ea7fc7e
comparison
equal deleted inserted replaced
10614:d7243684623c 10615:65226e2ea605
1013 underway.</P> 1013 underway.</P>
1014 1014
1015 1015
1016 <H4><A NAME="mpegdec">2.3.1.3 MPEG decoders</A></H4> 1016 <H4><A NAME="mpegdec">2.3.1.3 MPEG decoders</A></H4>
1017 1017
1018 <H4><A NAME="dvb">2.3.1.3.1 DVB</A></H4> 1018 <H4><A NAME="dvb">2.3.1.3.1 DVB output and input</A></H4>
1019 1019
1020 <P>MPlayer supports cards with the Siemens DVB chipset from vendors like 1020 <P>MPlayer supports cards with the Siemens DVB chipset from vendors like
1021 Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB drivers are 1021 Siemens, Technotrend, Galaxis or Hauppauge. The latest DVB drivers are
1022 available from the <A HREF="http://www.linuxtv.org">Linux TV site</A>. If you 1022 available from the <A HREF="http://www.linuxtv.org">Linux TV site</A>. If you
1023 want to do software transcoding you should have at least a 1GHz CPU.</P> 1023 want to do software transcoding you should have at least a 1GHz CPU.</P>
1099 <P>To keep the aspect ratio of DivX files and get the optimal scaling parameters 1099 <P>To keep the aspect ratio of DivX files and get the optimal scaling parameters
1100 (hardware horizontal scaling and software vertical scaling while keeping the 1100 (hardware horizontal scaling and software vertical scaling while keeping the
1101 right aspect ratio), use the new dvbscale filter:</P> 1101 right aspect ratio), use the new dvbscale filter:</P>
1102 1102
1103 <PRE> 1103 <PRE>
1104 for 4:3 TV: -vf dvbscale,scale=-1:0,expand=-1:576:-1:-1:1 1104 for a 4:3 TV: -vf dvbscale,scale=-1:0,expand=-1:576:-1:-1:1
1105 for 16:9 TV: -vf dvbscale=1024,scale=-1:0,expand=-1:576:-1:-1:1 1105 for a 16:9 TV: -vf dvbscale=1024,scale=-1:0,expand=-1:576:-1:-1:1
1106 </PRE> 1106 </PRE>
1107
1108 <H4>Using your DVB card for watching Digital TV (DVB input module)</H4>
1109
1110 <P>First you need to pass the <CODE>dvb_shutdown_timeout=0</CODE> parameter
1111 to the kernel module <CODE>dvb-core</CODE>, or MPlayer will die after 10
1112 seconds.</P>
1113
1114 <P>You should also have the programs <CODE>scan</CODE> and
1115 <CODE>szap/tzap/czap</CODE> installed; they are all included in the drivers
1116 package.</P>
1117
1118 <P>Verify that your drivers are working properly with a program such as
1119 <A HREF="http://www.sf.net/projects/dvbtools/"><CODE>dvbstream</CODE></A>
1120 (that is the base of the DVB input module).</P>
1121
1122 <P>Now you should compile a <CODE>~/.mplayer/channels.conf</CODE> file,
1123 with the syntax accepted by <CODE>szap/tzap/czap</CODE>, or have
1124 <CODE>scan</CODE> compile it for you.</P>
1125
1126 <P>Make sure that you have have <B>only</B> Free to Air channels in your
1127 <CODE>channels.conf</CODE> file, or MPlayer will hang on the others.</P>
1128
1129 <P>To show the first of the channels present in your list, run</P>
1130
1131 <PRE>
1132 mplayer dvb://
1133 </PRE>
1134
1135 <P>If you want to watch a specific channel, such as <CODE>R1</CODE>, run</P>
1136
1137 <PRE>
1138 mplayer dvb://R1
1139 </PRE>
1140
1141 <P>To change channels press the <CODE>'h'</CODE> (next) and <CODE>'k'</CODE>
1142 (previous) keys, or use the <CODE>OSD</CODE> menu (requires a working
1143 <A HREF="documentation.html#subtitles_osd">OSD subsystem</a>).</P>
1144
1145 <P>If your <CODE>~/.mplayer/menu.conf</CODE> contains a <B>&lt;dvbsel&gt;</b>
1146 entry, such as the one in the example file <CODE>etc/dvb-menu.conf</CODE>
1147 (that you can use to overwrite <CODE>~/.mplayer/menu.conf</CODE>), the
1148 main menu will show a sub-menu entry that will permit you to choose
1149 one of the channels present in your <CODE>channels.conf</CODE>.</P>
1150
1151 <P>If you want to save a program to disk you can use</P>
1152
1153 <PRE>
1154 mplayer -dumpfile r1.ts -dumpstream dvb://R1
1155 </PRE>
1156
1157 <P>If you want to record it in a different format (re-encoding it) instead you
1158 can run a command such as</P>
1159
1160 <PRE>
1161 mencoder -o r1.avi -ovc xvid -xvidenctopts bitrate=800 -oac mp3lame -lameopts cbr:br=128 -vf ci dvb://R1
1162 </PRE>
1163
1164 <P>Read the man page for a list of options that you can pass to the DVB
1165 input module.</P>
1166
1107 1167
1108 <H4>FUTURE</H4> 1168 <H4>FUTURE</H4>
1109 1169
1110 <P>If you have questions or want to hear feature announcements and take part in 1170 <P>If you have questions or want to hear feature announcements and take part in
1111 discussions on this subject, join our 1171 discussions on this subject, join our