Last frame of Movie/Video play (.mp4) Window 10 Inquisit 5.0.14.0 (Build 4291)


Author
Message
wuaham
wuaham
Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)
Group: Forum Members
Posts: 38, Visits: 173
Dave - 1/17/2020
wuaham - 1/17/2020
Hi,
I am playing a movie (.mp4, just 2sec long on the upper half of the screen) and displaying two stimuli on the lower half of the screen. When the movie paying finish, participant can click on any of the two stimuli. 
The problem is when the movie is played fully then a black screen appear (I verified using movie editing software that my movie does not have any blank frame nor sound at the end).
I tried to get rid of the black screen by superimposing an image replacing the black screen but no success. Any idea?
Kind regards
Ahamed  

That's the normal behavior. If you want to get rid of the video window or replace it with something else (e.g. still image of its last frame), the best option is to split things into two consecutive trials -- one displaying the video, one collecting the response after the video --  like so:

<block myblock>
/ trials = [1-4 = showvideo]
</block>

<values>
/ videoitem = ""
</values>

<trial showvideo>
/ ontrialend = [
    values.videoitem = video.myvideo.currentitem;
]
/ stimulusframes = [1=myvideo, a, b]
/ trialduration = 0
/ validresponse = (0)
/ branch = [
    trial.collectresponse
]
/ recorddata = false
</trial>

<trial collectresponse>
/ stimulusframes = [1=clearscreen, a, b]
/ validresponse = (a, b)
/ inputdevice = mouse
</trial>

<video myvideo>
/ items = videoitems
/ position = (50%, 25%)
/ erase = false
/ playthrough = true
</video>

<item videoitems>
/ 1 = "01.mp4"
/ 2 = "02.mp4"
/ 3 = "03.mp4"
/ 4 = "04.mp4"
</item>

<text a>
/ items = ("A")
/ position = (30%, 75%)
/ erase = false
</text>

<text b>
/ items = ("B")
/ position = (70%, 75%)
/ erase = false
</text>

<data>
/ columns = (date time subject group blocknum blockcode trialnum trialcode values.videoitem response latency correct)
/ separatefiles = true
</data>

I will implement this and thank you for your excellent idea!
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: 13K, Visits: 107K
wuaham - 1/17/2020
Hi,
I am playing a movie (.mp4, just 2sec long on the upper half of the screen) and displaying two stimuli on the lower half of the screen. When the movie paying finish, participant can click on any of the two stimuli. 
The problem is when the movie is played fully then a black screen appear (I verified using movie editing software that my movie does not have any blank frame nor sound at the end).
I tried to get rid of the black screen by superimposing an image replacing the black screen but no success. Any idea?
Kind regards
Ahamed  

That's the normal behavior. If you want to get rid of the video window or replace it with something else (e.g. still image of its last frame), the best option is to split things into two consecutive trials -- one displaying the video, one collecting the response after the video --  like so:

<block myblock>
/ trials = [1-4 = showvideo]
</block>

<values>
/ videoitem = ""
</values>

<trial showvideo>
/ ontrialend = [
    values.videoitem = video.myvideo.currentitem;
]
/ stimulusframes = [1=myvideo, a, b]
/ trialduration = 0
/ validresponse = (0)
/ branch = [
    trial.collectresponse
]
/ recorddata = false
</trial>

<trial collectresponse>
/ stimulusframes = [1=clearscreen, a, b]
/ validresponse = (a, b)
/ inputdevice = mouse
</trial>

<video myvideo>
/ items = videoitems
/ position = (50%, 25%)
/ erase = false
/ playthrough = true
</video>

<item videoitems>
/ 1 = "01.mp4"
/ 2 = "02.mp4"
/ 3 = "03.mp4"
/ 4 = "04.mp4"
</item>

<text a>
/ items = ("A")
/ position = (30%, 75%)
/ erase = false
</text>

<text b>
/ items = ("B")
/ position = (70%, 75%)
/ erase = false
</text>

<data>
/ columns = (date time subject group blocknum blockcode trialnum trialcode values.videoitem response latency correct)
/ separatefiles = true
</data>

wuaham
wuaham
Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)Partner Member (528 reputation)
Group: Forum Members
Posts: 38, Visits: 173
Hi,
I am playing a movie (.mp4, just 2sec long on the upper half of the screen) and displaying two stimuli on the lower half of the screen. When the movie paying finish, participant can click on any of the two stimuli. 
The problem is when the movie is played fully then a black screen appear (I verified using movie editing software that my movie does not have any blank frame nor sound at the end).
I tried to get rid of the black screen by superimposing an image replacing the black screen but no success. Any idea?
Kind regards
Ahamed  
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search