Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Combining two avi files
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Multimedia
View previous topic :: View next topic  
Author Message
SlashGentoo
n00b
n00b


Joined: 29 Jun 2003
Posts: 62
Location: Warsaw, Poland

PostPosted: Fri Jan 02, 2004 2:13 pm    Post subject: Combining two avi files Reply with quote

Hey, I have two Xvid avi files. I'm sure that there is some way to combine them using some nifty command line tool, but I just don't know what it's called. Can anyone help?
Back to top
View user's profile Send private message
krusty_ar
Guru
Guru


Joined: 03 Oct 2002
Posts: 560
Location: Rosario, Argentina

PostPosted: Fri Jan 02, 2004 2:25 pm    Post subject: Reply with quote

well, if you want something fancy, I cant help you, but if you just wan't to see them one after the other I'm pretty sure that
Code:
cat file1 file2 > bigfile
would do somethig useable, you will lose all the metadata of course
_________________
I am Beta, don't expect correct behaviour from me.
Take part of the adopt an unaswered post initiative
Back to top
View user's profile Send private message
Coogee
Apprentice
Apprentice


Joined: 23 Apr 2002
Posts: 184
Location: E.U.

PostPosted: Fri Jan 02, 2004 3:27 pm    Post subject: Reply with quote

avicat (it's a part of media-video/avifile)
Back to top
View user's profile Send private message
SlashGentoo
n00b
n00b


Joined: 29 Jun 2003
Posts: 62
Location: Warsaw, Poland

PostPosted: Fri Jan 02, 2004 8:40 pm    Post subject: Reply with quote

Actually there is a nice program called avimerge which comes with I have no idea what ( probably mplayer though ). Works really great :)
Back to top
View user's profile Send private message
_hesoez_
Tux's lil' helper
Tux's lil' helper


Joined: 09 Jun 2003
Posts: 103
Location: Belgium-Duffel/Leuven

PostPosted: Fri Jan 02, 2004 8:51 pm    Post subject: Reply with quote

avimerge works great
thought it was a part of transcode

grtz
Back to top
View user's profile Send private message
botta
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2004
Posts: 89
Location: Italia UE

PostPosted: Fri Jun 04, 2004 2:08 pm    Post subject: Reply with quote

I combined the 2 files, but when I play it, xine stops after the first one. What can i do?

Last edited by botta on Fri Jun 04, 2004 2:45 pm; edited 1 time in total
Back to top
View user's profile Send private message
fafhrd
Retired Dev
Retired Dev


Joined: 14 May 2002
Posts: 431
Location: Williamstown, MA

PostPosted: Fri Jun 04, 2004 2:44 pm    Post subject: Reply with quote

it's all about OGM, imho

ogmtools has a tool called ogmmerge (and ogmsplit...), and I've never had these tools fail on me

i regularly back up my DVDs (damn roommates scratchin' them!) the minute I get them, and some movies I want in high quality, which ends up being about 2 CDs worth, so I split and merge refrequently

OGM is just a wrapper, and not a new "codec" or anything, so it can import most evertyhing...read the man pages, they have lots of examples

btw, if you want to backup DVDs, and gui tools aren't cutting it, a mixture of transcode and ogmtools (and gOCR and aspell for subtitles) is all ya need...
_________________
jñanam bandha
Back to top
View user's profile Send private message
4nykey
Apprentice
Apprentice


Joined: 11 Feb 2004
Posts: 176

PostPosted: Fri Jun 04, 2004 3:26 pm    Post subject: Reply with quote

Something like this maybe:
cat 1.avi 2.avi | mencoder -noidx -ovc copy -oac copy -o 3.avi -
In case these were splitted, i.e same codec, resolution, fps.
Back to top
View user's profile Send private message
baz0
n00b
n00b


Joined: 04 Jun 2004
Posts: 6

PostPosted: Fri Jun 04, 2004 3:42 pm    Post subject: splicing on keyframes Reply with quote

I know avidemux can splice avi files perfectly.

It's a gui but you need to read the manual at
least as far as being able to set the cut points
on keyframes - then there's no problem and
all the pieces will play in the combined file.

hth
Back to top
View user's profile Send private message
botta
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2004
Posts: 89
Location: Italia UE

PostPosted: Sat Jun 05, 2004 1:07 pm    Post subject: Re: splicing on keyframes Reply with quote

Thank you all, avidemux is the solution to my question. Now i can play my avi files with xine. Infact with the suggestion of 4nykey i can open the combined file without problem only with mplayer. ;-)
Back to top
View user's profile Send private message
evoweiss
Veteran
Veteran


