Archive for April, 2007

Chapter 20 . Playing Music and Video 541 (Web site counters)

Wednesday, April 25th, 2007

Chapter 20 . Playing Music and Video 541 Brand Supported Model(s) Philips ESP2, ESP50, ESP60, ESP70, ESP80, and ESP80SXG Polaroid PDC 640, PDC 2300Z, and DC700 Ricoh RDC 300, 300Z, 4200, 4300, and 5000 Samsung Kenox SSC-350N and Digimax 800K Sanyo DSC-X300, DSC-X350, VPC-G200, VPC-G210, VPC-G200EX, and VPC-G250 Sony DSC-F1, DSC-F55, DSC-F707V, DSC-P30, DSC-P31, DSC-P32, DSC-P5, DSC-P50, DSC-P52, DSC-P72, DSC-P92, DSC-S75, DSC-S85, DSC-U20, DSC-V1, Memory Stick Adapter, MSAC-SR1, and DCR-PC100 Toshiba PDR-M1 New cameras are added frequently, so check the support page if you do not see your camera listed. Downloading Digital Photos with Gtkam The following procedure describes how to download images from your digital camera. 1. Using a cable provided with your digital camera, connect your camera to the USB or COM port on your computer (I had better luck with the USB port). 2. Set your camera to Send and Receive mode. 3. From the main menu on your desktop, choose Graphics.Digital Camera Tool. The gtkam window appears. 4. Select Camera.Add Camera. The Select Camera window appears. 5. Click the down arrow next to the Model box, select your camera, and click Detect. 6. Click Apply, and then click OK. Your camera model should be listed in the gtkam window. 7. To begin downloading images from your digital camera, click the camera name that appears in the left column, and then select the folder containing the images from that camera. After the images download (which can take a while), thumbnails appear in the main gtkam. 8. Select the images that interest you, and click the Save Selected Photos button to save the selected images. The Save Photos window that appears lets you
Note: If you are looking for cheap and reliable webhost to host and run your mysql application check Vision mysql hosting services

540 Part (Web hosting support) IV . Running Applications Table 20-3

Tuesday, April 24th, 2007

540 Part IV . Running Applications Table 20-3 (continued) Brand Supported Model(s) Fuji ix-100, DS-7, DX-5, DX-10, IX-1, MX-500, MX-600, MX-700, MX-1200, MX-1700, MX-2700, and MX-2900 Generic Soundvision Clarity2 Hawking DC120 Hot Wheels All models Hewlett-Packard 618, 912, C20, C30, C200, C500, 120, 318, 320, 43x, 612, 620, PhotoSmart 715, 720, 812, 850, and 935 IOMagic 400 and 420 Jentoptik JD11 and JD12 800ff KBGear JamCam Kodak DC CX4200, CX4210, CX4230, CX4300, CX6200, CX6230, CX6330, DC120, DC220, DC240, DC260, DC265, DC280, DC290, DC3200, DC3400, DC4800, DC5000, DX3215, DX3500, DX3600, DX3700, DX3900, DX4330, DX4530, DX4900, DX6340, DX6440, DX6490, LS420, LS443, LS663, and MC3 Konica e-mini, Q-EZ, Q-M100, Q-M100V, and Q-M200 Leica Digilux Zoom. Media-Tech mt-406 Minolta Dimage V Mustek VDC-3500 Nikon CoolPix 100, 300, 600, 700, 800, 880, 900, 900S, 910, 950, 950S, 990, 995, 2000, 2100, 2500, 3100, 3500, 4300, 4500, 5000, 5400, 5700, and SQ Olympus D-100Z, D-200L, D-220L, D-300L, D-320L, D-330R, D-340L, D-340R, D-360L, D-400L Zoom, D-450Z, D-460Z, D-500L, D-560Z, D-600L, D-600XL, D-620L, C-350Z, C-400, C-400L, C-410, C-410L, C-420, C-420L, C-800, C-800L, C-820, C-820L, C-830L, C-840L, C-860L, C-900 Zoom, C-900L Zoom, C-1000L, C-1400L, C-1400XL, C-2000Z, C-2020Z, C-2040Z, C-21000UZ, C-2500L, C-3000Z, C-3020Z, C-3030Z, C-3040Z, and X-250 Oregon Scientific DShot II and DShot III Panasonic Coolshot KXL-600A and KXL-601A, and NV-DCF5E, DC1000, DC1580, PV-L691, and PV-L859 Pencam Tevion MD 9456
Note: If you are looking for reliable webhost to maintain and run your java application check Vision java hosting services

Chapter 20 . Playing Music and Video (Web hosting servers) 539

Tuesday, April 24th, 2007

