public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] concatenate ogg-files...?
@ 2011-01-30 13:55 meino.cramer
  2011-01-30 14:31 ` Mick
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: meino.cramer @ 2011-01-30 13:55 UTC (permalink / raw
  To: Gentoo


Hi,

I have three ogg-files (audio) which I want to concatenate 
in a way, so that as much as possible of the audio quality
will be preserved and the result should be an ogg-file again,
which not only plays ok, because mplayer or what ever simply
skipps over format violations but is of a valid ogg format.

How can I do this ?

Thank you very much in advance for any help!
Best regards,
mcc





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 13:55 [gentoo-user] concatenate ogg-files...? meino.cramer
@ 2011-01-30 14:31 ` Mick
  2011-01-30 14:52   ` meino.cramer
  2011-01-30 14:48 ` Florian Philipp
                   ` (2 subsequent siblings)
  3 siblings, 1 reply; 11+ messages in thread
From: Mick @ 2011-01-30 14:31 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 643 bytes --]

On Sunday 30 January 2011 13:55:41 meino.cramer@gmx.de wrote:
> Hi,
> 
> I have three ogg-files (audio) which I want to concatenate
> in a way, so that as much as possible of the audio quality
> will be preserved and the result should be an ogg-file again,
> which not only plays ok, because mplayer or what ever simply
> skipps over format violations but is of a valid ogg format.
> 
> How can I do this ?
> 
> Thank you very much in advance for any help!
> Best regards,
> mcc

Have you looked at ffmpeg?  It has the concat protocol to join files together 
- have not tried it with ogg though, so YMMV.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 13:55 [gentoo-user] concatenate ogg-files...? meino.cramer
  2011-01-30 14:31 ` Mick
@ 2011-01-30 14:48 ` Florian Philipp
  2011-01-30 15:12   ` covici
  2011-01-30 15:47 ` Neil Bothwick
  2011-01-31 15:47 ` Paul Hartman
  3 siblings, 1 reply; 11+ messages in thread
From: Florian Philipp @ 2011-01-30 14:48 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 734 bytes --]

Am 30.01.2011 14:55, schrieb meino.cramer@gmx.de:
> 
> Hi,
> 
> I have three ogg-files (audio) which I want to concatenate 
> in a way, so that as much as possible of the audio quality
> will be preserved and the result should be an ogg-file again,
> which not only plays ok, because mplayer or what ever simply
> skipps over format violations but is of a valid ogg format.
> 
> How can I do this ?
> 

There is ogmcat which belongs to ogmtools. However, it explicitly says
in its man-page that it does not work. You might still try it out.

Can it be a Matroska file, as well? There is an option in mkvmerge to
append streams in MKV/MKA, as well. Maybe that one works better.

