melissa0512 / dolphin-player

Automatically exported from code.google.com/p/dolphin-player
2 stars 0 forks source link

Bad performance with video skipping #6

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi.

Video skipping logic causes very laggy playback. On my Galaxy Nexus a 1.4Mbps 
xvid file was playing very sluggishly (constant slow-downs, speed-ups and frame 
drops) until I undefined BROOV_VIDEO_SKIP. After I've rebuilt the player 
without video skipping support the playback became excellent (I tried version 
1.2 with Neon support).

Original issue reported on code.google.com by sergey.e...@gmail.com on 1 Jan 2012 at 11:43

GoogleCodeExporter commented 8 years ago
Problem Acknowledged. Need a better video skip algorithm implementation. 

Will release the next version for this issue,  if some one can provide one.

Thanks,
Aatral

Original comment by aatrala on 2 Jan 2012 at 1:45

GoogleCodeExporter commented 8 years ago
Sorry for the noob question, why we need video skipping?

Original comment by g.iucul...@gmail.com on 8 Jan 2012 at 11:58

GoogleCodeExporter commented 8 years ago
A video file consists of Frames. 

Let us consider a video file with a frame rate of 25 Per second.

We need to show 25 Frames in each second. Which essentially means we need to 
show a frame every 40 milliseconds. 

Following actions are required to show a frame to screen.
a) Read the frame from file
b) Decode the frame using FFmpeg(relevant decoder is used to read the 
corresponding codec, if compressed then more time is needed)
c) Modify the frame to a format suitable for showing on the screen.
d) Copy the frame and put it on screen.

Whenever, we are in a lagging condition, where the time taken to show a frame 
to screen is greater than 40ms(in this example), we need to skip video frames 
to make audio and video in sync and a better user experience.

Mobile processors are considerably slow when compared to desktop processors 
Hence any optimization in step(a) to step (d) or any improvements in this area 
is most welcome.

Original comment by aatrala on 5 Feb 2012 at 2:39

GoogleCodeExporter commented 8 years ago
Sorry for the delayed response earlier. I didn't enable the email notification 
earlier.

Original comment by supp...@broov.in on 3 May 2012 at 8:25

GoogleCodeExporter commented 8 years ago
I have updated Dolphin Player version 2.0 with various bugfixes. Please provide 
your feedback

Thanks,
Aatral

Original comment by aatrala on 15 Jun 2012 at 10:32