I am using a Basler ace 2 1920-160uc camera, after recording 30s duration video at 52fps, it seems there is a random short time pause, but checking the file frame by frame, there isn't a frame drop obviously.
Hi,
Please add more details: which version of Kinovea, which recording mode are you using (Preferences > Capture > Recording), whether you use record uncompressed video or not, which stream format in camera properties, whether you use delay in the viewer, what is the "Load" percentage in the info bar above the capture screen?
Kinovea version: 0.9.1
recording mode: uncompressed video, mkv filetype, display framerate 60 ( 45 in 0.9.3 on another PC, the same problem)
the camera properties: RGB 8, a lower fps than 160fps(a Basler special format)
delay viewer: setup about 3-5 or 20 seconds delay, but the delay looks like pause either, so I record the video for playback, "records real time frames"
the load percentage is 0%, sometimes up to about 10-30% when using a higher fps.
Thanks. And the drop counter in the info bar stays at 0 or it increases?
To summarize, the problem is that the display for the live camera (delayed) freezes for a moment, although the corresponding recorded file doesn't show a jump between frames. Is this correct?
One thing that can cause lower performance is when the target folder for recording files is on the same drive as Windows, as the system is regularly writing into its own files sometimes it competes for drive access. When I do this on my machine the live image freezes every 10 seconds or so and the drop counter increases. As soon as I move the target to another drive it works. (Both drives are SSD).
Thanks Joan.
The live camera (delayed) freezes in a short interval, maybe 2-3 seconds, even there isn't a recording action . And when I replay the corresponding recorded files( copyed to another drive on another PC), the freeze still exists.
The hardware is i3 CPU and 16g memory, 120g ssd + 1t disk, no partitions, using the default folder settings , I use a dell optiplex 3070 as the dedicated feedback, Should I check the memory information?
So in the final recording there is a period of time where the time or frame counter advances but the image stays the same? Interesting. In that case that would mean the frames were duplicated at the source and the freezing would already exist either at the Pylon library level or the camera…
Could you send me a log file at joan at kinovea dot org? There is timing info while recording that could be interesting to analyze to see if there is a spike visible.
Other things to check:
- What version of Pylon have you installed, the module is based on Pylon 6.0.
- You can try to add a camera simulator in Kinovea by doing Manual connection in the camera explorer panel and changing the camera type. Then you can change the image size and framerate to match the real camera and see if the same problem occurs.
- It's also possible to add a camera emulator from Basler. In the Pylon viewer you can go to menu Help > Get help, and then to Software > pylon Camera software suite > Camera emulation and then under "Enabling Camera Emulation in the pylon API" they describe how to add camera emulators. Basically you need to add an environment variable in Windows named "PYLON_CAMEMU" with a value corresponding to how many emulators you want. When you do that they will appear in Kinovea as normal cameras and you can change the settings. The framerate probably won't really go as high as the real camera though.
the freeze duration is very short, but it can be notified by eyes,
I use pylon 6.0.1, or 6.1.1, I'm not sure whether the ace 2 camera can be supported under 6.0.0,
I'll send you the log later and try it again.
Thanks very much.
Hi Joan, I've tested some camera settings by using the simulator, record uncompressed video, the "signal" won't exceed 40fps when I set the camera at 60fps or 160 fps.
I am using an i5-9400f cpu@2.9g Hz, single-channel 16gb memory. kinovea 0.9.1 exe version. I will test the real camera and Optiplex 3070 tomorrow, Does the PC hardware result in the video freeze?
Hi,
I'm glad to see that others are also using Basler-cameras. So far, my experience is very well with them. In general, the interface is very stable.
The problem definitively is the bandwidth, it is too high and over the limit. I would suggest, that using your resolution in color, about 40fps would be the maximum any system can transfer.
My camera is a MONO 1,4MB (1440x1080 pixel, 220fps, Basler ace acA1440-220uc). Trying to use the maximal setting with this camera, the limit already is reached.
Recommondation:
- First check your hardware configuration using the BANDWIDTH-Manager in the pylon interface (under Tools). Look on the maximal bandwidth your system can deliver.
Play with the parameters of the camera and check out, what will be the maximal setting you could use on YOUR actual system. Then, go down a little bit to take the conversion inside Kinovea into account.
- Start using MONO8, Resolution 800x600, 100fps. The bandwidth will be about 100MB/s and should run smoothly.
Then go up with the resolution and the fps and see, what the Pylon-program will show. To my experience, the bandwidth should be below 300MB/s to work stable (having a dedicated USB3.0 interface).
If you use color (PixelFormat RGB8) acquisition, the transfer-rate will increase by the factor of 3 !
- Try out BINNING, if available in the color version. It reduces the resolution by 2 and gives you a much brighter image at the same lighting.
- regarding hardware: it is important to have at least one dedicated USB3.0 port available where no other devices are connected. I'm using a separate PCI-card with 2 INDEPENDENT USB 3.1 V2 ports and the USB 3.1 -port of the motherboard.
- If you have only 1 camera connected, your hardware should be sufficient. Check it out looking at the CPU-Load. Open Task-Manager, click on "more details" and you can see the amount of CPU-load of all your tasks.
Thanks very much, Reiner, it's very helpful.
Hi?After lowe the bandwidth between 200m/s ~ 300m/s, there is still pause in the Playback window.
I can find the pause time is about 10ms in the log file.
I will try to record the file in a separated disk, thanks.
Yeah, in one of the logs there is for example this:
Frame #100. Conversion/Encoding: ~1.010 ms. Write: ~1.890 ms.
Frame #200. Conversion/Encoding: ~0.790 ms. Write: ~1.750 ms.
Frame #300. Conversion/Encoding: ~1.480 ms. Write: ~1.680 ms.
Frame #400. Conversion/Encoding: ~1.580 ms. Write: ~1.960 ms.
Frame #500. Conversion/Encoding: ~0.850 ms. Write: ~1.590 ms.
Frame #600. Conversion/Encoding: ~1.430 ms. Write: ~39.580 ms.
Frame #700. Conversion/Encoding: ~0.830 ms. Write: ~1.730 ms.
Frame #800. Conversion/Encoding: ~0.920 ms. Write: ~1.730 ms.
Frame #900. Conversion/Encoding: ~0.830 ms. Write: ~85.980 ms.
Frame #1000. Conversion/Encoding: ~1.030 ms. Write: ~7.390 ms.
The last number is the average write time in milliseconds over 100 frames. But the most likely where it's 39 or 85 is that there is a single frame that was blocked for several seconds for some reason. I've seen the same pattern when I put the target directory on the system drive.
Joan is absolutely right. Windows uses the system-drive to do some internal stuff at given time, mostly during video recoding
In the new Kinovea version there is a recording mode "retroactive". As far as I understand, recording first goes to the memory and thereafter to the disk.
Using a dedicated, fast SSD for video recording at such high speed will help. If the motherboard supports it, a NVMe M.2 drive works best. Writing speeds of SSD-harddisks depending on the available interface:
SATA (max 500MB/s) and PCIe 2.0 (>800MB/s), M.2 (1000-2000 MB/s)
I'm actually using i.e. a 1000x1000 MONO-video at 200fps, uncompressed MKV, 2,5 seconds: 700MB file size !
So using color video recording at high speed really is a challenge for your system.
The pause still exists.
I've installed a separated SSD disk on the OptiPlex 3070, a old intel 120G ssd SATA disk that I've used for about 6 years, I don't know if the used conditions will affect the performance.
1920x1200@30fps, RGB, bandwidth about 260m/s
check this log, the recording time seems right ?
87 - INFO - [Main] - Software - --------------------------------------------------
97 - INFO - [Main] - Software - 2020-07-13 00:22:51
99 - INFO - [Main] - Software - Kinovea 0.9.1, x64.
99 - INFO - [Main] - Software - Microsoft Windows NT 6.2.9200.0
99 - INFO - [Main] - Software - .NET Framework 4.0.30319.42000
99 - INFO - [Main] - Software - --------------------------------------------------
130 - DEBUG - [Main] - PreferencesManager - Importing Preferences.xml
164 - DEBUG - [Main] - Program - Application level initialisations.
166 - DEBUG - [Main] - Program - Showing SplashScreen.
626 - DEBUG - [Main] - RootKernel - Loading video readers.
628 - INFO - [Main] - VideoTypeManager - Registering extensions for VideoReaderBitmap : .jpg; .jpeg; .png; .bmp
628 - INFO - [Main] - VideoTypeManager - Registering extensions for VideoReaderFFMpeg : .3gp; .asf; .avi; .dv; .flv; .f4v; .m1v; .m2p; .m2t; .m2ts; .mts; .m2v; .m4v; .ts; .ts1; .ts2; .avr; .mkv; .mod; .mov; .moov; .mpg; .mpeg; .tod; .mxf; .mp4; .mpv; .ogg; .ogm; .ogv; .qt; .rm; .swf; .vob; .webm; .wmv; .y4m; *
628 - INFO - [Main] - VideoTypeManager - Registering extensions for VideoReaderGIF : .gif
628 - INFO - [Main] - VideoTypeManager - Registering extensions for VideoReaderSVG : .svg
628 - INFO - [Main] - VideoTypeManager - Registering extensions for VideoReaderSynthetic : .ksv
628 - DEBUG - [Main] - RootKernel - Loading camera managers.
783 - INFO - [Main] - CameraTypeManager - Initialized Basler camera manager.
785 - INFO - [Main] - CameraTypeManager - Initialized DirectShow camera manager.
785 - INFO - [Main] - CameraTypeManager - Initialized Camera simulator camera manager.
785 - INFO - [Main] - CameraTypeManager - Initialized IP Camera camera manager.
860 - DEBUG - [Main] - CameraManagerIDS - IDS uEye Camera subsystem not available.
860 - INFO - [Main] - CameraTypeManager - IDS uEye camera manager failed sanity check.
860 - DEBUG - [Main] - RootKernel - Loading tools.
1038 - DEBUG - [Main] - RootKernel - Building the modules tree.
1237 - DEBUG - [Main] - FileBrowserKernel - Module Construction: File browser.
1239 - DEBUG - [Main] - UpdaterKernel - Module Construction: Updater.
1281 - DEBUG - [Main] - ScreenManagerKernel - Module Construction: ScreenManager.
1295 - DEBUG - [Main] - ThumbnailViewerFiles - Constructing ThumbListView
1304 - DEBUG - [Main] - ThumbnailViewerFiles - Constructing ThumbListView
1319 - DEBUG - [Main] - ScreenManagerUserInterface - Constructing ScreenManagerUserInterface.
1397 - DEBUG - [Main] - RootKernel - Modules tree built in 356 ms.
1397 - DEBUG - [Main] - KinoveaMainWindow - Creating main UI window.
1407 - DEBUG - [Main] - RootKernel - Plug sub modules at UI extension points (Menus, Toolbars, Statusbar, Windows).
1423 - DEBUG - [Main] - LanguageManager - Using new Serbian culture codes. (i.e: sr-Cyrl-RS).
1560 - DEBUG - [Main] - RootKernel - Register global services offered at Root level.
1560 - DEBUG - [Main] - RootKernel - Setting current ui culture.
1560 - DEBUG - [Main] - RootKernel - RefreshUICulture - Reload localized strings for the whole tree.
1590 - DEBUG - [Main] - RootKernel - RefreshUICulture - Whole tree culture reloaded.
1590 - DEBUG - [Main] - Program - Closing splash screen.
1620 - DEBUG - [Main] - Program - Launching.
1622 - DEBUG - [Main] - RootKernel - Calling Application.Run() to boot up the UI.
1689 - DEBUG - [Main] - ScreenManagerUserInterface - In ScreenManager OnLoad
1711 - DEBUG - [Main] - PreferencesManager - Exporting Preferences.xml
1773 - DEBUG - [Main] - FileBrowserUserInterface - Application is idle in FileBrowserUserInterface.
3393 - ERROR - [Main] - CameraManagerBasler - Requested value 'raw' was not found.
3691 - DEBUG - [Basler a2A1920-160ucBAS (40045638) thumbnailer] - SnapshotRetriever - Starting Basler a2A1920-160ucBAS (40045638) for thumbnail.
4922 - DEBUG - [Main] - CaptureScreen - Constructing a CaptureScreen.
5043 - DEBUG - [Main] - AutoSaver - Autosave cleared. - 1394258560
5043 - DEBUG - [Main] - Metadata - Metadata content hash reset:1394258560.
5043 - DEBUG - [Main] - Metadata - Constructing new Metadata object.
5350 - DEBUG - [Main] - Delayer - Freeing 12 frames.
5354 - DEBUG - [Main] - Delayer - Freed delay buffer: 5 ms. Total: 0 frames.
5354 - DEBUG - [Main] - Delayer - Allocating 1234 frames.
5400 - DEBUG - [Main] - Delayer - Allocated delay buffer: 44 ms. Total: 1234 frames.
5406 - DEBUG - [Main] - FramePipeline - Starting frame pipeline.
5408 - DEBUG - [Main] - FramePipeline - Ring buffer allocated.
5408 - DEBUG - [Main] - FramePipeline - Pipeline connected to producer and consumers.
5412 - DEBUG - [Main] - FrameGrabber - Starting device Basler a2A1920-160ucBAS (40045638), \\?\usb#vid_2676&pid_ba05&mi_00#6&221f4934&0&0000#{79bfeeca-947f-11e1-bc58-001b2163ef96}
5414 - DEBUG - [Main] - CaptureScreen - --------------------------------------------------
5414 - DEBUG - [Main] - CaptureScreen - Connected to camera.
5414 - DEBUG - [Main] - CaptureScreen - Image: RGB32, 1920x1200px, top-down: True.
5414 - DEBUG - [Main] - CaptureScreen - Nominal camera framerate: 29.999 fps, Monitor framerate: 59 fps, Custom display framerate: 30 fps, Final display framerate: 29.999 fps.
5414 - DEBUG - [Main] - CaptureScreen - Recording mode: Camera, Compositor mode: Basic.
5414 - DEBUG - [Main] - CaptureScreen - --------------------------------------------------
55458 - DEBUG - [Main] - PreferencesManager - Exporting Preferences.xml
55477 - DEBUG - [Main] - FramePipeline - Pipeline disconnected from producer and consumers.
55485 - DEBUG - [Main] - FramePipeline - Ring buffer torn down.
55485 - DEBUG - [Main] - FrameGrabber - Stopping device Basler a2A1920-160ucBAS (40045638)
55503 - DEBUG - [Main] - FrameGrabber - Stopping device Basler a2A1920-160ucBAS (40045638)
55748 - DEBUG - [Main] - FramePipeline - Starting frame pipeline.
55750 - DEBUG - [Main] - FramePipeline - Ring buffer allocated.
55750 - DEBUG - [Main] - FramePipeline - Pipeline connected to producer and consumers.
55754 - DEBUG - [Main] - FrameGrabber - Starting device Basler a2A1920-160ucBAS (40045638), \\?\usb#vid_2676&pid_ba05&mi_00#6&221f4934&0&0000#{79bfeeca-947f-11e1-bc58-001b2163ef96}
55754 - DEBUG - [Main] - CaptureScreen - --------------------------------------------------
55754 - DEBUG - [Main] - CaptureScreen - Connected to camera.
55754 - DEBUG - [Main] - CaptureScreen - Image: RGB32, 1920x1200px, top-down: True.
55754 - DEBUG - [Main] - CaptureScreen - Nominal camera framerate: 29.999 fps, Monitor framerate: 59 fps, Custom display framerate: 30 fps, Final display framerate: 29.999 fps.
55754 - DEBUG - [Main] - CaptureScreen - Recording mode: Camera, Compositor mode: Basic.
55754 - DEBUG - [Main] - CaptureScreen - --------------------------------------------------
71934 - DEBUG - [Main] - CaptureScreen - --------------------------------------------------
71934 - DEBUG - [Main] - CaptureScreen - Starting recording. Recording mode: Camera, Compression: False. Image size: 1920x1200 px.
71934 - DEBUG - [Main] - CaptureScreen - Nominal framerate: 29.999 fps, Received framerate: 30 fps, Display framerate: 30.303 fps.
71936 - DEBUG - [Main] - ConsumerRealtime - Frame budget for writer [966f]: 33.334 ms.
71940 - DEBUG - [Main] - MJPEGWriter - Setting up the encoder.
75230 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #100. Conversion/Encoding: ~6.060 ms. Write: ~3.650 ms.
78563 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #200. Conversion/Encoding: ~6.500 ms. Write: ~2.000 ms.
81894 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #300. Conversion/Encoding: ~6.460 ms. Write: ~3.750 ms.
85225 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #400. Conversion/Encoding: ~5.990 ms. Write: ~2.340 ms.
88731 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #500. Conversion/Encoding: ~6.300 ms. Write: ~5.410 ms.
91926 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Frame #600. Conversion/Encoding: ~6.050 ms. Write: ~5.420 ms.
95201 - DEBUG - [Main] - CaptureScreen - Stopping recording.
95201 - WARN - [Main] - CaptureScreen - Dropped frames: 1.
95227 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Closing the saving context.
95231 - DEBUG - [Main] - PreferencesManager - Exporting Preferences.xml
95642 - DEBUG - [ConsumerRealtime-966f] - MJPEGWriter - Saving video completed.
112468 - DEBUG - [Main] - PlayerScreen - Constructing a PlayerScreen.
112482 - DEBUG - [Main] - PlayerScreenUserInterface - Constructing the PlayerScreen user interface.
112484 - DEBUG - [Main] - AutoSaver - Autosave cleared. - 1394258560
112484 - DEBUG - [Main] - Metadata - Metadata content hash reset:1394258560.
112484 - DEBUG - [Main] - Metadata - Constructing new Metadata object.
112590 - DEBUG - [Main] - Delayer - Freeing 621 frames.
113059 - DEBUG - [Main] - Delayer - Freed delay buffer: 467 ms. Total: 613 frames.
113059 - DEBUG - [Main] - Metadata - Dirty:False, reference hash:1394258560, current:1394258560.
113061 - DEBUG - [Main] - LoaderVideo - Loading video 20200713-002403.mkv.
113101 - DEBUG - [Main] - VideoReaderFFMpeg - Average Fps estimation method: libav.
113101 - DEBUG - [Main] - VideoReaderFFMpeg - Ticks per frame: 1
113101 - DEBUG - [Main] - VideoReaderFFMpeg - Display Aspect Ratio type: Square Pixels
113101 - DEBUG - [Main] - VideoReaderFFMpeg - Image aspect ratio: Auto
113101 - DEBUG - [Main] - VideoReaderFFMpeg - Image size: Original:{Width=1920, Height=1200}, AspectRatioSize:{Width=1920, Height=1200}, ReferenceSize:{Width=1920, Height=1200}.
113103 - DEBUG - [Main] - VideoReaderFFMpeg - Switching decoding mode. NotInitialized -> OnDemand
113105 - DEBUG - [Main] - VideoReaderFFMpeg - ---------------------------------------------------
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [File] - Filename : 20200713-002403.mkv
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Name: matroska,webm (Matroska / WebM)
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Number of streams: 1
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Stream] #0, Type : AVMEDIA_TYPE_VIDEO, 0
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Duration (s): 23.3
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Bit rate: 829450978
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Stream] - Duration (frames): Unavailable.
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Stream] - PTS wrap bits: 64
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Stream] - TimeBase: 1000:1
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Stream] - Average timestamps per seconds: 1000
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Start time (microseconds): 0
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Container] - Start timestamp: 0 (0)
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - Name: , id:14
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - TimeBase: 1000:1
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - Bit rate: 0
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Duration in timestamps: 23300
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Duration in seconds (computed): 23.3
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Average Fps: 29.999
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Average Frame Interval (ms): 33.3344444814827
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Average Timestamps per frame: 33
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - Has B Frames: 0
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - Width (pixels): 1920
113105 - DEBUG - [Main] - VideoReaderFFMpeg - [Codec] - Height (pixels): 1200
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Pixel Aspect Ratio: 1
113105 - DEBUG - [Main] - VideoReaderFFMpeg - Image rotation: Rotate0
113105 - DEBUG - [Main] - VideoReaderFFMpeg - ---------------------------------------------------
113109 - DEBUG - [Main] - PlayerScreenUserInterface - Post load process.
113129 - DEBUG - [Main] - PlayerScreenUserInterface - First frame loaded.
113141 - DEBUG - [Main] - AutoSaver - Autosave cleared. - -1718615761
113141 - DEBUG - [Main] - Metadata - Metadata content hash reset:-1718615761.
113141 - DEBUG - [Main] - FrameServerPlayer - Setup metadata.
113163 - DEBUG - [Main] - AutoSaver - Autosave cleared. - -1718615761
113163 - DEBUG - [Main] - Metadata - Metadata content hash reset:-1718615761.
113163 - DEBUG - [Main] - AutoSaver - Autosave cleared. - -1718615761
113163 - DEBUG - [Main] - PlayerScreenUserInterface - End of post load process, waiting for idle.
113462 - DEBUG - [Main] - PreferencesManager - Exporting Preferences.xml
113579 - DEBUG - [Main] - PlayerScreenUserInterface - Post load idle event.
113579 - DEBUG - [Main] - VideoReaderFFMpeg - Switching decoding mode. OnDemand -> PreBuffering
113583 - DEBUG - [Main] - VideoReaderFFMpeg - Starting prebuffering thread.
113583 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread started.
113687 - DEBUG - [Main] - VideoReaderFFMpeg - Update working zone request. [0 --> 23267] to [0 --> 23267]. Force reload:True
113689 - DEBUG - [Main] - VideoReaderFFMpeg - Working zone update. Current:[0 --> 23267], Asked:[0 --> 23267]
113689 - DEBUG - [Main] - VideoReaderFFMpeg - New working zone does not fit in memory.
113693 - DEBUG - [Main] - VideoReaderFFMpeg - Changing decoding size from {Width=1920, Height=1200} to {Width=732, Height=457}
113693 - DEBUG - [Main] - VideoReaderFFMpeg - Stopping prebuffering thread.
113693 - DEBUG - [Main] - PreBuffer - Unblocking prebuffering thread and making room for a non blocking addition.
113701 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread, cancellation detected.
113701 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Exiting PreBuffering thread.
113709 - DEBUG - [Main] - VideoReaderFFMpeg - Starting prebuffering thread.
113711 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread started.
113713 - DEBUG - [Main] - VideoReaderFFMpeg - Stopping prebuffering thread.
113713 - DEBUG - [Main] - PreBuffer - Unblocking prebuffering thread and making room for a non blocking addition.
113719 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread, cancellation detected.
113719 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Exiting PreBuffering thread.
113721 - DEBUG - [Main] - VideoReaderFFMpeg - Out of segment jump, clearing cache. Asked 0 in [333 --> 333].
113729 - DEBUG - [Main] - VideoReaderFFMpeg - Starting prebuffering thread.
113729 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread started.
117514 - DEBUG - [Main] - FramePipeline - Pipeline disconnected from producer and consumers.
117518 - DEBUG - [Main] - FramePipeline - Ring buffer torn down.
117518 - DEBUG - [Main] - FrameGrabber - Stopping device Basler a2A1920-160ucBAS (40045638)
117526 - DEBUG - [Main] - FrameGrabber - Stopping device Basler a2A1920-160ucBAS (40045638)
117530 - DEBUG - [Main] - Delayer - Freeing 613 frames.
118070 - DEBUG - [Main] - Delayer - Freed delay buffer: 539 ms. Total: 0 frames.
118084 - DEBUG - [Main] - VideoReaderFFMpeg - Changing decoding size from {Width=732, Height=457} to {Width=736, Height=460}
118084 - DEBUG - [Main] - VideoReaderFFMpeg - Stopping prebuffering thread.
118084 - DEBUG - [Main] - PreBuffer - Unblocking prebuffering thread and making room for a non blocking addition.
118084 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread, cancellation detected.
118084 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Exiting PreBuffering thread.
118106 - ERROR - [Main] - PlayerScreenUserInterface - Error while painting image.
118122 - DEBUG - [Main] - VideoReaderFFMpeg - Starting prebuffering thread.
118122 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread started.
118130 - DEBUG - [Main] - VideoReaderFFMpeg - Changing decoding size from {Width=736, Height=460} to {Width=1300, Height=813}
118130 - DEBUG - [Main] - VideoReaderFFMpeg - Stopping prebuffering thread.
118130 - DEBUG - [Main] - PreBuffer - Unblocking prebuffering thread and making room for a non blocking addition.
118132 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread, cancellation detected.
118132 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Exiting PreBuffering thread.
118142 - DEBUG - [Main] - VideoReaderFFMpeg - Starting prebuffering thread.
118142 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread started.
142274 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Average prebuffering loop time: 10.054ms. (Budget: 33.334ms).
142834 - DEBUG - [Main] - PlayerScreenUserInterface - Playback paused. Avg frame time: 10.136 ms. Drop ratio: 0.00
159826 - DEBUG - [Main] - Metadata - Dirty:False, reference hash:-1718615761, current:-1718615761.
159828 - DEBUG - [Main] - PlayerScreenUserInterface - Playback paused. Avg frame time: 9.923 ms. Drop ratio: 0.00
159830 - DEBUG - [Main] - VideoReaderFFMpeg - Switching decoding mode. PreBuffering -> NotInitialized
159830 - DEBUG - [Main] - VideoReaderFFMpeg - Stopping prebuffering thread.
159830 - DEBUG - [Main] - PreBuffer - Unblocking prebuffering thread and making room for a non blocking addition.
159830 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - PreBuffering thread, cancellation detected.
159830 - DEBUG - [PreBuffering] - VideoReaderFFMpeg - Exiting PreBuffering thread.
159852 - DEBUG - [Main] - PlayerScreenUserInterface - Reset screen to empty state.
159852 - DEBUG - [Main] - Metadata - Metadata Reset.
159860 - DEBUG - [Main] - AutoSaver - Autosave cleared. - 1394258560
159860 - DEBUG - [Main] - Metadata - Metadata content hash reset:1394258560.
161098 - DEBUG - [Basler a2A1920-160ucBAS (40045638) thumbnailer] - SnapshotRetriever - Starting Basler a2A1920-160ucBAS (40045638) for thumbnail.
163482 - DEBUG - [Main] - RootKernel - Root is closing. Call close on all sub modules.
163482 - DEBUG - [Main] - PreferencesManager - Exporting Preferences.xml
I have tested multiple settings, the list below is some finds:
test two desktops, one is I5-9400F with 16G ram, recording videos on the same SSD disk, the other is I3 9100T with 16G ram, the system and Kinova are on the disk1 that is SATA SSD, recording videos on the disk0 that is M.2 SSD.
When I use Kinovea version above 0.8.15, the playback always has a pause, the duration is 9ms to 20ms, with a compressed or uncompressed file, tested a Basler 1920*1200@30fps camera and a 1920*1080@30fps kinectDK camera(bandwidth about 100m/s if I remember rightly).
I changed the camera to mono, the pause still exists when playback.
When I play the recorded file that is .avi format using window default player, there isn't a pause.
when I play the video file that is recorded from 0.9.1 using Kinovea 0.8.15, it seems less smooth but I can't see a pause.