View Full Version : demuxing 2nd ac3 stream from an avi
DJ Bobo
19th January 2002, 14:50
I have an AVI with 2 audio tracks (muxed with NanDub).
How can I extract the SECOND audio track?
sibe
20th January 2002, 01:19
I never tried this but here's my suggestion:
1. Open the file in NanDub
2. Set primary audio stream to "No audio"
3. Set secondary audio stream to "AVI audio" and check "Direct stream copy"
4. Then select " save WAV" from the file menu
If this doesn't work you could try this:
Steps 1.-3. look above
4. Set video to "Direct stream copy"
5. Select "save as AVI"
this should simply delete the first audio track from the file, which leaves you with a file with 1 video and 1 audio track (the secondary from the original file). Than you can extraxt this audio track.
Sibe
DJ Bobo
20th January 2002, 02:21
You're the champ!
I always tried the first solution and I became every time a failure notice from NanDub.
But! but! using your second method it worked flawlessly, oooh thank you very much!
sibe
20th January 2002, 14:52
Glad I could help. :)
Sibe
wr975
26th January 2002, 13:53
Hi, I've been creating dual-audio AVIs for myself. I wonder if it's possible to extract the secondary audio stream, so I can mux it with the AVI... or save the AVI in such way, the secondary audio stream is the only audio track. Thanks for your help.
sibe
27th January 2002, 05:19
Look at this thread:
http://forum.doom9.org/showthread.php?threadid=14262
This should answer your question.
Please remember to look around in the forum or use the search function to see if your question has already been answered.
Sibe
wr975
27th January 2002, 13:00
Hi,
thanks for your answer. I've looked around to see if this has been asked before... to no avail. Didn't know the search feature works again.
I tried your suggestion, but it doesn't work. :( Nandub saves just fine, but the primary audio does not get replaced with the secondary... it's just blank: No audio on playback (WMP, ZoomPlayer, BSPlayer) and extracting it gives a 1 KB wav file.
Any ideas?
sibe
27th January 2002, 14:05
Are you sure you set primary audio stream to "no audio" and secondary to "avi audio" and "direct stream copy"? Other than that I have no idea why it's not working. What format is your audio stream?
Sibe
DJ Bobo
27th January 2002, 21:56
@ wr975
Well, I forgot to reply to the old thread.
Well, after saving the AVI with the second audio track
Use AVI2WAV to extract the sound (rename the file to mp3 before extracting)
Open NanDub and multiplex your AVI with the extracted mp3 and be sure to have no audio for secondary stream.
The new saved AVI will be playable with sound in any player you like...
wr975
29th January 2002, 00:18
Thanks a lot for helping me... both of you. ;)
@bobotns: AVI2WAV did the trick. :D :D :D :D
DigitalWookie
2nd March 2002, 05:10
Hi, I'm trying to do this exact same thing, but your method will not work for me. I save the avi with only the second track enabled, and that goes alright. Then I reopen in nandub, but when I try to save the .wav, it gives me a 44 byte file. If I try to disable the first track and set the secondary track to 'avi audio', then I get the message 'no input audio stream to extract'. I have tried it every which way I can, but it always looks like the secondary audio track is still there, but still designated as the secondary track, and therefore unextractable... I know there is another track, so what am I doing wrong here?
DJ Bobo
2nd March 2002, 12:15
1) Audio -> No Audio
2) Audio -> Secondary Stream -> AVI Audio
3) Video -> Direct Stream Copy
4) File -> Save AVI und save under a new name
5) Use AVI2WAV to extract the sound from your new AVI.
You can find AVI2WAV here: http://www.geocities.com/agrgic.geo/avi2wav.htm
chris25fr
3rd March 2002, 03:08
you can also use graphedit to extract the 2 audio stream .:cool:
bye
Tester
21st June 2002, 19:27
Hello,
I want to re-encode my 2nd (mp3-)audio track from the movie x-men. But therefor I first have to demux it. Virtual doesn't work, nandub not, too.
Has somebody an idea?
thanks in advance
tester
DSPguru
21st June 2002, 19:30
Originally posted by Tester
Has somebody an idea?idea :
read the Audio FAQs. q4.
Awatef
21st June 2002, 22:07
"... bla bla bla ... Then you can extract this audio track"
WITH AVI2WAV that you find here: http://www.geocities.com/agrgic.geo/avi2wav.htm (@DSPguru: you may add this to your FAQ ;))
DSPguru
22nd June 2002, 15:47
done, 10q :).
Awatef
22nd June 2002, 16:44
Not that way, he have to do the whole procedure described on your FAQ, then use AVI2WAV to extract the sound from the new AVI, since VD and ND won't detect the sound of the new AVI and just give a dummy file.
1loser
22nd June 2002, 18:53
I was trying to convert a DivX to SVCD and was having a problem extracting the AC3 file, nandub would crash. I finally realized that it had two languages. How can I extract just one of the audio streams?
I was able to do this by selecting NO audio for the second audio stream and than extract wav file (which is really the AC3 file)
Tester
22nd June 2002, 18:55
works properly
THX
DSPguru
22nd June 2002, 19:02
which method did u use ?
Awatef
22nd June 2002, 20:33
@ DSPguru
This is how you should modify the FAQ, at the end:
"this should simply delete the first audio track from the file, which leaves you with a file with 1 video and 1 audio track (the secondary from the original file). Then you can extract this audio track using AVI2WAV"
DSPguru
22nd June 2002, 20:49
i've added a pointer from q4 to q15, and a link to avi2wav on q15 :).
1loser
22nd June 2002, 23:49
Originally posted by Awatef
"... bla bla bla ... Then you can extract this audio track"
WITH AVI2WAV that you find here: http://www.geocities.com/agrgic.geo/avi2wav.htm (@DSPguru: you may add this to your FAQ ;))
I just tried AVI2WAV for the first time and the results are NOT very good. You end up with an AC3 file with the volume very low. I also just tried Goldwave (http://www.goldwave.com) for the first time and the results were excellent. You end up with a wav file with the correct volume.
My next test will be on a file with 2 audio sources to see if Goldwave will allow me to just select 1 of them and save to a wave file. I deleted the avi file and can't use my CD drive at the moment to copy it back to my drive. I will post the results when I'm able to do so. I have a feeling Goldwave can easily do this.
Awatef
23rd June 2002, 00:19
@ 1loser
HE?! what have AVI2WAV to do with the volume?! it extracts the sound as is.
And I just tried it right now, the original AC3 and the extracted AC3 sound EXACTLY the same!
AVI2WAV doesn't convert! it just extracts AS IS!
[EDIT]
If you want to convert the extracted AC3 to WAV, you'll have to:
1) rename the extracted file to something.ac3
2) fix it through AC3fix
ac3fix file1.ac3 file2.ac3
3) convert the new AC3 file to whatever you want, make it louder, etc
Please be aware of what you're doing, before you post such wrong statements like that!
1loser
23rd June 2002, 02:28
Originally posted by Awatef
@ 1loser
And I just tried it right now, the original AC3 and the extracted AC3 sound EXACTLY the same!
Please be aware of what you're doing, before you post such wrong statements like that!
When I extracted the AC3 with avi2wav the volume was much lower than the source, when I used Goldwave the volume was exactly the same as the source and it saved me a step of converting to wave.
You might want to try taking your own advice and not post until you know what you are talking about. I did my homework below, did you?
http://home.san.rr.com/oneloser/avi2wav_goldwave.jpg
Awatef
23rd June 2002, 13:19
NO WAY!!!!!!!!! NO WAY the volume was lower than the source! NO WAY!!
I tried it and it gave exactly the same volume as the source! AVI2WAV doesn't have ANY influence on the volume!!
Your Goldwave must have done a normalization automatically, as I can see in your graph, I've never seen an AC3 with such high peaks!
If you make what I written above, you'll see that you'll get a WAV with exactly the same volume as the one done with Goldwave! (and with better quality if you get it through BeSweet for example)
And if you compare the times, you'll see that your Goldwave have taken a lot more time to give you the WAV file! why in your opinion? because it have done a processing step, not only extracting!
I repeat, AVI2WAV doesn't convert, it extracts only! AS IS! no modification is done to the soundtrack! not a single modification! the only thing is does is to add a simple WAV header that you can get rid of using ac3fix, nothing else! got it?!
1loser
23rd June 2002, 16:13
Originally posted by Awatef
NO WAY!!!!!!!!! NO WAY the volume was lower than the source! NO WAY!!
I tried it and it gave exactly the same volume as the source! AVI2WAV doesn't have ANY influence on the volume!!
Show me a graph that proves that you are right! After I extract the AC3 with avi2wav I am able to play it directly with winamp (not sure if I needed a plugin for that). Also can play with BeSplitGUI (which uses winamp also).
Are you changing the AC3 to a wav file and than comparing it to the original? Because I'm comparing the volume of the AC3 before I change it to a wav and it's DEFINITELY MUCH LOWER!!!(about 1/3 the volume) I'm also not using AC3fix. If I extract the sound with nandub it's also MUCH lower and exactly the same results as avi2wav. I don't know anything about the header or whatever but there must be something that controls the volume that is lost when using nandub or avi2wav.
Both of us are NOT experts at audio, to say the least, and I think someone else needs to sort this out.
PS: Remember that I never said that avi2wave changed the AC3, you did.
Awatef
23rd June 2002, 16:59
@ 1loser
Seems like we are coming closer!
1) I can't play the extracted sound with WinAmp (I have the version 2.80), and I'm now really wondering how you're doing that! (may be because of a special plug-in that I don't have?!)
2) I first rename the extracted file to ac3, then fix it through AC3fix, then play the fixed file in PowerDVD XP. I made a small playlist, with the original AC3 file and the extracted AC3 file, they sound EXACTLY the same.
1loser
23rd June 2002, 21:21
Originally posted by Awatef
@ 1loser
Seems like we are coming closer!
1) I can't play the extracted sound with WinAmp (I have the version 2.80), and I'm now really wondering how you're doing that! (may be because of a special plug-in that I don't have?!)
I looked for a plugin at winamp's website but couldn't find it but I DO have a plugin. I can't remember were I got this but I needed it for BeSplitGUI to work properly. Maybe it was included with BeSplit.
You can put this in the winamp plugin folder.
http://home.san.rr.com/oneloser/in_ac3.dll right-click, save target as to d/l
Awatef
23rd June 2002, 23:57
I copied the dll file to winamp and played original and extracted file in it, same scenario as in PowerDVD XP: both sound EXACTLY the same and both have EXACTLY the same volume!
1loser
24th June 2002, 03:28
Originally posted by Awatef
I copied the dll file to winamp and played original and extracted file in it, same scenario as in PowerDVD XP: both sound EXACTLY the same and both have EXACTLY the same volume!
Are you saying that you played an avi file in winamp? Is there a plugin for that? I played the avi and ac3 (extracted with avi2wav and also extracted with nandub) and it played at about 1/3 the volume. I had to use windows media player or MicroDVD to play the avi. Please tell me how to play an avi with winamp. I tried it in PowerDVD and the volume was still about 1/3 the volume of the original avi.
It might be that we are using a different source file. If we traded files than maybe I would get the same results as you and you would get the same results as me.
Awatef
24th June 2002, 15:41
You got it aaaalll wrong!
LOOK!! I take a part of the DVD, get it through DVD2AVI to make project & extract the AC3, make an AVI out of the project & mux it in NanDub with the AC3, extract the AC3 from the AVI, than compare it in PowerDVD with the original AC3 file that I've become through DVD2AVI, they sound exactly the same!
You must have configured your ac3 direct show filter to make a high DRC or something, or you're using some kind of amplifying filter like TFM, so that it comes louder when played in an AVI, and you are fooled by that all the time!
So, conclusion: AVI2WAV & NANDUB are working PERFECTLY! point final!
1loser
24th June 2002, 17:53
Originally posted by Awatef
You got it aaaalll wrong!
Of course, it couldn't be you! My source is already in the DivX format. I don't have a DVD player to extract from. So "my source" plays at a higher volume than the AC3 extracted with nandub OR avi2wav compared to Goldwave. Period!
I'm glad that you were able to determine that I got it aaaalll wrong! It took you a while, but you finally came to that conclusion.
DJ Bobo
24th June 2002, 20:35
I think Awatef is right, especially what he said here:
You must have configured your ac3 direct show filter to make a high DRC or something, or you're using some kind of amplifying filter like TFM, so that it comes louder when played in an AVI, and you are fooled by that all the time!
I also tried extracting the AC3 from the AVI using AVI2WAV & NanDub and compared it in PowerDVD with the original AC3 from the DVD, both have exactly the same volume.
1loser
24th June 2002, 21:18
Originally posted by DJ Bobo
I also tried extracting the AC3 from the AVI using AVI2WAV & NanDub and compared it in PowerDVD with the original AC3 from the DVD, both have exactly the same volume.
You both may be right, but I'm not using a DVD source, I only have a DivX source. I also didn't configure my ac3 direct show filter to make a high DRC or something else, or using some kind of amplifying filter like TFM.
Zhnujm
24th June 2002, 22:00
make you you are using the same directshow filters for playback !! maybe you are playing one file with powerdvd (cyberlink filters) and one with mediaplayer wich may use the intervideo filters.
especially the intervideo filter has a hidden drc mode wich is not configurable in the properties page. you can use dvdgenie to change the setting.
DJ Bobo
25th June 2002, 00:29
@ Zhnujm
Now that you mention it, right! I remember having used some old intervideo ac3 directshow filter that applied automatically a high DRC (the sound was going up and down the whole time, that made me crazy!) and there was no way for me to change it (I remember having asked the question here but nobody was able to answer).
Well, seems like 1loser will get itself a new ac3 directshow filter (doom9 updates it from time to time ;)) or use dvdgenie :rolleyes:
Triggerle
11th August 2002, 22:07
From the Audio FAQ:
4) How to extract 2nd audio track from AVI?
1. Open the file in NanDub
2. Set primary audio stream to "No audio"
3. Set secondary audio stream to "AVI audio" and check "Direct stream copy"
4. Set video to "Direct stream copy"
5. Select "save as AVI"
this should simply delete the first audio track from the file, which leaves you with a file with 1 video and 1 audio track (the secondary from the original file). Than you can extract this audio track (read Q15 in this FAQ).
When I do this with an AVI with two ac3 streams it reports audio samples and size (in the status window) during step 5, so there should be audio in the resulting file. However, the resulting AVI doesn't seem to have audio. It plays without audio and Nandubs file information says 0 samples. Performing audio extraction on this file (following Q15 of the FAQ) leaves me with a 0 kb file.
Can someone tell me what I am doing wrong? Is there another way of extracting, e.g. Graphedit (I tried that, too, but file writer didn't want to connect to the ac3 stream of the original AVI)?
Triggerle
DJ Bobo
11th August 2002, 22:18
don't know which (old version of) FAQ you're reading ¬.¬
Use AVI2WAV to extract the AC3 from the new AVI, rename to AC3, fix it with AC3Fix, that's it.
pacohaas
11th August 2002, 22:28
don't worry, you have the correct "version" of the Audio FAQ's, thank you for taking the time to read them by the way, many users don't.
Unfortunately, it sounds like you followed all the steps correctly so I'm not sure how to be of any help. All I can say is try creating the single-audio AVI again, then try extracting it with Nandub again, if that doesn't work, you can try AVI2WAV as is suggested in your quote in Q15.
Triggerle
11th August 2002, 23:07
OK, avi2wav worked and extracted the stream. Maybe add something in the Q15 to indicate that the avi2wav way works in some cases, in which Nandub fails. (From reading I was under the impression that the two ways are completely exchangeable)
Thanks guys!
Triggerle
DSPguru
12th August 2002, 20:27
Originally posted by DJ Bobo
don't know which (old version of) FAQ you're reading ¬.¬
Use AVI2WAV to extract the AC3 from the new AVI, rename to AC3, fix it with AC3Fix, that's it. hihi, 700 posts and you don't know what our faq covers...
DJ Bobo
12th August 2002, 23:42
@ DSPguru
you noticed huh? :D
No, that was just a small advice from the back door for our friend here to study the FAQ again, that's why the "old version of" ;)
DSPguru
13th August 2002, 06:00
hehe..
f@chance
7th September 2002, 10:09
Please assist me with this. I don't know if this is the right forum but I thought since audio is my problem perhaps the best place.
I have an AVI movie with dual audio tracks an AC3 English track and a MP3 French track. I installed the audiofilters from Doom9 and in the WMP the movie plays correctly with the English sound track.
But for the life of my time I can't get the English audio track extracted for generating SVCD files. I tried AVIInfo to extract the audio also I use VirtualDub 1.41. build 13870 I also used the latest DVD2SVCD (AVI2SVCD) it extracts an audio file that is not recognized by WPM nor can I load it into SoundForge.
Normaly AVI2SVCD does a decent job of getting the AC3 track but since this is dual audio it just quits.
Any help please I have an excellent MPV file with no sound:(
F@Chance
DJ Bobo
7th September 2002, 10:42
read the audio faq ¬.¬
f@chance
8th September 2002, 08:42
Thanks, I needed that. The trick was to set the second audio track in NanDub to No Audio and than run BeSplit and I have the AC3 track.
Thanks
F@Chance
Fishman
19th September 2002, 01:28
hi there i have a dual audio avi (divx5.0x) i can play it and its associated subs, however there is an awful lot of crackling of the audio, when i extract the 1st ac3 stream using nandub rc2 and then remux it the audio is fine however ive lost the 2nd stream in doing that
nandub doesnt want to let me extract the 2nd audio stream as when i select the first to no audio is is assuming there is nothing in the 2nd channel and save .wav wont work
is there an easy way i can extract this second ac3 stream so i can remux the whole thing, which may fix my problems,
else any suggestions, as ive made dual ac3 files before and they worked properly
sherpya
19th September 2002, 01:40
graphedit?
Fishman
19th September 2002, 03:01
not really a fan of graphedit :)
sherpya
19th September 2002, 04:09
just make a try:
render the avi disconnect the video and audio renderers
connect video to null render
and second audio stream to a "dump" filter then press play
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.