similar to: What exactly is threadsafe

Displaying 20 results from an estimated 100 matches similar to: "What exactly is threadsafe"

2005 Sep 26
2
encoder_example.c Questions
I've been trying to piece my way through the encoder_example.c program to better understand how to encode files as ogg/vorbis. I'm stuck on two sections of the code. This is the first /* uninterleave samples */ for(i=0;i<bytes/4;i++){ buffer[0][i]=((readbuffer[i*4+1]<<8)| (0x00ff&(int)readbuffer[i*4]))/32768.f;
2004 May 20
3
Encoding questions
Hi, I have recently implemented encoding/decoding to/from OggVorbis in my app, with the code being based upon the Libvorbisenc sample code supplied with the SDK. It all works very well indeed (encoding from a PCM file, then playback), except that no matter the length of the source PCM file, the last (approx) 4 seconds of audio is always missing from the Ogg file. I am trying to find some
2008 Nov 30
1
ogg_stream_pageout function...
I write this small piece of code, that get pixels and encode them: ogg_page page; ogg_packet packet; m_frameSource.getYUVBits(m_buffer.y, m_buffer.u, m_buffer.v); theora_encode_YUVin(&m_encoder, &m_buffer); while(theora_encode_packetout(&m_encoder, isLastFrame, &packet)) ogg_stream_packetin(&m_oggStream, &packet); while
2009 Dec 12
1
Skipping of sample in ogg writing
Hi All, I m having a strange problem with the Ogg-Vorbis writting code. The code I m using to write is skipping some samples at the end of the file. For example I m converting the 10000 sample .wav file ( 441000 sample rate , 16 bit depth , stereo ) to ogg format. But while reading the ogg file I only find 5824 samples in the ogg file. Can any one suggest what could be wrong in the code. Is
2009 Dec 12
1
Skipping of sample in ogg writing
Hi All, I m having a strange problem with the Ogg-Vorbis writting code. The code I m using to write is skipping some samples at the end of the file. For example I m converting the 10000 sample .wav file ( 441000 sample rate , 16 bit depth , stereo ) to ogg format. But while reading the ogg file I only find 5824 samples in the ogg file. Can any one suggest what could be wrong in the code. Is
2004 Aug 06
2
vorbis_encode_init() bitrate arguments - offtopic
Michael, > See the examples. If you initialise a managed mode (which this is), you > MUST use vorbis_bitrate_addblock() and vorbis_bitrate_flushpacket(). Thanks for the tip. I added the calls, and it works now. > You SHOULD also give an option to set min/max, since they're now used, > and to use a VBR mode rather than the managed modes here. But when streaming, IMHO it is
2004 Nov 16
0
metadata switches for ffmpeg2theora
Jan, Here's a hacky patch to add a few commandline options for setting comment header fields in ffmpeg2theora. It's a bit big because I virtualized the global info struct in theorautils.c. In retrospect that probably wasn't necessary, but I think it's cleaner anyway. I didn't test it because I couldn't compile ffmpeg2theora, but modulo bugs it should support
2004 Aug 06
1
ices: compliation problem
Hi all, I can't compile ices on my Linux Box Here is the output ices.o(.text+0xc0): undefined reference to `log_open_file' encode.o: In function `encode_dataout': encode.o(.text+0x223): undefined reference to `vorbis_bitrate_addblock' encode.o(.text+0x244): undefined reference to `vorbis_bitrate_flushpacket' Thank you -- -- GNU/Linux: il y a moins bien mais plus cher
2004 Aug 06
2
vorbis_encode_init() bitrate arguments - offtopic
Hi, It's a bit offtopic for this list, but you might be able to help. For libvorbis rc3, what is the correct bitrate parametrization for the call vorbis_encode_init()? For rc2, it worked calling it the following way: vorbis_encode_init( &vorbisInfo, 2, // two channels 44100, // 44.1kHz
2006 Sep 11
4
encode, decode and encode again
(I've already posted this message month ago, but nobody answered, may be it was not delivered to newsgroup?) Hello, All. I wrote an encoder-decoder based on example from OGG-Vorbis SDK. This encoder can encode a large amount of small WAV-files with equal parameters into one sound archive. Then I decode this sound archive back into large amount of small WAV-files. Theese files are
2004 Aug 06
2
Darkice on Linux PPC
> > >> >> >> Plus about 10 more lines of errors. > > > well, what do these lines say? :) <p>make all-recursive make[1]: Entering directory `/usr/darkice/darkice' Making all in src make[2]: Entering directory `/usr/darkice/darkice/src' c++ -DHAVE_CONFIG_H -I. -I. -I.. -O2 -pedantic -Wall -c VorbisLibEncoder.cpp VorbisLibEncoder.cpp: In method
2004 Sep 03
1
Vorbis Tools installation problem
I am trying to install vorbis-tools 1.0.1 onto my mac os 10.3.5 I installed the relevant libraries through fink (http://fink.sourceforge.net) - libao2, libvorbis, libogg my configure command was this: ./configure -with-ogg=/sw --with-ao=/sw --without-flac --without-speex I received no errors from configure except to let me know that oggenc would not have flac support and that ogg123 would
2002 Jan 02
2
RC3 Changes needed for MacOS
It looks like the Mac .exp files were not updated for RC3. The following diff corrects that problem. The CodeWarrior project files also have not been updated. They are in 5.3 format which is quite old. Would anybody object if I submitted updates to them in CodeWarrior Pro 6 format? That's the oldest version I have readily available. If someone else has 5.3 and wants to do it, you need to
2003 Nov 08
2
Encoding in Delphi - Help
Hi! I've made a vorbis encoder in delphi, but it's very verey slow! It takes 5 minutes to encode a pcm file. And i don't know why. Could anyone help me??? ---------------------------------------------------------------------------------- result := ogg_stream_flush(os, og); while result <> 0 do begin OutFile.Write(Pointer(og.header)^, og.header_len);
2002 Jan 01
6
new vorbisenc behaviour
Just got around to compiling RC3 under beos and came across an anomaly when using managed bitrates. I haven't changed the code for the beos encoder but I now get double the bitrates so vorbis_encode_init(&vi,mediaFormat.u.raw_audio.channel_count,(long)mediaFormat.u.raw_audio.frame_rate , -1, 128000, -1); now gives me vorbis files that average around 325 - 350. Is this now the correct
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
Hi. I'm trying to implement Ogg/Vorbis support for the MPEG4IP project. The goal is to support Ogg/Vorbis audio for MPEG-4 streaming. So far 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)
2002 Jun 24
1
packetno, granulepos, streaming and framing
Hi While implementing OSS Ogg/Vorbis encoding and streaming using RTP/RTCP for both unicast and multicast, I have come across a few issues I need to clear out regarding the numbering of ogg_packets and their granulepos value. Below are the result for two different scenarios. <p>In the first scenario, ogg_packets are generated using a) vorbis_analysis_headerout() b) while
2002 Jan 01
3
problem building vorbis-tools-1.0rc3
I download all the tarballs for rc3. I compiled and installed all the libraries successfully, but I wan't able to compile the vorbis tools (1.0rc3) package succesfully. I can run configure successfully, but when I run make it dies with this make[2]: Entering directory `/usr/local/src/vorbis-tools-1.0rc3/oggenc' /bin/sh ../libtool --mode=link gcc -O20 -ffast-math -fsigned-char -o
2004 Jun 25
1
Compile problems on libtheora-1.0alpha3
Dear Developers. As a tester for gnome-2.7 I'm using the garnome build system to build gnome-2.7. A new part to this set of gnome related programs I neede libtheora. Unfortunatly did I run into compile problems when running the compile of libtheora-1.0alpha3. I'm uisng GCC-3.4.0,glibc-2.3.2. The problems are shown in the log below. Who can help me solve these issues as I'm no expert
2002 Mar 17
1
vorbis-tools rc3 link trouble
i ran into a link error trying to compile the linux vorbis-tools-1.0rc3 using gcc 2.95.3 gcc -O20 -ffast-math -fsigned-char -o oggenc oggenc.o audio.o encode.o platform.o /usr/lib/libvorbisenc.so -L/lib /usr/lib/libvorbis.so -lm /usr/lib/libogg.so ../share/libutf8.a ../share/libgetopt.a encode.o: In function `oe_encode': encode.o(.text+0x87): undefined reference to