Joining two oggs together

168 views
Skip to first unread message

dai

unread,
Mar 28, 2010, 3:19:14 PM3/28/10
to ShowMeDo
Hi guy's just a quick question is there a way to join two ogv files
together (probably in mencoder or ffmpeg) before I upload them. I made
a movie for stopping the annoying default keyring popup for evolution
and empathy but need to join these two ogv's together before
uploading.

What's the code in mencoder or ffmpeg?

Alan Pope

unread,
Mar 28, 2010, 3:23:58 PM3/28/10
to show...@googlegroups.com

Pitivi?

Add both videos in, drag them into place and render it back out as an Ogv?

Cheers,
Al.

Kyran Dale

unread,
Mar 28, 2010, 3:32:29 PM3/28/10
to show...@googlegroups.com
If Alan's method fails, and my experience trying to edit ogvs suggests
it's good to have multiple lines of attack, I had this little tip
lying around, bottom of this thread:

http://ubuntuforums.org/archive/index.php/t-430778.html

As ever with ogvs, there are lots of things that should work but get
snafued somewhere along the line:

"""
I had several "recordmydesktop" ogg/theora videos and I wanted to
concatenate (join) them. I found a way to do it and I want to share it
here.

I couldn't find a way to concatenate theora videos in ogg container
directly. Instead, I appended them inside a matroska container using
the tools of the mkvtools package (following a post I found in
lists.xiph.org). In the command line:

$ mkvmerge -o name-of-file.mkv first.ogg +second.ogg. +third.ogg

... as many .ogg files as I had.

Then, I had to demux both video and audio from matroska and remux into
an ogg file. Well, this time mkvtools wasn't able to help me because
mkvextract can't extract the video into an ogg file (mkvextract can
only extract audio into an ogg file).

The solution was to use gst-launch, from gstreamer. I passed the mkv
file through a demuxer, splitting audio from video, and after it
rejoins them in an .ogg file, using a muxer:

$ gst-launch-0.10 filesrc location=name-of-file.mkv ! matroskademux
name=demux demux.video_00 ! queue ! theoraparse ! mux. demux.audio_00
! queue ! vorbisparse ! mux. oggmux name=mux ! filesink
location=final-file.ogg

and, voilà, I had my ogg/theora video comprising several concatenated clips.

Be careful, though:

1) I read elsewhere that you can concatenate ogg/theora videos by
concatenating the files (using cat). It didn't work for me,
mplayer/xine/etc don't play videos concatenated this way.

2) Clips must all have the same dimensions (height x width) for this
to work. You can see this information using (from package oggz-tools):

$ oggzinfo name-of-file.ogg

3) "mkvmerge" from the mkvtoonix package in the repositories didn't
work for these ogg/theora files (complained about something in the
ogg/theora input files). I have had to download source code from
http://www.bunkus.org/videotools/mkvtoolnix/ and compile it.
"""

> --
> You received this message because you are subscribed to the Google Groups "ShowMeDo" group.
> To post to this group, send email to show...@googlegroups.com.
> To unsubscribe from this group, send email to showmedo+u...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/showmedo?hl=en.
>
>

dai

unread,
Mar 28, 2010, 4:22:25 PM3/28/10
to ShowMeDo
Foou sounds like a lot of work. How about joining two .flv files I can
convert them into .flv's no problem other wise it's part one and part
two and stuff the messing around.

> ogg/theora input files). I have had to download source code fromhttp://www.bunkus.org/videotools/mkvtoolnix/and compile it.
> """
>
> On 28 March 2010 20:23, Alan Pope <a...@popey.com> wrote:

Kyran Dale

unread,
Mar 28, 2010, 4:32:02 PM3/28/10
to show...@googlegroups.com
it's always easier to convert the oggs and use the much richer
mpeg/avi toolset. But then you miss out on all the fun ;)

heathenx

unread,
Mar 29, 2010, 7:32:42 AM3/29/10
to ShowMeDo

I have been using OggVideoTools' oggCat (http://dev.streamnik.de/
oggvideotools.html) to join two or more theora/vorbis videos together.
I believe popey gave me that tip a while back. So a sample command
would look like this: oggCat output.ogv input1.ogv input2.ogv

The tricky part is making sure that both videos to be joined have
identical video and audio settings, such as, fps and audio bitrate
among others. Joining two RMD videos should be a cake walk if you
haven't changed settings between screencasting.

One can use ffmpeg2theora(offline) or fireogg(online) to prep your
videos if needed before joining them together. I think fireogg only
works with Firefox. I've used it a number of times and it works really
well.

Btw, PiTiVi is a great backup method. When NOTHING else works then a
simple transcode to xvid via mencoder and a join with mencoder and a
final push back to theora with ffmpeg2theora also works. However, you
will lose a little quality because of it. That's my nuclear option
anyway. ;)

dai

unread,
Mar 29, 2010, 6:05:23 PM3/29/10
to ShowMeDo
Nope it's aborting the process probably settings. ah well never mid
I'll try it on some other ones in the future

dai

unread,
Mar 29, 2010, 6:15:23 PM3/29/10
to ShowMeDo
http://dl.dropbox.com/u/910097/demo-crossfade.ogv.flv
flv conversion using nautilus script. just in case anyone was
interested in doing this for holiday snaps.

On Mar 29, 11:32 am, heathenx <heath...@gmail.com> wrote:

Reply all
Reply to author
Forward
0 new messages