Re: joining 2 files together ?

2008-08-08 Thread Denny White
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Quoted from beni on Thu, Aug 07, 2008 at 03:34:28PM +,:
> Hi,
> 
> I am trying to find the equivalent for the old dos "copy file1+file2" command
> ("copy myfile1.txt+myfile2.txt" copies the contents in myfile2.txt and 
> combines it with the contents in myfile1.txt).
> But the standard freebsd "cp" doesn't seem to want the "+" between the two 
> files :
> 
> bsdaddict# cp file1.avi+file2.avi
> usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file
>cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... 
> target_directory
> bsdaddict#
> 
> So how to I append file2 at the end of file1 to get only one file ? To be 
> more 
> specific : I would like to merge 2 avi files into one. How do I get 
> file1.avi+file2.avi into file3.avi ?
> Thanks.
> -- 
> Beni.

After joining avi files with "cat," use mencoder to rebuild the index:

mencoder -forceidx -oac copy -ovc copy infile.avi -o outfile.avi 


Denny White

- -- 

Do the hard jobs first. The easy jobs will take care of themselves.

===
GnuPG key  : 0x1644E79A  |  http://wwwkeys.nl.pgp.net
Fingerprint: D0A9 AD44 1F10 E09E 0E67  EC25 CB44 F2E5 1644 E79A
===

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.8 (OpenBSD)

iEYEARECAAYFAkicBToACgkQy0Ty5RZE55rG4QCeJy+VfVN3SeUSWfd5Ff12+Za1
Su8AoLw1ype3wQvtYyv2qWm4Yum6eWPV
=zm7+
-END PGP SIGNATURE-

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: joining 2 files together ?

2008-08-07 Thread Patrick Mahan



beni presented these words - circa 8/7/08 8:34 AM->

Hi,

I am trying to find the equivalent for the old dos "copy file1+file2" command
("copy myfile1.txt+myfile2.txt" copies the contents in myfile2.txt and 
combines it with the contents in myfile1.txt).
But the standard freebsd "cp" doesn't seem to want the "+" between the two 
files :


bsdaddict# cp file1.avi+file2.avi
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file
   cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... 
target_directory
bsdaddict#

So how to I append file2 at the end of file1 to get only one file ? To be more 
specific : I would like to merge 2 avi files into one. How do I get 
file1.avi+file2.avi into file3.avi ?


try 'cat file1.avi file2.avi > file3.avi'

Patrick

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: joining 2 files together ?

2008-08-07 Thread David Kelly
On Thu, Aug 07, 2008 at 11:39:09AM -0400, David Gurvich wrote:
> You might try the old 'cat file1 file2 ... fileN'.

% cat file1 file2 ... fileN >> fileconcatenated

-- 
David Kelly N4HHE, [EMAIL PROTECTED]

Whom computers would destroy, they must first drive mad.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: joining 2 files together ?

2008-08-07 Thread Edward Ruggeri
On Thu, Aug 7, 2008 at 10:38 AM, Bill Moran <[EMAIL PROTECTED]> wrote:
> But to answer your real question, you can't just mash two avi files
> together to make 1 big one.  You'll need something like avidemux or
> one of the command line tools to actually get the avi headers correct.

If I recall correctly, generally you can play the file, but it will
stop at the end of the first "part."  However, I think you can seek
past that point and avoid the premature termination.

Which is to say that you are correct.

-- Ned Ruggeri
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: joining 2 files together ?

2008-08-07 Thread David Gurvich
You might try the old 'cat file1 file2 ... fileN'.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: joining 2 files together ?

2008-08-07 Thread Bill Moran
In response to beni <[EMAIL PROTECTED]>:
> 
> I am trying to find the equivalent for the old dos "copy file1+file2" command
> ("copy myfile1.txt+myfile2.txt" copies the contents in myfile2.txt and 
> combines it with the contents in myfile1.txt).
> But the standard freebsd "cp" doesn't seem to want the "+" between the two 
> files :
> 
> bsdaddict# cp file1.avi+file2.avi
> usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file
>cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... 
> target_directory
> bsdaddict#
> 
> So how to I append file2 at the end of file1 to get only one file ? To be 
> more 
> specific : I would like to merge 2 avi files into one. How do I get 
> file1.avi+file2.avi into file3.avi ?
> Thanks.

Well, to answer your first question:
cp file1.avi file3.avi && cat file2.avi >> file3.avi

But to answer your real question, you can't just mash two avi files
together to make 1 big one.  You'll need something like avidemux or
one of the command line tools to actually get the avi headers correct.

-- 
Bill Moran
http://www.potentialtech.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


joining 2 files together ?

2008-08-07 Thread beni
Hi,

I am trying to find the equivalent for the old dos "copy file1+file2" command
("copy myfile1.txt+myfile2.txt" copies the contents in myfile2.txt and 
combines it with the contents in myfile1.txt).
But the standard freebsd "cp" doesn't seem to want the "+" between the two 
files :

bsdaddict# cp file1.avi+file2.avi
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file target_file
   cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpv] source_file ... 
target_directory
bsdaddict#

So how to I append file2 at the end of file1 to get only one file ? To be more 
specific : I would like to merge 2 avi files into one. How do I get 
file1.avi+file2.avi into file3.avi ?
Thanks.
-- 
Beni.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"