Diff for /wikisrc/guide/rmmedia.mdwn between versions 1.5 and 1.6

version 1.5, 2015/06/19 19:18:31 version 1.6, 2021/04/07 07:35:41
Line 200  man pages for more information. Line 200  man pages for more information.
 To play MPEG Video streams as many DVD players can play them under NetBSD, mount  To play MPEG Video streams as many DVD players can play them under NetBSD, mount
 the CD as you would do with any normal (data) CD (see [[Reading data CDs with  the CD as you would do with any normal (data) CD (see [[Reading data CDs with
 NetBSD|guide/rmmedia#cdrom]]), then use the  NetBSD|guide/rmmedia#cdrom]]), then use the
 [`multimedia/xine-ui`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/xine-ui/README.html),  [`multimedia/xine-ui`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/xine-ui/),
 [`multimedia/mplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/mplayer/README.html)  [`multimedia/mplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/mplayer/)
 or  or
 [`multimedia/gmplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/gmplayer/README.html)  [`multimedia/gmplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/gmplayer/)
 package to play the mpeg files stored on the CD.  package to play the mpeg files stored on the CD.
   
 ## Using audio CDs with NetBSD  ## Using audio CDs with NetBSD
Line 213  There are two ways to handle audio CDs: Line 213  There are two ways to handle audio CDs:
  1. Tell the CD drive to play to the headphone or to a soundcard, to which   1. Tell the CD drive to play to the headphone or to a soundcard, to which
         CDROMs are usually connected internally. Use programs like          CDROMs are usually connected internally. Use programs like
         [[!template id=man name="cdplay" section="1"]],          [[!template id=man name="cdplay" section="1"]],
         [`audio/xmcd`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmcd/README.html),          [`audio/xmcd`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmcd/),
         "kscd" from the          "kscd" from the
         [`multimedia/kdemultimedia3`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/kdemultimedia3/README.html)          [`multimedia/kdemultimedia3`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/kdemultimedia3/)
         package, mixer programs like          package, mixer programs like
         [[!template id=man name="mixerctl" section="1"]],          [[!template id=man name="mixerctl" section="1"]],
         [`audio/xmix`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmix/README.html),          [`audio/xmix`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmix/),
         [`audio/xmmix`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmmix/README.html),          [`audio/xmmix`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/xmmix/),
         the Curses based          the Curses based
         [`audio/cam`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cam/README.html),          [`audio/cam`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cam/),
         or kmix, which is part of          or kmix, which is part of
         [`multimedia/kdemultimedia3`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/kdemultimedia3/README.html).          [`multimedia/kdemultimedia3`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/kdemultimedia3/).
   
         This usually works well on both SCSI and IDE (ATAPI) CDROMs, CDRW and DVD          This usually works well on both SCSI and IDE (ATAPI) CDROMs, CDRW and DVD
         drives.          drives.
Line 233  There are two ways to handle audio CDs: Line 233  There are two ways to handle audio CDs:
         to do this:          to do this:
   
          * For most ATAPI, SCSI and several proprietary CDROM drives, the           * For most ATAPI, SCSI and several proprietary CDROM drives, the
            [`audio/cdparanoia`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cdparanoia/README.html)             [`audio/cdparanoia`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cdparanoia/)
            package can be used. With cdparanoia the data can be saved to a file or             package can be used. With cdparanoia the data can be saved to a file or
            directed to standard output in WAV, AIFF, AIFF-C or raw format. Currently             directed to standard output in WAV, AIFF, AIFF-C or raw format. Currently
            the -g option is required by the NetBSD version of cdparanoia. A             the -g option is required by the NetBSD version of cdparanoia. A
Line 246  There are two ways to handle audio CDs: Line 246  There are two ways to handle audio CDs:
            $ cdparanoia -g /dev/rcd0d -B             $ cdparanoia -g /dev/rcd0d -B
   
          * For ATAPI or SCSI CD-ROMs the           * For ATAPI or SCSI CD-ROMs the
            [`audio/cdd`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cdd/README.html)             [`audio/cdd`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/cdd/)
            package can be used. To extract track 2 with cdd, type:             package can be used. To extract track 2 with cdd, type:
   
            # cdd -t 2 `pwd`             # cdd -t 2 `pwd`
Line 254  There are two ways to handle audio CDs: Line 254  There are two ways to handle audio CDs:
        This will put a file called `track-02.cda` in the current directory.         This will put a file called `track-02.cda` in the current directory.
   
          * For SCSI CD-ROMS the           * For SCSI CD-ROMS the
            [`audio/tosha`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/tosha/README.html)             [`audio/tosha`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/tosha/)
            package can be used. To extract track 2 with tosha, you should be able to             package can be used. To extract track 2 with tosha, you should be able to
            type:             type:
   
Line 278  collection](http://www.NetBSD.org/docs/p Line 278  collection](http://www.NetBSD.org/docs/p
         this job if your ripping program (e.g. tosha, cdd) didn't already do the job          this job if your ripping program (e.g. tosha, cdd) didn't already do the job
         for you!          for you!
   
      * Using the [`audio/sox`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/sox/README.html) package, type:       * Using the [`audio/sox`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/sox/) package, type:
   
            $ sox -s -w -c 2 -r 44100 -t cdr track-02.cda track-02.wav             $ sox -s -w -c 2 -r 44100 -t cdr track-02.cda track-02.wav
   
Line 288  collection](http://www.NetBSD.org/docs/p Line 288  collection](http://www.NetBSD.org/docs/p
   
  3. Encode the WAV file into MP3 format.   3. Encode the WAV file into MP3 format.
   
      * Using the [`audio/bladeenc`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/bladeenc/README.html) package, type:       * Using the [`audio/bladeenc`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/bladeenc/) package, type:
   
            $ bladeenc -128 -QUIT track-02.wav             $ bladeenc -128 -QUIT track-02.wav
   
Line 297  collection](http://www.NetBSD.org/docs/p Line 297  collection](http://www.NetBSD.org/docs/p
            bit-rates in more detail.             bit-rates in more detail.
   
          * Using the           * Using the
            [`audio/lame`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/lame/README.html)             [`audio/lame`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/lame/)
            package, type:             package, type:
   
            $ lame -p -o -v -V 5 -h track-02.wav track-02.mp3             $ lame -p -o -v -V 5 -h track-02.wav track-02.mp3
Line 306  collection](http://www.NetBSD.org/docs/p Line 306  collection](http://www.NetBSD.org/docs/p
            hardware.             hardware.
   
 The resultant MP3 file can be played with any of the  The resultant MP3 file can be played with any of the
 [`audio/gqmpeg`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/gqmpeg/README.html),  [`audio/gqmpeg`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/gqmpeg/),
 [`audio/maplay`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/maplay/README.html),  [`audio/maplay`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/maplay/),
 [`audio/mpg123`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/mpg123/README.html)  [`audio/mpg123`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/mpg123/)
 or  or
 [`audio/splay`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/splay/README.html)  [`audio/splay`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/audio/splay/)
 packages.  packages.
   
 ## Using a CD-R writer with data CDs  ## Using a CD-R writer with data CDs
Line 337  must be generated, which can then be wri Line 337  must be generated, which can then be wri
         Joliet filesystem).          Joliet filesystem).
   
         The ISO image is created using the mkisofs command, which is part of the          The ISO image is created using the mkisofs command, which is part of the
         [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/README.html)          [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/)
         package.          package.
   
         Example: if you have your data in /usr/tmp/data, you can generate a ISO          Example: if you have your data in /usr/tmp/data, you can generate a ISO
Line 370  must be generated, which can then be wri Line 370  must be generated, which can then be wri
   
         When you have the ISO image file, you just need to write it on a CD. This is          When you have the ISO image file, you just need to write it on a CD. This is
         done with the "cdrecord" command from the          done with the "cdrecord" command from the
         [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/README.html)          [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/)
         package. Insert a blank CD-R, and off we go:          package. Insert a blank CD-R, and off we go:
   
         # cdrecord -v dev=/dev/rcd0d data.iso          # cdrecord -v dev=/dev/rcd0d data.iso
Line 403  The steps involved are: Line 403  The steps involved are:
         to get a couple of .wav files.          to get a couple of .wav files.
   
  2. Write the .wav files using cdrecord command from the   2. Write the .wav files using cdrecord command from the
     [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/README.html)      [`sysutils/cdrtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/cdrtools/)
     package:      package:
   
         # cdrecord -v dev=/dev/rcd0d -audio -pad *.wav          # cdrecord -v dev=/dev/rcd0d -audio -pad *.wav
Line 468  Information about mounting ISO 9660 and  Line 468  Information about mounting ISO 9660 and 
 and  and
 [[!template id=man name="mount\_udf" section="8"]]  [[!template id=man name="mount\_udf" section="8"]]
 manual pages respectively. DVDs, DivX and many avi files be played with  manual pages respectively. DVDs, DivX and many avi files be played with
 [`multimedia/ogle`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/ogle/README.html)  [`multimedia/ogle`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/ogle/)
 or  or
 [`multimedia/gmplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/gmplayer/README.html).  [`multimedia/gmplayer`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/multimedia/gmplayer/).
   
 For some hints on creating DVDs, see this [postings about  For some hints on creating DVDs, see this [postings about
 growisofs](http://mail-index.NetBSD.org/current-users/2004/01/06/0021.html) and  growisofs](http://mail-index.NetBSD.org/current-users/2004/01/06/0021.html) and
Line 547  files directly to the raw device. E.g.: Line 547  files directly to the raw device. E.g.:
     # tar cvfz /dev/rfd0a file1 file2 ...      # tar cvfz /dev/rfd0a file1 file2 ...
   
 A variation of this can also be done with MS-DOS floppies using the  A variation of this can also be done with MS-DOS floppies using the
 [`sysutils/mtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/mtools/README.html)  [`sysutils/mtools`](http://ftp.NetBSD.org/pub/pkgsrc/current/pkgsrc/sysutils/mtools/)
 package which has the benefit of not going through the kernel buffer cache and  package which has the benefit of not going through the kernel buffer cache and
 thus not being exposed to the danger of the floppy being removed while a  thus not being exposed to the danger of the floppy being removed while a
 filesystem is mounted on it.  filesystem is mounted on it.

Removed from v.1.5  
changed lines
  Added in v.1.6


CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb