Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: Mediaplayer Help  (Read 3023 times)

0 Members and 1 Guest are viewing this topic.

bulla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:June 21, 2023, 04:14:30 pm
Mediaplayer Help
« on: May 17, 2006, 07:26:19 am »
Has anyone sucessfully got Media player  to work in Mamewah and produce a list of all videos in a certain folder ? If so could you share your configuration with me please ?

I've got a load of mpgs, avi's and m2vs which all play fine in mplayer, I'd just like to be able to generate a list in mamewah of them all and be able to select them from within the frontend.

Thanks for any help.

Bulla

Congui

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 142
  • Last login:July 23, 2015, 12:54:53 pm
  • Newbie!
Re: Mediaplayer Help
« Reply #1 on: May 17, 2006, 11:03:49 am »
Bulla hi.

To generate and play your mp3 files you can do something like this:

### List Generation Settings ###
rom_path                                  D:\MUSIK\ROCK\METALLICA
rom_extension                             mp3
dat_file                                 
nms_file                                 
catver_ini_file                           
list_generation_method                    rom_folder

### Execution Settings ###
emulator_executable                       C:\Program Files\Windows Media Player\mplayer2.exe
commandline_format                        /play /close D:\MUSIK\ROCK\METALLICA\[name].mp3

This will generate a list with all your mp3 files (in this case from Metallica) and play them thru media player.  However, there's a bug with the /close parameter, and wmp doesn't seem to close once the song finishes playing (I've googles and no solution to this bug); so you must exit wmp using alt-f4. 

Hope this helps.

Cheers, :cheers:

Congui

liquid8

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:June 11, 2017, 04:02:02 am
  • I working on it.. it'll be a while.
Re: Mediaplayer Help
« Reply #2 on: May 17, 2006, 12:52:22 pm »
yes, what was provided should work fine to generate a list of the movies, just change the rom path to your movie path, and the extension to .avi/whatever. Also not sure if you are using Mplayer (not windows media player) or Windows Media Player, but I believe this uses escape to exit by default, you may just need to start it using '-fs'. May also try VLC.

You could also launch an external application such as Arcade Music Box from Mamewah.

I will play around with this tonight and add it to the wiki.

bulla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:June 21, 2023, 04:14:30 pm
Re: Mediaplayer Help
« Reply #3 on: May 17, 2006, 01:28:35 pm »
Many thanks for the replies, to clear up the mis-understanding I was referring to the older version of Microsoft Media Player as it exits with Esc, mplayer2.exe I think ?

Cheers for all the help

Bulla
« Last Edit: May 17, 2006, 02:17:41 pm by bulla »

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Mediaplayer Help
« Reply #4 on: May 17, 2006, 04:15:37 pm »
Arcade Music Box was made for using with mamewah in mind. The interface is much the same (miniwah actuelly linked to from his homepage).

Arcade Music Box support videos too (avi, mpg and wmv).

I did not actuelly heard about m2vs files (but works with avi and mpg now)?

m2v is not supported yet. As I find info, it not supported by Mediaplayer 7+, wich AMB use for video playback?). I cannot tried to support this format, because I do not have any files in this format.

« Last Edit: May 17, 2006, 04:41:13 pm by Space Fractal / Denmark »
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

Howard_Casto

  • Idiot Police
  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 19400
  • Last login:Yesterday at 10:57:06 pm
  • Your Post's Soul is MINE!!! .......Again??
    • The Dragon King
Re: Mediaplayer Help
« Reply #5 on: May 18, 2006, 06:07:43 am »
Just to confirm...

Regarding the close bug.... it's not a bug. 

Media player 6.4 supported the close flag while wmp 7 and above does not. 

Now you could launching an mp3 via mplayer2.exe (wmp 6.4 which is included with later versions of wmp) but it doesn't have visualizations and thus you'd be looking at an ugly media player, even with the fullscreen flag included. 

Probably your best bet for launching a single file is to use winamp.  It has similar command line options, it will close with the appropriate flag and you can also set the visualization to run fullscreen via a flag. 


Hope that helps and dear god why am I not asleep yet?




Probably your best bet is to use

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Mediaplayer Help
« Reply #6 on: May 18, 2006, 06:59:47 am »
maybe I should add this feature on my todo list....
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

Pi

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 108
  • Last login:March 08, 2007, 03:46:13 am
  • From Jupiter with pride
    • CAESAR
Re: Mediaplayer Help
« Reply #7 on: May 19, 2006, 03:27:01 am »
m2v is not supported yet. As I find info, it not supported by Mediaplayer 7+, wich AMB use for video playback?). I cannot tried to support this format, because I do not have any files in this format.

