使用 Ubuntu 12.10,当我尝试播放 CD 时,出现了这个令人尴尬的错误。以下是我尝试使用以下命令播放音频 CD 时 dmesg 显示的内容vlc /dev/sr0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 01 00 00 00 02 00
end_request: I/O error, dev sr0, sector 1024
Buffer I/O error on device sr0, logical block 128
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
sr 1:0:0:0: [sr0]
Result: hostbyte=DID_OK driverbyte=DRIVER_SENSE
sr 1:0:0:0: [sr0]
Sense Key : Illegal Request [current]
sr 1:0:0:0: [sr0]
Add. Sense: Illegal mode for this track
sr 1:0:0:0: [sr0] CDB:
Read(10): 28 00 00 00 00 00 00 00 02 00
end_request: I/O error, dev sr0, sector 0
Buffer I/O error on device sr0, logical block 0
我在配有 Ultrabase Series 3(带光驱)的联想 X230 上运行此程序。以下是 的结果uname -a
,
Linux x200s-ssd 3.5.0-25-generic #39-Ubuntu SMP 2013 年 2 月 25 日星期一 18:26:58 UTC x86_64 x86_64 x86_64 GNU/Linux
lshw
这是CD-ROM 驱动器的结果,
*-scsi:1
physical id: 3
logical name: scsi1
capabilities: emulated
*-cdrom
description: DVD-RAM writer
product: DVDRAM GU40N
vendor: HL-DT-ST
physical id: 0.0.0
bus info: scsi@1:0.0.0
logical name: /dev/cdrom4
logical name: /dev/cdrom5
logical name: /dev/cdrw4
logical name: /dev/cdrw5
logical name: /dev/dvd4
logical name: /dev/dvd5
logical name: /dev/dvdrw4
logical name: /dev/dvdrw5
logical name: /dev/sr0
version: QX20
capabilities: removable audio cd-r cd-rw dvd dvd-r dvd-ram
configuration: ansiversion=5 status=ready
*-medium
physical id: 0
logical name: /dev/cdrom4
答案1
如果你想玩声音的使用 vlc 通过命令行 cd,您需要使用
cdda
VLC 使用此协议(或访问模块)从设备或网络读取数据。用法:cdda://device@track
在命令行中使用的模块名称是 cdda,但您也可以使用 cddasimple。
对于 Ubuntu,使用 vlc cdda:///dev/sr0