Hope this helps,
Florian Philipp


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 14:31 ` Mick
@ 2011-01-30 14:52   ` meino.cramer
  2011-01-30 15:24     ` Mick
  0 siblings, 1 reply; 11+ messages in thread
From: meino.cramer @ 2011-01-30 14:52 UTC (permalink / raw
  To: gentoo-user

Mick <michaelkintzios@gmail.com> [11-01-30 15:36]:
> On Sunday 30 January 2011 13:55:41 meino.cramer@gmx.de wrote:
> > Hi,
> > 
> > I have three ogg-files (audio) which I want to concatenate
> > in a way, so that as much as possible of the audio quality
> > will be preserved and the result should be an ogg-file again,
> > which not only plays ok, because mplayer or what ever simply
> > skipps over format violations but is of a valid ogg format.
> > 
> > How can I do this ?
> > 
> > Thank you very much in advance for any help!
> > Best regards,
> > mcc
> 
> Have you looked at ffmpeg?  It has the concat protocol to join files together 
> - have not tried it with ogg though, so YMMV.
> -- 
> Regards,
> Mick


Hi Mick,

thanks for your reply!

Are the ogg-files reencoded? If yes: If possible I am looking for a
solution which does not do that, cause it implies a loss of quality...

Best regards,
mcc





^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 14:48 ` Florian Philipp
@ 2011-01-30 15:12   ` covici
  0 siblings, 0 replies; 11+ messages in thread
From: covici @ 2011-01-30 15:12 UTC (permalink / raw
  To: gentoo-user

Florian Philipp <lists@binarywings.net> wrote:

> Am 30.01.2011 14:55, schrieb meino.cramer@gmx.de:
> > 
> > Hi,
> > 
> > I have three ogg-files (audio) which I want to concatenate 
> > in a way, so that as much as possible of the audio quality
> > will be preserved and the result should be an ogg-file again,
> > which not only plays ok, because mplayer or what ever simply
> > skipps over format violations but is of a valid ogg format.
> > 
> > How can I do this ?
> > 
> 
> There is ogmcat which belongs to ogmtools. However, it explicitly says
> in its man-page that it does not work. You might still try it out.
> 
> Can it be a Matroska file, as well? There is an option in mkvmerge to
> append streams in MKV/MKA, as well. Maybe that one works better.
The ogg spec says you can just cat them -- I found this played the
audio, but the timecode got messed up, so I don't generally do it.

-- 
Your life is like a penny.  You're going to lose it.  The question is:
How do
you spend it?

         John Covici
         covici@ccs.covici.com



^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 14:52   ` meino.cramer
@ 2011-01-30 15:24     ` Mick
  0 siblings, 0 replies; 11+ messages in thread
From: Mick @ 2011-01-30 15:24 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: Text/Plain, Size: 1361 bytes --]

On Sunday 30 January 2011 14:52:36 meino.cramer@gmx.de wrote:
> Mick <michaelkintzios@gmail.com> [11-01-30 15:36]:
> > On Sunday 30 January 2011 13:55:41 meino.cramer@gmx.de wrote:
> > > Hi,
> > > 
> > > I have three ogg-files (audio) which I want to concatenate
> > > in a way, so that as much as possible of the audio quality
> > > will be preserved and the result should be an ogg-file again,
> > > which not only plays ok, because mplayer or what ever simply
> > > skipps over format violations but is of a valid ogg format.
> > > 
> > > How can I do this ?
> > > 
> > > Thank you very much in advance for any help!
> > > Best regards,
> > > mcc
> > 
> > Have you looked at ffmpeg?  It has the concat protocol to join files
> > together - have not tried it with ogg though, so YMMV.
> 
> Hi Mick,
> 
> thanks for your reply!
> 
> Are the ogg-files reencoded? If yes: If possible I am looking for a
> solution which does not do that, cause it implies a loss of quality...

I'm not the most educated in video/audio matters to advise here, but I know 
that if you use ffmpeg and specify '-acodec copy' it will do just that with 
the raw data.  I know you can use ffmpeg with streams, so some clever use of 
pipes may be required for your application.

Perhaps someone more knowledgeable can chime in here.
-- 
Regards,
Mick

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 13:55 [gentoo-user] concatenate ogg-files...? meino.cramer
  2011-01-30 14:31 ` Mick
  2011-01-30 14:48 ` Florian Philipp
@ 2011-01-30 15:47 ` Neil Bothwick
  2011-01-30 16:06   ` meino.cramer
  2011-01-31 15:47 ` Paul Hartman
  3 siblings, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2011-01-30 15:47 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 581 bytes --]

On Sun, 30 Jan 2011 14:55:41 +0100, meino.cramer@gmx.de wrote:

> I have three ogg-files (audio) which I want to concatenate 
> in a way, so that as much as possible of the audio quality
> will be preserved and the result should be an ogg-file again,
> which not only plays ok, because mplayer or what ever simply
> skipps over format violations but is of a valid ogg format.

Mencoder should do this, something like

mencoder -oac copy -o newfile.ogg oldfile1.ogg oldfile2.ogg...


-- 
Neil Bothwick

