shaka-project / shaka-player-embedded

Shaka Player in a C++ Framework
Apache License 2.0
239 stars 62 forks source link

Video freezes or lags while audio keeps playing #98

Closed jgongo closed 4 years ago

jgongo commented 4 years ago

While running the sample app in the simulator I've noticed that the video freezes or lags while the audio keeps playing after a few seconds. This seems to happen for example with Sintel 4k after switching to the high quality stream.

joeyparrish commented 4 years ago

Is it possible that the simulator can't keep up with 4k decode without dropping frames?

TheModMaker commented 4 years ago

For now, FFmpeg can't initialize the hardware decoder on the simulator, so it falls back to FFmpeg's software decoder. This means playing high quality content doesn't work well on simulators. This may change in the near future with #60. It plays fine at low qualities and on the device.

Running on the simulator is not a priority target, so content may not play as well on the simulator. I would suggest only playing lower qualities on the simulator and testing high qualities on a real device.

jgongo commented 4 years ago

Ok, the problem seems to be solved when playing the same content in a device.