Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 6 of 6

Thread: Using VLC to Play Video Files (rather than Windows Media Player?)

  1. #1
    Join Date
    Mar 2009
    Posts
    401

    Using VLC to Play Video Files (rather than Windows Media Player?)

    [edited from support email]

    Hi, we're curious if the VideoLan media player (VLC) can be used with our study.
    www.videolan.org/vlc/

    Can MediaLab be configured to use the VLC media player? Does the software require that Windows Media Player is used? Is VLC configurable for the application instead?
    Last edited by Trevor Newell; 05-10-2010 at 09:55 PM.

  2. #2
    Join Date
    Mar 2009
    Posts
    401
    This should definitely be possible. One of the benefits of using VLC over another video player is that it can do relatively anything (and more) from the command-line itself, whereas the GUI provided only taps into a few of it's extra features.

    Take a look at the following command:
    Code:
    C:\Program Files\VideoLan\VLC\vlc.exe -vvv "C:\Videos\ExampleVideo.mp4" --fullscreen --play-and-exit
    Using this syntax we can launch the VLC player, begin playback of our video file, tell VLC to initialize itself in fullscreen-mode, and exit once the playback has finished.

    For a full list of commands, see the following documentation:
    http://wiki.videolan.org/VLC_command-line_help
    http://www.videolan.org/doc/vlc-user-guide/en/ch04.html

    To integrate this functionality into MediaLab, select the 'Executable' item type from within a row on your questionnaire file.

    More information on the 'Executable' item type can be found here:
    www.empirisoft.com/medialab/help/index.html?queitemtype.htm (under the 'Executable' section).

    If you wanted to prevent the user from being able to control the mouse and keyboard while the video is playing, you could assign a command to a different executable before and after the video that restricts the mouse and keyboard device from being used. With this added on, you would have a fully functional method of playing a video file, in fullscreen, that exits upon completion, and denies the user from altering the state of the application during its run-time.
    Last edited by Trevor Newell; 05-07-2010 at 11:29 PM.

  3. #3
    Join Date
    Mar 2009
    Posts
    401
    [edited from support email]

    We were able to get the VLC player working, but have been unable to get the video to initiate on its own. I see that there are command line operations I can use, but have been unable to get them to work. What specific line should I put the commands on (the ones to initiate the specific video)? I used the file line to access the VLC player, but the commands won't work on either the file line or the parameter line.

  4. #4
    Join Date
    Mar 2009
    Posts
    401
    While editing the item in your questionnaire, what are you putting in the 'File Name' field?

    Here's what I'm inputting:
    Code:
    C:\Program Files\VideoLan\VLC\vlc.exe -vvv "C:\Videos\ExampleVideo.mp4" --fullscreen --play-and-exit

    It would seem that if you enter in the command line arguments within the same field, you'll be able to achieve the desired result.

    I've attached a screenshot to further assist - hopefully it helps.

  5. #5
    Join Date
    Mar 2009
    Posts
    401
    [edited from support email]

    I was able to get it working! Thanks for your help and sending the screenshot - it looks like i had an extra space in the syntax.

  6. #6
    Join Date
    Mar 2009
    Posts
    401
    The following thread can provide insight for more ways to integrate video files into your study:
    www.empirisoft.com/support/showthread.php?t=3442
    Last edited by Trevor Newell; 05-11-2010 at 09:55 AM.

Similar Threads

  1. audio files won't play
    By KristyLDavis in forum DirectRT Older Versions: General Questions
    Replies: 10
    Last Post: 03-17-2010, 08:38 PM
  2. Video files in MediaLab under Windows 7
    By RKallen in forum MediaLab Older Versions: Troubleshooting
    Replies: 1
    Last Post: 03-11-2010, 01:35 PM
  3. Windows Media Player problems
    By mac in forum MediaLab Older Versions: Troubleshooting
    Replies: 18
    Last Post: 11-06-2009, 12:19 AM
  4. Can DirectRT play video clips?
    By jarvis24 in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 09-07-2006, 12:36 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •