Skip to main content

Topic: 'extraction' of ogg files from a packed file (Read 3864 times) previous topic - next topic

0 Members and 1 Guest are viewing this topic.
'extraction' of ogg files from a packed file
I am going to 'extract' some ogg files in an exe file. Several page headers are found but finding the end of a ogg file is a problem. Does somebody have any ideas about determinating the end of the ogg file (or the size of the ogg file) from just considering the page header? Thanks for your help!

'extraction' of ogg files from a packed file
Reply #1
Does somebody have any ideas about determinating the end of the ogg file (or the size of the ogg file) from just considering the page header?


No.

Ogg Vorbis can be used for live streaming, which means it has to generate the headers before it even knows how long the stream will be. The designers didn't feel it was necessary to add an optional length field, either.

There should be an EndOfStream flag on the last packet. Even if you miss that, each packet has a checksum, so you can just keep reading until the checksums fail...

'extraction' of ogg files from a packed file
Reply #2

Does somebody have any ideas about determinating the end of the ogg file (or the size of the ogg file) from just considering the page header?


No.

Ogg Vorbis can be used for live streaming, which means it has to generate the headers before it even knows how long the stream will be. The designers didn't feel it was necessary to add an optional length field, either.

There should be an EndOfStream flag on the last packet. Even if you miss that, each packet has a checksum, so you can just keep reading until the checksums fail...

hi
Here i am mentioning an issue of the size of page in the ogg files in the demuxer.
i want to know what is the general page size in .ogg streams.
The ogg standard mentioned that there may be upto 64k the page will be, But in the realtime systems
we can not hold 64kB memory to process a cheksum and then demux the ogg page header.

So i just wnat to know that normally developers can mention about the size of the pages in the steems they
can support.
Normally 4 to 8k bytes.
Otherwise what is the alternative to that.
How all portable players are supporting the 64k size of the ogg page in any file ogg vorbies, ogg flac.

If any body have an idea please help me in this issue.

Regards
Bhaskar
India
  • Last Edit: 10 December, 2008, 04:22:43 AM by bhaskarnallani