Joining a file help

Asked by COKEDUDE on 2011-02-02

I am trying to join 3 video files. Can anyone tell me what the problem is?

$ lxsplit -j vid.avi.001
Creating merged file `vid.avi'.
Complete size: 506904946 in 3 files.
Processing file `vid.avi.001' ...
Processing file `vid.avi.002' ...
Processing file `vid.avi.003' ...
Done!

When I try to watch vid.avi all I see is the video from vid.avi.001. I don't see the video from vid.avi.002 and vid.avi.003. Its really strange though cause the size of vid.avi is the total size of all 3 files.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu lxsplit Edit question
Assignee:
No assignee Edit question
Last query:
2011-03-06
Last reply:
2011-03-06

This question was reopened

cat file1.avi file2.avi file3.avi > file4.avi
mencoder -noidx -ovc copy -oac copy -o output.avi file4.avi

Should let you put lots of files together

COKEDUDE (cokedude) said : #2

Yep :) Good old google helped me find that.

http://www.webupd8.org/2009/05/join-and-split-files-including-video-in.html

cat file.avi.* > file.avi
sudo apt-get install mencoder mplayer
mencoder -forceidx -oac copy -ovc copy file.avi -o file_final.avi

COKEDUDE (cokedude) said : #3

Thanks actionparsnip, that solved my question.

COKEDUDE (cokedude) said : #4

I wanted to point out that if you are joining more than 10 files that you need to use a similar format to this.

vid01.avi.001
vid02.avi.002
vid03.avi.003
vid04.avi.004
vid05.avi.005
vid06.avi.006
vid07.avi.007
vid08.avi.008
vid09.avi.009
vid10.avi.010

That's fine. The command would just be bigger.

sudo apt-get install mencoder mplayer; cat vid01.avi.001 vid02.avi.002 vid03.avi.003 vid04.avi.004 vid05.avi.005 vid06.avi.006 vid07.avi.007 vid08.avi.008 vid09.avi.009 vid10.avi.010 > file4.avi; mencoder -noidx -ovc copy -oac copy -o output.avi file4.avi; rm file4.avi

Should do it

COKEDUDE (cokedude) said : #6

Are wmv smarter than avi files? I had these 2 wmv files.

vid.wmv.001
vid.wmv.002

And I extracted the video with.

7z e vid.wmv.001

I didn't have to deal with this. Everything looked and sounded good.

mencoder -forceidx -oac copy -ovc copy file.avi -o file_final.avi

Can you help with this problem?

Provide an answer of your own, or ask COKEDUDE for more information if necessary.

To post a message you must log in.