Posts Tagged ‘file’

Posted by kent at 22 January 2011

Category: Dev, Tip

Tags: , , ,

This code will open Explorer and select the file or folder given.

static void openInExplorer(string path)
{
    string cmd = "explorer.exe";
    string arg = "/select " + path;
    Process.Start(cmd, arg);
}
VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share

Posted by kent at 5 June 2007

Category: Interessant, Memorable, Tip

Tags: , , , , , , , ,

Short version on how to create xvid-movies from a set of jpeg images.

You need a set of images captured from a source, webcams or a scientific program.

Run the command:
mencoder “mf://*.jpg” -mf type=jpeg:fps=10 -ovc lavc -force-avi-aspect 1.3 -ffourcc xvid:par=vga11 -nosound -o test.avi

PS! Make sure every JPEG-image is valid. Mencoder vil barf and make an incomplete movie file.

VN:F [1.9.13_1145]
Rating: 0.0/5 (0 votes cast)
Share