bugGnash - The GNU Flash player - Bugs: bug #26928, Stuttering media playback due to...

 
 

bug #26928: Stuttering media playback due to blocking reads when parsing

Submitted by:  Benjamin Wolsey <bwy>
Submitted on:  Wed 01 Jul 2009 08:22:05 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Release: NoneStatus: None
Privacy: PublicAssigned to: None
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

Tue 06 Jul 2010 03:06:28 PM UTC, comment #3:

Daniel, are you using gstreamer or ffmpeg media handler of Gnash ?

Sandro Santilli <strk>
Project Member
Tue 06 Jul 2010 02:47:53 PM UTC, comment #2:

Is this the reason for the following playback issue with megavideo? I observe this:

The video is loaded in background. Seeing the load bar I see that a sufficient amount of video is loaded and keeps on loading. However the playback stalls every few seconds (as in 10-20sec) saying "Buffering: " and a number of percentage. This is reproducible on two systems and different videos of megavideo.
Once the video is fully preloaded it works and plays smoothly. Please let me know if this is caused by the problem described by bwy, otherwise I can open a separate report. Thanks!

Daniel Michalik <argafal>
Thu 24 Sep 2009 10:54:59 AM UTC, comment #1:

What's the problem with the media parser thread blocking
if there's nothing to read ?

Maybe some lock not being released ? Which one ?

Sandro Santilli <strk>
Project Member
Wed 01 Jul 2009 08:22:05 AM UTC, original submission:

Some videos, often on youtube, get frequent pauses while waiting for data.

The cause is that seek() and read_byte() both do blocking reads. If one of these calls happens to require more data in the cache, the media thread blocks until data is recieved and the video pauses.

These are called from various places in FLVParser.

Changing IOChannel::read_byte() to call readNonBlocking() and CurlStreamFile::seek() to call fillCacheNonBlocking() (though it does not take a 'pos' argument) results in a much smoother playback (no pauses), but a different download pattern.

Benjamin Wolsey <bwy>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by argafal (Posted a comment)
  • -unavailable- added by strk (Posted a comment)
  • -unavailable- added by bwy (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follows 1 latest change.

    Date Changed By Updated Field Previous Value => Replaced By
    Tue 28 Jul 2009 11:25:08 AM UTCbwySummaryMedia parsing blocks=>Stuttering media playback due to blocking reads when parsing

    Back to the top


    Powered by Savane 3.1-cleanup