View previous topic :: View next topic |
Author |
Message |
SlashGentoo n00b
Joined: 29 Jun 2003 Posts: 62 Location: Warsaw, Poland
|
Posted: Fri Jan 02, 2004 2:13 pm Post subject: Combining two avi files |
|
|
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 |
|
|
krusty_ar Guru
Joined: 03 Oct 2002 Posts: 560 Location: Rosario, Argentina
|
Posted: Fri Jan 02, 2004 2:25 pm Post subject: |
|
|
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 |
|
|
Coogee Apprentice
Joined: 23 Apr 2002 Posts: 184 Location: E.U.
|
Posted: Fri Jan 02, 2004 3:27 pm Post subject: |
|
|
avicat (it's a part of media-video/avifile) |
|
Back to top |
|
|
SlashGentoo n00b
Joined: 29 Jun 2003 Posts: 62 Location: Warsaw, Poland
|
Posted: Fri Jan 02, 2004 8:40 pm Post subject: |
|
|
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 |
|
|
_hesoez_ Tux's lil' helper
Joined: 09 Jun 2003 Posts: 103 Location: Belgium-Duffel/Leuven
|
Posted: Fri Jan 02, 2004 8:51 pm Post subject: |
|
|
avimerge works great
thought it was a part of transcode
grtz |
|
Back to top |
|
|
botta Tux's lil' helper
Joined: 07 Jan 2004 Posts: 89 Location: Italia UE
|
Posted: Fri Jun 04, 2004 2:08 pm Post subject: |
|
|
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 |
|
|
fafhrd Retired Dev
Joined: 14 May 2002 Posts: 431 Location: Williamstown, MA
|
Posted: Fri Jun 04, 2004 2:44 pm Post subject: |
|
|
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 |
|
|
4nykey Apprentice
Joined: 11 Feb 2004 Posts: 180
|
Posted: Fri Jun 04, 2004 3:26 pm Post subject: |
|
|
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 |
|
|
baz0 n00b
Joined: 04 Jun 2004 Posts: 6
|
Posted: Fri Jun 04, 2004 3:42 pm Post subject: splicing on keyframes |
|
|
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 |
|
|
botta Tux's lil' helper
Joined: 07 Jan 2004 Posts: 89 Location: Italia UE
|
Posted: Sat Jun 05, 2004 1:07 pm Post subject: Re: splicing on keyframes |
|
|
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 |
|
|
evoweiss Veteran
Joined: 07 Sep 2003 Posts: 1678 Location: Edinburgh, UK
|
Posted: Sat Jun 05, 2004 2:05 pm Post subject: |
|
|
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 |
|
|
botta Tux's lil' helper
Joined: 07 Jan 2004 Posts: 89 Location: Italia UE
|
Posted: Sun Jun 06, 2004 12:28 pm Post subject: |
|
|
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 |
|
|
outspoken Guru
Joined: 14 Feb 2004 Posts: 464 Location: orlando, fl
|
Posted: Sun Jul 11, 2004 9:16 pm Post subject: |
|
|
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 |
|
|
djm Arch/Herd Tester
Joined: 12 Apr 2004 Posts: 690 Location: Wadham College, Oxford
|
Posted: Sun Jul 11, 2004 9:55 pm Post subject: |
|
|
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 |
|
|
SZwarts l33t
Joined: 13 Oct 2003 Posts: 629 Location: Sydney, NSW, Australia
|
Posted: Mon Jul 12, 2004 3:57 am Post subject: |
|
|
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 |
|
|
ReeferMac Guru
Joined: 30 May 2004 Posts: 389
|
Posted: Sat Aug 14, 2004 9:11 pm Post subject: |
|
|
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 |
|
|
|