Chapter 20 . Playing Music and Video 539 digital images from the camera, view full-size images, and download the ones you select from the camera to your hard disk. If you have a camera that saves images to a floppy disk, just insert that disk into your disk drive and the contents of the disk should open automatically on your desktop. In addition, if your camera saves images to SD or CF cards, you can purchase a USB card reader and view these files from Linux. Check the gPhoto2 Web site (www.gphoto.org/proj/libgphoto2/support.php) for information on supported cameras as well as other topics related to gPhoto. If you include experimental units and cameras under testing, there are 433 supported cameras. Table 20-3 is a list of currently supported digital cameras. Table 20-3 Digital Cameras Supported by gPhoto2 Brand Supported Model(s) AEG Snap 300 Agfa ePhoto 307, 780, 780C, 1280, 1680, and CL18 Aiptek PalmCam Trio and PenCam Trio Apple QuickTake 200 Argus DC-100, DC-1500, DC-1510, DC-2000, and DC-2200 Barbie All models Canon IXY Digital, IXY Digital 300, MV630i, MVX2i, Optura 10, Optura 20, Optura 200 MC, and ZR70MC Canon Digital IXUS, IXUS 2, IXUS 300, IXUS 330, IXUS 400, IXUS i, IXUS II, IXUS v, IXUS v2, and IXUS v3 Canon EOS 10D, 300D, D30, Digital Rebel, and Kiss Digital Canon PowerShot A5, A5 Zoom, A10, A20, A50, A60, A70, A80, A100, A200, A300, G1, G2, G3, G5, Pro70, Pro90 IS, S10, S20, S30, S40, S45, S50, S100, S110, S200, S210, S300, S400, and SD100 Casio QV 10, 10A, 11, 30, 70, 100, 200, 700, and 5000SX Chinon ES-1000 CoolCam CP086 Digitaldream 200, l elegante, l elite, l espion, l esprit, and la ronde Dynatron Dynacam 800 Epson PhotoPC 300z, 500, 550, 600, 700, 800, and 850z Continued Note
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services

Managed web hosting - 538 Part IV . Running Applications Using Helix

Monday, April 23rd, 2007

538 Part IV . Running Applications Using Helix Player and RealPlayer 10 A tremendous amount of content is available on the Internet in the RealMedia and RealAudio formats. You can see and hear video clips of popular musicians and comics; view live events such as conferences, news stories, and concerts; and listen to your favorite radio stations when you are out of town. To play RealMedia and RealAudio content, you need, as you may have guessed, RealPlayer. Real Networks (www.real.com) is a leader in streaming media on the Internet. More than 50 million unique users have registered with Real Networks and its Web site, downloading more than 175,000 files per day. And that s not even the good news. The good news is that RealPlayer is available to run in Fedora Core. RealPlayer 10 for Linux is available via the Linux area of www.download.com and www.tucows.com and at http://proforma.real.com/real/player/unix/ unix.html. This player is not supported by Real Networks directly. In addition, Real has opened up the source code to the RealPlayer under the name Helix Player. Fedora Core 4 (on the DVD included with this book) includes a prereleased version of the Helix Player that you can try out. The instructions for configuring RealPlayer are delivered in HTML format, so you can read them in Mozilla or some other Web browser. If any patches or workarounds are required, you can find them by querying for the word Linux in the Real Networks Knowledge Base. To get there, click Support (from most Real Networks pages), and then click Knowledge Base. When you install RealPlayer, you are asked if you want to configure it to be used as a Netscape plug-in (which I recommend so that you can play real content in Mozilla). After that, when you open any Real content in your browser, RealPlayer opens to handle it. Alternatively, you can start RealPlayer from a Terminal window on your desktop by typing the following: $ realplay & Real Networks has gone to a subscription model for its content (you sign up and pay a monthly fee). To see what s available, and to decide if it is worth signing up, I suggest starting at the RealGuide site (www.realguide.real.com), which includes a few clips you can try out. Using a Digital Camera with Gtkam and gPhoto2 With the gtkam window, you can download and work with images from digital cameras. The gtkam window is a front end to gPhoto2, which provides support for dozens of digital cameras in Linux. The gtkam window works by attaching a supported digital camera to a serial or USB port on your computer. You can view thumbnails of the
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Chapter 20 . Playing Music and Video 537 (Web host music)

Monday, April 23rd, 2007

