- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
What is the proper way to seek to a frame at a particular time within an MP4 file? The media playback sample provided with the libraries simply plays from beginning to end.
I have attempted to use Splitter.SetTimePosition(newTime), but always get NOT_ENOUGH_DATA errors afterwards.
Link kopiert
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
Hi,
Possibly you can post a test code and stream for investigation?
One thing that need to pay attention is that users need stop() and run() the splitter(), when use the SetTimePosition
..
SetTimePosition()
splitter->SetTimePosition(...);
splitter->Run();
Thanks,
Chao
- Als neu kennzeichnen
- Lesezeichen
- Abonnieren
- Stummschalten
- RSS-Feed abonnieren
- Kennzeichnen
- Anstößigen Inhalt melden
That was the problem. I wasn't stopping prior to shifting time. Running as you indicated works fine.
Is there any way to seek to one particularly frame? The library seems structured to support the use case where a user will start at the beginning then gradually and sequentially move to the end of an MP4. This works perfectly for the case of a video playback. However, for my application, I will tend to move through the file rapidly and not necessarily in sequential order. I can make repeated calls as you indicate above, but it is inefficient for the library to compute 'n' seconds of buffer when I really only care about a single frame.

- RSS-Feed abonnieren
- Thema als neu kennzeichnen
- Thema als gelesen kennzeichnen
- Diesen Thema für aktuellen Benutzer floaten
- Lesezeichen
- Abonnieren
- Drucker-Anzeigeseite