From ross at stationplaylist.com Tue Jan 3 22:31:02 2017 From: ross at stationplaylist.com (Ross Levis) Date: Wed, 4 Jan 2017 11:31:02 +1300 Subject: [Vorbis] Vorbis encoding at half speed References: <002401cb5ecf$76e743e0$64b5cba0$@com> <4CA18844.5000608@gmail.com> <005b01cb5ee5$11bcaad0$35360070$@com> Message-ID: <006f01d26611$122d6dd0$36884970$@com> I’m using a Windows development component which uses vorbis.dll, ogg.dll, vorbisenc.dll for encoding an Ogg Vorbis file. It's all working well except for one user occasionally has a 1 hour file appear as 2 hours and it plays at half speed. It is being converted from stereo to mono before feeding the encoder with a channels=1 configuration. Here is an example file which will be available for a few weeks. http://stationplaylist.com/temp2398/Hour2.ogg Any ideas why this should occur sometimes but works fine other times? Ross. From ihara_h at live.jp Tue Jan 3 23:51:50 2017 From: ihara_h at live.jp (IHARA Hiroka) Date: Tue, 3 Jan 2017 23:51:50 +0000 Subject: [Vorbis] Vorbis encoding at half speed In-Reply-To: <006f01d26611$122d6dd0$36884970$@com> References: <002401cb5ecf$76e743e0$64b5cba0$@com> <4CA18844.5000608@gmail.com> <005b01cb5ee5$11bcaad0$35360070$@com> <006f01d26611$122d6dd0$36884970$@com> Message-ID: Hello Ross, The attachment appears at least to me as a valid monaural Vorbis audio. It says in its header that there is only one audio channel, no stereo mapping is in use, and there is only one audio vector per frame. Actually it does not sound well, in a way that makes me wonder if two channels are unexpectedly merged into one... (thus it might sound like half-speed) I guess there is something wrong with the encoder setting you are using, or with the original stream to be transcoded. You might want to supply more pieces of information which you think are relevant to the transcoding process (original stream, encoder settings and so on). Regards, Hiroka -- Hiroka IHARA Department of Information and Communication Engineering, The University of Tokyo ihara_h at live.jp On 2017年01月04日 07:31, Ross Levis wrote: > I’m using a Windows development component which uses vorbis.dll, ogg.dll, vorbisenc.dll for encoding an Ogg Vorbis file. It's all working well except for one user occasionally has a 1 hour file appear as 2 hours and it plays at half speed. It is being converted from stereo to mono before feeding the encoder with a channels=1 configuration. > > Here is an example file which will be available for a few weeks. > http://stationplaylist.com/temp2398/Hour2.ogg > > Any ideas why this should occur sometimes but works fine other times? > > Ross. > > > _______________________________________________ > Vorbis mailing list > Vorbis at xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis From xiphmont at xiph.org Wed Jan 4 00:17:15 2017 From: xiphmont at xiph.org (xiphmont at xiph.org) Date: Tue, 3 Jan 2017 19:17:15 -0500 Subject: [Vorbis] Vorbis encoding at half speed In-Reply-To: References: <002401cb5ecf$76e743e0$64b5cba0$@com> <4CA18844.5000608@gmail.com> <005b01cb5ee5$11bcaad0$35360070$@com> <006f01d26611$122d6dd0$36884970$@com> Message-ID: Echoing Hiroka, who is likely on the right track. Simply telling the encoder 'one channel' and then passing stereo data will not convert the stereo data to mono. The encoder encodes whatever it is given... Monty On Tue, Jan 3, 2017 at 6:51 PM, IHARA Hiroka wrote: > Hello Ross, > > The attachment appears at least to me as a valid monaural Vorbis audio. > > It says in its header that there is only one audio channel, no stereo > mapping is in use, and there is only one audio vector per frame. > > Actually it does not sound well, in a way that makes me wonder if two > channels are unexpectedly merged into one... (thus it might sound like > half-speed) > > I guess there is something wrong with the encoder setting you are using, > or with the original stream to be transcoded. > > You might want to supply more pieces of information which you think are > relevant to the transcoding process (original stream, encoder settings > and so on). > > Regards, > > Hiroka > > -- > > Hiroka IHARA > > Department of Information and Communication Engineering, The University > of Tokyo > > ihara_h at live.jp > > On 2017年01月04日 07:31, Ross Levis wrote: >> I’m using a Windows development component which uses vorbis.dll, ogg.dll, vorbisenc.dll for encoding an Ogg Vorbis file. It's all working well except for one user occasionally has a 1 hour file appear as 2 hours and it plays at half speed. It is being converted from stereo to mono before feeding the encoder with a channels=1 configuration. >> >> Here is an example file which will be available for a few weeks. >> http://stationplaylist.com/temp2398/Hour2.ogg >> >> Any ideas why this should occur sometimes but works fine other times? >> >> Ross. >> >> >> _______________________________________________ >> Vorbis mailing list >> Vorbis at xiph.org >> http://lists.xiph.org/mailman/listinfo/vorbis > > _______________________________________________ > Vorbis mailing list > Vorbis at xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis From ross at stationplaylist.com Wed Jan 4 00:33:56 2017 From: ross at stationplaylist.com (Ross Levis) Date: Wed, 4 Jan 2017 13:33:56 +1300 Subject: [Vorbis] Vorbis encoding at half speed In-Reply-To: References: <002401cb5ecf$76e743e0$64b5cba0$@com> <4CA18844.5000608@gmail.com> <005b01cb5ee5$11bcaad0$35360070$@com> <006f01d26611$122d6dd0$36884970$@com> Message-ID: <000301d26622$3d25e2e0$b771a8a0$@com> When the source is stereo, the code is down mixing stereo to mono before the output to vorbis_analysis_wrote. I can't duplicate any problem here but there must be some issue in the code. Thanks anyway. -----Original Message----- From: Vorbis [mailto:vorbis-bounces at xiph.org] On Behalf Of xiphmont at xiph.org Sent: Wednesday, 4 January 2017 1:17 p.m. To: IHARA Hiroka Cc: vorbis at xiph.org Subject: Re: [Vorbis] Vorbis encoding at half speed Echoing Hiroka, who is likely on the right track. Simply telling the encoder 'one channel' and then passing stereo data will not convert the stereo data to mono. The encoder encodes whatever it is given... Monty On Tue, Jan 3, 2017 at 6:51 PM, IHARA Hiroka wrote: > Hello Ross, > > The attachment appears at least to me as a valid monaural Vorbis audio. > > It says in its header that there is only one audio channel, no stereo > mapping is in use, and there is only one audio vector per frame. > > Actually it does not sound well, in a way that makes me wonder if two > channels are unexpectedly merged into one... (thus it might sound like > half-speed) > > I guess there is something wrong with the encoder setting you are > using, or with the original stream to be transcoded. > > You might want to supply more pieces of information which you think > are relevant to the transcoding process (original stream, encoder > settings and so on). > > Regards, > > Hiroka > > -- > > Hiroka IHARA > > Department of Information and Communication Engineering, The > University of Tokyo > > ihara_h at live.jp > > On 2017年01月04日 07:31, Ross Levis wrote: >> I’m using a Windows development component which uses vorbis.dll, ogg.dll, vorbisenc.dll for encoding an Ogg Vorbis file. It's all working well except for one user occasionally has a 1 hour file appear as 2 hours and it plays at half speed. It is being converted from stereo to mono before feeding the encoder with a channels=1 configuration. >> >> Here is an example file which will be available for a few weeks. >> http://stationplaylist.com/temp2398/Hour2.ogg >> >> Any ideas why this should occur sometimes but works fine other times? >> >> Ross. >> >> >> _______________________________________________ >> Vorbis mailing list >> Vorbis at xiph.org >> http://lists.xiph.org/mailman/listinfo/vorbis > > _______________________________________________ > Vorbis mailing list > Vorbis at xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis _______________________________________________ Vorbis mailing list Vorbis at xiph.org http://lists.xiph.org/mailman/listinfo/vorbis