hallo,
ich möchte den eintrag für die samplerate in ogg-files ändern. diese soll nur "gepatcht" werden, nicht umgerechnet. da ogg open-source ist, habe ich auch einige informationen gefunden, die mir aber leider nicht viel weiter helfen
vielleicht kann mir ja jemand von euch nen tip geben:
ZitatAlles anzeigen
The identification header is a short header of only a few fields used to declare the stream definitively as Vorbis,
and provide a few externally relevant pieces of information about the audio stream. The identification header is
coded as follows:
1) [vorbis_version] = read 32 bits as unsigned integer
2) [audio_channels] = read 8 bit integer as unsigned
3) [audio_sample_rate] = read 32 bits as unsigned integer
4) [bitrate_maximum] = read 32 bits as signed integer
5) [bitrate_nominal] = read 32 bits as signed integer
6) [bitrate_minimum] = read 32 bits as signed integer
7) [blocksize_0] = 2 exponent (read 4 bits as unsigned integer)
[blocksize_1] = 2 exponent (read 4 bits as unsigned integer)
9) [framing_flag] = read one bit
[vorbis_version] is to read ’0’ in order to be compatible with this document. Both [audio_channels]
and [audio_sample_rate] must read greater than zero. Allowed final blocksize values are 64, 128, 256, 512,
1024, 2048, 4096 and 8192 in Vorbis I. [blocksize_0] must be less than or equal to [blocksize_1]. The
framing bit must be nonzero. Failure to meet any of these conditions renders a stream undecodable.
The bitrate fields above are used only as hints. The nominal bitrate field especially may be considerably off in
purely VBR streams. The fields are meaningful only when greater than zero.
ich habe schon versucht eine datei mit nem hex-editor zu öffnen, den eitrag 44100 (also ac44 in hex, ist die samplerate von dem file) habe ich auch ausgemacht, allerdings sind die paare vertauscht zu 44 ac. das ist aber wohl normal soweit ich weiß... nachdem ich an diese stelle 48000, also bb80 vertauscht zu 80 bb eingetragen habe, wurde das file als nicht mehr gültig erkannt...
... soweit mein problem