digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Wave from vobs or ac3 with avisynth? (http://www.digitalfaq.com/archives/avisynth/4965-avisynth-wave-vobs.html)

jorel 08-11-2003 07:05 AM

wave from vobs or ac3 with avisynth?
 
@ Sh0dan:

can i extract wave from vobs or ac3 and using trim with avisynth?

if is possible, please post a little script
and your cool explanations (as always)!

thanks in advance!

:)

black prince 08-11-2003 07:55 AM

@jorel,

MPEG Mediator will do this :) or maybe you have something else
in mind.

-bp

Dialhot 08-11-2003 08:07 AM

I never test it and don't know what it can do, but there is an official (I mean, referenced on official site) filter for AC3 decoding : http://ziquash.chez.tiscali.fr/

jorel 08-11-2003 10:16 AM

8)

great!
thanks to my 2 wise friends!
:D

Dano 08-11-2003 12:01 PM

You can use VDub mpeg-2 and VCF2AVS, here are the links. Just save your processing settings and extract the .wav.

http://home.debitel.net/user/holger....ad/VCF2AVS.zip

http://fcchandler.home.comcast.net/s...lDub-MPEG2.zip

jorel 08-11-2003 01:39 PM

:sun:

thank you too Dano :!:
:D

Wilbert 08-11-2003 02:27 PM

Quote:

can i extract wave from vobs or ac3 and using trim with avisynth?
AC3Source (which Dialhot talks about) downmixes to two channels. If you don't want that you could try the latest binaries with the script:

v=BlankClip(...)# same length as AC3
a=DirectShowSource("xxx.AC3").Trim(...)
AudioDub(v,a)

Using vdubmod you can extract the 5.1 wav. But I never tried this, so dunno whether it works.

vhelp 08-11-2003 06:05 PM

.
.
Quote:

Using vdubmod you can extract the 5.1 wav. But I never tried this, so dunno whether it works.
maybe Dano's hehe.. just couldn't resist :oops:
-vhelp

jorel 08-12-2003 07:36 AM

Quote:

Originally Posted by Wilbert
Quote:

can i extract wave from vobs or ac3 and using trim with avisynth?
AC3Source (which Dialhot talks about) downmixes to two channels. If you don't want that you could try the latest binaries with the script:

v=BlankClip(...)# same length as AC3
a=DirectShowSource("xxx.AC3").Trim(...)
AudioDub(v,a)

Using vdubmod you can extract the 5.1 wav. But I never tried this, so dunno whether it works.

thanks Wilbert...
can you give me more explanation,please?
:imstupid:

:arrow: v=BlankClip(...)# same length as AC3 :? :?
seems simple but i don't understand how put the source! :?
can you re-write with one "imaginary" source?

thanks in advance(again)!
:)

Dialhot 08-12-2003 07:53 AM

Quote:

Originally Posted by jorel
v=BlankClip(...)# same length as AC3
a=DirectShowSource("xxx.AC3").Trim(...)
AudioDub(v,a)

In fact Wilbert didn't answer at your problem (you want to extract a AC3 track from a Vob, and he gave you hints to manipulate a .ac3 file, that is an already extracted audio track ;-)).

Btw I can answer to your question :

The last command (Audiodub) needs an audio track and a video stream of the same length. When you have only an AC3 file, you have to create the video stream from scratch by using the command "BlankClip". This command needs to know the length of the clip you want to create (10 sec by default).

So for a 2 minutes AC3 track for instance :

Code:

v=BlankClip(length=120)
a=DirectShowSource("xxx.AC3)
AudioDub(v,a) .Trim(...)

Note : I changed the place of the trim command because I think there was an error in Wilbert answer.

jorel 08-12-2003 08:29 AM

:sun:

:D

thanks again Phil :!:
now is really clear,
i try and post the result.
:wink:

Dano 08-12-2003 08:51 AM

If you only want to trim the .ac3 and extract the .wav why use AVISynth for this? You can just trim the .ac3 before you extract to .wav.

Dialhot 08-12-2003 08:55 AM

Quote:

Originally Posted by Dano
You can just trim the .ac3 before you extract to .wav.

With wich software ?

Dano 08-12-2003 09:40 AM

If you open a vob in VirtualDub-Mpeg2, you can trim the video and audio. When you go to extract the .wav it extracts the trimmed audio. You can then load up your .wav into your favorite audio encoder, I myself use Headac3he.

jorel 08-12-2003 09:50 AM

ok but more doubts:

how can i extract the wav from 2 vobs(middle movie)
:arrow: together
in virtualdub-mpeg2,as only one wav file?
:?
i don't know how to load 2 vobs together!

:?:

Dano 08-12-2003 10:18 AM

Ok Jorel, now that I see what you want to do I have an answer. Open your vobs in DVD2AVI and add or delete which ones as needed and save your .d2v project. If this is not what you are getting at then you can "Append AVI Segment" in Vbub-mpeg2.

Wilbert 08-12-2003 01:42 PM

@Jorel, Dialhot

I didn't answer, because I wanted to try it myself. I can't get it to work if the AC3 contains more than 2 channels!

See last message of: http://forum.doom9.org/showthread.php?s=&threadid=57357

jorel 08-12-2003 10:22 PM

thanks for this Wilbert,
:)

waiting with you!

kwag 08-12-2003 10:28 PM

As I mentioned earlier, it's really easy with MPEG Mediator. Just load your VOB files, select the AC3 audio track you want , and export to WAV. If you then want only some part (range) of the WAV, load the WAV in HeadAC3he, and select your start and end points, and encode. Piece of cake :cool:

-kwag

jorel 08-12-2003 11:12 PM

Kwag,

if i load the vob file,i have only track 0 LPCM
and loose all others audio options:!:

if i load the ifo file i can choose the audio track but
i don't want all the audio from the movie,
i need only parts.... :!:
but
:?
i can't find the way to export only the audio part that i need
from the 6 channels as wav.

am i doing something wrong?

thanks.
:)


All times are GMT -5. The time now is 08:01 AM  —  vBulletin © Jelsoft Enterprises Ltd

Site design, images and content © 2002-2024 The Digital FAQ, www.digitalFAQ.com
Forum Software by vBulletin · Copyright © 2024 Jelsoft Enterprises Ltd.