Playing a video


Author
Message
alix762
alix762
Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)Guru (7.2K reputation)
Group: Forum Members
Posts: 45, Visits: 48
Thank you! I have it working now. Is there any way to adjust the size of the video in inquisit? So as to make it bigger and therefore more visible?

Thanks.
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
The <video> element has a /size attribute, just like any other stimulus element. Specify it as desired.

StarxNtheCity
StarxNtheCity
Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)
Group: Forum Members
Posts: 5, Visits: 19
I am getting the exact same error message as indicated in this thread, but we're getting it EITHER in Windows OR MAC depending on the video format.  Since we want to create an web experiment we need a format that would work both on Windows AND Mac, and in order to address this we have been trying to create an Include element script that would either chose .mov format for Mac and .wmv for windows but it is not working.

This is what we tried to do. Please help us, we are very sad. 

<include>
/ precondition=[computer.platform == "windows"] 
/ file= "buffy1_wmv"
</include>

<trial buffy1_wmv>
/ stimulusframes = [1= buffyvid]
/ timeout = 5000
</trial>

<trial buffy1_mov>
/ stimulusframes = [1= buffyvid]
/ timeout = 5000
</trial>

<video buffyvid_mov>
/ items = ("buffy1.mov")
/ playthrough = true
/ position = (50, 50 )
</video>

<video buffyvid_wmv>
/items = ("buffy1.wmv")
/playthrough = true
/position = (50, 50)
</video> 

<include>
/ precondition=[computer.platform == "mac"] 
/ file="buffy1_mov"
</include>

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
(1) Conditional <include> elements are only available as of Inquisit 4. I am pointing this out because you posted in the Inquisit 3 forum. There are no conditional <include>s in Inquisit 3.

(2) Your /precondition in one of the <include> elements is wrong:

/ precondition=[computer.platform == "windows"]

 ought to read

/ precondition=[computer.platform == "win"]

(3) Beyond (2), the usage of <include> is also wrong. You don't use it to "include" the video file directly. You use it to include a text file containing proper Inquisit syntax that references the correct video file. See this example for proper usage:

https://www.millisecond.com/forums/FindPost9931.aspx

(4) If you want a video format that works for both platforms, encode your videos as MPEG-2.

Edited 9 Years Ago by Dave
StarxNtheCity
StarxNtheCity
Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)
Group: Forum Members
Posts: 5, Visits: 19
Thank you so much for the response !

The script now works perfectly but  the .wmv video format is still not working on windows.
The .mov format works perfectly on Mac instead.
Do you think that this might be due to the fact that I have converted and .mp4 format into a .wmv thorough a Mac platform and maybe with an imporper codec?
 You might need to know that our experiment is an on line experiment also.
Than you so much for helping us with this.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
> [...] the .wmv video format is still not working on windows. [...]
> Do you think that this might be due to the fact that I have converted and .mp4 format into a .wmv thorough a Mac platform and
> maybe with an improper codec?

That's a plausible hypothesis, but without any elaboration re. what exactly "not working on windows" means (i.e. what error messages, etc. are there?) I cannot tell.

StarxNtheCity
StarxNtheCity
Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)Partner Member (829 reputation)
Group: Forum Members
Posts: 5, Visits: 19
First, thank you for all your help thus far.

These are the error messages: 
Inquisit Media Error: Cannot play back the file: the format is not supported. line 74: file win\MediaPlayerControl.cpp
Unable to the load media file 'C:/Users/IPSRuser/AppData/Local/Temp/buffy1.wmv'. Verify the file is of a supported video format.
Unable to the load media file 'C:/Users/IPSRuser/AppData/Local/Temp/buffy1.wmv'. Verify the file is of a supported video format.

Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 12K, Visits: 98K
Thanks for providing the error messages. Your initial guess is likely correct then: This is indicates a codec issue (or the files have been damaged otherwise during the transcoding process). Try re-encoding the files using either a different / lower version of the WMV codec or using a different codec altogether (MPEG2 is a decent choice for compatibility).

GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search