Ticket #75 (new defect)

Opened 2 years ago

Last modified 1 year ago

perian fails to open avi files bigger than 2GB

Reported by: j Assigned to:
Priority: normal Milestone: Sometime after 1.0
Component: AVI Version:
Severity: normal Keywords:
Cc:

Description

trying to open an avi file created with mencoder that is bigger than 2GB, perian fails. VLC is able to open these files.

Change History

12/14/06 18:39:51 changed by dconrad

I tried remuxing a 4.37 GB AVI with DivX video and AC3 audio with mencoder r21420 and it still worked fine with Perian. Could you give some more info as to how these AVIs that don't work are being created (command line, mencoder version, codecs, etc)?

12/18/06 13:12:56 changed by j

right, it was not related to the size, must be something else. i created the file with mencoder, can not check the version right now. it has a low framerate (1.8fps) and is 24 hours long.

(follow-up: ↓ 4 ) 12/18/06 14:11:56 changed by dconrad

It's probably the duration; we currently only support 32-bit timestamps, and we scale timestamps to be optimal for ~6 hour long movies, since much more scaling would result in inaccuracies leading to A/V desync. It should be possible to support 64-bit timestamps through the SampleTable? API, but that's considerably slower (see http://lists.apple.com/archives/QuickTime-API/2005/Oct/msg00225.html). So probably we should check the duration to see if we'd overflow the normal signed 32-bit TimeValues?, and then use SampleTables? in that case.

(in reply to: ↑ 3 ) 12/18/06 14:20:59 changed by tick

  • milestone set to 1.1.

Replying to dconrad:

It's probably the duration; we currently only support 32-bit timestamps, and we scale timestamps to be optimal for ~6 hour long movies, since much more scaling would result in inaccuracies leading to A/V desync. It should be possible to support 64-bit timestamps through the SampleTable? API, but that's considerably slower (see http://lists.apple.com/archives/QuickTime-API/2005/Oct/msg00225.html). So probably we should check the duration to see if we'd overflow the normal signed 32-bit TimeValues?, and then use SampleTables? in that case.

Barring anything better this sounds good.

04/17/07 23:22:58 changed by anonymous

I don't know if this is related but Perian seems unable to play files created with Handbrake (AVI H.264 + AC3 that are >= 4GB. I've successfully played hundreds of movies that are < 4GB but the 10 or so I tried that were > 4GB and all failed. The time varies but all are less than 3 hours in length at the normal ~24fps. VLC and mplayer play them without any trouble.

Ripping any DVD at a high bitrate, like 5mbit, so it's >4GB will reproduce this case.

04/23/07 21:27:01 changed by anonymous

FWIW, the > 4GB problem I was seeing is because Handbrake does not produce OpenDML AVI's and Perian was trying to do an idle import which fails at > 4GB. I used mencoder to rebuild a proper OpenDML file with an index and now Perian does an index import and they play fine. Hope that helps, and thank you for making Perian!

06/11/07 16:42:40 changed by wyatt, the cock dog..

Ya, It wrks.

07/23/07 11:48:56 changed by tick

  • milestone changed from 1.1 to Sometime after 1.0.

We're not blocking 1.1 on this.