User Tools

Site Tools


public:techstuff:useful_commands

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
public:techstuff:useful_commands [2012/08/21 13:50] – external edit 127.0.0.1public: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 /mnt/sda1/rescuw.raw
 +  
 +to discover the offsets required for each partition. Multiply the offset by 512 and substitute it for BYTES below 
 +
 +  mount -o loop,offset=BYTES -r /mnt/sda1/rescue.raw /mnt/rescue
 +