Displaying 13 results from an estimated 13 matches for "vorbis_comment_init".
2007 Feb 07
1
how to delete all comments?
...s just DELETE any and all comments from a
file. here's what I do:
// open the file and get access to comments
vcedit_open(i_vcStateP, i_fileP);
i_commentsP = vcedit_comments(i_vcStateP);
// now delete all existing comments
vorbis_comment_clear(i_commentsP); <-- is this the correct way??
vorbis_comment_init(i_commentsP); <-- do i need to do this since
it's already clear??
// now update the changes, is this correct??
vcedit_write(i_vcStateP, i_fileP);
vcedit_clear(i_vcStateP);
however, this does not delete the comments. here's what my file
looks like AFTER running the above code: (no...
2000 Oct 18
1
Building on BeOS part 3
...gg -Wl,-soname -
Wl,libvorbisfile.so -o .libs/libvorbisfile.so
with gives me a load of undefined reference errors such as
vorbisfile.o: In function `_fetch_headers':
vorbisfile.o(.text+0x6c8): undefined reference to `vorbis_info_init'
vorbisfile.o(.text+0x6d1): undefined reference to `vorbis_comment_init'
Now I can 'fix' this manually by adding -L./libs -lvorbis (or the other .o
files but I think the former is better), but I'd like to work out why this
isn't building directly from the
makefile.
I used 'autogen.sh --prefix=/boot/home/config --with-ogg=/boot/home/config...
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...I have managed to make the encoder save Ogg packets as an Audio
object in an .mp4 file. As a side effect, 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 si...
2009 May 12
2
compile error of libtheora example
...): undefined reference to `ogg_stream_pagein'
/tmp/ccpyle3c.o: In function `main':
player_example.c:(.text+0xe17): undefined reference to `ogg_sync_init'
player_example.c:(.text+0xe23): undefined reference to `vorbis_info_init'
player_example.c:(.text+0xe2f): undefined reference to `vorbis_comment_init'
player_example.c:(.text+0xe3b): undefined reference to `theora_comment_init'
player_example.c:(.text+0xe47): undefined reference to `theora_info_init'
player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos'
player_example.c:(.text+0xeb1): undefined reference to `ogg_p...
2012 May 14
0
Memory Leak in vorbis_info_clear()
...struct vorbis_dsp_state dsp;
static struct vorbis_comment comment;
static struct vorbis_block block;
void init(void) {
struct { ogg_packet ident, comment, setup; } pkt;
vorbis_info_init(&info);
vorbis_encode_init_vbr(&info, 2, 44100, 1.0);
vorbis_analysis_init(&dsp, &info);
vorbis_comment_init(&comment);
vorbis_analysis_headerout(&dsp, &comment,
&pkt.ident, &pkt.comment, &pkt.setup);
vorbis_block_init(&dsp, &block);
} /* init() */
void destroy(_Bool leak) {
vorbis_block_clear(&block);
if (leak)
vorbis_info_clear(&info);
vorbis_dsp_clear(...
2001 Sep 02
0
Encoding process
...'ve been trying to wrap my head
around the encoding process and I'm about to have an aneurysm :P
I've gone through oggenc.c, encode.c, and audio.c and I think I have a basic
idea of what happens. I got it down in pseudocode as follows:
---
1 get parameters
2 init vorbis_comment -- vorbis_comment_init()
3 init vorbis_info -- vorbis_info_init()
4 start encoding with info and params -- vorbis_encode_init()
5 init vorbis_dsp_state from info -- vorbis_analysis_init()
6 init vorbis_block from dsp -- vorbis_block_init()
7 init ogg_stream_state with serial -- ogg_stream_init()
8 fill vorbis_comme...
2004 Aug 06
0
ices2: ice-url header patch
...int encoding = (inmod->type == ICES_INPUT_PCM) && stream->encode;
- char *stream_name = NULL, *stream_genre = NULL, *stream_description = NULL;
+ char *stream_name = NULL, *stream_genre = NULL, *stream_description = NULL,
+ *stream_url = NULL;
char *user = NULL;
vorbis_comment_init(&sdsc->vc);
@@ -117,6 +118,11 @@
stream_genre = stream->stream_genre;
else if (ices_config->stream_genre)
stream_genre = ices_config->stream_genre;
+
+ if(stream->stream_url)
+ stream_url = stream->stream_url;
+ else if (ices_config->...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...lse
- ret=vorbis_encode_init(&info.vi,info.channels,info.sample_rate,-1,info.vorbis_bitrate,-1);
+ ret=vorbis_encode_init(&info->vi,info->channels,info->sample_rate,-1,info->vorbis_bitrate,-1);
if (ret){
fprintf (stderr,
@@ -74,11 +72,11 @@
exit (1);
}
- vorbis_comment_init (&info.vc);
- vorbis_comment_add_tag (&info.vc, "ENCODER",PACKAGE_STRING);
+ vorbis_comment_init (&info->vc);
+ vorbis_comment_add_tag (&info->vc, "ENCODER",PACKAGE_STRING);
/* set up the analysis state and auxiliary encoding storage */
- vorbis_anal...
2007 Aug 10
5
[Patch] Const correct tags functions
...t;---------------8<---------------8<---------------
--- include/vorbis/codec.h (revision 13502)
+++ include/vorbis/codec.h (working copy)
@@ -166,11 +166,11 @@
extern void vorbis_info_clear(vorbis_info *vi);
extern int vorbis_info_blocksize(vorbis_info *vi,int zo);
extern void vorbis_comment_init(vorbis_comment *vc);
-extern void vorbis_comment_add(vorbis_comment *vc, char *comment);
+extern void vorbis_comment_add(vorbis_comment *vc, const char *comment);
extern void vorbis_comment_add_tag(vorbis_comment *vc,
- char *tag, char *contents);
-extern char *vorbis_comm...
2000 May 01
2
Bug fix, win32 stuff
There was a bug in the new ov_open_callbacks where it would
not zero out some member variables of the file info struct,
and if a file was not successfully opened this would cause
a crash at destruct time. Fixed.
I've also made some changes so that vorbis will compile
cleanly under win32 without one having to muck around with it.
I have added a "vorbis_vc6" directory which contains
2015 May 18
5
Writting 16-bit PCM data to Ogg.
Hi Developers,
I have a 16-bit PCM data buffer, I want to write that to ogg file. Could
you help me to understand how to write pcm data to the ogg?
Thanks in advance.
Arun balaji
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/6c8c9a63/attachment.htm
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...he initial header first instead of just having the code
read all three Vorbis headers at once because reading the initial
header is an easy way to identify a Vorbis bitstream and it's
useful to see that functionality seperated out. */
vorbis_info_init(&vi);
vorbis_comment_init(&vc);
if(ogg_stream_pagein(&os,&og)<0){
/* error; stream version mismatch perhaps */
fprintf(outputFile,"Error reading first page of Ogg bitstream
data.\n");
exit(1);
}
if(ogg_stream_packetout(&os,&op)!=1){
/* no page? must...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...am here. Do *NOT* reinitialize
// it upon changing logical streams or you will lose any data which
// has already been read and buffered by the ogg system.
*/
while(!flgBailError) { /* This while loop iterates over ogg logical streams */
/* Vorbis init */
vorbis_info_init(vi);
vorbis_comment_init(vc);
/* Page iteration init */
flgInitialPageRead = 0;
packetCount = -1;
flgEOSPage = 0;
/*
// This is probably redundant with flgEOSPage. However, it is
// easier to keep track of a separate flag which is set only
// after all packets have been consumed rather t...