Help - Search - Members - Calendar
Full Version: Is there a way to merge 2 ogg vorbis files ?
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - General
curna
Hi.

I will like to know if there is a way to merge 2 or more ogg vorbis files into only just one ogg vorbis, without having to recompress the files. I don't want to lose any quality in the process.

Thanks for any answer.
john33
QUOTE(curna @ Apr 3 2003 - 08:30 PM)
Hi.

I will like to know if there is a way to merge 2 or more ogg vorbis files into only just one ogg vorbis, without having to recompress the files. I don't want to lose any quality in the process.

Thanks for any answer.

Do you mean you want to 'chain' them?

If so, then at the command prompt:

copy /b a.ogg + b.ogg c.ogg

should do it. wink.gif
Mac
Will anything other than foobar be able to play more than just the first file in the chain though?
john33
QUOTE(Mac @ Apr 3 2003 - 09:19 PM)
Will anything other than foobar be able to play more than just the first file in the chain though?

oggdropXPd, oggdec (my version) and, I believe Winamp will play it, but won't necessarily display the correct comment info.
kritip
Do they actually parse the file to find the different tracks though. I heard this was working a while ago and tried to do a similar thing but WinAMP, fb2k et cetera would only play the first track and then skip back to the start of the first track, the files reported a very high bit rate though, (for the entire file in playing in the time of the first file/track)!!

I read somthing in the "ogg vorbis" spec's that in this type of chaining, each file must contain an individual stream numer! Is this neccesary, because i tried this in the end and i still didn't get the desired results! Is the "copy /b a.ogg + b.ogg c.ogg" really the onlly stage require. Sorry for my reluctance to just try it again, but i spent far to long last time trying and i nearing my uni FYP end so have very little free time!


Cheers,
Kristian
john33
QUOTE(kritip @ Apr 3 2003 - 10:21 PM)
Do they actually parse the file to find the different tracks though. I heard this was working a while ago and tried to do a similar thing but WinAMP, fb2k et cetera would only play the first track and then skip back to the start of the first track, the files reported a very high bit rate though, (for the entire file in playing in the time of the first file/track)!!

I read somthing in the "ogg vorbis" spec's that in this type of chaining, each file must contain an individual stream numer! Is this neccesary, because i tried this in the end and i still didn't get the desired results! Is the  "copy /b a.ogg + b.ogg c.ogg" really the onlly stage require. Sorry for my reluctance to just try it again, but i spent far to long last time trying and i nearing my uni FYP end so have very little free time!


Cheers,
Kristian

Well, it certainly works with oggdropXPd and my oggdec. That was how I tested that the chaining worked correctly for decoding, either to file, or playback. smile.gif
curna
Thanks John. biggrin.gif biggrin.gif

I've tried it and it seems there is no problem. Winamp could play it without problems.

Tomorrow I'll tell you if there is any problem trying to reproduce it inside a film (ogm).

The only thing I've noted is in the winamp information. Before merging the 2 files, Winamp displays the average bitrate of both files. After joining them, the average bitrate is not anymore inside the information (although the size it's inside and it is correct).

biggrin.gif biggrin.gif
curna
Well, finally it didn't work sad.gif sad.gif sad.gif

When I tried to mux the joined file with the video, VirtualdubMod only muxed the first part of the file. That is, Virtualdubmod didn't recognized the complete file.

So, does anybody know any other way ??
zokik
I muxed chained ogg vorbis to ogm using oggmux, it appears I didn't get even the first part of the chained ogg into ogm. I mean, there is first part with all tags, but no sound. The resulting ogm is almost the same size as avi I muxed, so my guess is oggmux doesn't put anything but tags from chained ogg file into ogm.

Is there a way to tell oggenc to encode multiple wav files to a single ogg vorbis? That would actually do the trick for me, because my problem is usually putting more avi clips containing wave audio to a single ogm.
curna
QUOTE
Is there a way to tell oggenc to encode multiple wav files to a single ogg vorbis? That would actually do the trick for me, because my problem is usually putting more avi clips containing wave audio to a single ogm.


Well, that's also what I wanted.

In theory, using besweet in batch mode should do the trick. However, I had problems. I hope in some new version of besweet the problem could be solved. You could try it and see if you can work it out how to use it.

However, I have an idea that may work (It worked for me in some extent).

