Re: [SLUG] I wanna...

From: Eben King (eben1@tampabay.rr.com)
Date: Sat Aug 16 2003 - 12:35:45 EDT


On Sat, 16 Aug 2003, Daniel Holth wrote:

> On Fri, 2003-08-15 at 22:56, Eben King wrote:
> > I'm far from an expert but...
> >
> > If they're like MP3s, then the only way that I know of to combine them is
> > to do something like:
> >
> > { decode $first_file ; decode $second_file ; } | encode > $combined_file
> >
> > but that involves another decode-encode cycle, which is a Bad Thing.
>
> I think a benchmark is in order...
>
> Method A:
> time ogg123 -d raw -f - 01\ Mars\,_the_bringer_of_war.ogg
> ../Weird_Al_Yankovic/My_Bologna.07.ogg.ogg | oggenc -q3 -r - >
> /tmp/MarsBologna.ogg
>
> (encoding/decoding output)
>
> real 1m45.706s
> user 1m25.329s
> sys 0m3.423s
>
> File size: 7.1 megabytes
>
> Method B:
> time cat 01\ Mars\,_the_bringer_of_war.ogg
> ../Weird_Al_Yankovic/My_Bologna.07.ogg.ogg >
> /tmp/MarsBolognaB.ogg
>
> real 0m0.167s
> user 0m0.004s
> sys 0m0.100s
>
> File size: 11 megabytes

Since "cat file_1 file_2 > combined_file" works (no file header in *.ogg?
OK), it is almost certainly better (in terms of output quality). The
reduction in file size by "{ decode file_1 ; decode file_2 ; } | encode >
combined_file" represents a loss of data. I was not aware that you can
just concatenate them. That's easier than Method A.

BTW, do *.ogg files store title/artist/album/etc. like *.mp3 files do?
What's in the concatenated file?

-- 
-eben    ebQenW1@EtaRmpTabYayU.rIr.OcoPm    home.tampabay.rr.com/hactar
SCORPIO:  Get ready for an unexpected trip when you fall screaming
from an open window.  Work a little harder on improving your low self
esteem, you stupid freak.  -- Weird Al, _Your Horoscope for Today_

----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.



This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 17:27:34 EDT