On Sun, Oct 22, 2006 at 07:15:56AM -0700, Ralph Giles wrote:> On Sun, Oct 22, 2006 at 02:49:07AM +0200, A.David David wrote: > > > Hi all, I am trying to append some image to my ogg file > > but it results to corruption of the file, as there is no real way of > > including images > > in the OGG, I just tried to append the image at the end. > > Yes, that will look like corruption to any reader. > > The spec-compliant way to do this is to put the image in a separate ogg > stream and multiplex it with the audio. See http://wiki.xiph.org/OggMNG > for how to do this with PNG and jpeg images. Unfortunately, vorbisfile > based audio player won't play such files. This is a limitation of > libvorbis.Tahseen Mohammad recently worked on a version of libvorbisfile which could handle such files; that branch is at: http://svn.xiph.org/branches/vorbis-tahseen/ it would be good to see if we can work towards that work being merged into the libvorbis trunk. The first step is to have some more people trying it out in their applications and giving feedback :-) cheers, Conrad.
On 23/10/06, Conrad Parker <conrad@metadecks.org> wrote:> On Sun, Oct 22, 2006 at 07:15:56AM -0700, Ralph Giles wrote: > > On Sun, Oct 22, 2006 at 02:49:07AM +0200, A.David David wrote: > > > > > Hi all, I am trying to append some image to my ogg file > > > but it results to corruption of the file, as there is no real way of > > > including images > > > in the OGG, I just tried to append the image at the end. > > > > Yes, that will look like corruption to any reader. > > > > The spec-compliant way to do this is to put the image in a separate ogg > > stream and multiplex it with the audio. See http://wiki.xiph.org/OggMNG > > for how to do this with PNG and jpeg images. Unfortunately, vorbisfile > > based audio player won't play such files. This is a limitation of > > libvorbis. > > Tahseen Mohammad recently worked on a version of libvorbisfile which > could handle such files; that branch is at: > > http://svn.xiph.org/branches/vorbis-tahseen/ > > it would be good to see if we can work towards that work being merged > into the libvorbis trunk. The first step is to have some more people > trying it out in their applications and giving feedback :-) >I'll have a look at building the xmms plugin or something with it, but may not have time this week and am away the next. Will it handle chained muxed streams? As for merging, it's been pointed out a couple of times now that there are a lot of patches waiting to go in. It just doesn't seem to happen. -- imalone
On 10/23/06, Ian Malone <ibmalone@gmail.com> wrote:> As for merging, it's been pointed out a couple of times now that > there are a lot of patches waiting to go in. It just doesn't seem to > happen.I've noted the location of the patch-- it's on my queue. There's no day-to-day maintainer of Vorbis, just me-- the original author-- and I'm balancing that with new development. Not an excuse, just an explanation. Monty
Ian Malone wrote:> On 23/10/06, Conrad Parker <conrad@metadecks.org> wrote: >> On Sun, Oct 22, 2006 at 07:15:56AM -0700, Ralph Giles wrote: >> > On Sun, Oct 22, 2006 at 02:49:07AM +0200, A.David David wrote: >> > >> > > Hi all, I am trying to append some image to my ogg file >> > > but it results to corruption of the file, as there is no real way of >> > > including images >> > > in the OGG, I just tried to append the image at the end. >> > >> > Yes, that will look like corruption to any reader. >> > >> > The spec-compliant way to do this is to put the image in a separate ogg >> > stream and multiplex it with the audio. See http://wiki.xiph.org/OggMNG >> > for how to do this with PNG and jpeg images. Unfortunately, vorbisfile >> > based audio player won't play such files. This is a limitation of >> > libvorbis. >> >> Tahseen Mohammad recently worked on a version of libvorbisfile which >> could handle such files; that branch is at: >> >> http://svn.xiph.org/branches/vorbis-tahseen/ >> >> it would be good to see if we can work towards that work being merged >> into the libvorbis trunk. The first step is to have some more people >> trying it out in their applications and giving feedback :-) >> > > I'll have a look at building the xmms plugin or something with it, but may > not have time this week and am away the next. Will it handle chained > muxed streams? >Okay, I've built a libvorbis package using http://svn.xiph.org/branches/vorbis-tahseen, however when I run ogg123 on my test files (with interleaved Vorbis and non-Vorbis pages), I still get "=== Vorbis library reported a stream error." coming up every time it crosses a non-Vorbis, with the corresponding clicks, XMMS behaves the same way too. I'm pretty sure that I am actually using the Tahseen library. Is this the kind of case it's meant to handle? If so I'll have a further look at what's going wrong. -- imalone