Arun Balaji Prithivi Raj
2015-May-18 20:33 UTC
[Vorbis-dev] 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
Arun Balaji Prithivi Raj wrote:> 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?Have you looked at the examples in the git repository: https://github.com/xiph/vorbis/tree/master/examples Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Arun Balaji Prithivi Raj
2015-May-19 00:43 UTC
[Vorbis-dev] Writting 16-bit PCM data to Ogg.
sorry for the mess created. So far I have installed these two library *libogg-1.3.2, libvorbis-1.3.4* successfully. When installing this *vorbis-tools-1.4.0 *: I am getting this error. Making install in man make[2]: Entering directory `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' make[3]: Entering directory `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' make[3]: Nothing to be done for `install-exec-am'. test -z "/usr/local/share/man/man1" || mkdir -p -- "/usr/local/share/man/man1" /usr/bin/install -c -m 644 './oggenc.1' '/usr/local/share/man/man1/oggenc.1' /usr/bin/install: cannot create regular file ?/usr/local/share/man/man1/oggenc.1?: Permission denied make[3]: *** [install-man1] Error 1 make[3]: Leaving directory `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' make[2]: *** [install-am] Error 2 make[2]: Leaving directory `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' make[1]: *** [install-recursive] Error 1 make[1]: Leaving directory `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc' make: *** [install-recursive] Error 1 On Mon, May 18, 2015 at 8:29 PM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:> Arun Balaji Prithivi Raj wrote: > > > When I compiled the '*encoder_example.c'* file present in the above git > > repo, I am getting this error message. > > Please do not send screen shots to the mailing list. Copying the text > and pasting that would have been more than sufficient and actually > easier to read. > > Obivously, it is not possible to compile encode_example.c the way you > tried. This tutorial > > http://www.thegeekstuff.com/2012/06/install-from-source/ > > and others like it should get you to a point wherre you can compile > this from source. > > Erik > -- > ---------------------------------------------------------------------- > Erik de Castro Lopo > http://www.mega-nerd.com/ >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/b94bfd2a/attachment.htm
Arun Balaji Prithivi Raj
2015-May-19 00:51 UTC
[Vorbis-dev] Writting 16-bit PCM data to Ogg.
Sorry. I have never executed the *make install* in root mode. Finally now I am able to successfully installed all these three libraries ( *libogg-1.3.2, libvorbis-1.3.4, **vorbis-tools-1.4.0)* Now when I go to https://github.com/xiph/vorbis/tree/master/examples Git and compile encoder_example. c I am getting this error. /tmp/ccPVMmO6.o: In function `main': encoder_example.c:(.text+0xe7): undefined reference to `vorbis_info_init' encoder_example.c:(.text+0x108): undefined reference to `vorbis_encode_init_vbr' encoder_example.c:(.text+0x130): undefined reference to `vorbis_comment_init' encoder_example.c:(.text+0x149): undefined reference to `vorbis_comment_add_tag' encoder_example.c:(.text+0x162): undefined reference to `vorbis_analysis_init' encoder_example.c:(.text+0x17b): undefined reference to `vorbis_block_init' encoder_example.c:(.text+0x1a4): undefined reference to `ogg_stream_init' encoder_example.c:(.text+0x1d2): undefined reference to `vorbis_analysis_headerout' encoder_example.c:(.text+0x1eb): undefined reference to `ogg_stream_packetin' encoder_example.c:(.text+0x204): undefined reference to `ogg_stream_packetin' encoder_example.c:(.text+0x21d): undefined reference to `ogg_stream_packetin' encoder_example.c:(.text+0x238): undefined reference to `ogg_stream_flush' encoder_example.c:(.text+0x2e4): undefined reference to `vorbis_analysis_wrote' encoder_example.c:(.text+0x2fd): undefined reference to `vorbis_analysis_buffer' encoder_example.c:(.text+0x429): undefined reference to `vorbis_analysis_wrote' encoder_example.c:(.text+0x442): undefined reference to `vorbis_analysis' encoder_example.c:(.text+0x451): undefined reference to `vorbis_bitrate_addblock' encoder_example.c:(.text+0x46f): undefined reference to `ogg_stream_packetin' encoder_example.c:(.text+0x48d): undefined reference to `ogg_stream_pageout' encoder_example.c:(.text+0x4f7): undefined reference to `ogg_page_eos' encoder_example.c:(.text+0x52b): undefined reference to `vorbis_bitrate_flushpacket' encoder_example.c:(.text+0x54c): undefined reference to `vorbis_analysis_blockout' encoder_example.c:(.text+0x571): undefined reference to `ogg_stream_clear' encoder_example.c:(.text+0x580): undefined reference to `vorbis_block_clear' encoder_example.c:(.text+0x58f): undefined reference to `vorbis_dsp_clear' encoder_example.c:(.text+0x59e): undefined reference to `vorbis_comment_clear' encoder_example.c:(.text+0x5ad): undefined reference to `vorbis_info_clear' collect2: error: ld returned 1 exit status On Mon, May 18, 2015 at 8:43 PM, Arun Balaji Prithivi Raj < arunbalaji at mail.usf.edu> wrote:> sorry for the mess created. > > So far I have installed these two library *libogg-1.3.2, libvorbis-1.3.4* > successfully. > When installing this *vorbis-tools-1.4.0 *: I am getting this error. > > Making install in man > make[2]: Entering directory > `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' > make[3]: Entering directory > `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' > make[3]: Nothing to be done for `install-exec-am'. > test -z "/usr/local/share/man/man1" || mkdir -p -- > "/usr/local/share/man/man1" > /usr/bin/install -c -m 644 './oggenc.1' > '/usr/local/share/man/man1/oggenc.1' > /usr/bin/install: cannot create regular file > ?/usr/local/share/man/man1/oggenc.1?: Permission denied > make[3]: *** [install-man1] Error 1 > make[3]: Leaving directory > `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' > make[2]: *** [install-am] Error 2 > make[2]: Leaving directory > `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc/man' > make[1]: *** [install-recursive] Error 1 > make[1]: Leaving directory > `/home/arunbalaji/Downloads/vorbis-tools-1.4.0/oggenc' > make: *** [install-recursive] Error 1 > > > On Mon, May 18, 2015 at 8:29 PM, Erik de Castro Lopo <mle+la at mega-nerd.com > > wrote: > >> Arun Balaji Prithivi Raj wrote: >> >> > When I compiled the '*encoder_example.c'* file present in the above git >> > repo, I am getting this error message. >> >> Please do not send screen shots to the mailing list. Copying the text >> and pasting that would have been more than sufficient and actually >> easier to read. >> >> Obivously, it is not possible to compile encode_example.c the way you >> tried. This tutorial >> >> http://www.thegeekstuff.com/2012/06/install-from-source/ >> >> and others like it should get you to a point wherre you can compile >> this from source. >> >> Erik >> -- >> ---------------------------------------------------------------------- >> Erik de Castro Lopo >> http://www.mega-nerd.com/ >> > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/e58e2271/attachment.htm
Arun Balaji Prithivi Raj wrote:> When I compiled the '*encoder_example.c'* file present in the above git > repo, I am getting this error message.Please do not send screen shots to the mailing list. Copying the text and pasting that would have been more than sufficient and actually easier to read. Obivously, it is not possible to compile encode_example.c the way you tried. This tutorial http://www.thegeekstuff.com/2012/06/install-from-source/ and others like it should get you to a point wherre you can compile this from source. Erik -- ---------------------------------------------------------------------- Erik de Castro Lopo http://www.mega-nerd.com/
Arun Balaji Prithivi Raj
2015-May-19 03:42 UTC
[Vorbis-dev] Writting 16-bit PCM data to Ogg.
I did the following steps, but still the problem persists. 1) checkout on a separate repo. svn checkout https://svn.xiph.org/trunk/vorbis/ ~/vorbis_svn 2) ./configure 3) ./autogen.sh 4) make 5) sudo make install 6) cd examples/ 7) make At step 7, I am getting the below error. /bin/bash ../libtool --tag=CC --mode=link gcc -O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -o decoder_example decoder_example.o ../lib/libvorbis.la libtool: link: gcc -O3 -Wall -Wextra -ffast-math -D_REENTRANT -fsigned-char -Wdeclaration-after-statement -DUSE_MEMORY_H -o .libs/decoder_example decoder_example.o ../lib/.libs/libvorbis.so /usr/bin/ld: decoder_example.o: undefined reference to symbol 'ogg_stream_packetout' //usr/local/lib/libogg.so.0: error adding symbols: DSO missing from command line collect2: error: ld returned 1 exit status make: *** [decoder_example] Error 1 Please help me in getting this work done. On Mon, May 18, 2015 at 11:23 PM, Erik de Castro Lopo <mle+la at mega-nerd.com> wrote:> Arun Balaji Prithivi Raj wrote: > > > When I compiled the '*encoder_example.c'* file present in the above git > > repo, I am getting this error message. > > Please do not send screen shots to the mailing list. Copying the text > and pasting that would have been more than sufficient and actually > easier to read. > > Obivously, it is not possible to compile encode_example.c the way you > tried. This tutorial > > http://www.thegeekstuff.com/2012/06/install-from-source/ > > and others like it should get you to a point wherre you can compile > this from source. > > Erik > -- > ---------------------------------------------------------------------- > Erik de Castro Lopo > http://www.mega-nerd.com/ > _______________________________________________ > Vorbis-dev mailing list > Vorbis-dev at xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis-dev >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20150518/c53d5d14/attachment.htm