Cut and paste

No real film editing. Sometimes you have to split a large file into smaller pieces or join several files into one big file. Basic Linux command line tools do the job. This might happen if you have to save the file temporarily on fat-filesystem which cannot handle files larger than 4 Gb.

Splitting file
You can split the file into 1G pieces with

split -b 1G

Remember that this not real video editing. Split does not understand where frame starts or ends.

Join files
You can join files with cat command. This works with video files, too. If you have several mpg-files, you can join them (one after another) with

cat videofile1.mpg videofile2.mpg videofile3.mpg > bigfile.mpg

You should be aware that timestamps will be messed up in this catenated file. If you want to put them in order, you have to go through that big file with ffmpeg.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

  • Enter your email address to follow this blog and receive notifications of new posts by email.

    Join 105 other followers

%d bloggers like this: