Warning, /multimedia/kmplayer/doc/index.docbook is written in an unsupported language. File is not indexed.

0001 <?xml version="1.0" ?>
0002 <!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.5-Based Variant V1.1//EN" "dtd/kdedbx45.dtd" [
0003   <!ENTITY kmplayer "<application>KMPlayer</application>">
0004   <!ENTITY kappname "&kmplayer;"><!-- replace kmplayer here -->
0005   <!ENTITY package "kdeextragear-2">
0006   <!ENTITY % addindex "IGNORE">
0007   <!ENTITY % English "INCLUDE"><!-- change language only here -->
0008  
0009 ]>
0010 
0011 <book id="kmplayer" lang="&language;">
0012 
0013 
0014 <bookinfo>
0015 <title>The &kmplayer; Handbook</title>
0016 
0017 <authorgroup>
0018 <author>
0019 <firstname>Koos</firstname>
0020 <surname>Vriezen</surname>
0021 <email>koos dot vriezen at gmail dot com</email>
0022 </author>
0023 </authorgroup>
0024 
0025 <!-- TRANS:ROLES_OF_TRANSLATORS -->
0026 
0027 <copyright>
0028 <year>2002</year>
0029 <year>2006</year>
0030 <year>2007</year>
0031 <year>2008</year>
0032 <holder>Koos Vriezen</holder>
0033 </copyright>
0034 <!-- Translators: put here the copyright notice of the translation -->
0035 <!-- Put here the FDL notice.  Read the explanation in fdl-notice.docbook 
0036      and in the FDL itself on how to use it. -->
0037 <legalnotice>&FDLNotice;</legalnotice>
0038 
0039 
0040 <date>2008-01-13</date>
0041 <releaseinfo>0.07.00</releaseinfo>
0042 
0043 <!-- Abstract about this handbook -->
0044 
0045 <abstract>
0046 <para>
0047     &kmplayer; is an application that is a &kde; frontend to <application>MPlayer</application> and &phonon;.
0048 </para>
0049 </abstract>
0050 
0051 
0052 <keywordset>
0053 <keyword>KDE</keyword>
0054 <keyword>kdemultimedia</keyword>
0055 <keyword>MPlayer</keyword>
0056 <keyword>konqueror</keyword>
0057 <keyword>video</keyword>
0058 </keywordset>
0059 
0060 </bookinfo>
0061 
0062 <chapter id="introduction">
0063 <title>Introduction</title>
0064 <para>
0065 &kmplayer; is a simple frontend to <application>MPlayer</application>,
0066 &phonon; and <application>FFMpeg</application>.
0067 You can use it for watching all the movie
0068 file formats that <application>MPlayer</application>,
0069 or &phonon;
0070 supports as well as watching from <acronym>DVD</acronym>,
0071 <acronym>VCD</acronym> or <acronym>TV</acronym> and <acronym>camera</acronym>.
0072 </para>
0073 <para>
0074 The documentation for &kappname; was not finished when &kde; was
0075 installed on this computer.</para> <para>If you need more help, please
0076 check <ulink url="http://www.kde.org">The &kde; Website</ulink> for
0077 updates, or by submitting your question to
0078 <ulink url="mailto:kde-user@kde.org">The &kde; User Mailing list</ulink>.
0079 </para>
0080 <para><emphasis>The &kde; Team</emphasis></para>
0081 
0082 </chapter>
0083 <chapter id="gui">
0084 <title>The user interface</title>
0085 <para>
0086 The application window is made of so called dockable windows. There is always
0087 the central view window. Optional there is the playlist window. And finally
0088 there is an info window, that just shows itself when some information is there
0089 to been shown.
0090 </para>
0091 <section id="playlistwindow">
0092 <title>Playlist window</title>
0093 <para>
0094 The playlist window has as of this writing five categories, current item(s),
0095 <guilabel>Optical Disks</guilabel>, <guilabel>Television</guilabel>,
0096 <guilabel>Persistent Playlists</guilabel> and <guilabel>Most Recent</guilabel>.
0097 When clicked on a category's text, it will show the contents below this line.
0098 Of course there has to be contents, eg. see
0099 <link linkend="tvsource"><acronym>TV</acronym> settings</link> for adding
0100 content for the <guilabel>Television</guilabel> category. The
0101 <guilabel>Most Recent</guilabel> category will fill itself when playing
0102 locale media files or network &URL;. This category can
0103 hold 60 items of which the last 50 are under the <guilabel>More ..</guilabel>
0104 branch.
0105 </para>
0106 <section>
0107 <title>Persistent Playlists category</title>
0108 <para>
0109 It's possible to store your favorite links in the <guilabel>Bookmark</guilabel>
0110 menu, but those are single items. If you want to create a list of items that 
0111 play after each other, than you should use the
0112 <guilabel>Persistent Playlists</guilabel> category.
0113 </para>
0114 <para>
0115 The easiest way to add an item in this list is to drag it from
0116 <guilabel>Most Recent</guilabel> and drop it on
0117 <guilabel>Persistent Playlists</guilabel>. As you will see, when dropped, a
0118 pop-up menu appears where you can choose to add to this list or create a
0119 new group. Top level items behave like a bookmark item, but items in groups
0120 will play the whole group wherein they reside. Items in this category can
0121 easily be moved, copied, added to a new group or deleted just by dragging this
0122 item to another place in this category. Additionally there are
0123 <guimenu>Delete item</guimenu>, <guimenu>Move up</guimenu> and
0124 <guimenu>Move down</guimenu> items in the context menu (when clicking with
0125 the right mouse button on an item).
0126 </para>
0127 <para>
0128 Of course you can add groups to groups to get a deeper hierarchy. When clicked
0129 on an item, its group and all its child groups will be copied to the current
0130 category and playings starts at the clicked item position.
0131 </para>
0132 <section>
0133 <title>Storage format</title>
0134 <para>
0135 The data is stored in
0136 <filename>~/.kde/share/apps/kmplayer/playlist.xml</filename>, and its format
0137 is like this example. See <link linkend="XML-editing">here</link> for 
0138 manipulating this data directly.
0139 <programlisting>
0140 &lt;playlist&gt;
0141     &lt;group title="feeds"&gt;
0142         &lt;item url="http://www.lugradio.org/episodes.rss"/&gt;
0143         &lt;item url="http://science.nasa.gov/podcast.xml"/&gt;
0144         &lt;item url="http://www.theworld.org/rss/tech.xml"/&gt;
0145     &lt;/group&gt;
0146     &lt;group title="iradio"&gt;
0147         &lt;group title="sunny"&gt;
0148             &lt;item mplayeropts="-cache 256" url="http://www.swissgroove.ch/listen.m3u"/&gt;
0149             &lt;item url="http://www.boombasticradio.com/shoutcast/64.pls"/&gt;
0150         &lt;/group&gt;
0151         &lt;group title="rainy"&gt;
0152             &lt;item url="http://www.radioparadise.com/musiclinks/rp_64.m3u"/&gt;
0153             &lt;item url="http://www.woxy.com/stream/wma64.asx"/&gt;
0154             &lt;item url="http://radionigel.com/winmedia.asx"/&gt;
0155             &lt;item url="rtsp://livestreams.omroep.nl/live/vpro/vpro3voor12radioalt.rm"/&gt;
0156         &lt;/group&gt;
0157     &lt;/group&gt;
0158 &lt;/playlist&gt;
0159 </programlisting>
0160 Also note that for <application>MPlayer</application> custom options can be
0161 set using the <computeroutput>mplayeropts</computeroutput> argument. &kmplayer;
0162 searches for this option upwards in the tree, so you can set it for a whole
0163 group and override it for a child group or item.
0164 </para>
0165 </section>
0166 </section>
0167 </section>
0168 <section id="XML-editing">
0169 <title>Direct &XML; editing</title>
0170 <para>
0171 The current, <guilabel>Television</guilabel> and
0172 <guilabel>Persistent Playlists</guilabel> categories can also be manipulated
0173 by editing their &XML; storage. Of course one can do that
0174 when &kmplayer; is not running and editing the various files in
0175 <filename>~/.kde/share/apps/kmplayer/</filename>, but also in the application
0176 itself. Simply click on a category label, then choose <guimenu>View</guimenu>
0177 and next <guimenu>Edit mode</guimenu>. You can also click on a child branch
0178 and will then see only the &XML; contents of the branch.
0179 </para>
0180 <para>
0181 After you have edited some &XML;, click on the
0182 <guilabel>Sync with playlist</guilabel> and either deselect the
0183 <guimenu>Edit mode</guimenu> item or click on another catergory.
0184 <caution><para>
0185     All changes are lost when leaving edit mode or selecting another branch without syncing with playlist.
0186 </para></caution>
0187 </para>
0188 <para>
0189 Because of the lazyness of &kmplayer;'s author(s), some features can only be
0190 enabled by editing the &XML; .
0191 </para>
0192 </section>
0193 </chapter>
0194 <chapter id="settings">
0195 <title>Settings</title>
0196 <section>
0197     <title>Intro/exit animation</title>
0198     <para>
0199         Disabling the starting/ending animation can be configured by editing <filename>~/.kde/share/config/kmplayerrc</filename> and modify
0200         <programlisting>
0201 [General Options]
0202   No Intro=0
0203     </programlisting>
0204     the above option to '1'. Just add this option if it's not there yet.
0205 </para>
0206 <para>
0207     It's also possible to set an alternative animation. &kmplayer; will look at resp. <filename>~/.kde/share/apps/kmplayer/intro.xml</filename> and <filename>~/.kde/share/apps/kmplayer/exit.xml</filename>. The format has to be a supported &XML; file.
0208 </para>
0209 <para>
0210     The intro animation doesn't have to be a short one, because it will automatically end when another source is opened. Of course for the exit animation this would be a bit annoying, however the user can always end the application twice.
0211 </para>
0212 <para>
0213     A simple example of an intro, showing your favorite photo can be
0214     <programlisting>
0215 &lt;smil&gt;
0216   &lt;body&gt;
0217     &lt;img dur="indefinite" src="file:///home/koos/mum.gif" fit="meet"/&gt;
0218   &lt;/body&gt;
0219 &lt;/smil&gt;
0220     </programlisting>
0221     In &kmplayer;'s source package, in the <filename>tests/</filename> are some examples of <acronym>SMIL</acronym> that &kmplayer; supports.
0222 </para>
0223 </section>
0224 </chapter>
0225 <chapter id="backends">
0226 <title>The backend players</title>
0227 <para>
0228 &kmplayer; uses external programs to do the actual playing.
0229 </para>
0230 <section id="mplayer">
0231 <title>MPlayer</title>
0232 <para>
0233 There is a configuration tab for MPlayer in &kmplayer;'s config dialog. Here
0234 you can set MPlayer's path and it cache size for network stream, among other
0235 things.
0236 </para>
0237 <para>
0238 This player configuration name is <parameter>mplayer</parameter>.
0239 </para>
0240 <section id="mplayer-debug">
0241 <title>Trouble shooting</title>
0242 <para>
0243 The best way to debug this backend is to start &kmplayer; from a console
0244 application like konsole. Then start a movie with &kmplayer; and see the exact
0245 commandline that is used to start mplayer in the console application.
0246 Now copy/paste that to another console, remove the '-wid 12344' options, and
0247 make it play. Probably it's just choosing the right -ao/-vo params. Also make
0248 sure mplayer doesn't start default with a &GUI;.
0249 </para>
0250 <para>
0251 Another debugging tool is the 'console' button in &kmplayer;'s toolbar. Here you
0252 can see the output from mplayer.
0253 </para>
0254 </section>
0255 </section>
0256 <section id="phonon">
0257 <title>Phonon</title>
0258 <para>
0259 &phonon; is the &kde; desktop wide multimedia
0260 framework and can be configured in &systemsettings;.
0261 </para>
0262 <para>
0263 This player configuration name is <parameter>phonon</parameter>.
0264 </para>
0265 <section id="phonon-debug">
0266 <title>Trouble shooting</title>
0267 <para>
0268 Basically the same way as trouble shooting
0269 <link linkend="mplayer-debug">MPlayer</link>, with the application name of
0270 <filename>kphononplayer</filename>.
0271 </para>
0272 </section>
0273 </section>
0274 <section id="npp">
0275 <title>Browser plugin</title>
0276 <para>
0277 There is no configuration tab for this player in &kmplayer;'s config dialog. 
0278 Everything must be configured by manually editing the
0279 <filename>~/.kde/share/config/kmplayerrc</filename> like with configuring the
0280 <link linkend="backend-mimetype">backend per mimetype</link>. This is an
0281 example how to let flash be played with the swfdec-mozilla plugin:
0282 <programlisting>
0283 [application/x-shockwave-flash]
0284 player=npp
0285 plugin=/usr/lib/mozilla/plugins/libswfdecmozilla.so
0286 </programlisting>
0287 </para>
0288 <para>
0289 You can play flash inside &kmplayer;, actually you can even paste the special
0290 <parameter>embed</parameter> field for
0291 <ulink url="http://www.youtube.com">YouTube</ulink> in the 
0292 <link linkend="XML-editing">playlist &XML;</link>.
0293 </para>
0294 <para>
0295 In order to let &kmplayer; play flash in HTML pages, you should make the
0296 &kmplayer; plugin the service provider for the
0297 <parameter>application/x-shockwave-flash</parameter> mimetype in &kde;'s
0298 <guilabel>File Associations</guilabel> configuration dialog.
0299 </para>
0300 <para>
0301 As in the above example, this player configuration name is
0302 <parameter>npp</parameter>.
0303 </para>
0304 <section id="npp-debug">
0305 <title>Trouble shooting</title>
0306 <para>
0307 Start &konqueror; or &kmplayer; in a console application and look for errors
0308 about loading the browser plugin library. The process started is called
0309 <filename>knpplayer</filename>. If that doesn't give any errors, check
0310 the backend output capturing inside &kmplayer; (<guimenu>View</guimenu>,
0311 <guimenuitem>Console</guimenuitem>, or <guimenuitem>Console</guimenuitem>
0312 from the popup menu).
0313 </para>
0314 </section>
0315 </section>
0316 <section id="backend-mimetype">
0317 <title>Force backend player for a mimetype</title>
0318 <para>
0319 To configure to always use a given backend for a particular mimetype
0320 (if detected of course) can be done by manually editing the
0321 <filename>~/.kde/share/config/kmplayerrc</filename>. For example, let phonon
0322 play all ogg files:
0323 <programlisting>
0324 [audio/ogg]
0325 player=phonon
0326 </programlisting>
0327 </para>
0328 </section>
0329 </chapter>
0330 <chapter id="sources">
0331 <title>The playable sources</title>
0332 <para>
0333     &kmplayer; can play from various sources. These sources are listed in the Source menu.
0334 </para>
0335 <section id="tvsource">
0336     <title>TV</title>
0337     <para>
0338         &kmplayer; can play from TV cards using <application>MPlayer</application> or <acronym>XVideo</acronym> (using <application>kxvplayer</application>). Before you can watch TV, you have to configure which device to use and the TV channels. You can use the scanner from the configure dialog for this or edit the config file manually.
0339 </para>
0340 <para>
0341 The config file for TV settings is a &XML; file, located
0342 <filename>~/.kde/share/apps/kmplayer/tv.xml</filename>. See
0343 <link linkend="XML-editing">here</link> for manipulating this data directly.
0344 The &XML; format is like this example:
0345 <programlisting>
0346 &lt;tvdevices&gt;
0347     &lt;device path="/dev/video0" width="320" height="240" name="BT878 video (Hauppauge (bt878))" audio=""
0348               minwidth="48" minheight="32" maxwidth="924" maxheight="576" playback="0" xvport="240"&gt;
0349         &lt;input name="Television" id="0" tuner="1" norm="PAL" xvenc="0"&gt;
0350             &lt;channel name="Ned1" frequency="216"/&gt;
0351             &lt;channel name="VCR" frequency="594.90"/&gt;
0352         &lt;/input&gt;
0353         &lt;input name="Composite1" id="1" xvenc="7"/&gt;
0354         &lt;input name="S-Video" id="2" xvenc="14"/&gt;
0355         &lt;input name="Composite3" id="3"/&gt;
0356     &lt;/device&gt;
0357     &lt;device path="/dev/video1" width="640" height="480" name="Philips 740 webcam" audio=""
0358               minwidth="160" minheight="120" maxwidth="640" maxheight="480" playback="1"&gt;
0359         &lt;input name="Webcam" id="0"/&gt;
0360     &lt;/device&gt;
0361 &lt;/tvdevices&gt;
0362 </programlisting>
0363 Note that <quote>input</quote> elements having channels, should have the <quote>tuner</quote> attribute set to <quote>1</quote>.
0364 </para>
0365 <para>
0366 <acronym>XVideo</acronym> only uses the <quote>xvport</quote> and <quote>xvenc</quote> attributes and they can only be set by manually editing this file. The values of these two attributes can be retrieved by running <quote>kxvplayer</quote> in a terminal application like <quote>konsole</quote>. For every port, <quote>kxvplayer</quote> will output lines like below and the numbers can be set for the attributes mentioned.
0367 <programlisting>
0368     xvport 240
0369     ....
0370     encoding: 0 PAL-television
0371     encoding: 1 NTSC-television
0372     encoding: 2 SECAM-television
0373     ....   
0374 </programlisting>
0375 Also width and height attributes are ignored by the <acronym>XVideo</acronym> player. This player gets the sizes from the X server. One of the nice things of <acronym>XVideo</acronym> is that scaling is done in hardware, by the video card, so fullscreen support without CPU usage and without resolution change of your monitor. Also no annoying flicker when another window overlaps this video window.
0376 </para>
0377 <para>
0378 See the VDR section for more information about using <acronym>XVideo</acronym>.
0379 </para>
0380 </section>
0381 <section id="vdrsource">
0382     <title>VDR</title>
0383 <para>
0384 To configure your VDR settings in &kmplayer;, see the Configure panel->Source->VDR->XVideo port panel. There should be ports detected, from which you should select one. You have to figure out what encoding you should use (eg. for western europe, that is PAL) and likely the correct one has a name with <quote>dvb</quote> in it.
0385 </para>
0386 <para>
0387  For instance, I have a TV card, a DVB-S card and a webcam plugged into my system. With these, my settings are that there are three Ports. The first one has a long list of NTSC(-JP)/PAL(-M)/SECAM entries all saying something about television/composite/svideo (my TV card). The second one has NTSC-dvb/PAL-dvb/SECAM-dvb (my DVB-S card). And finally the third has only ntsc/pal (probably my webcam). I should therefore configure (just select it) the second port and second entry (PAL-dvb). 
0388 </para>
0389 <para>
0390     Because VDR support from &kmplayer; can only use <acronym>XVideo</acronym>, of course <acronym>XVideo</acronym> should work (and I believe for video devices, this way of viewing only works on linux). Also this only works on your first display (:0.0). So make sure <quote>videoforlinux</quote> extension works with the X server. For the XFree86 server, therefore in its configuration (<filename>/etc/X11/XF86Config</filename>) it should have
0391 <programlisting>
0392 Section "Module" 
0393      .... 
0394      Load    "v4l" 
0395 EndSection
0396 </programlisting>
0397 </para>
0398 <para>
0399  Unfortunately, when ever you update your video driver, you have to reconfigure this setting. 
0400 </para>
0401 </section>
0402 <section id="kmplayer_url">
0403     <title>Commandline</title>
0404 <para>
0405     Internally for the sources, &kmplayer; uses distinct names. At the time of
0406     this writing these are "dvdnavsource", "dvdsource", "exitsource",
0407     "introsource", "pipesource", "tvscanner", "tvsource",
0408     "urlsource", "vcdsource" and "vdrsource". When activated, they mostly
0409     starts playing the list of playable items.
0410 </para>
0411 <para>
0412     You can activate a particular source with a <filename>kmplayer://</filename> type <acronym>URL</acronym>. Just set the host part as the source name and optional path part as extra arguments, so for a channel for the "vdrsource" this could look like <filename>kmplayer://vdrsource/22 MTV 2</filename>. Eg. this script starts &kmplayer; using "dvdnavsource" and using &DBus; to play fullscreen.
0413     <programlisting>
0414 /bin/bash
0415 kmplayer kmplayer://dvdnavsource/ &amp;
0416 PID=$!
0417 sleep 2
0418 qdbus org.kde.kmplayer-$PID /kmplayer/MainWindow_1 showFullScreen
0419     </programlisting>
0420     For some sources this will not do much because they are not meant to be
0421     for normal playing. For "pipesource" this is disabled because that
0422     would be a bad security hole of course.
0423 </para>
0424 </section>
0425 </chapter>
0426 <chapter id="questionsanswersandtips">
0427     <title>Questions, Answers, and Tips</title>
0428 
0429     <qandaset id="faq">
0430       <title>Frequently asked questions</title>
0431       <qandaentry>
0432         <question>
0433             <para>Any hints to make my CDROM less noisy when playing from it (not VCD://)?</para>
0434         </question>
0435         <answer>
0436             <para>Sure, try <command>hdparm -E 8 /dev/cdrom</command> as root after mounting the device. But be sure to double check <filename>/dev/cdrom</filename> pointing to your CDROM drive.
0437             </para>
0438         </answer>
0439       </qandaentry>
0440     </qandaset>
0441 
0442   </chapter>
0443 <chapter id="credits-and-license">
0444 <title>Credits and License</title>
0445 
0446 <para>&kmplayer; copyright 2002,2003 Koos Vriezen</para>
0447 
0448 <!-- TRANS:CREDIT_FOR_TRANSLATORS -->
0449 
0450 &underFDL;
0451 &underGPL;
0452 
0453 </chapter>
0454 
0455 &documentation.index;
0456 </book>
0457 <!--
0458 Local Variables:
0459 mode: sgml
0460 sgml-minimize-attributes:nil
0461 sgml-general-insert-case:lower
0462 sgml-indent-step:0
0463 sgml-indent-data:nil
0464 End:
0465 -->
0466 
0467 
0468 
0469 
0470 
0471 
0472 
0473 
0474 
0475 
0476 
0477 
0478