View previous topic :: View next topic |
Author |
Message |
AmishArmadillo n00b
Joined: 08 Jun 2003 Posts: 31
|
Posted: Thu Nov 20, 2003 11:42 pm Post subject: cat * > newfile.mpg probs |
|
|
I used to be able to join movies(avi mp(e)g etc) together using cat
Code: | cat file1.mpg file2.mpg > newfile.mpg |
but as of two months ago, when i do this, "newfile.mpg"'s size is the sum of the file1 and 2.mpg.....
BUT, when played in a media player (mplayer, kaboodle, I even tested it on a windows computer at school) the movie will play what was on "file1.mpg" but that is ALL it will play... the seekbar is even on the far right, as if there is nothing else there, even tho the file size represents the two files combined......
i dont know what im doing wrong, the code below is EXACTLY what i have typed:
Code: | cat project3-1.mpg project3-2.mpg > project3.mpg |
it HAS worked before in the past, and if i recall there was an update for cat.... im not sure on that either....
thanks. _________________ root@AmishArmadillo / #: emerge complete power |
|
Back to top |
|
|
OliD n00b
Joined: 12 Jun 2003 Posts: 9 Location: Germany
|
Posted: Fri Nov 21, 2003 8:36 am Post subject: |
|
|
Hi!
Im not sure if it works with MPEG, but it definately shouldn't work with AVI. For AVI try avijoin. For MPEG I don't know.
Ciao
Oli |
|
Back to top |
|
|
AmishArmadillo n00b
Joined: 08 Jun 2003 Posts: 31
|
|
Back to top |
|
|
SZwarts l33t
Joined: 13 Oct 2003 Posts: 629 Location: Sydney, NSW, Australia
|
Posted: Tue Nov 25, 2003 11:27 am Post subject: |
|
|
For most (simply) video operations/conversions I'd like to think that mplayer/mencoder is your friend.
For example to join 2 avi files this command worked for me
Code: | cat file1.avi file2.avi | mencoder - -oac copy -ovc copy -o newfile.avi |
Mencoder default outputs avi and for avi it works fine. You have to explicity specify if you want the output to be mpg, otherwise when you cat two mpg files into 1 avi, only mplayer is going to be able to play it afaik. |
|
Back to top |
|
|
OliD n00b
Joined: 12 Jun 2003 Posts: 9 Location: Germany
|
Posted: Tue Nov 25, 2003 6:43 pm Post subject: |
|
|
Ooops. Not avijoin, its avimerge
Ciao
Oli |
|
Back to top |
|
|
|