MPlayer CE Wii

From GameBrew

MPlayer CE
Mplayercewii.jpg
General
AuthorScip, rodries, etc.
Last Updated2011/03/04
TypeMedia players
Versionr658
LicenseGPL-2.0
Links
Download
Website
Source

Mplayer-CE is a homebrew media player for the Nintendo Wii. It was initially created as a fork of the Team Twiizers MPlayer port, combining elements of MPlayerWii, GeeXboX and other great homebrew contributions. It is built with devkitPro development tools, fully homebrew driven and not associated with Nintendo in any way.

Some of the current features includes DVD, SDHC, USB 2.0 storage device support, multiple media, subtitle, playlist and streaming formats, customization possibilities, etc.

Required

  • An SD card (Best results are with non-SDHC cards, SDHC will only work on 4.0 or above) or USB device formatted to FAT(32).
  • [For playing Discs] DVDx installed
  • [Optional, for playing data from USB] cIOS202 - either the version provided by the MPlayer_CE team on their google code page or the version included in hermes cIOS installer (installed as 60 merged 38)

Configs

Setup and Edit your Configs

smb.conf

First of all if you are planning on using SMB, be sure to follow the USB2.0 installation as the IOS60 as a base to install as IOS202 gives much better wifi stability. The Instalation can be found: Here.

Your smb.conf has 5 shares. Determine how many shares you want to use and fill in the fields. For example, I have a folder shared on C:\ called Movies. I don't have a password on my user account, and my folder isn't protected. Therefore I don't need to add my user in the field in the example below. Typically shares made with Windows XP won't need the username or password fields filled in.

Samba share1 (smb1:/)

ip1=192.168.0.2 share1=Movies user1= pass1=

I also have a folder on D:\ but my shared folder has a space: My Music. Therefore, quotation marks are needed:

Samba share2 (smb2:/)

ip2=192.168.0.2 share2="My Music" user2= pass2= '

If you need a username and password to access shared folders, simply fill all fields in.

Windows 7 & Vista advanced settings: Setting the NT Access rights on the shared folder to allow "Everyone" read and execute access.

Right-click folder, then pick "Security", "Advanced", "Change Permissions", "Add", "Advanced", "Find now", then pick "Everyone", then give read permissions.

Tutorials for setting up a file share in Windows XP and Windows Vista are available.

http://www.practicallynetworked.com/sharing/xp/filesharing.htm

http://cws.internet.com/article/3592-.htm

menu.conf

You can change the layout of your menu.conf. Doing so will change the main menu layout in MPlayerCE.

There is little existing documentation on editing menu.conf, but it is that not difficult to figure out by looking at an example. It is an xml-like file and it takes the normal MPlayer commands. To use it to load a specific file or stream use loadfile, e.g. to load a SopCast stream from my own network:

<cmdlist name="browse" title="Browse" ptr="<>" > ... <e name="SopCast ..." ok="loadfile http://192.168.1.65:8902/"/> </cmdlist>

Remember you can add Radio streams, look under Radio in menu.conf and use the same technique as the others.

input.conf

The Wii Remote and Gamecube controller controls are mapped as:

GAMECUBE CONTROLLER WII REMOTE KEY A A a B B b X 1 x Z HOME z L MINUS l R PLUS r LEFT LEFT LEFT RIGHT RIGHT RIGHT UP UP UP DOWN DOWN DOWN

The Y button on the Gamecube Controller and the 2 button on the Wii Remote acts as a modifier key (like shift) to add further control options:

GAMECUBE CONTROLLER WII REMOTE KEY Y + A 2 + A A Y + B 2 + B B Y + X 2 + 1 X Y + Z 2 + HOME Z Y + L 2 + MINUS L Y + R 2 + PLUS R Y + LEFT 2 + LEFT KP4 Y + RIGHT 2 + RIGHT KP6 Y + UP 2 + UP KP8 Y + DOWN 2 + DOWN KP2

To map a control in input.conf should be fairly self-explanatory. First write the key you wish to map and then the mplayer option you want, listed here: http://www.mplayerhq.hu/DOCS/tech/slave.txt So for example, to make the OSD come up when you press 1 you would add x osd or to make 2+1 switch the ratio to 16:9 you would add X switch_ratio 1.7778

mplayer.conf

This is where you can add a line so MPlayerCE loads with a specific setting, for example forcing your aspect ratio always to 16:9.

You can add the line aspect=1.7778 and MPlayerCE will default to 16/9. The options are the standard MPlayer options. Change to suit you.

