Join .001 .002 etc files.

Associate
Joined
10 Nov 2004
Posts
2,237
Location
Expat in Singapore
Hi,

I have a number for .XXX files (i.e. .001 .002) and I need to join them.

The files were created in Windows using HJSplit. What is required to put them back together in Linux (ubuntu) ?

Just using 'cat' resulted in a file but when playing I got no picture (only sound) and the rest of ubuntu was unclickable (although the mouse moved). I tried playing the avi file in vlc (Video Lan).

Thanks
RB
 
As above you want lxsplit, the linux version of hjsplit.

but, assuming they are just binary files, you should be able to just do: cat myfile.* > myfile dunno why that didnt work
 
Last edited:
The Windows version of HJSplit runs very well under Wine. I have never been able to get the Linux version to work.
 
but, assuming they are just binary files, you should be able to just do: cat myfile.* > myfile dunno why that didnt work
Indeed, this is odd.

Maybe it should be specific, as in
cat myfile.001 myfile.002 myfile.003 myfile.004 myfile.005 myfile.006 myfile.007 myfile.008 > myfile

Sometimes .avi file's indices get broken when splitting and concatenating. You can use mencoder to fix this.

First rejoin them with cat as above. Then run

mencoder -idx mybrokenfile.avi -ovc copy -oac copy -o myfixedfile.avi

Where mybrokenfile.avi is the name of the file that doesn't work, and myfixedfile.avi is the name of the file you want it to create with its repaired output.

If you don't have mencoder installed from when you installed mplayer, you get it with
sudo apt-get install mencoder
 
Last edited:
Thanks for the responses all.

I found lxsplit but seemed to only be able to download the src and as I don't have or particually want to install *** dev libraries for XXX number of dependancies and then go through a make -> debug -> make -> debug process I gave it a miss.

Last night I redid the 'cat' command and it worked fine. Only thing I can think of was that I updated libs / kernel (via system update request) but had not rebooted.

Video now plays fine....... now if I can only get the easyshare website sorted out......

Thanks again.

RB
 
Back
Top Bottom