个人工具

UbuntuHelp:RestrictedFormats/StreamingVideo/zh

来自Ubuntu中文

跳转至: 导航, 搜索
  1. title Play Streaming Video from the Internet
  • Ubuntu

There are a variety of plugins that allow you to play streaming video in your browser. The recommended plugin is totem-xine-firefox-plugin. First, install the Windows Codecs, then install the totem-plugin. On Ubuntu, Totem can use either the gstreamer (default) or xine multimedia frameworks. The plugin installation process depends on the framework you use. If you use totem-gstreamer (the version of Totem that uses the gstreamer back-end), install the totem-gstreamer-firefox-plugin package. If you use totem-xine, install the totem-xine-firefox-plugin package. See this page for instructions for Ubuntu 5.10.

  • Kubuntu

This is not needed for Konqueror; Kubuntu comes with a plugin by default. Anchor(real)

Real Media

Following the instructions above should enable most media players (such as Totem and Kaffeine) to play Real'Media files but if you wish to set up Realplayer to be the default application to open Real'Media file types:

  • Ubuntu

Use the File Manager to navigate to a folder containing a sample Real'Media file. Click the file with the right mouse button, select Properties, and then the tab Open With. Click the radio button next to Real'Player 10, and close the dialog window.

  • Kubuntu

Open Konqueror, and select Configure Konqueror in the Settings menu. Navigate to the File Associations section using the side bar, Then type rm in the Find Filename Pattern box. Select the known type labelled vnd.rn-realmedia And add Real Player 10 to the top of the Application Preference Order dialogue.

  • Note About Streaming Video

Real'Player supports streaming Real'Media files slightly better than other players (for example, those which use the Xine engine). These players generally cannot skip forwards and backwards through streams or resume after pausing, which can be a problem if the connection is dropped temporarily as the file will have to be started again from the beginning. There is a simple solution to this if you want to use your regular media players like Totem or Kaffeine:

  • Install the package streamripper
  • Download a streaming "video" file (actually these are text files containing the online location of the stream)
  • Open a terminal and run the command: streamripper $(cat filename.rm) , which will start to download the video stream onto your filesystem.

This command will repeat itself once finished, so once the first line saying ripping has finished and another appears you can stop the program by pressing Ctrl-C. By default the downloaded file will be called Streamripper_rips/incomplete/ - .mp3. Don't pay attention to the MP3 filename, since Ubuntu recognises files by their actual content rather than the name. Open this in a player which supports Real'Media files and it will no longer be streaming from the Internet, meaning you can pause, resume and skip forwards and backwards as much as you want.