Linux

Create ISO file with mkisofs

The AUDIO_TS/ and VIDEO_TS/ directories are required by the dvd video standard, and contain all of the menus and video that will be used when you put this dvd into your home dvd player. # mkisofs -dvd-video -udf -o dvd.iso dvd_fs This will create the iso image dvd.iso that you can burn to a real […]

Read More
Scripting

dvd-slideshow

DVD-slideshow is a tool you can use to create a slideshow DVD with images. Create a file that describes the DVD content # dir2slideshow -T -t 5 -c 1 -n slideshow_name bilder/ Transform the content to DVD format # dvd-slideshow -mp2 -p -n “Tina’s 9 mnd” slideshow_name.txt Create the DVD content and a ISO file […]

Read More
Scripting

Script to parse file content from one file to another

This is a PHP script that parse file content from a file and writes this to another config file. #!/usr/bin/php -q < ?php if ($_SERVER[‘argv’][1] == ”) { die(“Usage: ./nagiosparse filename. Sourcefile must be a list with ,\n”); } $strFile = $_SERVER[‘argv’][1]; $arrContents = explode(“\n”, file_get_contents($strFile)); foreach ($arrContents as $strLine) { if(!empty($strLine)) { $arrCells = […]

Read More
Scripting

Extract pictures from a VOB file using transcode

Sometimes it is useful to collect some pictures from some different DVD’s to a new one. But what to do if the original pictures are deleted now. You can use the following command to extract the pictures first. transcode -x mpeg2 -i VTS_01_1.VOB -y im -F jpg -w 100 -F jpg, png, gif ==> picture […]

Read More