Wmv stuttering

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

player 101.v4p (20.5 kB)

see here

Hi 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.

sunep

Hi 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.

sunep

player101-no_framedelay.v4p (10.5 kB)

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).

ok, in that case just set loop to 0 in the FileStream node. I just assumed that that was what your = after the FileStream node was doing.

the patch seems ok, check the wmv file in another player

@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…

any other ideas?

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

you could also set the presentation interval in the renderer to immediately, but that might introduce tearing.

@sunep: yes, video is 25fps. i allready tried frequency 60, 50 and 25mhz - that has no effect on the stuttering problem.

have you created a PerfMeter(debug) node to see where you bottleneck is? select perfMeter and press F1 to see what colors mean what.

my try:

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.

Some loose thoughts:

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.

Some loose thoughts:

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.

@joreg: mediasubtype-output returns on the videotexture: NONE

x… no text …

NONE??? that’s odd. You really want DXVA with a WMV depends on graphics card though. What g card are you using?

huh, NONE is indeed odd.

still probably is a new DXVA type vvvv just doesn’t recognize. beta>22 will return more useful information than NONE.