Multimedia
Linux write (burn) data to DVD or DVD/RW
- Details
- Parent Category: Linux && Unix Services
- Category: Multimedia
- Written by Mahdi Bahmani Ciahmard
- Hits: 62
Debian installation:
# apt-get install 'dvd+rw-tools'
# mkisofs -r -o /tmp/var-www-disk1.iso /var/www
Now use the growisofs command to write the ISO onto the DVD:
# growisofs -Z /dev/dvd=/tmp/var-www-disk1.iso
To append more data for same DVD:
# growisofs -M /dev/dvd /tmp/file.1
To format (erase) a DVD:
# dvd+rw-format -force /dev/dvd
OR
# dvd+rw-format -force=full /dev/dvd
The dvd+rw-format command formats dvd disk in the specified dvd drive.
To display information about dvd drive and disk using dvd+rw-mediainfo command:
# dvd+rw-mediainfo /dev/dvd
source:
http://www.cyberciti.biz/tips/howto-linux-write-burn-data-to-dvd-or-dvdrw.html
dvd to avi
- Details
- Parent Category: Linux && Unix Services
- Category: Multimedia
- Written by Mahdi Bahmani Ciahmard
- Hits: 54
mplayer -dumpstream dvd://2 -dumpfile filename.avi
dvd-slideshow
- Details
- Parent Category: Linux && Unix Services
- Category: Multimedia
- Written by Mahdi Bahmani Ciahmard
- Hits: 42
Make DVD Picture by simple steps
first step make txt file
mbahmani@it-27:~/slid/family/completed$dir2slideshow -n '88-06-30-family' -T -t 5 -i 88-06-30-family -s '88-06-30-family' -a 'm9-8.mp3'
...
Repeat this step for all folders
edit 88-06-30-family.txt and insert more mp3 if needed like first line you see mp3 just replace mp3 name by new mp3 file name
in this step it make vob and xml files
mbahmani@it-27:~/family/completed$dvd-slideshow -n '88-06-30-family' -f 88-06-30-family.txt
Repeat this step for all txt files
in this step it make dvd structure
mbahmani@it-27:~/family/completed$ dvd-menu -c -t '84-06-30' -t '86-06-30-family' -f '84-06-30' -f '86-06-30-family' -n 'DVD title Name'
now you can see the dvd by one of this command
gxine -S dvd:"dvd_fs"
xine -g -u 0 dvd:"dvd_fs"
or, if you just want to watch the videos without the menus:
mplayer -sid 0 dvd:// -dvd-device dvd_fs
make is from by dvd structure
mbahmani@it-27:~/family/completed$mkisofs -dvd-video -udf -o dvd.iso dvd_fs
last step
burn with k3b or ...
we can do all steps with the bash scripts
ls >list
for i in `cat list`;do dir2slideshow -n $i -T -t 4 -i `pwd`/$i -s $i -a 'm1.mp3'; done
#edit *.txt and insert more mp3 if needed like first line you see mp3 just replace mp3 name by new mp3 file name
for i in `cat list`;do dvd-slideshow -n $i -f $i.txt ; done
for i in `cat list2`;do dvd-slideshow -n $i -f $i.txt ; done
dvd-menu -c -t '84-06-30' -t '86-06-30-family' -f '84-06-30' -f '86-06-30-family' -n 'DVD title Name'
DAT files
- Details
- Parent Category: Linux && Unix Services
- Category: Multimedia
- Written by Mahdi Bahmani Ciahmard
- Hits: 58
how write dat file that saved in hdd to vcd
DAT to mpg
mbahmani@it-27:~/Taleshi_Gesha$ for i in *.DAT;do ffmpeg -i $i -target ntsc-vcd $i.mpg ;done
mbahmani@it-27:~/Taleshi_Gesha$ vcdimager -t vcd2 -c gesha.cue -b gesha.bin *.mpg
mbahmani@it-27:~/Taleshi_Gesha$ cdrdao write gesha.cue
how extract *.DAT from VCD to hdd
mbahmani@it-27:~/Taleshi_Gesha$ vcdxrip -C /dev/hda
or
mbahmani@it-27:~/Taleshi_Gesha$mencoder vcd//:2 -oac lavc -ovc lavc -o filename.avi
or
if corrupt VCDs:
mbahmani@it-27:~/Taleshi_Gesha$ cdrdao read-cd --device 0,0,0 --paranoia-mode 2 --read-raw data.toc
If you have VCD files that haven't yet been burned to a CD, you can point vcdxrip at the .cue or .bin files with the -c and -b options respectively:
$ vcdxrip -b videocd.bin
wmv to mp3
- Details
- Parent Category: Linux && Unix Services
- Category: Multimedia
- Written by Mahdi Bahmani Ciahmard
- Hits: 37
for i in *.wma ; do mplayer -vo null -vc dummy -af resample=44100 -ao pcm:waveheader "$i" && lame -m j -h --vbr-new -b 160 audiodump.wav -o "`basename "$i" .wma`.mp3"; done; rm -f audiodump.wav

