UnityPlugin-AVProVideo
UnityPlugin-AVProVideo copied to clipboard
Frame drop and playback delay problems
Updated at 2021-11-20 12:10 JPN [JST] (2021-11-20 03:10 UK [GMT])
- update "Describe the issue"
- add rewind-all videos
- fix typos
Describe the issue
I struggle for problems as followings:
-
Frame drop for a video (at loop timing especially)
-
playback delay for multi videos
Could you tell me how should I do to solve these problems?
Your Setup (please complete the following information):
-
Unity version: 2020.3.21f1
-
AVPro Video version (number and edition (trial/core/ultra/enterprise)): AVPro Video Ultra Edition v2.2.3
-
Operating system version: Windows 10 pro
-
Device model:
- HP Z8G4
- Intel Xeon Gold 6226R
- NVIDIA RTX A4000
- SSD RAID0, Read 12823MB/s, Write 13236.36MB/s
-
Video specs (resolution, frame-rate, codec, file size):
-
https://www.dropbox.com/sh/782pd4h5enrvdwa/AAC6K6J04adxs4-uo-vjQh2da?dl=0
-
hap
- 768x640, 30 fps, Hap Normal, 1min15seconds, 324MB
- 0000 - 2249 frame
ffmpeg -y -r 30 -i inputDir/%04d.dpx -vcodec hap -format hap -r 30 -chunks 64 output.mov
-
h265
- 768x640, 30 fps, h265, 1min15seconds, 19.5MB
- 0000 - 2249 frame
ffmpeg -y -r 30 -i inputDir/%04d.dpx -c:v libx265 -crf 24 -pix_fmt yuv420p -tune zerolatency -r 30 -vtag hvc1 output.mp4
-
To Reproduce
- [NG] Frame drop (hap, Media Foundation, 1 video)
-
Add a MediaPlayer for AVPro in scene
-
Set MediaPlayer settings as followings:
-
Loop = true
-
Hardware Decoding = true
-
Use Low Latency = true
-
Use Stereo Detection = true
-
Use Text Tracks = true
-
Use Hap/NotchLC = true
-
Use Custom MOV Parser = true
-
Parallel Frame Count = 3
-
Preroll Frame Count = 4
-
Use Facebook Audio 360 = true
-
Audio Output = SystemDirect
-
-
Play Scene
-
stop playing at frame 2249 on first playback, drop frame 0000 on second playback (hap_MF_1video_loop_slowmotion.mov.gif) and start playing from frame 0001 automatically

-
- [OK] hap, DirectShow, 1 video
- Add a MediaPlayer for AVPro in scene
- Set MediaPlayer settings as followings:
- Loop = true
- Play Scene
- play smoothly without frame drops
- [NG] hap, DirectShow, 40 videos
- Add a MediaPlayer for AVPro in scene
- Set MediaPlayer settings as followings:
- Loop = true
- Play Scene
- start playing smoothly,
drop frame 2249 and frame on first playback,
1 frame gap among 40 videos at 0000 on second playback and
3 frame gaps among 40 videos at 10 minutes later (01_4frame-gaps.jpg)

- Rewind 40 videos on same timing by code
but rewind those 40 videos gradually and occur 4 frame gaps
(hap_DirectShow_40videos_rewindAllDelay1_slowmotion.mov.gif)

- Stop Scene and Play Scene
- Rewind 40 videos on same timing by code
but rewind those 40 videos gradually and occur 4 frame gaps (hap_DirectShow_40videos_rewindAllDelay2_slowmotion.mov.gif)

- [OK] h265, MediaFoundation, 1 video
- Add a MediaPlayer for AVPro in scene
- Set MediaPlayer settings as followings:
- Loop = true
- Play Scene
- play smoothly without frame drops
- [OK] h265, MediaFoundation, 1 video
- Add a MediaPlayer for AVPro in scene
- Set MediaPlayer settings as followings:
- Loop = true
- Play Scene
- play smoothly without frame drops
- [NG] h265, Media Foundation, 40 videos
- Add a MediaPlayer for AVPro in scene
- Set MediaPlayer settings as followings:
- Loop = true
- Play Scene
- drop frame 0001, 0906 (random?) and frame on first playback, drop frame 0000, 0001 and frame on second playback, 0.5(?) frame gaps among 40 videos at 8 minutes later
- Rewind 40 videos on same timing by code then rewind those 40 videos on same timing and occur (maybe) 0 frame gap
Logs If applicable, add error logs to help explain your problem.
Screenshots If applicable, add screenshots to help explain your problem.
Videos
videos for debug: https://www.dropbox.com/sh/782pd4h5enrvdwa/AAC6K6J04adxs4-uo-vjQh2da?dl=0
Please DO NOT LINK / ATTACH YOUR PROJECT FILES HERE
Instead email the link to us [email protected]
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been automatically closed because it has not had recent activity. If you wish to continue this issue, then please create a new issue as we do not monitor closed issues.