As long as you install the appropiate codecs or filters for the container, MediaPlayer can play any media file. IIRC M2V is MPEG-2 video, and I can watch those perfectly here. I'm using Ligos MPEG codecs.
Pictures in the dark I see - Morpheus comes to me.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mediaplayer Help
« Reply #8 on: May 19, 2006, 06:11:28 am »
You could also check out my version of Windows Media Player COM object with added ESC key to quit and it also automatically puts the video into fullscreen. It uses WMP 10 engine, so it is basically WMP 10 but fullscreen+ESC to exit.

wmpfull

bulla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:June 21, 2023, 04:14:30 pm
Re: Mediaplayer Help
« Reply #9 on: May 19, 2006, 11:34:46 am »
Thank you I'll give that a try.

I followed the ini files above and I'm getting the list I wanted in Mamewah, but when I try to launch a file the mplayer2.exe launches but errors saying it cant find the file ? I can then browse to the file ok and play it manually.

I'll give your version a go later, do I use the /full /close switches with it ?

Thanks

Bulla

bulla

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 26
  • Last login:June 21, 2023, 04:14:30 pm
Re: Mediaplayer Help
« Reply #10 on: May 19, 2006, 12:59:34 pm »
I've copied over your wmpfull.exe but when I try and run I'm not getting anything, no errors either. Can anyone spot anything wrong in my ini file ?

Thanks




### 0004.ini (mamewah v1.61) ###

emulator_title                            Media Player

### List Generation Settings ###
rom_path                                  E:\Videos
rom_extension                             mpg
dat_file                                 
nms_file                                 
catver_ini_file                           
list_generation_method                    rom_folder

### Execution Settings ###
emulator_executable                       e:\videos\wmfull.exe
commandline_format                        /play /full /close E:\Videos[name].mpg
alt_commandline_format_1                  {nodosbox}{safelaunch}
alt_commandline_format_2                  [name]{autodosbox}{safelaunch}
game_specific_config_path                 

### Artwork Locations ###
artwork_1_image_path                     
artwork_2_image_path                     
artwork_3_image_path                     
artwork_4_image_path                     
artwork_5_image_path                     
artwork_6_image_path                     
artwork_7_image_path                     
artwork_8_image_path                     
artwork_9_image_path                     
artwork_10_image_path                     
movie_preview_path                       
movie_artwork_no                          1

### Screen-Saver Settings ###
enable_music_in_screensaver               1
saver_type                                slideshow
movie_path                               
movie_fullscreen                          1
quit_delay                                30
wrapper_executable                       
wrapper_commandline_format                [name]{nodosbox}{nosafelaunch}
scr_file                                 

### External Application Settings ###
ipc_file_or_path                         
app_1_executable                         
app_1_commandline_format                 
app_2_executable                         
app_2_commandline_format                 
app_3_executable                         
app_3_commandline_format                 
auto_launch_apps                         

### Additional Settings ###
music_path                               
lcd_display_file_path                     
lcd_fe_text                               

### Settings used by MAMEWAH ###
current_list                              0

liquid8

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 156
  • Last login:June 11, 2017, 04:02:02 am
  • I working on it.. it'll be a while.
Re: Mediaplayer Help
« Reply #11 on: May 19, 2006, 02:51:51 pm »
should be:

E:\Video\[name].mpg

not E:\Videos[name].mpg

right?? Try running it out of mamewah first and make sure it works for you.

Space Fractal

  • Wiki Master
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 1888
  • Last login:September 26, 2023, 11:32:13 am
  • Space Fractal
    • Space Fractal
Re: Mediaplayer Help
« Reply #12 on: May 19, 2006, 05:17:48 pm »
I have released a another fullscreen movieplayer (commandline only of course), based on a DirectX 7 screen and DirectShow as player (No Windows Media Player 10 required, wich is for me a overkill).

It support definable escape key, and change to any fullscreen resoulutions (see on settings.ini). If you wich, it even support scanlines (display only each another line).

http://www.arcademusicbox.com/index.php?item=extras

The Blitz+ Sourcecode is included......
Decade Old Work: MultiFE, ArcadeMusicBox
Today Works: Various Spectrum Next games from Rusty Pixels and html5 games.

headkaze

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 2943
  • Last login:August 14, 2023, 02:00:48 am
  • 0x2b|~0x2b?
Re: Mediaplayer Help
« Reply #13 on: May 19, 2006, 09:20:14 pm »
There are no command line options for wmpfull, because it always runs full screen. It should work with just the file name eg.

wmpfull.exe "C:\My Dir\My File.avi"

So you need to remove all the command line options like /play /full and /close. wmpfull.exe will also automatically exit once the media has finished playing to return back to your FE.

It also has the standard WMP 10 context menu, so you can right-click the mouse when the media is playing for other options.
« Last Edit: May 19, 2006, 09:21:51 pm by headkaze »