LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 2326|回复: 10

VCD 格式的电影怎么拷贝出来

[复制链接]
发表于 2006-1-9 12:49:19 | 显示全部楼层 |阅读模式
mount -t iso9660 /dev/hdc/ mnt/cdrom/ 挂载 VCD 格式的光盘之后,进入 MPEG?? 目录下有一个 dat 文件,即电影的视频文件。但是用 cp 无法拷贝出来,提示:“输入/输出错误”。查看权限:555,请问应该如何解决?
 楼主| 发表于 2006-1-9 14:54:36 | 显示全部楼层
找到三篇文档资料:

1. About .DAT files.  The ~600 MB file visible on the first track of the mounted VCD is not a real file! It is a so called ISO gateway, created to allow Windows to handle such tracks (Windows does not allow raw device access to applications at all). Under Linux you cannot copy or play such files (they contain garbage). Under Windows it is possible as its iso9660 driver emulates the raw reading of tracks in this file. To play a .DAT file you need the kernel driver which can be found in the Linux version of PowerDVD. It has a modified iso9660 filesystem (vcdfs/isofs-2.4.X.o) driver, which is able to emulate the raw tracks through this shadow .DAT file. If you mount the disc using their driver, you can copy and even play .DAT files with MPlayer. But it will not work with the standard iso9660 driver of the Linux kernel! Use vcd:// instead. Alternatives for VCD copying are the new cdfs kernel driver (not part of the official kernel) that shows CD sessions as image files and cdrdao, a bit-by-bit CD grabbing/copying application.(From Mplayer Documentation)

2. http://www.elis.rug.ac.be/~ronsse/cdfs/

3. http://cdrdao.sourceforge.net/
回复 支持 反对

使用道具 举报

发表于 2006-1-10 00:32:44 | 显示全部楼层
Post by shadkong
找到三篇文档资料:

1. About .DAT files.  The ~600 MB file visible on the first track of the mounted VCD is not a real file! It is a so called ISO gateway, created to allow Windows to handle such tracks (Windows does not allow raw device access to applications at all). Under Linux you cannot copy or play such files (they contain garbage). Under Windows it is possible as its iso9660 driver emulates the raw reading of tracks in this file. To play a .DAT file you need the kernel driver which can be found in the Linux version of PowerDVD. It has a modified iso9660 filesystem (vcdfs/isofs-2.4.X.o) driver, which is able to emulate the raw tracks through this shadow .DAT file. If you mount the disc using their driver, you can copy and even play .DAT files with MPlayer. But it will not work with the standard iso9660 driver of the Linux kernel! Use vcd:// instead. Alternatives for VCD copying are the new cdfs kernel driver (not part of the official kernel) that shows CD sessions as image files and cdrdao, a bit-by-bit CD grabbing/copying application.(From Mplayer Documentation)

2. http://www.elis.rug.ac.be/~ronsse/cdfs/

3. http://cdrdao.sourceforge.net/


又长学问了。一直以为那个DAT文件就是一个MPEG1的视频文件。原来只有在windows下才能直接拷出来。

谢了!
回复 支持 反对

使用道具 举报

发表于 2006-9-21 05:26:09 | 显示全部楼层
有人关注这个问题,并找出答案,谢,我也在找这方面的资料,这里提供了解决方法:
http://www.linuxquestions.org/qu ... amp;threadid=148643

mencoder vcd://3 -ovc copy -oac copy -o test.dat 即可,后面的数字是表示第几个dat文件
回复 支持 反对

使用道具 举报

发表于 2006-9-22 01:03:43 | 显示全部楼层
vcdimager里有个vcdxrip的命令可以将那些dat文件转成mpg。
回复 支持 反对

使用道具 举报

发表于 2006-9-22 08:04:49 | 显示全部楼层
不知道能不能用
dd if=/dev/hdc of=vcd.iso

然后在用unrar 解压出来。没试过
回复 支持 反对

使用道具 举报

发表于 2006-9-22 13:45:26 | 显示全部楼层
Post by kohno
vcdimager里有个vcdxrip的命令可以将那些dat文件转成mpg。

正解,vcdimager是个专门处理vcd,svcd的软件。
http://www.vcdimager.org/about.phtml#what
回复 支持 反对

使用道具 举报

发表于 2006-9-23 05:31:42 | 显示全部楼层
我的才是正解,反正播放也要用到mplayer, mencoder 是mplayer的一个工具,用它直接 copy, 何必多安一个工具呢,
回复 支持 反对

使用道具 举报

发表于 2006-9-24 17:11:50 | 显示全部楼层
Post by mascot
我的才是正解,反正播放也要用到mplayer, mencoder 是mplayer的一个工具,用它直接 copy, 何必多安一个工具呢,

vcdimager是k3b的依赖包,无须特地安装多一个工具。
而且mencoder那样通过stream拷贝做出来的avi档很大。
回复 支持 反对

使用道具 举报

发表于 2006-9-25 06:53:42 | 显示全部楼层
又长知识了
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表