HydrogenAudio

Lossy Audio Compression => Ogg Vorbis => Ogg Vorbis - General => Topic started by: siorin on 2003-10-08 16:15:51

Title: How to extract chain ogg file
Post by: siorin on 2003-10-08 16:15:51
I want to extract chain ogg file.
Please tell me how can I extract chain ogg file to each song.
I've tried oggcut.ext,But I need cut by manually and it isn't work good.
Title: How to extract chain ogg file
Post by: Biont on 2003-10-08 17:05:42
Hey, that's a good question! I'm believe there is no tool for directly cutting ogg into small oggs. I mean, there is no tool, that would search for specified silence gaps and automatically cut in that place. But does anyone know of such tool for wavs? There must be. Standalone or like DX plugin, so you could just input the whole album and it would cut it to songs.
Title: How to extract chain ogg file
Post by: john33 on 2003-10-08 17:41:07
The oggdec and oggdropXPd at Rarewares will both decode a chained ogg file to separate wave files, but they don't split the chain into separate ogg files.
Title: How to extract chain ogg file
Post by: siorin on 2003-10-10 05:01:49
Thanks.
It is necessary to decode to wav in order to extract ogg chainfile into each track.
So It is better archive zip file then play by foobar.
Title: How to extract chain ogg file
Post by: Peter Harris on 2003-10-10 14:34:14
Quote
I want to extract chain ogg file.
Please tell me how can I extract chain ogg file to each song.

Check out http://www.xiph.org/archives/vorbis-dev/20...00308/0004.html (http://www.xiph.org/archives/vorbis-dev/200308/0004.html), but you might need to compile it yourself. Unless the awesome people that run RareWares are watching, that is.
Title: How to extract chain ogg file
Post by: john33 on 2003-10-10 17:06:03
Quote
Quote
I want to extract chain ogg file.
Please tell me how can I extract chain ogg file to each song.

Check out http://www.xiph.org/archives/vorbis-dev/20...00308/0004.html (http://www.xiph.org/archives/vorbis-dev/200308/0004.html), but you might need to compile it yourself. Unless the awesome people that run RareWares are watching, that is.

Well, I downloaded and finally managed to get a clean MSVC compile. However, there is some sort of problem in that if I create a chained file using the usual:-
copy /b a.ogg+b.ogg c.ogg, for example and then run c.ogg against oggsplit, I simply get an error message. But if I run the file through oggdropXPd and decode to wav, I get the expected result. Any ideas? Have you tried it yourself?
Title: How to extract chain ogg file
Post by: dev0 on 2003-10-10 17:53:07
Have you tried the more recent OggSplit 0.1.0 (http://www.xiph.org/archives/vorbis-dev/200308/0010.html)?
Title: How to extract chain ogg file
Post by: john33 on 2003-10-10 18:37:07
Quote
Have you tried the more recent OggSplit 0.1.0 (http://www.xiph.org/archives/vorbis-dev/200308/0010.html)?

Yes, I have!  Even with the slightly later patch.
Title: How to extract chain ogg file
Post by: Peter Harris on 2003-10-11 01:29:03
Quote
Any ideas? Have you tried it yourself?

No, I haven't tried it myself. Maybe it's time to download MinGW so I can look at these things when I'm at home, too...

The first thing that comes to mind is that fopen() needs "rb" and "wb" on DOS successors, rather than simply "r" and "w".

Hmmm. I'll go install MinGW now, and see if I can make any headway.
Title: How to extract chain ogg file
Post by: Peter Harris on 2003-10-11 02:06:54
Quote
The first thing that comes to mind is that fopen() needs "rb" and "wb" on DOS successors, rather than simply "r" and "w".

Yeah, that seems to be it. At least, OggSplit 0.1.0 with the extra patch from later on in the thread, changing "r" to "rb" and "w" to "wb", compiled with MinGW, and run with the -c flag, successfully split the one test file I just created with copy /b. Confirmed identical to the original files with diff.
Title: How to extract chain ogg file
Post by: john33 on 2003-10-11 11:40:49
Quote
Quote
The first thing that comes to mind is that fopen() needs "rb" and "wb" on DOS successors, rather than simply "r" and "w".

Yeah, that seems to be it. At least, OggSplit 0.1.0 with the extra patch from later on in the thread, changing "r" to "rb" and "w" to "wb", compiled with MinGW, and run with the -c flag, successfully split the one test file I just created with copy /b. Confirmed identical to the original files with diff.

Doh!!!  Braindead, again!!  Recompiled and tested OK. I'll upload to Rarewares in the next few minutes. Thanks Peter.

Edit: Available now.
Title: How to extract chain ogg file
Post by: Mac on 2003-10-11 12:50:39
Thanks John & Peter

I have a 140mb chained ogg with 50 streams inside..  when I actually have enough room (140mb free) to split it into individual files I'll give this tool a bash
Title: Re: How to extract chain ogg file
Post by: Kraeved on 2024-03-10 16:10:47
@john33, there is a missing file (error 404) on Rarewares (https://www.rarewares.org/ogg-tools.php).

Quote
oggsplit v0.1.0
2003-11-20
Utility to unchain and ungroup ogg files by Philip Jagenstedt.
Download (28kB)
Title: Re: How to extract chain ogg file
Post by: john33 on 2024-03-10 17:00:09
Thanks for the notification. Corrected now.