Chapter 20 . Playing Music and Video 537 . Xine playback is choppy If playback of files from your hard disk is choppy, there are a couple of settings you can check: 32-bit IO and DMA, features that, if supported by your hard disk, generally improve hard disk performance. Here s how to check: Improper disk settings can result in destroyed data on your hard disk. Perform this procedure at your own risk. This procedure is only for IDE hard drives (no SCSI)! Also, be sure to have a current backup and no activity on your hard disk if you change DMA or IO settings as described in this section. 1. First, test the speed of hard disk reads. To test the first IDE drive (/dev/hda), type: # hdparm -t /dev/hda Timing buffered disk reads: 64 MB in 19.31 seconds = 3.31 MB/sec 2. To see your current DMA and IO settings, as root user type: # hdparm -c -d /dev/hda /dev/hda: I/O support = 0 (default 16-bit) using_dma = 0 (off) 3. This result shows that both 32-bit IO and DMA are off. To turn them on, type: # hdparm -c 1 -d 1 /dev/hda /dev/hda: I/O support = 1 (32-bit) using_dma = 1 (on) 4. With both settings on, test the disk again: # hdparm -t /dev/hda Timing buffered disk reads: 64 MB in 2.2 seconds = 28.83 MB/sec In this example, buffered disk reads of 64MB went from 19.31 seconds to 2.2 seconds after changing the parameters described. Playback would be much better now. . Xine won t play particular media Messages such as no input plug-in mean that either the file format you are trying to play is not supported or it requires an additional plug-in (as is the case with playing DVDs). If the message is maybe xyx is a broken file, the file may be a proprietary version of an otherwise supported format. For example, I had a QuickTime video fail that required an SVQ3 codec (which is currently not supported under Linux), although other QuickTime files played fine. Caution
Note: In case you are looking for affordable and reliable webhost to host and run your j2ee application check Vision web design programs services

536 Part IV . Running Applications Creating Playlists (Web site development)

Monday, April 23rd, 2007

