Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 5 of 5

Thread: record time it took to press a key during video file presentation?

  1. #1

    record time it took to press a key during video file presentation?

    I'm creating a task in which the participant need to stop the video file presented to him whenever he decides to.
    Is there a way I can record the exact time it took him to press the key after the video started? (its a short video of 10 seconds, so it needs to be very accurate).

    thanks in advance.

    Maayan.

  2. #2
    Join Date
    Feb 2011
    Posts
    26

    Video Stim & RT

    Maayan,

    A video stimulus presented as a reaction time item (i.e., "rt:" in the time column) will record very precisely the amount of time that has transpired from the beginning of the stimulus, to the time the participant makes the specified keyboard response. At that point, DirectRT will stop the video and move on.

    Am I misunderstanding what you're trying to do, or does that answer your question?

  3. #3
    Join Date
    Jan 2013
    Posts
    34

    Record time taken to stop a video clip

    Quote Originally Posted by Maayan Nagar View Post
    I'm creating a task in which the participant need to stop the video file presented to him whenever he decides to.
    Is there a way I can record the exact time it took him to press the key after the video started? (its a short video of 10 seconds, so it needs to be very accurate).

    thanks in advance.

    Maayan.
    hi Maayan. What you aim to do is possible, and not much syntax. For example, attached I made a very basic 3-line DirectRT experiment with my own video clip, "vidtest.csv".

    Under the stim column, the video file needs to begin with an underscore,
    "_yyy.pin.avi"

    However the actual file name itself does not include the underscore--in my stim folder it is simply called "yyy-pin.avi".


    Next, the video stim needs to include the desired resolution, in this case, "(640x480)" --the parentheses are needed.

    Finally, in your experiment folder where you keep the DirectRT experiment file, such as vidtest.csv, for higher color resolution than 16-bit, make a new text file called "colour.txt" , in which you specify 24 or 32-bit, for color resolution.

    More details on such instructions are in the DirectRT manual under "Video / Movie / Animation"

    The reaction time for how long it takes a given participant to stop the video will be in the Data folder, in each participant's data file under the column RT.
    Attached Files Attached Files

  4. #4
    Join Date
    Sep 2013
    Posts
    1

    Movie not appearing

    I copied this syntax and created a colour.txt file, but I can't get my movie to play. It works in Windows Media Player.

    I'm new to DirectRT. I think the problem might be that the software cannot locate my video file. I couldn't find anything in the manual or on the forum that explicitly states how to save files so that the input file can locate and use them (there are references to stim files, but where these are located in relation to the .csv file I'm not sure).

    Help would be appreciated!
    Sarah

  5. #5
    Join Date
    Feb 2013
    Posts
    1,094
    Hi Sarah,

    From the Input Files > Stim - Stimulus section of the DirectRT manual:

    To define a video or animation in your DirectRT session as a stimulus:
    1.Copy the media file to your stim folder (recommended but not necessary)
    2.Enter the name of the media file in a "Stim" cell
    3.Use an underscore "_" to tell DirectRT it's a movie/animation.
    4.Define the size of your video window in parentheses after the file name, e.g., (640x480). DirectRT will play the movie at a size of 640 pixels wide by 480 pixels high. You need to specify the movie size explicitly.
    Jason Reed
    Empirisoft Software Support Specialist

Similar Threads

  1. Video and Record data simultaneously
    By applekj in forum MediaLab Older Versions: How Do I...
    Replies: 3
    Last Post: 05-30-2010, 08:51 PM
  2. Presentation time limit in addition to subsequent KeyPress time
    By Mariazinha in forum DirectRT Older Versions: General Questions
    Replies: 2
    Last Post: 01-11-2010, 04:07 AM
  3. Make video stop with a key press, record RT?
    By jwayand in forum MediaLab Older Versions: General Questions
    Replies: 2
    Last Post: 11-06-2009, 12:21 AM
  4. proceeding to next trial after some time or key press
    By Jonathan Berant in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 11-07-2007, 11:40 AM
  5. How do you either end a trial after a specified time or key press?
    By ack in forum DirectRT Older Versions: How Do I...
    Replies: 1
    Last Post: 08-14-2007, 12:57 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
  •