Howto merge two avi files using ffmpeg?

You should look into the concat demux and concat protocol that was added in ffmpeg 1.1. Assuming the codecs are the same you create a file (example mylist.txt): file ‘/path/here/file1.avi’ file ‘/path/here/file2.avi’ file ‘/path/here/file3.avi’ Then pass that file to ffmpeg ffmpeg -f concat -i mylist.txt -c copy video_draft.avi You can use this command to make … Read more

Why sudo cat gives a Permission denied but sudo vim works fine? [duplicate]

As @geekosaur explained, the shell does the redirection before running the command. When you type this: sudo foo >/some/file Your current shell process makes a copy of itself that first tries to open /some/file for writing, then if that succeeds it makes that file descriptor its standard output, and only if that succeeds does it … Read more