You can use the gxzoom, hor_pos and vert_pos parameters to adjust the screen size and position. hor_pos and vert_pos offset the centre of the display and gxzoom adjusts the picture zoom. The lower the zoom value, the more the picture zooms. If you are experiencing black bars on the left and the right of your picture, try gxzoom=340.

Customising

loop.avi

You can use your own loop.avi, just replace the current one with your own. You can also have music in the loop.avi. My loop.avi is 1 minute long and is 3.5mb in size with no issues.

If you are familiar with Virtualdub, you can use that to create your loop.avi. Simply editing the previous loop.avi by adding a new image or adding audio to it, etc. You can use anything as your loop.avi aslong as it's xvid compression.

How to make static background loops for mplayer ce

Software used: **Gimp**AVIDemux

  1. Open Gimp and create a new image (640x456 for standard defenition, 624x352 for widescreen). You can use whatever image program you want, but Gimp is free, cross-platform, and powerful. So is avidemux, btw.
  2. Edit the new image for your background so it looks how you want it. Save it as a jpg or png.
  3. Open Avidemux. Set the video codec to xvid. Open the image you created. Copy the image and paste it several times so that you have a good number of frames. I'd say 60 frames is more than enough. Save the video as "loop.avi".

You're done. Also, please submit your themes to http://code.google.com/p/mplayer-ce/wiki/UserSubmittedCustomizations

Fonts

MPlayer supports freetype fonts. Just place a ttf font in the mplayer_ce directory named subfont.ttf. You can use various arguments in mplayer.conf to adjust them:

subfont−autoscale <0−3> Sets the autoscale mode. NOTE: 0 means that text scale and OSD scale are font heights in points. The mode can be: 0 no autoscale 1 proportional to movie height 2 proportional to movie width 3 proportional to movie diagonal (default)

subfont−blur <0−8> Sets the font blur radius (default: 2).

subfont−encoding Sets the font encoding. When set to ’unicode’, all the glyphs from the font file will be rendered and unicode will be used (default: unicode).

subfont−osd−scale <0−100> Sets the autoscale coefficient of the OSD elements (default: 6).

subfont−outline <0−8> Sets the font outline thickness (default: 2).

subfont−text−scale <0−100> Sets the subtitle text autoscale coefficient as percentage of the screen size (default: 5).
‎

To enable fonts for your language there are some settings you can configure, thanks to mika7k7 for the guide.

1.Copy the Arial font from your Windows font folder (drag & drop) to mplayer_ce directory on your SD, or acquire from somewhere else, taking copyright into consideration.

2.Rename subfont.ttf to subfont.ttf.dist (as a backup)

3.Rename arial.ttf to subfont.ttf

4.Edit your mplayer.conf (w/ notepad) by adding to the end of the file:

Subtitles Setting

slang=ar subcp=windows-1256

5.That should do it.

Notes: The font wii be tiny, edit

subfont-text-scale=

in mplayer.conf to your liking.

You will need to change the slang and subcp parameters to fit your locale.

Media

HMN - MPlayer CE (Play DVD's, CD's, USB) (Hacking Modding Nerd)

Changelog

r658 - March 4, 2011

  • Upstream sync.
  • Selectable YUV to RGB conversion standard for -vo gx.
  • Fixed libavformat TCP sockets, new protocols available.
  • Removed persistent screen adjustments.
  • Many other fixes and changes.

r648 - January 30, 2011

  • Upstream sync.
  • Enabled several Broadway-specific L2 cache features.
  • Added paired single optimized H.264 intra plane prediction.
  • Various minor optimizations.
  • Initial GameCube port.

r636 - December 21, 2010

  • Upstream sync.
  • Added support for the SD Gecko adapter.
  • Added support for libext2fs-EXT2/3/4 filesystems.
  • Added ability to read game discs for cinematic playback.
  • Added paired single optimized H.264/VC-1 chroma MC.
  • Added paired single optimized VP8 TrueMotion prediction.
  • Various other optimizations.
  • Improved auto-mounting.

r619 - November 9, 2010

  • Upstream sync.
  • Added paired single optimized RDFT & MDCT.
  • Added paired single optimized H.264 iDCT.
  • Various other optimizations.
  • More minor fixes and changes.

r600 - October 9, 2010

  • Upstream sync.
  • Added paired single optimized floating-point DSP functions.
  • Added new audio output driver based on AESND. (-ao aesnd)
  • Improved MEM2 management.
  • Other minor fixes and changes.

