Empirisoft Support

    Welcome to Empirisoft Support
Results 1 to 10 of 10

Thread: randomly choose videos to play within a video

  1. #1
    Join Date
    Dec 2010
    Posts
    20

    randomly choose videos to play within a video

    Hi, I'm trying to set up a stimulus that would be a lot like watching regular TV...including commercial breaks. I have a clip of American Idol that I have edited into 3 sections to allow for 3 commercial breaks (don't worry, our Ps will get plenty of extra credit for being forced to watch American Idol!). I'd like the commercials to be chosen randomly without replacement from two pools of ads I have (target ads and filler ads). Each commerical break would have 3 commercials...2 of which were fillers and one a target ad.

    In other words, Ps would watch part one of the American Idol clip and then see 3 commercials. Two of these would be fillers and one would be a target commercial. Then they'd watch part two of the American Idol clip and 3 more commercials. These would also be 2 fillers and one target, but could not be any of the commercials already viewed. Then part 3 of American Idol followed by the final 3 commercials...also 3 new commercials. So they'd watch 9 commericals in all, 6 of which were fillers and 3 target, and no commercial would be seen more than once.

    Any ideas? Thanks so much for your help!
    Missie

  2. #2
    Join Date
    Feb 2013
    Posts
    1,093
    Hi Missie,

    This study should be very straightforward to do in DirectRT. You should be annoying your participants with American Idol clips in no time.

    The key component is to use the StimLists function in DirectRT; you can find information about all of this in the Input Files > Stim-Stimulus section of the DirectRT manual. You will want to create two .txt files, one for each set of commercials. I attached a quick example, one named filler.txt and one named target.txt for each type of commercial. Just replace each with the name of your actual commercial files, including the file extension (.wmv in this case).

    I've also attached a .csv file called AIcommercials.csv. Look at the stim column. I assume that you will just play the American Idol clips in a set order, so I placed them to play before commercials in trials 1, 5, and 9. To get your desired effect of selecting commercials from each pool at random without replacement, we simply use a $ followed by the name of the StimList without the .txt file extension. For this example, two fillers come before the target. You can arrange that how you want or use the BGR and WGR fields in the .csv file to randomize the placement of the commercials.

    Make sure that you put all your movies in a folder named stim, the StimLists, and the input file in the same experiment folder. Please let me know if you have any other questions and if this is what you were looking for.

    Cheers!
    Attached Files Attached Files
    Jason Reed
    Empirisoft Software Support Specialist

  3. #3
    Join Date
    Dec 2010
    Posts
    20

    I'll try it!

    Thank you; I'll try it! Maybe mine wasn't working because I was trying to fill in pixel info (I read something in the manual about writing (640x480) at the end of the file name) and also I didn't have the ".avi" at the end of the stim name in the stim list.

    I'll revise and try again!

  4. #4
    Join Date
    Dec 2010
    Posts
    20

    I must be doing something wrong

    Hi Jason,

    I'm either cursed or I have a typo or something in my file! I keep trying it, but it keeps freezing my computer. Even control-alt-delete won't work. Would you mind taking a look at the attached to see if you can tell where I went wrong?

    Thank you so much; I really appreciate it!
    Attached Files Attached Files

  5. #5
    Join Date
    Dec 2010
    Posts
    20

    whoops, not everything attached

    huh, I can't see to do anything with computers today
    Attached Files Attached Files

  6. #6
    Join Date
    Feb 2013
    Posts
    1,093
    Missie,

    Does this work in DirectRT without trying to use MediaLab? And what versions of DirectRT and MediaLab are you working with?
    Jason Reed
    Empirisoft Software Support Specialist

  7. #7
    Join Date
    Dec 2010
    Posts
    20

    doesn't work in directRT

    Hi Jason,

    No, it doesn't work straight from DirectRT either My computer at work has two screens. Whenever I try to run it, the left screen stays normal, and the right screen turns black (as if it will run the video soon). But the video never comes. I also can't figure out how to get out of the black screen (control-alt-delete sometimes works after a while, but takes a long time). So I keep shutting the computer off and turning back on. Probably not the best technique

    Did you get a chance to look at the files I sent? One thing I wanted to ask about is that the manual says we need to put in () the size of the screen. Your example didn't do that, so I didn't either. Is that something I should do?

    Thank you for your help! I'm pretty stuck. And I don't want to deprive my Ps of the opportunity to participate in this super fun American Idol study, lol

  8. #8
    Join Date
    Feb 2013
    Posts
    1,093
    Missy,

    Can you please tell me what versions of DirectRT and MediaLab you use? Also, will the computers that you use to run participants use one or two monitors?
    Jason Reed
    Empirisoft Software Support Specialist

  9. #9
    Join Date
    Dec 2010
    Posts
    20

    got it!

    Thanks Jason! I was messing with it today and found that it would work with .wmv, so it must have been the .avi files that were causing the trouble. I didn't expect that since they ran fine on WMP. But, I converted all my videos to .wmv and it works! Thanks for your help; I guess I'll just work with wmv's from now on

  10. #10
    Join Date
    Feb 2013
    Posts
    1,093
    Missy,

    I'm glad that you got it working! Did changing the video files from .avi to .wmv get it to work everywhere, including your two monitor set up? I'd like to know so that we can look into this kind of detail for our own records.
    Jason Reed
    Empirisoft Software Support Specialist

Similar Threads

  1. video being randomly skipped (case 6812)
    By ggcanna in forum MediaLab Older Versions: Troubleshooting
    Replies: 8
    Last Post: 12-30-2014, 02:34 PM
  2. videos play in odd colors
    By jackietimsaskia in forum DirectRT Older Versions: General Questions
    Replies: 0
    Last Post: 11-15-2011, 02:16 PM
  3. Video won't play
    By ljubica in forum DirectRT Older Versions: How Do I...
    Replies: 3
    Last Post: 03-27-2011, 02:50 PM
  4. Videos won't play
    By frogsocks in forum MediaLab Older Versions: Troubleshooting
    Replies: 7
    Last Post: 01-21-2008, 05:19 PM
  5. 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
  •