aMule Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

We're back! (IN POG FORM)

Author Topic: First and last chunks  (Read 2254 times)

isulzer

  • Jr. Member
  • **
  • Karma: 2
  • Offline Offline
  • Posts: 62
First and last chunks
« on: April 11, 2008, 07:25:19 AM »

For video previewing(avi's) you need a certain amount at then end(16 bytes for each chunk in the stream). Anyway, sometimes the last amule chunk is smaller than the index(it can be the last 500k of the file or so, due to unlucky file size.). Could this be changed to include the last 2 chunks if the last chunk is smaller than a certain amount? This way you can skip through the file when previewing all the time, not just when you get lucky.

Lets say the average AVI chunk size is 10k(not to be confused with the amule chunks). On a 200MB file thats about 20,000 chunks(ignore the base 1024. yeah I'm lazy). At 16 bytes per chunk thats... 320k. On a 700MB avi file... which is pretty standard for a movie... thats about a 1.1MB of Index. This is assuming an average chunk size of 10k. It may be smaller or bigger. Usually smaller I think, this really depends on the frame resolution and where the key frame is etc... If there is a smaller key frame interval the chunks get bigger. This is complicated and gets even more complicated with so I don't really understand it all. but hey.

So if the last amule chunk happens to be smaller than that final AVI index... indexing wont work. Video will end after the first skip or error usually, unless you use a good player. but even then you cant skip ahead.
Logged