⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 intf-cdda.txt

📁 mips版本的VLC视频服务器
💻 TXT
📖 第 1 页 / 共 2 页
字号:
This file documents the ``Extended'' VLC CD-DA PluginCopyright (C) 2003, 2004 Rocky Bernstein (rocky@panix.com)Permission is granted to copy, distribute and/or modify this documentunder the terms of the GNU Free Documentation License, Version 1.1 orany later version published by the Free Software Foundation; with theInvariant Sections being ``Free Software'' and ``Free Software NeedsFree Documentation'', with the Front-Cover Texts being ``A GNU Manual,''and with the Back-Cover Texts as in (a) below.(a) The Free Software Foundation's Back-Cover Text is: ``You havefreedom to copy and modify this GNU Manual, like GNU software.  Copiespublished by the Free Software Foundation raise funds for GNUdevelopment.''- - - - - -Features over the older VLC CD-DA pluginInternally I think this is much much cleaner. It uses the libcdio for disk reading and libcddb to get CDDB information.MRL handling: -  Can specify device as well as track.-  Because we use the libcdio library, the "device" can be a disk image   to be burned (e.g. a cdrdao bin/cue pair and some primitive Nero   support)Features:-  Can customize the what to show in the play-list title and author. -  Duration of each track is shown-  Media information is shown using CDDB-  Dynamic debugging-  Will scan for a CD-ROM drive with a CD-DA loaded in it.-----------------------------------------------------------------General Info-----------------------------------------------------------------Much of what I write in this section can be found elsewhere. See forexample http://www.pctechguide.com/08cd-rom.htm, or the libcdiodocumentation.The Sony and Philips Corporations invented and Compact Disc (CD) inthe early 1980s. The specifications for the layout is often referredto by the color of the cover on the specification. The first type of CD specification that was produced was the CompactDisc Digital Audio (CD-DA) or just plain ``audio CD'' and is commonlycalled the ``Red Book''. Music CD's are recorded in this format whichbasically allows for around 74 minutes of audio per disc and for thatinformation to be split up into *tracks*. Tracks are broken up into"sectors" and each sector contains 2,352 bytes. To play one 44.1 kHzCD-DA sampled audio second, 75 sectors are used.A CD can hold at most 99 such tracks. Between the tracks CDspecifications require a ``2 second'' in gap (called a @term{lead-ingap}. This is unused space with no ``data'' similar to the spacebetween tracks on an old phonograph. The word ``second'' here reallyrefers to a measure of space and not really necessarily an amount oftime. However in the special case here where you have an audio CD, theamount of time to play a gap of this size will take 2 seconds. Notethis is independent of how fast your CD drive can read a sector.The beginning (or inner edge) of the CD is supposed to have a ``2second'' lead-in gap and there is supposed to be another ``2 second''*lead-out* gap at the end (or outer edge) of the CD.CD-DA ``Red Book'' SpecificationOne can create and then write or "burn" a CD in the CD-DA formatand in this process sometimes one writes the bytes that will appear asa file on a hard disk. This is called a "CD disk image". Thisplugin may be able to play this file just the same as if it wereburned onto a CD.As there are a number of CD-burning programs, there are a number ofCD-image formats. This plugin uses libcdio which currently understandsthe BIN/CUE disk-image format used by a popular DOS/Window masteringtool and a limited subset of the proprietary and unpublished form atused by the Nero burning software. Over time however perhaps moredisk-image formats will be recognized.Audio CD Identification Information (CDDB)The Philips Red-Book specification allows for a Compact Disc to have aMedia Catalog Number or MCN written on it, and probably thiswas how they CD's would be identified. Alas, very few audio discsactually have a Medium Catalog Number on the box, and the way the codeis written on CD is *not* uniform across all discs!However the listening community wanted a way to identify an audio CD,so a database of CD information was gathered by basically making a``signature'' or hash from the number of tracks on a disk and achecksum of the bytes of the tracks. This is referred to as CDDBinformation. Using the hash the database gives information about thetitles of the tracks, the CD album name, year it was published and soon. This plugin has the ability to show this information courtesy oflibcddb written by Kris Verbeeck.-----------------------------------------------------------------MRLS:-----------------------------------------------------------------the vlc CD-DA plugin, identifies itself in the vlc GUI as CDDAX. Italso registers itelf to handle a class of MRL's that start withcddax://.The CDDAX MRL takes the following form:  cddax://[path to file or CD-DA device][@[Tt]number]]A simple cddax:// runs the default item: track 1 using the default CDdevice (perhaps /dev/cdrom). The default default device isuser-configurable.It is however also possible to specify both Compact Disc device/filenameand item explicitly in the MRL.For example cddax://dev/cdrom2 specifies using device /dev/cdrom2 whichmight useful if as I have /dev/cdrom is a burner and the /dev/cdrom2is a read-only device. And cddax://test_cdda.cue specifies the"cuesheet" file for a CD-DA image on disk created say with cdrdao.(test_cdda.bin is the corresponding bin file, but using that won'twork.)After the optional device name or file name, you can name the tracknumber unit which preceded by a @ or an @ and T in either case. A MRLwhich ends in an @ is like not adding it at all.Some examples of MRLS are given below. In the examples, we assume thefollowing configuration setting:cdda.default_device:/dev/cdrom    cddax://                   - track 1 of device: /dev/cdrom    cddax://@                  - same as above    cddax:///dev/cdrom         - probably same as above    cddax:///dev/cdrom2        - track 1 of /dev/cdrom2    cddax:///dev/cdrom2@       - same as above    cddax://dev/cdrom2@53      - track 53 from /dev/cdrom2    cddax://dev/cdrom2@T53     - Same as above    cddax://dev/cdrom2@t53     - Same as above    cddax://@2                 - track 2 from default device    cddax://3                  - track 3 from default device    cddax:///tmp/ntsc.cue      - track 1 from /tmp/ntsc.bin, (a bin/cue                                 disk image)    cddax:///tmp/ntsc.cue@     - same as above    cddax://tmp/ntsc.cue@      - track 1 of tmp/ntsc.bin. NOT the                                 the same as above unless the cwd is /.    cddax://ntsc.nrg           - track 1 of ntsc.nrg (a nero disk image)    cddax://tmp/ntsc.nrg@5     - track 5 of /tmp/ntsc.nrg  Bad MRL's    cddax://@x                  - x is not a number    cddax/tmp                   - no colon    cddax:/                     - must start cddax://-----------------------------------------------------------------Configuration settings:-----------------------------------------------------------------Configuration settings in vlc are generally put in ~/.vlc/vlcrc. Adescription of the ones specific to CDDAX are listed below.- -cddax-cddb-title-formatThis gives a format used in the playlist title string when CDDB is consulted.Similar to the Unix date command, there are format specifiersthat start with a percent sign for which various information is filledin dynamically.  The control specifiers are given as below   %a : The album artist   %A : The album information   %C : Category   %I : CDDB disk ID   %G : Genre   %M : The current MRL   %m : The CD-DA Media Catalog Number (MCN)   %n : The number of tracks on the CD   %p : The artist/performer/composer in the track   %T : The track number   %s : Number of seconds in this track   %t : The name   %Y : The year 19xx or 20xx   %% : a %The default is  Track %T. %t - %p - -cddax-title-formatThis gives a format used in the playlist title string when CDDB is*NOT* consulted.  Similar to the Unix date command, there are formatspecifiers that start with a percent sign for which variousinformation is filled in dynamically.  The control specifiers aregiven as below   %M : The current MRL   %m : The CD-DA Media Catalog Number (MCN)   %n : The number of tracks on the CD   %T : The track number   %s : Number of seconds in this track   %% : a %The default is   %T %M - -cddax-cddb-email# email given on cddb requests# string, default: me@home- -cddax-cddb-enabled# Do we use CDDB to retrieve CD information?# bool, default: 1- -cddax-cddb-http

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -