My MPlayer (1 Viewer)

misterd

Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi all,
    I have created an external player plugin an window plugin that allows you to use MPlayer in MP.
    With the window plugin you can play more medias like rtsp streams etc. than with the standard plugins. It always uses MPlayer even if normally the internal players or an other external player is used.

    Please read the instructions in the configuration wizard and the tool tips of the setup form

    Download link: My MPlayer

    The source code is available at GitHub. https://github.com/MisterD81/MyMPlayer


    Before you report a bug please test the scenario direct with MPlayer to verfiy that it is really a bug of my plugin. And when you report it please attach a log.

    I hope you enjoy my plugin.

    Regards,
    MisterD

    Changes from version 0.5 to 0.6:
    - Added global cache option
    - Added option to select direct sound output device
    - Added AC3/DTS passthrough option
    - Fixed option "Volume normalize"
    - Fixed option "Noise/Denoise->High Quality Denoise"
    - Videostreams will be played in fullscreen at startup
    - Added option to change displayed name of gui plugin
    - GUI plugin stores now last used folder during MP session.
    - All input field are disabled now, if now item is selected in the correpsonding list
    - Small other fixes in player

    Changes from version 0.6 to 0.61:
    - Fixed localisation issue when parsing MPlayer messages
    - Fixed time issue when playback starts

    Changes from version 0.61 to 0.65
    - Fixed white border issue during playback
    - Added option to use the shares of MyVideo and MyMusic
    - Additional error handling in setup to avoid double entries
    - Added OSD for seek steps and "Jump to"
    - Added possibility to play TVServer streams
    - Removed VirtualWebKeyboard, because it doesn't work with latest SVN

    Changes from version 0.65 to 0.70:
    - You need at least MP 0.2.3 RC1 or SVN
    - Added support for video output drivers: OpenGL and OpenGL2 (DirectX is still recommend)
    - Added volume handling to the osd
    - Added feature to activate subtitles by default
    - Added .flv to the list of supported video formats

    Changes from version 0.70 to 0.70b:
    - Fixed configuration of gui plugin

    Changes from version 0.70b to 0.80:
    - New features: Adjust audio and subtitle delay, Adjust subtitle position, Adjust subtitle/osd font size
    - Added localization support. English, German, French, Spanish included. framug and patricon for the French and Spanish translation
    - Support for different screens (works only with DirectX as video output driver. Limitation of MPlayer)
    - Major redesign of the external plugin for further improvements
    - Improved seeking, but still not fully working as expected, because MP needs the duration of the file, which MPlayer could not calculate for some file types (e.g. .ts files)
    - Fixed several bugs (audio stream handling [bug in MPlayer], pausing etc.)
    - Moved to MPInstaller and created a simple ConfigurationWizard.
    - Added an osd library.

    Changes from version 0.80 to 0.85:
    - Improved playlist handling
    - Playlists can now be handled as folders
    - For SVN 16546 and higher an performance improved version of the external OSD library is included.
    - Made the configuration screens sizable. It's not perfect, but should solve the problems with large fonts in windows.
    - Updated French localization by framug :D
    - New Italian localization by ettore :D

    Changes from version 0.85 to 0.86:[/B]
    - Fixed several small bugs in external player
    - Improved error handling
    - Playlist aren't sorted anymore when treated as folder
    - For SVN 16546 and higher the osd library was updated:
    - Added group element
    - Fixed some bugs in the OSD library

    Changes in 0.90:
    - Fixed several small bugs in external player
    - Improved compatibility with VISTA (volume handling, aero etc.)
    - Added skin files for XFace and Blue3
    - Things that I forgot

    Changes in 1.0:
    - Made plugin compatible with MP 1.0
    - Code cleanup
    - Small optimizations

    Changes in 1.0.1:
    - Made the plugin compatible with MP 1.0.2
    - Fixed and improved External OSD library
    - Added experimental support for DVDNAV
    - Added experimental support for Direct3D
    - Some small other bugfixes

    Changes in 1.1.0:
    - Made plugin compatible with MP 1.2.x
    - Backported improvements on ExternalOSDLibrary from OnlineVideos plugin :D
    - Some minor bugfixes that I forgot
    - Created MPEI

    Informations about the osd library:
    This library is an independent library and could also be used by other external player plugins. Since it isn't completed and still has some issues, it is disabled by default in My MPlayer. This libary displays an osd which is based on the osd of MP. The main difference is that it doesn't support transparency and effects.
    It is almost skin independent, because it gets all informations about the images, color etc. from MP. But currently not all skin elements are supported. I have tested only the Default skin of MP. If you use a different skin, and it doesn't work as expected please post a log in this thread. The start of the first playback or after resize of the MP window takes a little bit longer, because the library has to be initialized. But while you are waiting a wait cursor is displayed. The new library has also advantages. The main advantage is that it looks like the MP osd. Another advantage is that it can display the status of the cache when you start playing a web stream. It can also display a message while the player itself is initializing.
     

    ercuem

    Portal Member
    April 11, 2006
    38
    0
    Sorry, I`tried what you mentioned in your pdf description but i wasn't able to handle it.

    Please check my log file.

    2007-02-18 21:11:30.312500 [Info.][MPMain]: g_Player.OnStarted() D:\Altyazili Filimler\Wie ein wilder Stier.avi media:Video
    2007-02-18 21:11:30.328125 [Info.][MPMain]: window:MediaPortal.GUI.Video.GUIVideoFiles deinit
    2007-02-18 21:11:30.375000 [Info.][MPMain]: texturemanager:CleanupThumbs()
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: MPlayer 1.0rc1-3.4.2 (C) 2000-2006 MPlayer Team
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: CPU: Intel(R) Core(TM)2 CPU 6600 @ 2.40GHz (Family: 6, Model: 15, Stepping: 6)
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: CPUflags: MMX: 1 MMX2: 1 3DNow: 0 3DNow2: 0 SSE: 0 SSE2: 0
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: Compiled with runtime CPU detection.
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: Setting process priority: abovenormal
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received:
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: Playing dsound.
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received:
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received:
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: Playing D:\Altyazili Filimler\Wie ein wilder Stier.avi.
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: AVI file format detected.
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: ID_VIDEO_ID=0
    2007-02-18 21:11:30.406250 [Info.][8]: MPlayer: Data received: ID_AUDIO_ID=1
    2007-02-18 21:11:30.421875 [Info.][MPMain]: window:MediaPortal.GUI.Video.GUIVideoFullscreen init
    2007-02-18 21:11:30.421875 [Info.][8]: MPlayer: Data received: VIDEO: [DIVX] 560x304 12bpp 25.000 fps 648.0 kbps (79.1 kbyte/s)
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: Clip info:
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: Software: Nandub v1.0rc2
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_CLIP_INFO_NAME0=Software
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_CLIP_INFO_VALUE0=Nandub v1.0rc2
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_CLIP_INFO_N=1
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: SUB: Detected subtitle file format: subviewer
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: SUB: Read 1373 subtitles.
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: SUB: Adjusted 19 subtitle(s).
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_FILE_SUB_ID=0
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_FILE_SUB_FILENAME=D:\Altyazili Filimler\Wie ein wilder Stier.srt
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: SUB: Added subtitle file (1): D:\Altyazili Filimler\Wie ein wilder Stier.srt
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_FILENAME=D:\Altyazili Filimler\Wie ein wilder Stier.avi
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_DEMUXER=avi
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_FORMAT=DIVX
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_BITRATE=647992
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_WIDTH=560
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_HEIGHT=304
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_FPS=25.000
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_VIDEO_ASPECT=0.0000
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_AUDIO_FORMAT=85
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_AUDIO_BITRATE=127704
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_AUDIO_RATE=0
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_AUDIO_NCH=0
    2007-02-18 21:11:30.437500 [Info.][8]: MPlayer: Data received: ID_LENGTH=7390.56
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ==========================================================================
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: Selected video codec: [ffodivx] vfm: ffmpeg (FFmpeg MPEG-4)
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ==========================================================================
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ID_VIDEO_CODEC=ffodivx
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ==========================================================================
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: Opening audio decoder: [mp3lib] MPEG layer-2, layer-3
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: AUDIO: 44100 Hz, 2 ch, s16le, 128.0 kbit/9.07% (ratio: 16000->176400)
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ID_AUDIO_BITRATE=128000
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ID_AUDIO_RATE=44100
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ID_AUDIO_NCH=2
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: Selected audio codec: [mp3] afm: mp3lib (mp3lib MPEG layer-2, layer-3)
    2007-02-18 21:11:30.453125 [Info.][8]: MPlayer: Data received: ==========================================================================
    2007-02-18 21:11:30.468750 [Info.][8]: MPlayer: Data received:
    2007-02-18 21:11:30.468750 [Info.][8]: MPlayer: Data received: Exiting... (Fatal error)
     

    mpfrank

    Portal Pro
    November 6, 2006
    186
    0
    Cologne
    Home Country
    Germany Germany
    Hi,

    I installed your great plugin today and got some problems using it:

    * Video files can only played once. Trying to start them again switches MP to Windows Deskop and back again within one second. Nothing is played. Restarting MP allows to play the video once again.

    * No ac3 output. I normally use audio output over direct spdif out because the media pc is connected to an ac3 amplifier over toslink cable. Do I have to add additional parameters in settings to get ac3/dts output?

    I'll attach my log file.

    Great idea this plugin. I love mplayer.....

    Any chance to get visualization running when playing audio with mplayer plugin?

    Best regards
    mpFrank
     

    ercuem

    Portal Member
    April 11, 2006
    38
    0
    mpfrank

    1 Hast Du das Plugin zum laufen gekriegt, bei mir startet das plugin gar nicht, hätte großes Interess wegen dem Subtitle support von Mplayer.

    2. Reagiert der Player auf MP Interne Kommandos oder muss man seine Fernbedienung neu für MPlayer konfigurieren.

    Falls Nein, was ist dann der Vorteil von MPlayer gegenüber Zoomplayer oder Bsplayer?
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi,
    since we are in the english part of the forum, I will answer in english. But you can create a thread in the german part too and I will answer all questions in german there.

    Sorry, I`tried what you mentioned in your pdf description but i wasn't able to handle it.

    Please check my log file.
    Have you tried to play the file from command line? Because I can't see why MPlayer is crashing. The most important line in the log is missing and starts like:
    Code:
    MPlayer: All Arguments: -slave -quiet -identify -wid 722566 -identify...
    These are the arguments which will be sent to MPlayer. You also can do this on command line, but you should remove "-slave -quiet -identify -wid 7222566".


    * Video files can only played once. Trying to start them again switches MP to Windows Deskop and back again within one second. Nothing is played. Restarting MP allows to play the video once again.
    What windows version are you using? I can only see an error of MP with the DirectX device and that MP than "normally" exits.
    But you can try to disable one or more of the following options: "DirectRendering", "DoubleBuffering" and "Framedrop"

    Hi,
    * No ac3 output. I normally use audio output over direct spdif out because the media pc is connected to an ac3 amplifier over toslink cable. Do I have to add additional parameters in settings to get ac3/dts output?
    I don't know, but I will look at this. Can you try "Win32" as output driver?
    If you know the additional parameters, I can add an option to setup.

    Hi,
    Any chance to get visualization running when playing audio with mplayer plugin?
    As far as I know MPlayer doesn't support visualizations --> No.

    2. Reagiert der Player auf MP Interne Kommandos oder muss man seine Fernbedienung neu für MPlayer konfigurieren.
    The plugin implements the whole interface of MP. This means you can you use your remote and the standard key commands of MP to control MPlayer. All commands will be translated and send to MPlayer. The key commands of MPlayer are all disabled.

    Regards,
    MisterD
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi,
    I think I have found the reason for ercuem problem. The problem occurs when you set the following options: "Volume normalize" and/or "Noise/Denoise->High Quality Denoise".

    mpfrank: Could you please test the following parameters and tell me which of them work for you. "-afm hwac3", "-ac hwac3" and "-ac hwdts" And test if it also works if you set this as general argument when playing non AC3 audio. I will then add an option to setup. Also I had a look at your crash when playing a video twice, but I wasn't able to reproduce it. So I need additional informations from you like Windows, MPlayer version, graphic card etc.

    I will release a new version soon with some other small fixes.

    Regards,
    MisterD
     

    mpfrank

    Portal Pro
    November 6, 2006
    186
    0
    Cologne
    Home Country
    Germany Germany
    Hi MisterD,

    thanks for your excellent support!!

    @mpfrank: Could you please test the following parameters and tell me which of them work for you. "-afm hwac3", "-ac hwac3" and "-ac hwdts" And test if it also works if you set this as general argument when playing non AC3 audio. I will then add an option to setup.

    I did some tests with the mplayer command line version (mplayer.exe ver 1.0pre8-3.4.2) and some of my video files (.vob format on harddisk).
    First two parameters "-afm hwac3" and "-ac hwac3" work excellent. Files with ac3 audio track have ac3 output with both options. Files without ac3 track have normal PCM 44.1 output. The third parameter "-ac hwdts" only works with dts tracks. Files with ac3 or DD2.0 or PCM track have no audio output at all :(

    But the dts option I don't really need with mplayer. Most of my videos are ac3 only and if I have some with dts, they have both, ac3 and dts track, so it should work with ac3 output. If I really need the dts output I can use the internal video player from MP. It handles dts output without problems.

    Also I had a look at your crash when playing a video twice, but I wasn't able to reproduce it. So I need additional informations from you like Windows, MPlayer version, graphic card etc.

    Mhhhhh..... shame on me!! :(

    It seems not to be a problem of your plugin......
    Normally I use MP in fullscreen mode and I didn't notice, that there is an error message on Windows Desktop in the background (see attached jpg file).

    When I tested the command line options with mplayer, Vista shows an error msg about an incompatibility of mplayer with aero-desktop.
    I think this has something to do with the problem that the video files in MP only play once. After starting one video file you have to restart MP bevor selecting the same or another one.
    With commandline version of mplayer the error message pops up, but without any effect. The video can be played various times. Same with MPUI Gui Version of mplayer.

    I think thats the price I have to pay if I always like to be very up2date ;)

    Windows Version: Vista Ultimate Final (Build 6000)
    Graphic Adapter: Nvidia Gforce 7600GS (512MB Version)
    Driver: Latest Nvidia Vista driver
    Sound: Realtek on-board (Asus P5B DH Deluxe)
    Codec: MP Video Codec and MP Audio Codec
    DirectX Sound Output: Realtek Digital Output
    Speaker: Toslink to Amplifier -> 5.1 Speaker

    Even if I have problems with mplayer, your plugin is really great and I hope with some future mplayer versions the aero-problem will be resolved......

    May be there are some more Vista user using your plugin. May be they can post if they encounter the same problems...

    Many thanks!!!

    mpFrank
     

    misterd

    Retired Team Member
  • Premium Supporter
  • April 4, 2006
    1,597
    314
    Home Country
    Germany Germany
    Hi mpFrank,
    I expected that you are using Vista. I would suggest that you try some other video output modes of MPlayer. This can be done with the following options on command line or in MPUI, because the plugin won't work with them at the moment:
    • -vo directx:noaccel (DirectX Output without acceleration)
    • -vo gl (OpenGL)
    Other Video output modes aren't possible in combination with my plugin.

    I will add a pass through option for AC3/DTS to setup. Therefore could you please make another test? What happen if you play a dts track with option "-afm hwac3", because this should also work.

    Regards,
    MisterD
     

    konti

    Portal Member
    September 21, 2006
    11
    0
    Home Country
    Netherlands Netherlands
    Nice plugin!!! thx allot! I was looking for something like this but then with the videolan core. As videolan plays everything you throw at it. But so does mplayer. So thanx again!

    I have one feature request. If possible. When I play a video and press (back button) to go back out of full screen it goes automatic to my root folder. Can you make the functionallity like the my videos?
     

    Users who are viewing this thread

    Top Bottom