i have a urgent problem with a video player patch.
it plays a wmv file (8mbps, 1920x1080).
the computer is fast, in windows media player the file runs smooth.
but in vvvv it stutters (audio is running trough thought).
could you help me checking if the settings in the patch are allright?
(with a lower quality avi file (dv resolution) it runs smooth as well)
thanks !!
flori
It might be down to a couple of things I made a patch with the changes that might affect the playback.
first of all, you don’t need to check if the video is at the end of the duration to have it loop, just set the duration to eg. 99999999 , a much larger number than the length of the longest clip you can imagine and set loop to 1.
then you can try to set the VideoTexture Wait For Frame to 0 so you don’t slow down the main loop to wait for each frame of the video clip.
I can of course not test with your video clip so you can try the patch attached here.
It might be down to a couple of things I made a patch with the changes that might affect the playback.
first of all, you don’t need to check if the video is at the end of the duration to have it loop, just set the duration to eg. 99999999 , a much larger number than the length of the longest clip you can imagine and set loop to 1.
then you can try to set the VideoTexture Wait For Frame to 0 so you don’t slow down the main loop to wait for each frame of the video clip.
I can of course not test with your video clip so you can try the patch attached here.
thanks for your quick answers. i’ll try your patch…
first of all, you don’t need to check if the video is at the end >of the duration to have it loop, just set the duration to eg. >99999999 , a much larger number than the length of the longest >clip you can imagine and set loop to 1.
the video isn’t running in a loop. it plays once, stopps at the last frame and holds it until it recieves a bang from a external button (connected with a arduino board).
@viktor2: in windows media player the file runs w/o problems.
@sunep: for some reason i don’t know with your patch video AND audio stutters?!
but then i set “VideoTexture Wait For Frame to 0” in my patch, and that at least made the problem less visible. still some frames come late, but with this settings the jumps are less obvious.
still isn’t perfekt…
hmm, then it might be because your renderer is at 60Hz and the video is running 25, I have sometimes achieved better result by stting the output in the renderer to 50Hz, but not all monitors may be able to run that frequency.
you need to set the refresh rate using the inspector.
my screen can’t go 50Hz so I can’t see if you have set it at a refresh rate like that
remove the Boost and MainLoop nodes. make sure the fullscreen renderer is really at 50hz (check via monitors info option).
now 2 options:
(seems to work mostly with nvidia cards): set the renderers presentation interval to “wait for 2 frames” and set your videotextures waitfor frame to 1 (or try zero)
or:
set the renderers presentation interval to “default” and set your videotextures waitfor frame to 2 (assuming your video runs at 25fps that will match up with the monitors 50hz)
also i’d be interesting to see what the mediasubtype-output returns on the videotexture.
@sunep: “set the presentation interval in the renderer to immediately” - that produced another kind of stuttering, horizontal artifacts = worse then before. i’ll try on with joregs tipps.
Have you already tried to play the video without the audio?
*disconnect the Audio-Out (save&quit&reopen)
*or strip the audio completely from the file
Is it a wmv-file or an avi-file with wmv codec?
Which WMV codec exactly did you use to encode the video?
Which codec is used to decode the Video (can be checked with Graphedit)?
Have you installed any Codec-Packs, e.g. K-Lite?
If so, uninstall it and install only the codec that is really needed.
If the proper codec - let´s say wmv9 - is used to decode the video, and the playback is (still) jerky try another container/codec, like for example an avi with xvid codec.
Have you already tried to play the video without the audio?
*disconnect the Audio-Out (save&quit&reopen)
*or strip the audio completely from the file
Is it a wmv-file or an avi-file with wmv codec?
Which WMV codec exactly did you use to encode the video?
Which codec is used to decode the Video (can be checked with Graphedit)?
Have you installed any Codec-Packs, e.g. K-Lite?
If so, uninstall it and install only the codec that is really needed.
If the proper codec - let´s say wmv9 - is used to decode the video, and the playback is (still) jerky try another container/codec, like for example an avi with xvid codec.