ViveSoftware / ViveMediaDecoder

A high performance video decoding Unity plugin for Windows.
http://u3d.as/usf
Other
129 stars 36 forks source link

RTSP communication not fluent #15

Open alco6 opened 5 years ago

alco6 commented 5 years ago

Hello,

I am trying to use the ViveMediaDecoder.
I am able to see the RTSP streaming, however the lag is not constant. When it is playing it is stuck during 5 seconds ( more or less) and after that, everything is reproduced at a high speed. It looks like it is waiting during the buffering time and later everything is being played at a higher speed. Is there a way to solve that? or at least to have a constant lag?

Thanks

kyo8568131 commented 5 years ago

Hi, you could check the config file and modify the buffer size. Thanks.

alco6 commented 5 years ago

Hi, I have just tried several values of the buffer and there is no change... the problem persists. It looks like during the first 3 seconds it is stopped, and in the 3 following seconds the video is played at a double speed, this behavior is being repeated all the time.

There are other factors involved in the config file like USE_TCP or SEEK_ANY, I have been changing them but without any success.

Thanks

kyo8568131 commented 5 years ago

Seems like decode per frame time is longer than play time. Since this plugin decodes with CPU, decoding time might be a problem. You could check the RTSP connection or try other smaller video or reduce bitrate, etc. Thanks.

hwangjw7084 commented 5 years ago

Hello, alco6

I want to use RTSP function, but I can't. because I don't know much about codes in ViveMediaDecoder and Unity. (I'm just beginner) So, Can you tell me how to use that function, even if it doesn't work well?

Thanks.