jonasmattsson n00b
Joined: 20 May 2004 Posts: 71 Location: Gothenburg, Sweden
|
Posted: Mon Jan 02, 2006 12:02 pm Post subject: can i alter the nominal bitrate in an ogg vorbis header? |
|
|
I wonder if there is an easy way to change the nominal bitrate in the vorbis-header. you see, i'm having some problems on my portable media player (iaudio x5), the length of an ogg-vorbis file calculated by the player is not related to the reality, i realized that the proprtions of the error was almost exact the same as the proportions betwen the nominal bitrate and the average one, i.i: Code: | (player-reported-length/real-length) = (nominal-bitrate/average-bitrate). | also the player sometimes clips the last few seconds of a ogg-file, i'm guessing this is related to the previous erro. so i wanted to test if the player would behave any better if i set the nominal bitrate=averge-bitrate.
I,ve tried with hexedit, to alter the bytes 0x30-0x33 from "40 9C 00 00" to "00 7D 00 00" but that only result in the following:
Code: | # ogginfo littleTest.ogg
Processing file "littleTest.ogg"...
Warning: Hole in data found at approximate offset 4500 bytes. Corrupted ogg.
Warning: Invalid header page, no packet found
Warning: Invalid header page in stream 1, contains multiple packets
New logical stream (#1, serial: 13c49a56): type invalid
Warning: stream start flag not set on stream 1
Warning: sequence number gap in stream 1. Got page 1 when expecting page 0. Indicates missing data.
Logical stream 1 ended |
any ideas? vorbiscomment is not sufficient since the nominal bitrate is not a comment. _________________ when he was six he believed that the moon overhead followed him
by nine he had deciphered the illusion, trading magic for fact
no tradebacks.
so this is what it's like to be an adult
if he only knew now what he knew then. |
|