Difference between revisions of "VLC HowTo/Extract audio"
Jim DeLaHunt (talk | contribs) (→Planning: A bit of rewording and wikilinking) |
Jim DeLaHunt (talk | contribs) (→Planning: Using VLC GUI to investigate how from which Title and Chapters to get content) |
||
Line 11: | Line 11: | ||
Is the source a [[DVD]], or other container with internal structure, such as multiple "Titles", and multiple "Chapters" in each Title? If so, then you need to identify which Title and Chapters include the audio content you want, and which are irrelevant. For instance, a DVD may have a menu in Title 1, an advertisement in Title 2, the main content in Title 3, and a trailer in Title 3. The main content in Title 3 may be divided into dozens of chapters, like the tracks in a CD. In a case like this, you probably want only the audio content from Title 3, not from the other Titles. You may want to extract a single audio file with the content of all of Title 3, or you may want a separate audio output file for each Chapter. | Is the source a [[DVD]], or other container with internal structure, such as multiple "Titles", and multiple "Chapters" in each Title? If so, then you need to identify which Title and Chapters include the audio content you want, and which are irrelevant. For instance, a DVD may have a menu in Title 1, an advertisement in Title 2, the main content in Title 3, and a trailer in Title 3. The main content in Title 3 may be divided into dozens of chapters, like the tracks in a CD. In a case like this, you probably want only the audio content from Title 3, not from the other Titles. You may want to extract a single audio file with the content of all of Title 3, or you may want a separate audio output file for each Chapter. | ||
− | The VLC GUI provides a somewhat clumsy but workable way to explore the structure of a DVD or corresponding video file. Run the VLC app. | + | The VLC GUI provides a somewhat clumsy but workable way to explore the structure of a DVD or corresponding video file. Here is how (as of Windows version 1.1.11): |
+ | # Run the VLC app. | ||
+ | # Put the DVD into the computer's DVD reader. | ||
+ | # From '''Media''' menu, select '''Open Disc...''' (Ctl-D). The '''Open Media''' dialog appears. | ||
+ | # Select the '''Disc''' tab. In the '''Disc''' tab's "Disk Selection" section, select the "DVD" radio button . From the "Disc device" menu, select the menu entry corresponding to the computer's DVD reader. For example, it might be "F:\ - Wedding Movie". Click the '''Play''' button at the bottom of the dialog. The '''Open Media''' dialog disappears. The DVD now appears as an entry in the playlist, e.g. "DVD://F". | ||
+ | # Double-click on the DVD entry in the playlist. The DVD starts playing. If necessary, select entries in the DVD's menu to start the DVD playing the content from which you want to extract audio. | ||
+ | # From the '''Playback''' menu, hover over '''Title >'''. A second menu appears, with entries like "DVD Menu", "Title 1", "Title 2", "Title 3". These are the Title choices you have to pull from. A check mark will be next to one of the entries. This is the Title with your content. | ||
+ | # On the '''Playback''' menu, move down to hover over '''Chapter >'''. A second menu appears, with entries like "Chapter 1", "Chapter 2", etc. A check mark will be next to one of the entries. This is the Chapter with your content. | ||
+ | # Note the last entry in the '''Chapter >''' submenu. This tells how many chapters there are in total in that title. | ||
+ | # Note the Title and Chapter number of the start of the content from which you want to extract audio. Also note the final Title and Chapter number of the content. | ||
==Using the VLC graphical user interface (GUI)== | ==Using the VLC graphical user interface (GUI)== |
Revision as of 06:18, 27 October 2011
VLC can extract audio from any of the many input sources it supports, and write this audio to an audio-file in a variety of formats. In other words, it discards any video content from the input source, and it converts the audio content to the desired format.
You can invoke audio extraction from the VLC graphical user interface, or from the VLC command line. When using the VLC command line, you can select options that let you monitor the audio (and/or video, actually) as the extraction happens. Or, you can select options to hide VLC's visual interfaces, leaving it to extract and convert the audio data as fast as the computer allows -- which might take a fraction of the time. You can also script the VLC command line invocations, letting you do many extraction tasks without manual effort.
Contents
Planning
Identify the source from which you want to extract the audio signal. You will open this source from VLC using the same GUI operations or command-line options as you would for any other VLC usage.
Is the source an audio-only file? If so, then this operation is a simple transcoding of audio content from one format to another. Be aware that, while VLC has certain facility for this task, other tools may be even more powerful, faster, or more reliable for the task. For instance, the FLAC tools include a command-line utility which can convert WAV files into FLAC files with excellent speed and reliability. Where VLC really shines is for sources which combine video and audio content.
Is the source a DVD, or other container with internal structure, such as multiple "Titles", and multiple "Chapters" in each Title? If so, then you need to identify which Title and Chapters include the audio content you want, and which are irrelevant. For instance, a DVD may have a menu in Title 1, an advertisement in Title 2, the main content in Title 3, and a trailer in Title 3. The main content in Title 3 may be divided into dozens of chapters, like the tracks in a CD. In a case like this, you probably want only the audio content from Title 3, not from the other Titles. You may want to extract a single audio file with the content of all of Title 3, or you may want a separate audio output file for each Chapter.
The VLC GUI provides a somewhat clumsy but workable way to explore the structure of a DVD or corresponding video file. Here is how (as of Windows version 1.1.11):
- Run the VLC app.
- Put the DVD into the computer's DVD reader.
- From Media menu, select Open Disc... (Ctl-D). The Open Media dialog appears.
- Select the Disc tab. In the Disc tab's "Disk Selection" section, select the "DVD" radio button . From the "Disc device" menu, select the menu entry corresponding to the computer's DVD reader. For example, it might be "F:\ - Wedding Movie". Click the Play button at the bottom of the dialog. The Open Media dialog disappears. The DVD now appears as an entry in the playlist, e.g. "DVD://F".
- Double-click on the DVD entry in the playlist. The DVD starts playing. If necessary, select entries in the DVD's menu to start the DVD playing the content from which you want to extract audio.
- From the Playback menu, hover over Title >. A second menu appears, with entries like "DVD Menu", "Title 1", "Title 2", "Title 3". These are the Title choices you have to pull from. A check mark will be next to one of the entries. This is the Title with your content.
- On the Playback menu, move down to hover over Chapter >. A second menu appears, with entries like "Chapter 1", "Chapter 2", etc. A check mark will be next to one of the entries. This is the Chapter with your content.
- Note the last entry in the Chapter > submenu. This tells how many chapters there are in total in that title.
- Note the Title and Chapter number of the start of the content from which you want to extract audio. Also note the final Title and Chapter number of the content.
Using the VLC graphical user interface (GUI)
See How to Rip DVD Audio to MP3 Using VLC Media Player, Edited by AudioDude and 2 others, WikiHow.com
Note that VLC's GUI lets you specify the Title and Chapter from which it will start, but VLC will continue extracting until the end of the Title. It doesn't let you extract a single Chapter at a time. To do that, you will need to use the VLC command line.
Using the VLC command line
If you want the extracted audio in the same format as it is stored in the input, then VLC can provide it to you with no loss of quality, because there is no re-encoding of the content.
The way to do this for AC3 format audio from a DVD video is (on Linux):
vlc --no-sout-video dvdsimple:///dev/scd0@1:1 :sout='#std{access=file,mux=raw,dst=./file.ac3}'
Note: :sout means that the option sout applies only to the preceding stream, not to the whole command line. See VLC command-line help.
See Also
- How to Rip DVD Audio to MP3 Using VLC Media Player, Edited by AudioDude and 2 others, WikiHow.com
- article Extract Audio From File