Mplayer-plugin: Difference between revisions
(initial) |
No edit summary |
||
(11 intermediate revisions by 7 users not shown) | |||
Line 3: | Line 3: | ||
The '''MPlayer plugin''' uses [[MPlayer]] to play video files other than the recordings. E.g. the famous DivX format can be played using this plugin. |
The '''MPlayer plugin''' uses [[MPlayer]] to play video files other than the recordings. E.g. the famous DivX format can be played using this plugin. |
||
{{Box |
{{Box Info| |
||
This |
This plugin comes together with the [[mp3-plugin]] in one package. By default, both the MP3 and MPlayer plugin lib will be built from sources. |
||
}} |
}} |
||
==Hardware requirements== |
==Hardware requirements== |
||
* faster hardware (e.g. >1GHz for DivX other formats might be less [[CPU]] intensive) |
* faster hardware (e.g. >1GHz for DivX other formats might be less [[CPU]] intensive). |
||
==Software requirements== |
==Software requirements== |
||
Line 19: | Line 19: | ||
==Installation== |
==Installation== |
||
To install lame |
To install lame |
||
⚫ | |||
<pre> |
|||
⚫ | |||
⚫ | |||
cd lame-<VERSION> |
|||
⚫ | |||
⚫ | |||
make |
|||
⚫ | |||
make |
make install |
||
make install |
|||
</pre> |
|||
FFMPEG |
FFMPEG |
||
⚫ | |||
<pre> |
|||
tar xvzf ffmpeg-<VERSION>.tar.gz |
|||
⚫ | |||
ln -s ffmpeg-<VERSION> ffmpeg |
|||
cd ffmpeg |
|||
⚫ | |||
cd ffmpeg |
|||
⚫ | |||
⚫ | |||
make |
|||
⚫ | |||
make |
make install |
||
⚫ | |||
make install |
|||
⚫ | |||
</pre> |
|||
For [[MPlayer]], see it's documentation and homepage. |
For [[MPlayer]], see it's documentation and homepage. |
||
Line 50: | Line 46: | ||
MPlayer can work in one of two modes (changeable in the plugin setup) |
MPlayer can work in one of two modes (changeable in the plugin setup) |
||
* Slave (recommended) |
* Slave (recommended) |
||
** No further configuration is needed for this. |
|||
* Traditional |
* Traditional |
||
If "Traditional" is choosen '''/usr/local/bin/mplayer.sh.conf''' has to be altered |
If "Traditional" is choosen '''/usr/local/bin/mplayer.sh.conf''' has to be altered |
||
⚫ | |||
<pre> |
|||
⚫ | |||
⚫ | |||
⚫ | |||
</pre> |
|||
and MPlayer must be compiled with [[LIRC]] support! |
and MPlayer must be compiled with [[LIRC]] support! |
||
===Parameter=== |
===Parameter=== |
||
Line 71: | Line 68: | ||
==Problems== |
==Problems== |
||
===MPlayer fails to decode movies=== |
|||
⚫ | |||
...with errors indicating ffdivx can't handle some fourcc coding or mpegpes can't scale properly: Make sure you use the mplayer.sh script from (5) and not the included example. |
|||
⚫ | |||
===MPlayer plays no videos when the first DVB card has no MPEG decoder=== |
|||
⚫ | |||
* With new mplayer versions it is possible to give the correct video card in '''mplayer.sh.conf''' by |
|||
VO="mpegpes:card=2" |
|||
* Because the drivers don't always load in the same order, you can make things automagically (in mplayer.sh.conf): |
|||
VO="mpegpes:card=$(($(find /dev/dvb | grep video0 | cut -c17)+1))" |
|||
AO="mpegpes:card=$(($(find /dev/dvb | grep audio0 | cut -c17)+1))" |
|||
===Video is displayed in black and white=== |
|||
⚫ | |||
* Does not work for DVDs and (S)VCDs. |
* Does not work for DVDs and (S)VCDs. |
||
Line 78: | Line 86: | ||
{| |
{| |
||
| [1] |
| [1] |
||
| |
| http://www.muempf.de/index.html |
||
| Plugin homepage |
| Plugin homepage |
||
|- |
|- |
||
| [2] |
| [2] |
||
| http://www.mplayerhq.hu |
| http://www.mplayerhq.hu |
||
| MPlayer homepage |
| MPlayer homepage |
||
|- |
|- |
||
Line 102: | Line 110: | ||
|} |
|} |
||
[[Category:Plugins]] |
[[Category:Outdated Plugins]] |
||
{{i18n|mplayer-plugin}} |
|||
<!-- Link to german wiki page --> |
|||
[[de:Mplayer-plugin]] |
Latest revision as of 11:53, 25 November 2013
Description
The MPlayer plugin uses MPlayer to play video files other than the recordings. E.g. the famous DivX format can be played using this plugin.
This plugin comes together with the mp3-plugin in one package. By default, both the MP3 and MPlayer plugin lib will be built from sources.
Hardware requirements
- faster hardware (e.g. >1GHz for DivX other formats might be less CPU intensive).
Software requirements
- MPlayer
- several codecs
- Lame
- FFMPEG
- mplayer.sh
Installation
To install lame
cd $SOURCEDIR tar xvzf lame-<VERSION>.tar.gz cd lame-<VERSION> ./configure --prefix=/usr/local make make install
FFMPEG
cd $SOURCEDIR tar xvzf ffmpeg-<VERSION>.tar.gz ln -s ffmpeg-<VERSION> ffmpeg cd ffmpeg ./configure --prefix=/usr/local \ --enable-shared make make install ldconfig
For MPlayer, see it's documentation and homepage.
See plugin installation.
Configuration
See also mp3-plugin.
MPlayer can work in one of two modes (changeable in the plugin setup)
- Slave (recommended)
- No further configuration is needed for this.
- Traditional
If "Traditional" is choosen /usr/local/bin/mplayer.sh.conf has to be altered
# Lirc RC File LIRCRC="/etc/lircrc.conf"
and MPlayer must be compiled with LIRC support!
Parameter
Parameter (short) | Parameter (long) | Description |
---|---|---|
-m CMD | --mount=CMD | use CMD to mount/unmount/eject mp3 sources (default: mount.sh) |
-M CMD | --mplayer=CMD | use CMD when calling MPlayer (default: mplayer.sh) |
Problems
MPlayer fails to decode movies
...with errors indicating ffdivx can't handle some fourcc coding or mpegpes can't scale properly: Make sure you use the mplayer.sh script from (5) and not the included example.
MPlayer plays no videos when the first DVB card has no MPEG decoder
- Try to alter dev/adapter0 in libvo/vo_mpegpes.c of the MPlayer sources.
- With new mplayer versions it is possible to give the correct video card in mplayer.sh.conf by
VO="mpegpes:card=2"
- Because the drivers don't always load in the same order, you can make things automagically (in mplayer.sh.conf):
VO="mpegpes:card=$(($(find /dev/dvb | grep video0 | cut -c17)+1))" AO="mpegpes:card=$(($(find /dev/dvb | grep audio0 | cut -c17)+1))"
Video is displayed in black and white
- It might be your TV doesn't support NTSC. Try to set the NTSC option in /usr/local/bin/mplayer.sh.conf to false.
- Does not work for DVDs and (S)VCDs.
Links
[1] | http://www.muempf.de/index.html | Plugin homepage |
[2] | http://www.mplayerhq.hu | MPlayer homepage |
[3] | http://ffmpeg.sourceforge.net | FFMPEG homepage |
[4] | http://lame.sourceforge.net | Lame homepage |
[5] | http://batleth.sapienti-sat.org/projects/VDR | Shell script (mplayer.sh) |
[6] | http://www.js-home.org/vdr/mplayer-multi/index.php | mplayer-multi |