Difference between revisions of "MP3"

From VideoLAN Wiki
Jump to navigation Jump to search
Line 1: Line 1:
 
{{codec audio|id=mp3|for=[[dummy]] (raw), [[mpeg]], [[avi]], [[matroska]] and [[mp4]]}}
 
{{codec audio|id=mp3|for=[[dummy]] (raw), [[mpeg]], [[avi]], [[matroska]] and [[mp4]]}}
 
{{wikipedia|MP3}}
 
{{wikipedia|MP3}}
'''MP3''' is a popular type of audio compression described by the [[MPEG-1]] specification (MP3's full name is MPEG-1 Layer 3 Audio).
+
'''MP3''' is a popular type of audio compression described by the [[MPEG-1]] specification (MP3's full name is ''MPEG-1 Layer 3 Audio'').
  
 +
VLC can play and create MP3 files.
 +
{{clear}}
  
VLC can play MP3 files, but if you try to create mp3 files it probably won't use the best compression techniques.
+
== Creating mp3 files ==
 +
: '''Note:''' If you try to create mp3 files it probably won't use the best compression techniques!
  
You can make mp3 files by using the '''mp3''' audio codec, and '''dummy''' muxer. You should also specify the '''--no-video''' option.
+
You can make mp3 files by using the ''mp3'' audio codec. .mp3 files do not have a container, so you should use the ''dummy'' container. You should also specify the ''--no-video'' option if you're taking audio from a video.
  
 
An example of this at the [[command prompt]] is (all on one line):
 
An example of this at the [[command prompt]] is (all on one line):
<blockquote>
+
{{%}} vlc "''input_file''" :no-video
vlc "''input_file''" :no-video :sout='#[[transcode]]{ acodec=mp3,ab=128}:std{ access=file,mux=dummy,url="''out_file.mp3''"}'
+
    :sout='#[[transcode]]{acodec=mp3,ab=128}:std{
</blockquote>
+
    access=file,mux=dummy,url="''out_file.mp3''"}'
 
 
  
 
== External Links ==
 
== External Links ==
 
* [http://www.tnt.uni-hannover.de/project/mpeg/audio/faq/mpeg1.html MPEG 1 Audio FAQ] for details on the differences between the layers.
 
* [http://www.tnt.uni-hannover.de/project/mpeg/audio/faq/mpeg1.html MPEG 1 Audio FAQ] for details on the differences between the layers.

Revision as of 14:36, 18 December 2006

mp3
This is an audio codec. The name to use at the command line is mp3.
This codec can be used inside the dummy (raw), mpeg, avi, matroska and mp4 containers.

MP3 is a popular type of audio compression described by the MPEG-1 specification (MP3's full name is MPEG-1 Layer 3 Audio).

VLC can play and create MP3 files.

Creating mp3 files

Note: If you try to create mp3 files it probably won't use the best compression techniques!

You can make mp3 files by using the mp3 audio codec. .mp3 files do not have a container, so you should use the dummy container. You should also specify the --no-video option if you're taking audio from a video.

An example of this at the command prompt is (all on one line):

% vlc "input_file" :no-video
   :sout='#transcode{acodec=mp3,ab=128}:std{
   access=file,mux=dummy,url="out_file.mp3"}'

External Links