Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can i alter the nominal bitrate in an ogg vorbis header?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
jonasmattsson
n00b
n00b


Joined: 20 May 2004
Posts: 71
Location: Gothenburg, Sweden

PostPosted: Mon Jan 02, 2006 12:02 pm    Post subject: can i alter the nominal bitrate in an ogg vorbis header? Reply with quote

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.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum