linux下vcd刻录 --安恒网管员手记
2004-11-06    刘世伟   
打印自: 安恒公司
地址: HTTP://lrpro-reflct.anheng.com.cn/news/article.php?articleid=551
linux下vcd刻录 --安恒网管员手记

刻录vcd的命令行工具:制作vcd光盘影像:vcdtools,刻录影像到光盘:cdrdao
安装:debian下安装很简单:apt-get install vcdtools cdrdao
然后用命令mkvcdfs制作vcd文件:
mkvcdfs  1.mpg 2.mpg 3.mpg
Copying file vcd/20050208_1558_1.mpg
Done with vcd/20050208_1558_1.mpg, got 4536 sectors
Copying file vcd/20050208_1559_1.mpg
Done with vcd/20050208_1559_1.mpg, got 4530 sectors
运行结束后,在当前目录可以找到vcd.toc和vcd_image.bin
然后用cdrdao把bin写入光盘:
先要扫描光驱挂在哪个设备上面(命令:cdrdao scanbus):
# cdrdao scanbus
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check
http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.Using libscg version 'schily-0.8'ATA:1,1,0            ATAPI   , CD-R/RW 6X4X32  , 6.HU

最后一行提示光驱在ATA:1,1,0
那么写入光盘(命令 cdrdao --device ATA:1,1,0 write vcd.toc)
# cdrdao write --device ATA:1,1,0  vcd.toc
Cdrdao version 1.1.9 - (C) Andreas Mueller <andreas@daneb.de>
  SCSI interface library - (C) Joerg Schilling
  Paranoia DAE library - (C) Monty
Check
http://cdrdao.sourceforge.net/drives.html#dt for current driver tables.
Using libscg version 'schily-0.8'
ATA:1,1,0:      Rev:
Using driver: Generic SCSI-3/MMC - Version 2.0 (options 0x0000)
Burning entire 79 mins disc.
Starting write at speed 6...
Pausing 10 seconds - hit CTRL-C to abort.
Process can be aborted with QUIT signal (usually CTRL-\).
Executing power calibration...
Power calibration successful.
Writing track 01 (mode MODE2_RAW/MODE2_RAW )...
Writing track 02 (mode MODE2_RAW/MODE2_RAW )...
Writing track 03 (mode MODE2_RAW/MODE2_RAW )...
Writing track 04 (mode MODE2_RAW/MODE2_RAW )...
Wrote 97 of 97 MB (Buffers 100%  99%).
Wrote 43608 blocks. Buffer fill min 84%/max 100%.
Flushing cache...
Writing finished successfully.

xcdroast
上面介绍的cd烧录是在命令行中实现的,其实,linux有一个在x window下的软件来完成.这个软件,这就是
XCD-Roast .

X-CD-Roast为命令行下的CD刻录软件提供了GUI接口,XCD-Roast包含了自扩展的X11用户接口,可以自
动检测SCSI和IDE接口,支持新的ISO9660数据CD,支持AUDIO格式,无需硬盘BUFFERING的快速CD刻录。 该软件
还具有logfile功能,xcdroast支持几乎所有的cdr刻录机.
安装:apt-get install scdroast
 在xterm下执行xcdroast就行了.使用方法就不唠叨了.
责任编辑: admin