特殊:Badtitle/NS100:RestrictedFormats/ConvertingToOpen:修订间差异

来自Ubuntu中文
跳到导航跳到搜索
Wikibot留言 | 贡献
无编辑摘要
Wikibot留言 | 贡献
无编辑摘要
 
第5行: 第5行:
Please keep in mind that converting between lossy compression formats, such as MP3 and Ogg-Vorbis, will result in some loss of sound quality.  You have a few options for converting MP3s to Ogg-Vorbis format.  Two techniques are listed below.
Please keep in mind that converting between lossy compression formats, such as MP3 and Ogg-Vorbis, will result in some loss of sound quality.  You have a few options for converting MP3s to Ogg-Vorbis format.  Two techniques are listed below.
* '''Ubuntu's Universe repository includes an easy to use application for mass-converting MP3 music to Ogg Vorbis format.'''
* '''Ubuntu's Universe repository includes an easy to use application for mass-converting MP3 music to Ogg Vorbis format.'''
** In Ubuntu:
* In Ubuntu:
*** Install the <code><nowiki>soundconverter</nowiki></code> package
* Install the <code><nowiki>soundconverter</nowiki></code> package
*** Open it from the ''Applications->Sound and Video'' menu
* Open it from the ''Applications->Sound and Video'' menu
*** Add the files you wish to convert
* Add the files you wish to convert
*** Tweak the settings for quality, filename, etc.
* Tweak the settings for quality, filename, etc.
*** Start converting!
* Start converting!
** In Kubuntu:
* In Kubuntu:
*** Follow the above instructions using the <code><nowiki>soundkonverter</nowiki></code> package
* Follow the above instructions using the <code><nowiki>soundkonverter</nowiki></code> package
*** Open it from "Kmenu -> Multimedia > SoundKonverter"
* Open it from "Kmenu -> Multimedia > SoundKonverter"
* '''You can easily convert MP3s into Ogg Vorbis format using [http://audacity.sourceforge.net/ Audacity]'''
* '''You can easily convert MP3s into Ogg Vorbis format using [http://audacity.sourceforge.net/ Audacity]'''
** Install the package '''audacity'''
* Install the package '''audacity'''
** Start Audacity
* Start Audacity
** To import an MP3: File --> Open
* To import an MP3: File --> Open
** Select an MP3 and open it
* Select an MP3 and open it
** To export as an Ogg: File --> Export as Ogg Vorbis
* To export as an Ogg: File --> Export as Ogg Vorbis
** Give the file a name, and save
* Give the file a name, and save
=== Converting Videos To Ogg Theora ===
=== Converting Videos To Ogg Theora ===
Ubuntu has full support for the Free video format [http://www.theora.org/ Ogg Theora] out of the box, and there are a couple of methods for converting videos into this format:
Ubuntu has full support for the Free video format [http://www.theora.org/ Ogg Theora] out of the box, and there are a couple of methods for converting videos into this format:
* The [http://www.videolan.org VideoLAN] project has given the '''VLC''' media player (available in Ubuntu's Universe repository) streaming capabilities, including the ability to stream into a file. To encode an Ogg Theora video of a file VLC is capable of playing
* The [http://www.videolan.org VideoLAN] project has given the '''VLC''' media player (available in Ubuntu's Universe repository) streaming capabilities, including the ability to stream into a file. To encode an Ogg Theora video of a file VLC is capable of playing
** Install the <code><nowiki>vlc</nowiki></code> package and run it (if working from command line these instructions are for the <code><nowiki>vlc</nowiki></code> or <code><nowiki>wxvlc</nowiki></code> commands, not the <code><nowiki>svlc</nowiki></code> command)
* Install the <code><nowiki>vlc</nowiki></code> package and run it (if working from command line these instructions are for the <code><nowiki>vlc</nowiki></code> or <code><nowiki>wxvlc</nowiki></code> commands, not the <code><nowiki>svlc</nowiki></code> command)
** Choose ''File->Open File'' (NOT ''Quick Open File'')
* Choose ''File->Open File'' (NOT ''Quick Open File'')
** In the ''File'' tab select the ''Browse'' button and choose the video you wish to convert
* In the ''File'' tab select the ''Browse'' button and choose the video you wish to convert
** Tick the box next to ''Stream output'' then click the ''Settings'' button which becomes accessible
* Tick the box next to ''Stream output'' then click the ''Settings'' button which becomes accessible
** Under ''Output Methods'' tick ''File'' then click the ''Browse'' button and choose what you want to save your output file as (possibly ending the filename with ".ogg", although that is not strictly needed)
* Under ''Output Methods'' tick ''File'' then click the ''Browse'' button and choose what you want to save your output file as (possibly ending the filename with ".ogg", although that is not strictly needed)
** Change ''Encapsulation Method'' to ''Ogg'' and tick ''Video codec'' and ''Audio codec'', changing them to ''theo'' and ''vorb'' respectively
* Change ''Encapsulation Method'' to ''Ogg'' and tick ''Video codec'' and ''Audio codec'', changing them to ''theo'' and ''vorb'' respectively
** Choose your desired bit rates for audio and video (you will need to do some experimentation with these to produce small files of high quality)
* Choose your desired bit rates for audio and video (you will need to do some experimentation with these to produce small files of high quality)
** Press ''OK'' in the settings window, then again in the open file window. The file will now stream to an Ogg Theora video instead of being played normally.
* Press ''OK'' in the settings window, then again in the open file window. The file will now stream to an Ogg Theora video instead of being played normally.
* The program ffmpeg2theora is slightly more reliable than VLC, but it is based on the command line:
* The program ffmpeg2theora is slightly more reliable than VLC, but it is based on the command line:
** Install <code><nowiki>ffmpeg2theora</nowiki></code> from Universe
* Install <code><nowiki>ffmpeg2theora</nowiki></code> from Universe
** Open a terminal in the same folder as the video you wish to convert
* Open a terminal in the same folder as the video you wish to convert
** Run the command <code><nowiki>ffmpeg2theora -v N video_file</nowiki></code> where N is the output quality and video_file is the filename of the video. This will produce a file called "video_file.ogg"
* Run the command <code><nowiki>ffmpeg2theora -v N video_file</nowiki></code> where N is the output quality and video_file is the filename of the video. This will produce a file called "video_file.ogg"
** For more options see the ffmpeg2theora manual with the command <code><nowiki>man ffmpeg2theroa</nowiki></code>
* For more options see the ffmpeg2theora manual with the command <code><nowiki>man ffmpeg2theroa</nowiki></code>
* There is a rudimentary GUI available for ffmpeg2theora which allows configuration of most ffmpeg2theora options and provides a useful progress bar. It uses the QT4 toolkit, so you may need to install some extra packages to compile or use it. A pre-compiled binary can be found  [http://p80.free.fr/katiuska-0.1-bin.tar.bz2 here] and the corresponding source can be found [http://p80.free.fr/katiuska-0.1.tar.bz2 here].
* There is a rudimentary GUI available for ffmpeg2theora which allows configuration of most ffmpeg2theora options and provides a useful progress bar. It uses the QT4 toolkit, so you may need to install some extra packages to compile or use it. A pre-compiled binary can be found  [http://p80.free.fr/katiuska-0.1-bin.tar.bz2 here] and the corresponding source can be found [http://p80.free.fr/katiuska-0.1.tar.bz2 here].


[[category:UbuntuHelp]]
[[category:UbuntuHelp]]

2007年12月6日 (四) 15:40的最新版本

{{#ifexist: :RestrictedFormats/ConvertingToOpen/zh | | {{#ifexist: RestrictedFormats/ConvertingToOpen/zh | | {{#ifeq: {{#titleparts:RestrictedFormats/ConvertingToOpen|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:RestrictedFormats/ConvertingToOpen|1|-1|}} | zh | | }}

Converting audio and video into open formats

Converting MP3s to Ogg-Vorbis

Please keep in mind that converting between lossy compression formats, such as MP3 and Ogg-Vorbis, will result in some loss of sound quality. You have a few options for converting MP3s to Ogg-Vorbis format. Two techniques are listed below.

  • Ubuntu's Universe repository includes an easy to use application for mass-converting MP3 music to Ogg Vorbis format.
  • In Ubuntu:
  • Install the soundconverter package
  • Open it from the Applications->Sound and Video menu
  • Add the files you wish to convert
  • Tweak the settings for quality, filename, etc.
  • Start converting!
  • In Kubuntu:
  • Follow the above instructions using the soundkonverter package
  • Open it from "Kmenu -> Multimedia > SoundKonverter"
  • You can easily convert MP3s into Ogg Vorbis format using Audacity
  • Install the package audacity
  • Start Audacity
  • To import an MP3: File --> Open
  • Select an MP3 and open it
  • To export as an Ogg: File --> Export as Ogg Vorbis
  • Give the file a name, and save

Converting Videos To Ogg Theora

Ubuntu has full support for the Free video format Ogg Theora out of the box, and there are a couple of methods for converting videos into this format:

  • The VideoLAN project has given the VLC media player (available in Ubuntu's Universe repository) streaming capabilities, including the ability to stream into a file. To encode an Ogg Theora video of a file VLC is capable of playing
  • Install the vlc package and run it (if working from command line these instructions are for the vlc or wxvlc commands, not the svlc command)
  • Choose File->Open File (NOT Quick Open File)
  • In the File tab select the Browse button and choose the video you wish to convert
  • Tick the box next to Stream output then click the Settings button which becomes accessible
  • Under Output Methods tick File then click the Browse button and choose what you want to save your output file as (possibly ending the filename with ".ogg", although that is not strictly needed)
  • Change Encapsulation Method to Ogg and tick Video codec and Audio codec, changing them to theo and vorb respectively
  • Choose your desired bit rates for audio and video (you will need to do some experimentation with these to produce small files of high quality)
  • Press OK in the settings window, then again in the open file window. The file will now stream to an Ogg Theora video instead of being played normally.
  • The program ffmpeg2theora is slightly more reliable than VLC, but it is based on the command line:
  • Install ffmpeg2theora from Universe
  • Open a terminal in the same folder as the video you wish to convert
  • Run the command ffmpeg2theora -v N video_file where N is the output quality and video_file is the filename of the video. This will produce a file called "video_file.ogg"
  • For more options see the ffmpeg2theora manual with the command man ffmpeg2theroa
  • There is a rudimentary GUI available for ffmpeg2theora which allows configuration of most ffmpeg2theora options and provides a useful progress bar. It uses the QT4 toolkit, so you may need to install some extra packages to compile or use it. A pre-compiled binary can be found here and the corresponding source can be found here.