LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Catting files together is not working, what am I doing wrong? (https://www.linuxquestions.org/questions/linux-general-1/catting-files-together-is-not-working-what-am-i-doing-wrong-289508/)

BajaNick 02-12-2005 09:22 PM

Catting files together is not working, what am I doing wrong?
 
I do:
" cat file1.mpg file2.mpg > combinedfile.mpg "

I run xine combinedfile.mpg and it only runs the first mpg,
a few months ago I did this and it worked fine
Why is this not working?
:scratch:

pe2338 02-13-2005 06:34 AM

each of your files is a distinct file and has its own header.
The header of the first file indicates the clip has x frames, so it stops after flie1's sequence.

I doubt you did it before. maybe the files were splited with dd or a similar tool...

BajaNick 02-13-2005 11:01 AM

Ok, now I am going crazy. I am positive I did this before, maybe there was something else in the command line like a switch or something but I know I used cat and had linked a bunch of offroad video clips together cuz I have the video on my other system. I could go through the bash history and try to find it, LOL. How else can I link small video clips together? thanks.

homey 02-13-2005 12:14 PM

I'm not sure but maybe it would work better using >> instead of >
I just did a couple of mp3 files and it worked both ways but maybe mpg files act different.
cat song1.mp3 song2.mp3 >> song3.mp3

Oliv' 02-13-2005 01:46 PM

Quote:

Why is this not working?
:scratch:
maybe your 2 files have not the same frame rate...

BajaNick 02-13-2005 05:33 PM

OK, I figured it out. It was just that the files I wanted to combine are not standard mpg`s. I tried some others and it worked. Thanks for the help.


All times are GMT -5. The time now is 11:00 PM.