"I heard Tasha Yar is the Enterprise's expert on Data entry."

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 15:47 ` Neil Bothwick
@ 2011-01-30 16:06   ` meino.cramer
  2011-01-30 16:14     ` Neil Bothwick
  0 siblings, 1 reply; 11+ messages in thread
From: meino.cramer @ 2011-01-30 16:06 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> [11-01-30 16:52]:
> On Sun, 30 Jan 2011 14:55:41 +0100, meino.cramer@gmx.de wrote:
> 
> > I have three ogg-files (audio) which I want to concatenate 
> > in a way, so that as much as possible of the audio quality
> > will be preserved and the result should be an ogg-file again,
> > which not only plays ok, because mplayer or what ever simply
> > skipps over format violations but is of a valid ogg format.
> 
> Mencoder should do this, something like
> 
> mencoder -oac copy -o newfile.ogg oldfile1.ogg oldfile2.ogg...
> 
> 
> -- 
> Neil Bothwick
> 
> "I heard Tasha Yar is the Enterprise's expert on Data entry."

Unfortunately mencoder cannot be used without a video stream.
There is no -ovc null or something like that.

mcc




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 16:06   ` meino.cramer
@ 2011-01-30 16:14     ` Neil Bothwick
  2011-01-30 16:54       ` meino.cramer
  0 siblings, 1 reply; 11+ messages in thread
From: Neil Bothwick @ 2011-01-30 16:14 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 390 bytes --]

On Sun, 30 Jan 2011 17:06:14 +0100, meino.cramer@gmx.de wrote:

> > Mencoder should do this, something like
> > 
> > mencoder -oac copy -o newfile.ogg oldfile1.ogg oldfile2.ogg...

> Unfortunately mencoder cannot be used without a video stream.
> There is no -ovc null or something like that.

-vc null or -novideo


-- 
Neil Bothwick

Why is the word abbreviation so long?

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 16:14     ` Neil Bothwick
@ 2011-01-30 16:54       ` meino.cramer
  0 siblings, 0 replies; 11+ messages in thread
From: meino.cramer @ 2011-01-30 16:54 UTC (permalink / raw
  To: gentoo-user

Neil Bothwick <neil@digimed.co.uk> [11-01-30 17:20]:
> On Sun, 30 Jan 2011 17:06:14 +0100, meino.cramer@gmx.de wrote:
> 
> > > Mencoder should do this, something like
> > > 
> > > mencoder -oac copy -o newfile.ogg oldfile1.ogg oldfile2.ogg...
> 
> > Unfortunately mencoder cannot be used without a video stream.
> > There is no -ovc null or something like that.
> 
> -vc null or -novideo
> 
> 
> -- 
> Neil Bothwick
> 
> Why is the word abbreviation so long?


In both cases (output of one listed below) it fails because
of no video...

MEncoder SVN-r32624-4.4.4 (C) 2000-2010 MPlayer Team

WARNING: OUTPUT FILE FORMAT IS _AVI_. See -of help.
success: format: 0  data: 0x0 - 0x9ef590
libavformat file format detected.
[lavf] stream 0: audio (vorbis), -aid 0
Video stream is mandatory!

Exiting...


mcc




^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [gentoo-user] concatenate ogg-files...?
  2011-01-30 13:55 [gentoo-user] concatenate ogg-files...? meino.cramer
                   ` (2 preceding siblings ...)
  2011-01-30 15:47 ` Neil Bothwick
@ 2011-01-31 15:47 ` Paul Hartman
  3 siblings, 0 replies; 11+ messages in thread
From: Paul Hartman @ 2011-01-31 15:47 UTC (permalink / raw
  To: gentoo-user

On Sun, Jan 30, 2011 at 7:55 AM,  <meino.cramer@gmx.de> wrote:
>
> Hi,
>
> I have three ogg-files (audio) which I want to concatenate
> in a way, so that as much as possible of the audio quality
> will be preserved and the result should be an ogg-file again,
> which not only plays ok, because mplayer or what ever simply
> skipps over format violations but is of a valid ogg format.
>
> How can I do this ?

Haven't tried, but Ogg Video Tools from
http://dev.streamnik.de/files.html seems to have an oggCat tool for
concatenating ogg files.



^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2011-01-31 15:49 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-30 13:55 [gentoo-user] concatenate ogg-files...? meino.cramer
2011-01-30 14:31 ` Mick
2011-01-30 14:52   ` meino.cramer
2011-01-30 15:24     ` Mick
2011-01-30 14:48 ` Florian Philipp
2011-01-30 15:12   ` covici
2011-01-30 15:47 ` Neil Bothwick
2011-01-30 16:06   ` meino.cramer
2011-01-30 16:14     ` Neil Bothwick
2011-01-30 16:54       ` meino.cramer
2011-01-31 15:47 ` Paul Hartman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox