Displaying 2 results from an estimated 2 matches for "ogg_stream_packet".
Did you mean:
ogg_stream_packetin
2001 Mar 17
1
Copy a part of an Ogg/Vorbis file
...is file to a new
file, without decoding and re-encoding (say I've got several songs
in one long file, and I want to split them into separate files).
Sample granularity is not required, packet granularity should do.
I'm reading the Ogg documentation. I think I could write some code
based on ogg_stream_packet{out,in}. Is this the way to go, or are
there easier ways? Or is there perhaps already existing code for
this purpose so I don't need to reinvent the wheel?
Frank
--
Frank Heckenbach, frank@g-n-u.de
http://fjf.gnu.de/
PGP and GPG keys: http://fjf.gnu.de/plan
--- >8 ----
List archives: h...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...it can also save Ogg pages in
an .ogg file playable by xmms, but that's no big deal.
So what I'm doing is this. First the init part.
a) vorbis_info_init
b) vorbis_encode_init
c) vorbis_comment_init
d) vorbis_comment_add_tag
e) ogg_stream_init
f) vorbis_analysis_headerout
g) ogg_stream_packetin for the header, the header_comment and the header_code
Then the encode part
a) sample pcm and hand it to encode code
b) get buffer space with vorbis_analysis_buffer
c) convert 16 bit signed pcm to float and place in buffer
d) tell data size submitted with vorbis_analysis_wrote
then g...