Re: [hatari-users] AVI Record problem -> ODML 64 bit support added

[ Thread Index | Date Index | More lists.tuxfamily.org/hatari-users Archives ]


On Wed, 30 Aug 2017, Anders Eriksson wrote:

On Mon, 28 Aug 2017, Nicolas Pomarède wrote:

Le 11/07/2017 à 15:50, Nicolas Pomarède a écrit :

I see AVI specs 2.0 can have extra AVIX chunks to have > 2GB in the end. I will try to look at this someday (but it might not be soon)

Hi,

good news, Hatari now support the "OpenDML AVI File Format Extensions Specification" which extends the basic AVI format limited to 32 bit file size to handle file size of any size > 4GB.

I made some tests and successfully recorded a 7 GB file which I could read using VLC (including seeking anywhere using the indexes), some avi validation programs also reported a correct structure of the file.

For the technical details, the ODML format divides the AVI file in several RIFF AVI or RIFF AVIX (X=extension) chunks. Each chunks should be < 4GB but you can have as many as you like and some new "super indexes" are added to allow referencing position using 64 bit offset.

In Hatari, I arbitrarily fixed the super index size to 256 entries, each entries would then reference a 1 GB 'movi' chunk.

This requires an OS capable of handling 64 bit file offset, but all modern OSes will do it.

This means the current limit for an AVI file will now be 256 GB in Hatari :)

Great stuff Nicholas!

I really appreciate the effort.

I tested out the new AVI routines this weekend, and the AVI files works well. Recorded the entire HIPSid from Grazey, nearly 10 hours of footage. https://www.youtube.com/watch?v=5jJYPaq6WNQ

So great stuff!

However, a bug report regarding the recording timer.

It prints like this:

mm:ss

00:00
  |
99:59
a0:00
  |
b0:00
  |
z9:59

And after z it starts printing commas, dashes and what not.

I think it would make more sense if the minute counter went to three digits (and later to four, five..) or better make it proper with hours and maybe days. I ended up checking file size and estimating how long it had recorded for rather than trying to understand the counter :)

--
Anders Eriksson
ae@xxxxxx     http://www.dhs.nu/
ae@xxxxxxxxx  http://www.atari.org/


Mail converted by MHonArc 2.6.19+ http://listengine.tuxfamily.org/