FreeBSD Kernel patches for read CD at VIDEO-CD format via vcdread utility or directly from linux-mtv (/usr/ports/graphics/mtv)

Originally written by Luoqi Chen for 2.2.7[8]/3.0[1-2] FreeBSD Release and adopted vvm and lavr for FreeBSD 4.x.

I do not guarantee reliability, stability and security. This patches work for me well on all my workstations. See readme from tar-ball archive for setup and use.

PS. Please don't use it on Servers.

FreeBSD 4.x, ... .

FreeBSD 4.x(ATAPI CD(EIDE)). (lavr): 4.0 4.4-RELEASE. , Xine , thx Uwe Soren'. by hand. , , . download Luoqi, ioctl videocd ata linux_ioctl. 4.2[3]-Stable. 4.4-RELEASE, FreeBSD ioctl updated 15.12.2001 vcdread updated 15.12.2001 : , /usr/include/sys/cdio.h . 4.5-Stable FreeBSD updated 07.05.2002 : 4.5-Stable , vcdread VCD mtv . : /sys patch < path-file Install Patches: cd /sys cp /path/patch* . sh for i in `ls patch*` do patch < "$i" done cp /usr/include/sys/cdio.h /usr/include/sys/cdio.h.orig cp /sys/sys/cdio.h /usr/include/sys/cdio.h exit Recompile Kernel with installed patches: cd /sys/i386/conf aviplay mplayer : options USER_LDT options CPU_ENABLE_SSE config YOURKERNEL cd ../../compile/YOURKERNEL make depend make make install : - vcdread videocd stdout 1. vcdread -f /dev/racd0c " " > filename 2. vcdread -f /dev/racd0c " " | mtv -p - - videocd mtv: 1. : - chmod 644 /dev/racd0c (cdrom raw device) - /etc/fbtab -> : ------------------------ /etc/fbtab --------------------------------------- /dev/ttyv0 0600 /dev/console:/dev/pcaudio:/dev/pcaudioctl:/dev/smb0:/dev/iic0 /dev/ttyv0 0660 /dev/racd0c ... --------------------------------------------------------------------------- , CD-ROM 2. : cd /dev; ln -s acd0c cdrom0 3. cdrom videocd :))) 4. mtv VCD , : mpg : linux_ioctl, mtv VideoCD, vcdread CD , mtv. : : - : mtv vcdread - BSD vcdread MPEG, , mpg -> avi divx, MPEG __ - , vcdgear. .dat , .mpg .mpeg, , MPEG , . , mpeg: mpeg: ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ...!...A..... ....... mp3/mpg mp3 :) mtv mpeg , : ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ ................................................................................ vcdgear -fix -mpg2mpg _ . DAT (mpeg .): ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ RIFFĵ`%CDXAfmt ........1.XA........data`%....0...b...b....!...A. .... ....... vcdgear -fix -dat2mpg _ . .: -fix, - . :) - . : :))) mpeg-: ------------- [alone]~ > whereis vcdgear vcdgear: /usr/ports/graphics/vcdgear mpg & avi[divx] - mtv aviplay : ------------------------------------------------------ [alone]~ > whereis mtv /usr/ports/graphics/mtv [alone]~ > cd /usr/ports/graphics/mtv [alone]/usr/ports/graphics/mtv > make && make install [alone]~ > whereis avifile avifile: /usr/ports/graphics/avifile [alone]~ > cd /usr/ports/graphics/avifile [alone]/usr/ports/graphics/avifile > make && make install AVIPLAY - MPEG-4[DIVX] 4.x 3.x[5/stable - ], avirecompress , avifile , QT . aviplay Wine, . #--lavr WINE Emulator options USER_LDT # FreeBSD -: mplayer [unix1]~ > cd /usr/ports/graphics/mplayer [unix1]/usr/ports/graphics/mplayer > make && make install [unix1]/usr/ports/graphics/mplayer > : #--lavr CPU enables SSE/MMX2 instructions support options CPU_ENABLE_SSE PS. avifile mplayer # cd /usr/ports/graphics/ # mv avifile avifile.old # mv mplayer mplayer.old # wget -Y off -t 0 -c -r --cut-dirs=6 -nH ftp://ftp.FreeBSD.org/pub/FreeBSD/branches/-current/ports/graphics/avifile # wget -Y off -t 0 -c -r --cut-dirs=6 -nH ftp://ftp.FreeBSD.org/pub/FreeBSD/branches/-current/ports/graphics/mplayer VideoCD , FreeBSD 2.6, 2.7, 2.8, 3.0 -- lavr / Andrey Lavrentyev