1- Encode each wav separetely to ogg vorbis.
2- Mux each ogg vorbis file with some short video using oggmux or virtualdubmod. (In fact, you could mux it with the corresponding video part).
3- Now the idea is to merge all your clips. You can do that using OGMmerger. (If you first muxed each audio with its corresponding part of video, then that's all).
4- You extract the audio from your merged file, and you'll have an only ogg vorbis file that can be played with no problems and you can mux it in your final video.

Links:

http://dspguru.notrace.dk/ (for besweet)
http://cyrius.bunkus.org/index.html (for OGMerger): This porgram will Merge different OGM files together (be careful, the Merging of subtitles doesn't work like it should)
http://virtualdubmod.sourceforge.net/ (for VirtualDubMod)
m0rbidini
Hi everyone!

I always save my albuns in one file (.ape+.cue). I would like to know if it's possible to convert them to one big ogg without using the 'copy /b' command. Maybe I'm not explaining myself in the best way: I would like to have a completely transparent way of encoding .ape+cue albuns to .ogg (importing the information in the cue sheet to the ogg stream). The final result would have to be equal to the obtained using the 'copy /b' command.

BTW, is there any way of "unconcatenate" the files (without using some kind of HEX editor)?

I would use this alot since I share my albuns in the ed2k network

thnx
Mac
Aaah, I finally got around to testing that copy /b method out.. not what I was after sadly smile.gif

I want an album in a single .ogg file, yet when you play it - winamp sees there are 10 different files in there, and shows each one (with track title from filename or tag) indivually.. as though I right clicked on the folder the individual files lived in an hit play in winamp.. smile.gif

Is that remotely possible? For me, copy /b just produced a single track in the playlist. It contained the whole album, seeked and showed bitrate fine - but you can't hit skip forewards and go to the next track, or see the next tracks name in the playlist smile.gif
Garf
QUOTE(Mac @ Apr 9 2003 - 01:38 AM)
I want an album in a single .ogg file, yet when you play it - winamp sees there are 10 different files in there, and shows each one (with track title from filename or tag) indivually.. as though I right clicked on the folder the individual files lived in an hit play in winamp.. smile.gif

Is that remotely possible?  For me, copy /b just produced a single track in the playlist.  It contained the whole album, seeked and showed bitrate fine - but you can't hit skip forewards and go to the next track, or see the next tracks name in the playlist smile.gif

I'm pretty sure FB2K can do this by default.
Mac
Sadly that's what I thought... I'm not a great fan of it though, would prefer sticking with Winamp 2.81 smile.gif
john33
QUOTE(m0rbidini @ Apr 8 2003 - 09:57 PM)
BTW, is there any way of "unconcatenate" the files (without using some kind of HEX editor)?

I would use this alot since I share my albuns in the ed2k network

thnx

If you want to 'unchain' the files on decode, you can use oggdropXPd, or my oggdec, both available at 'ogg vorbis' Mirror 1. You will get separate wav files with the same name as the chained ogg, but numbered '_1', '_2', etc.
m0rbidini
john33: thnx for the reply...

I was thinking a bit more in cutting the whole album to its individual songs directly in ogg (my english still needs training...). I want this not for myself (my main audio player is foobar) but for other users I share the albuns with, that don't use foobar (yet tongue.gif). The other part (encode directly from cue sheets and importing its info) would also be of a great utility for me (and others I think).

What do you think?

thnx again
john33
QUOTE(m0rbidini @ Apr 9 2003 - 06:49 PM)
john33: thnx for the reply...

I was thinking a bit more in cutting the whole album to its individual songs directly in ogg (my english still needs training...). I want this not for myself (my main audio player is foobar) but for other users I share the albuns with, that don't use foobar (yet  tongue.gif). The other part (encode directly from cue sheets and importing its info) would also be of a great utility for me (and others I think).

What do you think?

thnx again

I believe that you can do this with 'vcut', one of the vorbis-tools, but I've never used it myself.
AngelGR
QUOTE
I was thinking a bit more in cutting the whole album to its individual songs directly in ogg

Maybe you can use this. wink.gif
sPeziFisH
O sancta simplicitas - hey guys, what's up?

Why do not use musicutter (or here) ?
stevespint
Sorry to resurrect this thread.....

How can I split a chained ogg file back into its original files ??
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.