Extract Original-Format Audio From A Video (2016)
Posted: 30 May 2016 03:22
Greetings,
I included the year in the thread Subject to distinguish it from the previous ones on the same subject since they offered creative help that 1) was different from one another and/or 2) didn't work. I'm a Newbie to this forum, but not to forums in general. I've belonged to enough forums to know that forum-membership criteria don't include the important criterion for any new thread: Due Diligence prior to creating the thread. To Wit:
1. Yes, I've spent more than two hours researching this on the Internet.
2. Yes, I looked through the VLC-wiki (https://wiki.videolan.org).
3. Yes, I've probed this forum for information (searched for "extract" that resulted in: "Search found 1429 matches: extract - 72 pages of threads")
4. Yes, I reviewed all 72 pages. Below are only pertinent threads after 2008 because anything before that might have been addressed in subsequent upgrades, and because only the more recent ones wanted the audio extracted and not converted. I don't know when VLC introduced the original-audio format extract, but all of the threads showed a clear expectation that it could be done with most attempting it from the command line.
5. Yes, I'm familiar with the elements of the subject (Video and Audio formats and containers, differences between Unix Korn-shell scripting and DOS scripting, the difference between extraction and conversion, ...)
6. Yes, I have a moderate technical background (BSEE, 15+ years in Product or Software Q/A, 8.5 years in IT).
Does that qualify as "due diligence"?
I want to EXTRACT original-format audio from a video via the Command Line. FFMpeg apparently can do it, but they don't have a mux-format code for AAC. I have the means to know what the video's audio coding format is, but I don't want to convert it to the same format - I want to get the original audio EXTRACTED. I only want to deal with videos with ONE audio track - it's not even really a "track", it's really "the Audio" component as opposed the "the Video" component. Pick any YouTube video as an example. I would like it to work for the 4-5 most popular video types and 4-5 of their most popular audio formats. And, if possible, I would like the "channels" number to be "open" in that either -1 or -2 channels will be extracted properly (this is no big deal since I can detect the number of channels from the video beforehand).
My platform is Windows 7 Pro on a five-year old HP P7-1174 desktop PC. The OS and all pertinent applications are current version, in particular, VLC is v2.2.1. I've been using JPSoft (https://jpsoft.com) scripts since the mid-70s (their commands are founded on DOS commands). I used Unix Korn-shell scripts when I was in IT and saw references to Ubuntu and Linux in the threads I reviewed. I tried to make their examples work, but my lack of VLC command-line experience made that futile. I've seen 6-7 examples of extraction and conversion commands, none of which I could get to work. The only things they have in common is "-I dummy" in the front and "vlc://quit" at the end - and the "vlc://quit" doesn't work.
Many of the threads I looked at had snippets of commands or just an un-associated comment on what to do. Ironically (and sadly) the VLC-wiki has an entry on this very subject ( https://wiki.videolan.org/Extract_audio/), but it is presented in pieces in lecture format, AND the important part "Specifying output format - Extracting audio in original format" has "vlc" for the executable (that's okay) and then just uses a DVD as a source with a AC3 as the destination, but none of the "glue" commands included. It was a Unix example (which is okay) but it wasn't intact, complete, or simple.
I don't want to be spoon-fed, but I would like - not an "Example" - known good, Windows 7+, tested, verified, working, intact, complete command-line commands from "-I dummy" to "vlc://quit" (i.e., working versions of them). A link to another "how to" website will tell me that nobody at VLC knows how to do it - or that it can't be done. That was an angry observation by the thread originator in one of the threads I reviewed. I don't think it's true.
Whatd'ya say?
====================================
Search found 1429 matches: extract
72 pages of threads.
Re: Extracting audio from an .mp4 file
I found "preserve the original", but it was preceded by "not" and it was not the same subject
Re: Can't extract Audio-Track from any Video File
The originator couldn't get any audio extracted nor any more help after 27 Dec 2014
Re: Extract original audio
The one reply was: "Yes, just don't specify a acodec and put vcodec=none while transcoding."
Which didn't work in any of the (failed) examples I'd assembled. Most did nothing.
Re: Extracting audio in original format from .ts file?
Opened 28 Feb 2014; got one off-topic update 30 May 2014 that was about a similar problem.
That was the last entry.
Extraction audio tracks from a music dvd (there is no "RE: ")
Only the original 15 Jan 2013 plea for help.
Re: Unable to extract audio (from DVD or avi)
Opened 27 Nov 2012. Got one kind "Not sure" suggestion on the 28th.
Re: Enable to extract music from a video to a WAV fil
Opened 13 Sep 2012.
On 16 Sep, was told that it was a bug in VLC 2.0.3.
On 17 Sep. someone recommended using QuickTime.
Re: Best version to perform transcoding
09 May 2012 opened thread
08 Jun 2012 resorted to repeating original request
02 Jul 2012 got a snippet of instruction (part of overall command-line command?)
02 Jul 2012 last update "Thank you."
None of which was of any use to me, but it was funny to read.
Re: Extract audio just as it is -- no transcoding
13 Mar 2012 opened thread complaining about "vlc --no-sout-video dvdsimple:///dev/scd0@1:1 :sout='#std{access=file,mux=raw,dst=./file.ac3}'"
being the only example that didn't apply. It was a very detailed opening thread.
18 Mar 2012 Originator saw the wisdom in giving up on any command-line help and used the VLC GUI.
Re: New Class to extract audio
It was about compiling, which I only know enough about to know that a don't want to know any more about it.
Re: simple dvd extract question
Didn't look at it since it was about a DVD.
Re: extract just the audio from webm files
30 Aug 2011 opened thread -and- updated it with a vague "Never mind. Figured it out"
13 Dec 2011 and 24 Dec 2014 two other Users explained how to do it using ffmpeg
Re: How extract mp3 sound from video file
16 Nov 2011 opened thread
(a few exchanges about new requirements of new VLC version with inter-mixed curt statements about what to do)
24 Nov 2011 last entry with Originator still unable to do it.
Re: how to save the audio as mp3 from a flv files?
15 Oct 2011 opened thread.
20 Oct 2011 Another User recommended using "FLV Extract", plus a link to a Blog that had an incomplete example that was one that I couldn't get to work either.
Re: extract audio
20 Apr 2011 opened thread
22 Apr 2011 A User recommended ffmpeg or Mencoder
22 Apr 2011 Originator found solution and was kind enough to put it in thread: Use ffmpeg and Audacity.
Extract Audio From Video Using VLC? (There is no "Re: ")
10 Jan 2011 opened thread. Not clear if this is about the GUI or command line.
Doesn't matter - there were no thread updates.
Re: Extract audio from video file
08 Dec 2009 opened thread. it was about using the GUI.
(a few thread updates)
20 Feb 2010 A (Developer) User offered command-line code for copy/paste.
04 Dec 2010 LAST UPDATE. Another User, not previously in the thread, reported it didn't work and included verbose information.
I included the year in the thread Subject to distinguish it from the previous ones on the same subject since they offered creative help that 1) was different from one another and/or 2) didn't work. I'm a Newbie to this forum, but not to forums in general. I've belonged to enough forums to know that forum-membership criteria don't include the important criterion for any new thread: Due Diligence prior to creating the thread. To Wit:
1. Yes, I've spent more than two hours researching this on the Internet.
2. Yes, I looked through the VLC-wiki (https://wiki.videolan.org).
3. Yes, I've probed this forum for information (searched for "extract" that resulted in: "Search found 1429 matches: extract - 72 pages of threads")
4. Yes, I reviewed all 72 pages. Below are only pertinent threads after 2008 because anything before that might have been addressed in subsequent upgrades, and because only the more recent ones wanted the audio extracted and not converted. I don't know when VLC introduced the original-audio format extract, but all of the threads showed a clear expectation that it could be done with most attempting it from the command line.
5. Yes, I'm familiar with the elements of the subject (Video and Audio formats and containers, differences between Unix Korn-shell scripting and DOS scripting, the difference between extraction and conversion, ...)
6. Yes, I have a moderate technical background (BSEE, 15+ years in Product or Software Q/A, 8.5 years in IT).
Does that qualify as "due diligence"?
I want to EXTRACT original-format audio from a video via the Command Line. FFMpeg apparently can do it, but they don't have a mux-format code for AAC. I have the means to know what the video's audio coding format is, but I don't want to convert it to the same format - I want to get the original audio EXTRACTED. I only want to deal with videos with ONE audio track - it's not even really a "track", it's really "the Audio" component as opposed the "the Video" component. Pick any YouTube video as an example. I would like it to work for the 4-5 most popular video types and 4-5 of their most popular audio formats. And, if possible, I would like the "channels" number to be "open" in that either -1 or -2 channels will be extracted properly (this is no big deal since I can detect the number of channels from the video beforehand).
My platform is Windows 7 Pro on a five-year old HP P7-1174 desktop PC. The OS and all pertinent applications are current version, in particular, VLC is v2.2.1. I've been using JPSoft (https://jpsoft.com) scripts since the mid-70s (their commands are founded on DOS commands). I used Unix Korn-shell scripts when I was in IT and saw references to Ubuntu and Linux in the threads I reviewed. I tried to make their examples work, but my lack of VLC command-line experience made that futile. I've seen 6-7 examples of extraction and conversion commands, none of which I could get to work. The only things they have in common is "-I dummy" in the front and "vlc://quit" at the end - and the "vlc://quit" doesn't work.
Many of the threads I looked at had snippets of commands or just an un-associated comment on what to do. Ironically (and sadly) the VLC-wiki has an entry on this very subject ( https://wiki.videolan.org/Extract_audio/), but it is presented in pieces in lecture format, AND the important part "Specifying output format - Extracting audio in original format" has "vlc" for the executable (that's okay) and then just uses a DVD as a source with a AC3 as the destination, but none of the "glue" commands included. It was a Unix example (which is okay) but it wasn't intact, complete, or simple.
I don't want to be spoon-fed, but I would like - not an "Example" - known good, Windows 7+, tested, verified, working, intact, complete command-line commands from "-I dummy" to "vlc://quit" (i.e., working versions of them). A link to another "how to" website will tell me that nobody at VLC knows how to do it - or that it can't be done. That was an angry observation by the thread originator in one of the threads I reviewed. I don't think it's true.
Whatd'ya say?
====================================
Search found 1429 matches: extract
72 pages of threads.
Re: Extracting audio from an .mp4 file
I found "preserve the original", but it was preceded by "not" and it was not the same subject
Re: Can't extract Audio-Track from any Video File
The originator couldn't get any audio extracted nor any more help after 27 Dec 2014
Re: Extract original audio
The one reply was: "Yes, just don't specify a acodec and put vcodec=none while transcoding."
Which didn't work in any of the (failed) examples I'd assembled. Most did nothing.
Re: Extracting audio in original format from .ts file?
Opened 28 Feb 2014; got one off-topic update 30 May 2014 that was about a similar problem.
That was the last entry.
Extraction audio tracks from a music dvd (there is no "RE: ")
Only the original 15 Jan 2013 plea for help.
Re: Unable to extract audio (from DVD or avi)
Opened 27 Nov 2012. Got one kind "Not sure" suggestion on the 28th.
Re: Enable to extract music from a video to a WAV fil
Opened 13 Sep 2012.
On 16 Sep, was told that it was a bug in VLC 2.0.3.
On 17 Sep. someone recommended using QuickTime.
Re: Best version to perform transcoding
09 May 2012 opened thread
08 Jun 2012 resorted to repeating original request
02 Jul 2012 got a snippet of instruction (part of overall command-line command?)
02 Jul 2012 last update "Thank you."
None of which was of any use to me, but it was funny to read.
Re: Extract audio just as it is -- no transcoding
13 Mar 2012 opened thread complaining about "vlc --no-sout-video dvdsimple:///dev/scd0@1:1 :sout='#std{access=file,mux=raw,dst=./file.ac3}'"
being the only example that didn't apply. It was a very detailed opening thread.
18 Mar 2012 Originator saw the wisdom in giving up on any command-line help and used the VLC GUI.
Re: New Class to extract audio
It was about compiling, which I only know enough about to know that a don't want to know any more about it.
Re: simple dvd extract question
Didn't look at it since it was about a DVD.
Re: extract just the audio from webm files
30 Aug 2011 opened thread -and- updated it with a vague "Never mind. Figured it out"
13 Dec 2011 and 24 Dec 2014 two other Users explained how to do it using ffmpeg
Re: How extract mp3 sound from video file
16 Nov 2011 opened thread
(a few exchanges about new requirements of new VLC version with inter-mixed curt statements about what to do)
24 Nov 2011 last entry with Originator still unable to do it.
Re: how to save the audio as mp3 from a flv files?
15 Oct 2011 opened thread.
20 Oct 2011 Another User recommended using "FLV Extract", plus a link to a Blog that had an incomplete example that was one that I couldn't get to work either.
Re: extract audio
20 Apr 2011 opened thread
22 Apr 2011 A User recommended ffmpeg or Mencoder
22 Apr 2011 Originator found solution and was kind enough to put it in thread: Use ffmpeg and Audacity.
Extract Audio From Video Using VLC? (There is no "Re: ")
10 Jan 2011 opened thread. Not clear if this is about the GUI or command line.
Doesn't matter - there were no thread updates.
Re: Extract audio from video file
08 Dec 2009 opened thread. it was about using the GUI.
(a few thread updates)
20 Feb 2010 A (Developer) User offered command-line code for copy/paste.
04 Dec 2010 LAST UPDATE. Another User, not previously in the thread, reported it didn't work and included verbose information.