Displaying 2 results from an estimated 2 matches for "oggheader".
Did you mean:
msgheader
2015 Oct 17
1
Why does this code not generate a valid opus file?
...tream (1)
WARNING: Could not decode Opus header packet 0 - invalid Opus stream (1)
Opus stream 1:
WARNING: stream 1 is empty
Logical stream 1 ended
Here is my code:
#include <stdio.h>
#include <stdlib.h>
#include "ogg/ogg.h"
//Some structs to help build the headers.
struct OggHeader {
unsigned char magicSignature[8];
unsigned char version;
unsigned char channelCount;
unsigned short preSkip;
unsigned int sampleRate;
unsigned short outputGain;
unsigned char mappingFamily;
};
struct OggCommentHeader {
unsigned char magicSignature[8];
unsigned...
2006 Apr 04
2
ogg + theora + seeking
...p ------------------------------------------------------------------
And I wrote a small program to print out all ogg-packet-headers in a file.
(Output at the end).
There I don't see any key-frame or "not key-frame" from the position
information.
The header struct I used is
struct oggHeader {
char ogg[5];
char pack_type:1;
char page_type:1;
char last:1;
char reserved:5;
// was: uint64 position;
uint32 position1;
uint32 position2;
uint32 serial;
uint32 pageNo;
uint32 checksum;
} __attribute__ ((packed));
The description only says: devide...