Jul 13

1 Command to burn a dvd image to DVD.
growisofs -dvd-compat -Z /dev/dvd=/root/fedora.iso

2 Command to burn a cd image to CD.
cdrecord -v speed=20 dev=/dev/scd0 /root/pfSense-1.2-RC3-LiveCD-Installer.iso

3 Command to make DVD image.
dd if=/dev/scd0 of=/root/Desktop/fedora.iso
cd /root/fc10

4 To make bootable iso of a directory.
mkisofs -J -R -o /opt/fc10.iso -b isolinux/isolinux.bin -c isolinux/boot.cat -no-emul-boot -boot-load-size 4 -boot-info-table /root/fc10

5 To make iso of a directory.
mkisofs -r -o /tmp/var-www-disk1.iso /var/www

6 To make a data dvd.
growisofs -Z /dev/scd0 -R -J /home/happyuser
growisofs -Z /dev/dvd -R -J /some/files

7 Converting avi to DVD and burning the DVD.
mencoder -oac lavc -ovc lavc -of mpeg -mpegopts format=dvd -vf scale=720:576,harddup -srate 48000 -af lavcresample=48000 -lavcopts vcodec=mpeg2video:vrc_buf_size=1835:vrc_maxrate=9800:vbitrate=5000:keyint=15:aspect=16/9:acodec=ac3:abitrate=192 -ofps 25 -o your_video.mpg your_video.avi
dvdauthor -o Memento -x dvd.xml
mplayer dvd:// -dvd-device ./Memento/
growisofs -dvd-compat -Z /dev/dvdrw -dvd-video ./Memento/

8 To format DVD-RW
dvd+rw-format -force /dev/dvd

9 To create ISO images of directories on your hard drive.
mkisofs -o Directory.iso Directory

10 To format CD-RW
cdrecord blank=fast dev=1,0,0

11 To create an empty disk image, to be used as the disk for an emulator for example, one can get data from /dev/zero. To create a 10mb image:
dd if=/dev/zero of=myimage bs=1024 count=10240

12 To merge more than one avi files.
avimerge -o filename.avi -i first_file.avi second_file.avi

13 To convert avi to mpeg-2
mencoder /root/ItalianJob.avi -mf fps=1 -o /opt/ItalianJob.mpg -ovc lavc -oac pcm -lavcopts vcodec=mpeg2video

14 To convert mpg to avi.
mencoder /editor/Seval.mpg -ovc xvid -oac mp3lame -xvidencopts bitrate=800 -o /opt/Seval.avi

15 To convert all jpeg files in the current directory to avi.
mencoder “mf://*.jpg” -mf fps=1 -o outputs.avi -ovc lavc -lavcopts vcodec=mpeg4

written by admin