536 Part IV . Running Applications Creating Playlists with Xine Click the Playlist button on the left side of the xine control window. A Playlist Editor appears, showing the files on your current playlist. You can add and delete content and then save the list to call on later. Xine content is identified as media resource locators (MRLs). Each MRL is identified as a file, DVD, or VCD. Files are in the regular file path (/path/file) or preceded by file:/, fifo:/ or stdin:/. DVDs and VCDs are preceded by dvd and vcd, respectively (for example, vcd://01). Table 20-2 shows what the xine Playlist Editor buttons do. Table 20-2 Using the xine Playlist Editor Button Description CDA, DVD, or VCD All content from that CD or DVD is added to the playlist. Add See the MRL Browser window. From that window, click File to choose a file from your Linux file system, and then click Select to add that file to the Playlist Editor. (MRL stands for Media Resource Locator, which defines the form in which remote and local content are identified.) Move Up Selected MRL Move up and down the playlist. Move Down Selected MRL Play Play the contents of the playlist. Delete Selected MRL Remove the current selection. Delete All Entries Clear the whole playlist. Save Save the playlist to your home directory ($HOME/.xine/playlist). Load Read in your (saved) playlist. Xine Tips Getting video and audio to work properly can sometimes be a tricky business. Here are a few quick tips if you are having trouble getting xine to work correctly (or at all): . Xine won t start To work best, xine needs an X driver that supports xvid. If there is no xvid support for your video card in X, xine shuts down immediately when it tries to open the default Xv driver. If this happens to you, try starting xine with the X11 video driver (which is slower, but should work) as follows: $ xine -VXSHM
Note: If you are looking for best quality webspace to host and run your tomcat application check Vision tomcat hosting services

Chapter 20 . Playing Music (Web host 4 life) and Video 535

Sunday, April 22nd, 2007

Chapter 20 . Playing Music and Video 535 When you try to install xine, it tells you if you need any additional packages. If your xine player fails to start, see the Xine Tips section later in this chapter. Xine supports a bunch of video and audio formats, including: . MPEG (1, 2, and 4) . QuickTime (see Xine Tips if your QuickTime content won t play) . WMV . DVDs, CDs, and VCDs . Motion JPEG . MPEG audio (MP3) . AC3 and Dolby Digital audio . DTS audio . Ogg Vorbis audio Xine understands different file formats that represent a combination of audio and video, including .mpg (MPEG program streams), .ts (MPEG transport streams), .mpv (raw MPEG audio/video streams), .avi (MS AVI format), and .asf (Advanced Streaming format). While xine can play Video CDs and DVDs, it can t play encrypted DVDs or the Video-on-CD hybrid format (because of legal issues mentioned earlier related to decrypting DVDs). Using xine With xine started, right-click in the xine window to see the controls. The quickest way to play video is to click one of the following buttons, and then press the Play button (right arrow or Play, depending on the skin you are using): . VCD (for a video CD) . DVD (for a DVD in /dev/dvd) . CDA (for a music CD in /dev/cdaudio) Next, you can use the Pause/Resume, Stop, Play, Fast Motion, Slow Motion, or Eject buttons to work with video. You can also use the Previous and Next buttons to step to different tracks. The controls are very similar to what you would expect on a physical CD or DVD player. To select individual files, or to put together your own list of content to play, use the Playlist feature. Note
Note: If you are looking for cheap and reliable webhost to host and run your web application check Vision coldfusion web hosting services

Ipower web hosting - 534 Part IV . Running Applications Use the

Sunday, April 22nd, 2007

534 Part IV . Running Applications Use the tabs beneath the video window to adjust your audio levels and video appearance. The History tab shows a log of your activities. Watching Movies and Video Although several fairly high-quality video players are available for Linux, it is rare to see the players included in formal distributions because of legal complications. The issues surrounding the playing of encoded DVD movies in Linux might be responsible for keeping players such as the MPlayer (freshmeat.net/mplayer), Ogle (http://www.dtek.chalmers.se/groups/dvd), and xine (xine.sourceforge .net) video players out of common distributions. By most accounts, however, you can get and use these video players to play a variety of video content for personal use as long as you don t download and use the DeCCS (software for decrypting DVD movies). The following sections provide descriptions of some commonly used video players. Watching Video with xine The xine player is an excellent application for playing a variety of video and audio formats. You can get xine from xine.sourceforge.net or from software repositories associated with your Linux distribution. You can start the xine player by typing xine& from a Terminal window. Figure 20-9 shows an example of the xine video player window and controls. Figure 20-9: Play video CDs, MP3s, QuickTime, and other video formats with xine.
Note: In case you are looking for affordable webhost to host and run your servlet application check Vision servlet hosting services

Chapter 20 (Medical web site) . Playing Music and Video 533

Saturday, April 21st, 2007

Chapter 20 . Playing Music and Video 533 Running GnomeMeeting To start GnomeMeeting from a Terminal window, type gnomemeeting &. If it is not installed, you can get the package for your Linux distribution when you install the GNOME desktop. The first time you run GnomeMeeting, the GnomeMeeting Configuration Assistant starts, enabling you to enter the following information: . Personal Data Your first name, last name, e-mail address, comment, and location. You can also choose whether you want to be listed in the GnomeMeeting ILS directory. . Connection Type Indicate the speed of your Internet connection (56K modem, ISDN, DSL/Cable, T1/LAN, or Custom). Once you have entered the data, the GnomeMeeting window opens. Figure 20-8 shows the GnomeMeeting window with the call log to the right. Select Tools.Calls History to open that log. It shows a history of the calls you make during this session. To open the Address book, select the address book icon from the left side of the GnomeMeeting window. Add ILS servers and friends to that window, and then select the user or server you want to contact and click Contact.Call Contact. Figure 20-8: Connect to ILS servers to videoconference with GnomeMeeting.
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services

532 Part IV . Running Applications communicate with (Web site construction)

Saturday, April 21st, 2007

532 Part IV . Running Applications communicate with people using other popular videoconferencing clients, such as Microsoft NetMeeting, Cu-SeeMe, and Intel VideoPhone. GnomeMeeting does not support the NetMeeting shared whiteboard functions, just videoconferencing. To be able to send video, you need a Webcam supported in Linux you ll find a few dozen models from which to choose. The following sections show you how to set up your Webcam and use GnomeMeeting for videoconferencing. Getting a Supported Webcam As with support for TV capture cards, Webcam support is provided through the video4linux interface. To see if your Webcam is supported, check the /usr/src/ linux*/Documentation directory. A few parallel-port video cameras are described in the video4linux subdirectory; however, the bulk of the supported cameras are listed in the usb directory. After doing some research, I purchased a Logitech QuickCam Pro 3000. The driver for this Webcam was made for a Philips USB Webcam, but it also works for Webcams from Logitech, Samsung, Creative Labs, and Askey. Before making the purchase, I checked out the driver s description at www.saillard.org/linux/pwc. Supported USB cameras should be autodetected, so that when you plug them in, the necessary modules are loaded automatically. Just start up GnomeMeeting (gnomemeeting command), and you should see video from your Webcam on your Linux desktop. You can check to see that your Webcam is working properly by typing the following: # lsmod pwc 43392 1 videodev 5120 2 [pwc] usbcore 59072 1 [audio pwc usb-uhci] The output from lsmod shows that the pwc driver is loaded and associated with the videodev module and usbcore module. Opening Your Firewall for GnomeMeeting You need to open a variety of ports in your firewall to use GnomeMeeting. In particular, you need to open TCP port 1720 and TCP port range 30000 to 30010. For UDP ports, you must open ports 5000 through 5007 and ports 5010 through 5013. Examples of exact iptables settings you can use to open these ports are contained in the GnomeMeeting FAQ (www.gnomemeeting.org/faq). Tip Note
Note: In case you are looking for affordable webhost to host and run your web application check Vision cheap hosting services