r592 - September 2, 2010

  • Upstream sync.
  • Added support for IOS58's USB 2.0 interface.
  • Added direct DVD drive access with AHBPROT.
  • Fixed VP6 decoding.
  • Other minor fixes and changes.
  • New default icon.

r590 - May 7, 2010

  • Upstream sync.
  • Added hardware support for all planar YUV formats.
  • Added new vertical synchronization method.
  • Added support for pan-and-scan.
  • Improved performance.
  • Other minor fixes and changes.

r574 - April 22, 2010

  • Upstream sync.
  • Improved HD media support.
  • Improved performance.

r572 - March 27, 2010

  • Upstream sync.
  • Improved performance.

r567 - February 21, 2010

  • Improved aspect scaling.

r565 - February 10, 2010

r564 - February 7, 2010

  • Added enhanced definition EFB hack.
  • Cracked DVD keys are now cached.

r563 - February 1, 2010

  • Added hardware volume control.

r555 - January 25, 2010

  • Rewrote input handling.

r551 - January 21, 2010

  • Added USB keyboard support.
  • Corrected YUV coefficients.
  • Proper adjustment for overscan.

0.76 - November 26, 2009

  • Fixes for 4.2 update
  • Stability fixes (hopefully freezing is gone forever now)
  • Network (LAN and WAN) speeds increased
  • Added directory play feature
  • YouTube section entirely revamped
  • Added Nintendo Channel content (quality may not yet be optimal) (thanks to yellowstar6 for his work on ninchdl-listext)
  • [blip.tv was planned but couldn't make it on time]
  • Many, many more bugs fixed

0.75 - August 19, 2009

  • FTP support added (thanks to hax)
  • NTFS support added for USB and SD (thanks to Shareese)
  • SMB speed improved
  • Hopefully finally eradicated the freezing bug
  • Fixed noise bug when loading another stream

0.72 - August 3, 2009

  • Fix playlist bug
  • More SMB servers detected (thanks to hax)
  • SMB now supports user-level share security (thanks to hax)
  • SMB now supports plain text passwords (thanks to hax)

0.71 - August 2, 2009

  • Autoload implemented. If the next file has a very similar name (using a Levenshtein distance of 2) it will be autoloaded.
Examples:
film.part1.avi > film.part2.avi (1 change)
episode.s01e09.avi > episode.s01e10.avi works (2 changes)
  • Improved memory management: fixes MPlayer hanging if out of memory.
  • OSD level 3 now shows mem1 and mem2 info.
  • Driver improved with autodetection error: on error the device is reinitied and read is retried.
  • Restore Points fixed. Now quit or power off saves restore point and can resume properly. Please delete your previous restore_point file in case it is corrupted, and check that your SD card isn't locked.
  • Improved SMB connections: now SMB will always reconnect.
  • Improved stream initialisation.
  • Fixed green lines at the top of loading screen.
  • Further improved video compatibility
  • Added ability to load an external driver from SD for USB 2.0 testing. More details (and drivers) will be added to the Google Code page at a later date. Thanks to Hermes for the patch.
  • Finally fixed the problem with network and USB 2.0 conflicts (due to the driver using a bad device).
  • Font loading improved.
  • Improved MPlayer support when a file unexpectedly disappears and reappears.
  • Many other small fixes and code cleanup.
  • New USB test:

0.7 - July 9, 2009

  • Use small cache if opening an internet stream (audio and video).
  • Optimized memory access (thanks to a suggestion from Shagkur); cache thread is now more stable.
  • A8 patch added for DVD playback in cIOS202 to avoid problems with old modchips.
  • Improved Libfat:
    • fix for special characters
    • prevent possible corruption on sd
    • can now mount any FAT partition, whether primary or active
    • real FAT32 limit so larger files can be played
  • Improved USB hotplug and DVD detection
  • ECHI module modified for greater compatibility with USB devices.
  • Improved video compatibility.
  • New buffering system implemented. If the cache drops below 3% MPlayer will pause and re-buffer to prevent possible hangs with bad connections. Cache is shown on OSD level 3.
  • Shoutcast TV is complete with caching, thanks to Extrems. Please see menu.conf.
  • If new cIOS is used then DVDx is not required for DVD access.
  • New cIOS Installer:
    • Installs IOS202 using base IOS60 automatically for greater WiFi support.
    • Ability to select the IOS to use so you can select an IOS with the fakesign bug.

0.62 - June 3, 2009

  • USB LAN Adaptor support fixed (again). Thanks to CountZ3ro for testing. Please note that you will need to install the USB 2.0 cIOS.
  • cIOS improved to stop conflicts with other homebrew. Please note that now only port0 has usb2 support. All other USB devices (including the USB LAN adaptor) must go in port1.
  • Horizontal stretch parameter added (see mplayer.conf)
  • YouTube options added to menu.conf (thanks to Extrems)
  • Many small bug fixes

0.61 - June 3, 2009

  • New screen size variables actually work now.
  • Better usb device detection.
  • Using free Liberation font instead of Arial.
  • Subtitle wraparound bug fixed.
  • Spanish version released.

0.6 - May 23, 2009

  • No more maximum cache limit
  • Introduced new variables into mplayer.conf to adjust screen size and position, please see mplayer.conf for details (component-fix is now deprecated)
  • idx/sub subtitle support (please note that these can take up to 30 seconds to load so please be patient)
  • Multiple folder locations added, it is now possible to have the files in
    • sd:/apps/mplayer_ce
    • sd:/mplayer
    • usb:/apps/mplayer_ce
    • usb:/mplayer
  • Added resume points - video will resume at last stopped point. To clear, delete resume_points file in your mplayer_ce folder. To seek to the beginning of the video hold 2 and press the minus button.
  • Added support for Hermes' cIOS. This has greater USB compatibility and enables USB LAN connector support. Please see wiki page for details
  • Added Fribidi library support for right-to-left languages
  • Made cache fill visible on screen
  • Many small bug fixes
  • Updated to latest MPlayer svn

0.5 - April 22, 2009

  • SMB now much more robust - thanks to DennisLKJ for smb.c fix
  • libfat cache improved for speed and stability
  • USB ethernet now fixed with USB 1.1; USB 2.0 fix requires an updated cIOS
  • Added ability to manipulate picture using the nunchuk
  • Updated to latest MPlayer revision
  • Now using subfont.ttf instead of font folder - use mplayer.conf to change font size
  • Merged widescreen and 4:3 pack - now MPlayer will use the appropriate loop.avi automatically
  • Improved modchip compatibility for DVD

0.4 - March 28, 2009

  • USB 2.0 support (see docs for info)
  • TTF font support (see docs for info)
  • Fixed bug in radio streaming.
  • DVD-Video bugs fixed (DVDs should play much more smoothly now)
  • Fixes in Libdi to detect chipped Wii
  • Codec fixes
  • Updated to latest MPlayer revision
  • Many small fixes

0.3a - March 2, 2009

  • Fixed a little bug in keepalive issue that hangs the Wii

0.3 - February 27, 2009

  • Fixed code to play videos with incompatible size; we now support many video formats and unorthodox resolutions
  • Fixed keepalive issue in samba (thanks to Ludovic Orban)
  • New loop.avi and widescreen version (thanks to Blue_K)

0.21e - February 24, 2009

  • Fixed apostrophies in filenames
  • Improved DVD and USB mounting devices
  • Fixed radio
  • Improved samba reconnection
  • Debugging help for SMB Shares at bootup, debug_network=yes (Review mplayer.conf)

0.21d - February 22, 2009

  • Updated menu.conf to allow selecting playlist
  • Fix rodries' loop patch

0.21c - February 21, 2009

  • Updated menu.conf to allow selecting subtitles

0.21b - February 21, 2009

  • Fixed hang when you access to dvdnav
  • New mplayer.conf option: component_fix=yes to fix side bars on some problematic TVs (Now fixed) Review your configs.
  • Stop Looping Video/Audio file.

0.21 - February 20, 2009

  • Reduced font size
  • New Readme
  • New mplayer.conf option: component_fix=yes to fix side bars on some problematic TVs
  • Small fix in cache2.c

0.2 - February 17, 2009

  • SD/USB Mount bugs fixed
  • DVD Mount/Stop/Motor/Pause problems fixed, now mounts, only when you select DVD
  • Network Initialising on startup changed, now connects "hidden" in background.
  • Added 5 SMB Shares, review smb.conf
  • Boot-up speed increased
  • Added files filter to only show audio/video files
  • Same directory kept open when you open/close the menu
  • Menu closes on file load

0.1 - February 14, 2009

  • SMB fixes
  • DVD cache bug fixed
  • Small USB fixes
  • Modified Libogc & Libfat
  • 2.35:1 videos now scale correctly

External links