Joined: 07 Sep 2003
Posts: 1678
Location: Edinburgh, UK

PostPosted: Sat Jun 05, 2004 2:05 pm    Post subject: Reply with quote

Ah, I was just going to post a related question, I suppose this thread is the place for it.

I have two .avi files and corresponding .srt subtitle files.

What I'd like to do is merge the avi files so that the subtitles are now part of the video and not separate files.

Any suggestions on how to do this?

Best,

Alex
Back to top
View user's profile Send private message
botta
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2004
Posts: 89
Location: Italia UE

PostPosted: Sun Jun 06, 2004 12:28 pm    Post subject: Reply with quote

Generally I prefer the gui, so if you can start from a dvd I suggest dvd::rip which is a graphical frontend for transcode.

http://www.exit1.org/dvdrip/
Back to top
View user's profile Send private message
outspoken
Guru
Guru


Joined: 14 Feb 2004
Posts: 464
Location: orlando, fl

PostPosted: Sun Jul 11, 2004 9:16 pm    Post subject: Reply with quote

botta wrote:
Generally I prefer the gui, so if you can start from a dvd I suggest dvd::rip which is a graphical frontend for transcode.

http://www.exit1.org/dvdrip/


its too bad that dvdrip wants a bunch of gnome dependants.
Back to top
View user's profile Send private message
djm
Arch/Herd Tester
Arch/Herd Tester


Joined: 12 Apr 2004
Posts: 690
Location: Wadham College, Oxford

PostPosted: Sun Jul 11, 2004 9:55 pm    Post subject: Reply with quote

I use acidrip, but there's also drip, and something else (I think it has qt in the package name)

Don't know about their dependencies, but it's worth a look
_________________
the forums.gentoo.org poster formally known as metal leper
Back to top
View user's profile Send private message
SZwarts
l33t
l33t


Joined: 13 Oct 2003
Posts: 629
Location: Sydney, NSW, Australia

PostPosted: Mon Jul 12, 2004 3:57 am    Post subject: Reply with quote

evoweiss wrote:
Ah, I was just going to post a related question, I suppose this thread is the place for it.

I have two .avi files and corresponding .srt subtitle files.

What I'd like to do is merge the avi files so that the subtitles are now part of the video and not separate files.

Any suggestions on how to do this?


For putting the subtitles into the avi you have to re-encode the avi, so I hope you are aware that you're going to lose quality...

Anyway, the process is first to put the subtitle in for each avi and then you can join them. In this thread there are already a couple of hints on how to join two avi's (I prefer the mencoder way) so I just give a hint how to put a srt file in an avi file (probably more solutions here aswell and I prefer mencoder again)

So to encode a srt file into an avi:
Code:

mencoder -oac lavc -ovc mp3lame -sub MyCuteSubtitleFile.srt MyCuteMovieFile.avi -o NewMovieFile.avi

Of course since you have to re-encode the avi you might want to play with the -lavcopts and/or choose different codecs. Likewise for audio.
Back to top
View user's profile Send private message
ReeferMac
Guru
Guru


Joined: 30 May 2004
Posts: 389

PostPosted: Sat Aug 14, 2004 9:11 pm    Post subject: Reply with quote

OK, same question... but MPEG files?
I grabbed a bunch of movies that were saved into 8-21 files... I'd like to combine them all into one big MPEG. So far the only program I have that plays them is VLC, Kaboodle gets a bunch of green garbage in the video.

- Mac
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Multimedia All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum