unosquare / ffmediaelement

FFME: The Advanced WPF MediaElement (based on FFmpeg)
https://unosquare.github.io/ffmediaelement/
Other
1.17k stars 240 forks source link

Question about VideoBlockCache, Seekindex and smooth scrubbing #512

Closed MrBean2016 closed 4 years ago

MrBean2016 commented 4 years ago

Question about VideoBlockCache, Seekindex and smooth scrubbing

Thank you for your work with this library. I am trying to implement smooth scrubbing for MJPEG and H264 encoded files and I am trying to understand all parameters that affects this. The clips are rather short 1080p and around 5-10 minutes and it is possible to get smooth forward/backwards scrubbing but with rather long loading time and some strange behaviour on the playback when the file is cached. It seems that the VideoBlockCache parameter is the key here but I do not fully understand its function. Is it better to use a smaller value just to get the backward scrubbing smooth?

VideoBlockCache = -1 is auto but what does that mean? What is the unit of VideoBlockCache? The value 1000 seems to cache a 10 minutes file in memory. SeekIndex = what is the purpose of the seek index file? Is it necessary for scrubbing since it take a couple of seconds to generate the seek index, the first time a file is opened? Other parameters that might improve the performance?

I do not think the hardware is the bottleneck , I7, 16 GB Ram , fast SSD and Cuda enabled and other players like QuickTime has really smooth scrubbing with minimal resource usage.

Thanks,

Issue Categories

Version Information

Steps to Reproduce

  1. Step 1
  2. Step 2
  3. Step 3

Expected Results

Sample Code

XAML

<MainWindow>
</MainWindow>

C

System.Console.WriteLine("Change Me Please!");

Command line ffplay

ffplay "hello.mp4"

Delete This Section

stale[bot] commented 4 years ago

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.