How to make .avi files open MPlayer in Ambient?
  • Order of the Butterfly
    Order of the Butterfly
    MorphDelf
    Posts: 274 from 2004/2/20
    From: Oslo, Norway
    Hello.

    I am asking this for a person on www.mac1.no - I don't have my MorphOS machine at work, so I am not able to make any guide or description on howto do it for him.

    Link:
    http://mac1.no/forum/viewtopic.php?f=357&t=278469
  • »02.07.12 - 11:56
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    EDIT: See link in post 4 below - tutorial is a lot clearer for MorphOS beginners than my original reply.

    There are many ways to skin a cat :-)

    Right-click on the desktop and select Settings>Ambient from the menu to open the Ambient Settings window.
    Selecting the 'Mime' entry in the Ambient Settings window brings you to the relevant section.

    Settings can be changed either for file types (video, audio, text, etc) or for individual formats (avi, divx, mp4, etc).

    Assuming the user just wants to open "all video files" with MPlayer:

    Double click on the "video" entry.
    This brings up the Ambient Mime editor window for the 'video' entry (affects all video files).

    Select 'Add' to open the 'action editor' window.

    Enter a description in the 'name' field (eg 'Play with MPlayer'), then click ADD in the right hand column.

    Select 'Amigados' and specify the command

    run >NIL: sys:applications/mplayer/gmplayer %sp -vo cgx_overlay_gui::TINYBORDER -fs

    (Note that you MUST press enter after entering the command string above. Also, you will need to change the path if your MPlayer is installed to a different location).

    Select the 'event type':
    - menu means that this entry will appear in the context menu if you right-click on a video file.
    - double-click sets it as the default action if you double-click on a video file (probably what the OP wants)
    - drag-n-drop - never used it tbh.

    Click OK to close the action editor, accepting changes.
    Click OK to close the Mime editor, accepting changes.
    Click 'save' to save changes and close the Ambient settings window.

    This command will open video files with MPlayer using overlay, with the integrated menus enabled, and playbeck set to fullscreen by default.

    Regards



    Rich

    EDIT: For the above to work, the user will have to rename mplayer to gmplayer, as suggested in the MPlayer readme file. If this hasn't been done the string:
    run >NIL: sys:applications/mplayer/mplayer -gui 1 -fs %sp
    can be used instead.

    Sorry for any confusion :-)

    EDIT: Corrected arguements in edited alternative. If -gui is used, all args must be passed before filename. If -gui is not used, args can be placed before or after filename. Wee-eird!

    [ Edited by boot_wb 02.07.2012 - 20:04 ]
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »02.07.12 - 12:16
    Profile Visit Website
  • Fab
  • MorphOS Developer
    Fab
    Posts: 1331 from 2003/6/16
    Just to make it a bit more simple for this user, just change the action to:
    type: workbench
    command: SYS:Applications/MPlayer/MPlayer/gmplayer %sp
    (overlay is already default).

    checking cd source so that current dir is set to the video directory,
    and check "merge selection" so that you can enqueue all the selected files in mplayer playlist.
  • »02.07.12 - 12:53
    Profile Visit Website
  • Priest of the Order of the Butterfly
    Priest of the Order of the Butterfly
    boot_wb
    Posts: 874 from 2007/4/9
    From: Kingston upon ...
    @Fab
    Took your corrections and incorporated them into a novice-friendly tutorial Setting up easy video playback in Ambient. Now with screenshots d:)

    Kept it as AmigaDOS though, since this allows setting up gui and fullscreen by default without assuming the user has read your readme and renamed mplayer>gmplayer. :-)
    www.hullchimneyservices.co.uk

    UI: Powerbook 5,6 (1.67GHz, 128MB VRam): OS3.1, OSX 10.5.8
    HTPC: Mac Mini G4 (1,5GHz, 64MB VRam): OS3.1 (ZVNC)
    Audiophile: Efika 5200b (SB Audigy): OS3.1 (VNC + Virtual Monitor)

    Windows free since 2011!
  • »02.07.12 - 20:00
    Profile Visit Website
  • Order of the Butterfly
    Order of the Butterfly
    Korni
    Posts: 472 from 2006/2/23
    From: the Planet of ...
    Adding a preconfigured filetype definitions is a good idea. Would be even nicer to apply to existing ones.
    http://korni.ppa.pl/modkowypaczek/ | My Rifle, My Bunny, and Me
  • »02.07.12 - 20:45
    Profile Visit Website