This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
public:techstuff:useful_commands [2012/08/21 13:51] – Deleted by PageMove plugin nathan | public:techstuff:useful_commands [2020/04/25 13:05] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== Useful commands ====== | ||
+ | |||
+ | |||
+ | ===== Concatenate 2 video files ===== | ||
+ | mencoder -of lavf -oac copy -ovc copy -o outputfile inputfile1 inputfile2 | ||
+ | |||
+ | MP4Box -cat inputfile1.m4v -cat inputfile2.m4v -cat inputfile3.m4v -new outputfile.m4v | ||
+ | |||
+ | avimerge -o outputfile.avi -i inputfile1.avi inputfile2.avi | ||
+ | |||
+ | mpgjoin inputfile1.mpg inputfile2.mpg inputfile3.mpg -o outputfile.mpg | ||
+ | |||
+ | ===== Mount Raw Image File ===== | ||
+ | |||
+ | First run | ||
+ | |||
+ | sfdisk -l -uS / | ||
+ | | ||
+ | to discover the offsets required for each partition. Multiply the offset by 512 and substitute it for BYTES below | ||
+ | |||
+ | mount -o loop, | ||
+ | |||