View Full Version : Extract audio and create an MP3.
I am looking for a COMMAND LINE program that will extract the audio from a (ReplayTV) MPEG2 file and create an MP3 file out of it. There are a lot of expensive programs out there that seemingly will convert anything to anything, but I don't want to spend more than a few bucks and I'd prefer a simple program that only does the extraction and MP3 creation without a lot of confusing options.
I found a program that does just what I want at http://www.geovid.com/Video_mp3_Extractor/ but this is a GUI program and apparently does not pass any parameters. I wrote them and asked if there was a command line version but received no reply.
I suspect that a program called BeSweet can do what I want, but the parameters are so confusing I couldn't figure it out. A program called BeLite is supposed to create a command line for BeSweet, but it won't run on my system.
Can anybody offer a suggestion?
JJON2121
11-19-05, 03:08 AM
Free and simple programs, but not command line:
Use VirtualDub-MPEG2 (http://fcchandler.home.comcast.net/stable/VirtualDub-MPEG2.zip) to save the audio as a wav.
Use cdex_151 (http://prdownloads.sourceforge.net/cdexos/cdex_151.exe?download) to convert the wav to mp3.
Degauss
11-21-05, 10:52 AM
For a simple batch file just pipe ffmpeg to lame. This solution works great as a post-download batch script in DVA for shows in the "music" categories.
ffmpeg -i rtvshow.mpg -acodec copy -f mp2 - | lame -h --vbr-new - rtvshow.mp3
http://ffmpeg.sourceforge.net/
http://lame.sourceforge.net/
Both apps are multiplatform, but if you need precompiled win32 binaries they can be Google'd or yanked off some place like VH
http://www.videohelp.com/tools?tool=ffmpeg
http://www.videohelp.com/tools?tool=Lame_MP3
doppler
11-21-05, 11:08 AM
De-mux the video and audio streams. Discard the video stream and
rename the audio stream to mp3.
MP3 is such a miss-namer. There really is no such thing as an MP3 spec.
MP3 got the name because mpg aka MP1 was taken. MP2 the improved
MP1 standard was also taken. Hence, the selling name of MP3!!
Who would want to buy old technology called MP1. When the more fancy name
of MP3 could sell the same product. And don't bring up MP3-vbr audio as being
different. It's just the MP2 spec ripped off into the MP3 hype.
I have taken many music videos and demuxed the audio out. A lot of times
the music video audio was better than the actual CD recording.
For demux software proceed over to here:
http://www.videohelp.com/
JJON2121
11-21-05, 01:12 PM
[QUOTE=doppler]De-mux the video and audio streams. Discard the video stream and rename the audio stream to mp3.[/QUOTE]I would have recommended this also except for some compatiblity problems with the audio stream in replay mpegs.
Some apps I have that will not accept replay mp2(mpa) files renamed to mp3:
Roxio Easy cd/dvd creator 5 and 7.
Window media player 9 (uses roxio burning software)
Sonic recordnow 4 and 7.
Itunes
Sony pavit music transfer software
Some apps that will:
Rio music manager for the Nitrus
Realplayer 10.5 cd burn/transfer
[QUOTE=doppler]De-mux the video and audio streams. Discard the video stream and
rename the audio stream to mp3.
MP3 is such a miss-namer. There really is no such thing as an MP3 spec.
MP3 got the name because mpg aka MP1 was taken. MP2 the improved
MP1 standard was also taken. Hence, the selling name of MP3!!
Who would want to buy old technology called MP1. When the more fancy name
of MP3 could sell the same product. And don't bring up MP3-vbr audio as being
different. It's just the MP2 spec ripped off into the MP3 hype.
I have taken many music videos and demuxed the audio out. A lot of times
the music video audio was better than the actual CD recording.
For demux software proceed over to here:
http://www.videohelp.com/[/QUOTE]
Your posting is really like saying... prove me wrong, so I will.
MPEG audio is always MPEG-1 audio using different layer defintions. For example the
ReplayTV uses MPEG-1 Layer II audio. (oh man, I hope I'm right here, it's been so long since I've looked at the raw data....)
Here's where you go wrong. There is actually such a thing as MP3, it's MPEG-1 Layer III (hence MP(eg)-III, MP-3 or just MP3) audio. There are difference between Layer I, Layer II and Layer III. From memory (it's been years since I last read the spec) I believe the only real differnce between the different layer definitions is the formats of the data stream.
So, MP3 is also MPEG-1 audio, just like all other MPEG audio, it's just using MPEG-1 Layer III audio.
The confusion come when stupid users or stupid microsoft decide that everything is "MP3" when in fact it isn't. Microsoft goes a bit in the other direction in wrapping MP3 audio in a WAV header and using the .wav extension (wave audio type of 0x55 (again, if memory serves)).
=)
That said... anything that can play MPEG audio and not just MPEG-1 Layer III (MP3) audio will play these MPEG-1 Layer II files with .mp3 extensions. This won't be an issue for PCs or DVD players (most of the time) But, the problem comes into play when you deal with a stand alone system that doesn't play MPEG-1 Layer II.
Remember these files are close, but not the same. There's no VBR on MPEG-1 Layer I or II as there is on III. Plus the header blocks treat the field values different depending on what layer definition is being used.
Some apps I have that will not accept replay mp2(mpa) files renamed to mp3:
Roxio Easy cd/dvd creator 5 and 7.
Window media player 9 (uses roxio burning software)
Sonic recordnow 4 and 7.
Itunes
Sony pavit music transfer software
Another you can add to the list is my cell phone. The reason I want to do this in the first place is so I can at least listen to my shows on my cell phone while I'm away from home.
I already tried the "extract the MP2 audio from the show and rename it MP3 route" and they wouldn't play on my phone.
If I used the application I mentioned earlier to convert the audio into a real MP3 file, then they play just fine. I'm really interested in automating the process with a command line program though.
Wrecks, search back someone did come up with a batch file for doing this. I'd guess after you do all this you'd have a big long mp3 file that you'd still have to chop up. You can maybe use something like mp3chop for that.
and thanks for maybe unintentionally backing up my MPEG-1 isn't cross layer compatible.
Degauss
11-21-05, 09:08 PM
For a cell? When you pipe it to lame, add -m m (mono downmix) --resample [freq] and a -B [bitrate cap] that will make it more friendly to your cell phone's memory.
Natch if you're expecting to get a :30 show down to a couple megs, it's going to sound extremely bad without tweaking. One that gets acceptable results (from the hydrogenaudio "what's best?" run-on post)
--abr 48 -m m --resample 22.05 --lowpass 12 --lowpass-width 4 -B96
That will bring a :30 show down to about ~10M. How small do you need it? MP3 is crappy for low bitrates. I assume this is for something like letting you listen to your local news so you don't have Morning Newscaster Withdrawl while on the road?
The MP3 file can be as long as it needs to be. My M2 software streams it to the cell phone.
JJON2121
11-22-05, 02:09 PM
Wrecks,
Sourceforge.net (http://sourceforge.net/softwaremap/trove_list.php?form_cat=99) has over 5000 projects just in the sound/audio and video topics of the multimedia section. If there is a free program that meets your requirements, it will likely be there.
I have downloaded lots of files from there, but I have never just browsed. I found several different programs that looked interesting while browsing through only a few pages.
Hi,
I used TSUNAMI-MPEG Video Encoder Express to extract a live concert mpg recorded from directv to wav. I specified 5.1 Ch Surround Sound options to test out.
The output wav file created was 1.4GB large. With 2 Ch Stereo, I got a 490MB file. However, when I used Windows Media PLayer 10 to burn the 1.4GB wave file to CD, WMP burned it as 490MB. Am I correct to assume the WMP did a "mixdown" on my ss to 2-ch? Is this a software limitation?
Is there a program capable of burning Surround quality and on DVD?
I know I have a physical limitation on the 600MB CD itself (for a single 1.4GB file), but wmp went ahead and burned it on the CD w/o any errors.
Thanks in advance.
I use the RTV audio out connect it to my mp3 player line-in. I record each song directly to my mp3 player. Yes it's not 100% digital, but I can get a song in about 3 minutes, sounds great, easy, can't beat that.
JJON2121
11-23-05, 10:45 PM
[QUOTE=dkd]The output wav file created was 1.4GB large. With 2 Ch Stereo, I got a 490MB file. However, when I used Windows Media PLayer 10 to burn the 1.4GB wave file to CD, WMP burned it as 490MB. [/QUOTE]I don't know your WMP burn settings. The 490mb is about the size your wav converted to a 64 kbps, 44kHz wma file would be.
You're right . That's what the setting is.
For the ss file, it shows 4608kbps, 16 bit, 6 channels, 48kHz.
How do you check the settings for Burn? I only see Rip settings under Tools-> Option tab. I don't want mp3 though.
JJON2121
11-24-05, 01:30 AM
I don't have WMP10. In WMP 9, the setting is in tools/options/copy music.
vBulletin v3.0.6, Copyright ©2000-2010, Jelsoft Enterprises Ltd.