digitalFAQ.com Forums [Archives]

digitalFAQ.com Forums [Archives] (http://www.digitalfaq.com/archives/)
-   Avisynth Scripting (http://www.digitalfaq.com/archives/avisynth/)
-   -   Avisynth: Audio Only? (http://www.digitalfaq.com/archives/avisynth/12851-avisynth-audio.html)

burnman99 11-08-2004 01:47 AM

Avisynth: Audio Only?
 
Is there an Avisynth filter or script that will produce just the audio from an mpeg or avi file?

Thanks in advance!

Rog

Dialhot 11-08-2004 04:53 AM

Avisynth is a frameserver and can't ouput other things than video. Why using it for audio only ?

Note: you can read audio only from an avi with wavsource but the output from avisynth will be a blank video with an audio stream, not only audio.

Prodater64 11-08-2004 07:42 AM

Re: Audio Only
 
Quote:

Originally Posted by burnman99
Is there an Avisynth filter or script that will produce just the audio from an mpeg or avi file?
Thanks in advance!
Rog

You can extract audio from avi with VirtualDubMod and from mpegs demultiplexing it, without use of avisynth.
If you want to change audio "tempo" to adjust it to a fps change, you can do that with Besweet or, in this case with avs script + VDMod.

clickit 11-08-2004 08:24 AM

you can use this

DirectShowSource(<film>, video=false) to get only audio
or
DirectShowSource(<film>, audio=false) to get only video

of course you can use similar parameters to other avisynth commands
like avisource etc

Dialhot 11-08-2004 08:27 AM

Quote:

Originally Posted by clickit
of course you can use similar parameters to other avisynth commands
like avisource etc

You're right for directshowsource (I didn't see that there is a "video" boolean) but for avisource there is only an "audio" boolean so you can only choice between video and video+audio but no audio only.
But as told above, you have "wavsource" for that.

burnman99 11-08-2004 02:04 PM

Quote:

Originally Posted by clickit
you can use this

DirectShowSource(<film>, video=false) to get only audio
or
DirectShowSource(<film>, audio=false) to get only video

of course you can use similar parameters to other avisynth commands
like avisource etc

Will have to give that a try! Thanks!

Dialhot, what I'm doing is trying to extract & encode audio & video separately
with the llatest quenc (0.56 i think). The reason is my dyd authoring program only accepts streams. Prefer to use streams anyway so i have more control (Mulitple audio, and the like)

I can demux separately or use vdub but am lazy and am trying to do it with one program lol.

Will give the directshowsource thing a try and let yall know what comes of it.

Thanks!

Rog

Dialhot 11-08-2004 02:39 PM

Quote:

Originally Posted by burnman99
I can demux separately or use vdub but am lazy and am trying to do it with one program lol.

You will need to process in two steps, doing 2 avs script and lauching 2 times qenc and you find THIS quicker ?

Let encode audio and video together, THEN demux the streams with tmpgenc and feed your authoring tool with the elementary streams.

This ways is the "lazy-most" solution I can give to you :-D

burnman99 11-08-2004 03:00 PM

Well that's a darn good point. My way would not need tmpg or other demuxer, but WOULD be a much bigger pain in the buttocks due to the double encoding and scripting. Demuxing later is the way to go!

Thanks!!

Rog

clickit 11-09-2004 02:05 AM

@burnman99 (in case you haven't try it yet)

with the very latest version of QuEnc [v0.56 ALPHA] you can have 2 separate streams encoded

I'm always using 2 scripts one for the video, with DirectShowSource with audio=false, and the other one for the audio, with DirectShowSource with video=false
give them separately to QuEnc and it'll automaticaly recognize the input format and change the destination file to .m2v or .mp2 according to the input

burnman99 11-12-2004 01:18 AM

Quote:

Originally Posted by clickit
@burnman99 (in case you haven't try it yet)

with the very latest version of QuEnc [v0.56 ALPHA] you can have 2 separate streams encoded

I'm always using 2 scripts one for the video, with DirectShowSource with audio=false, and the other one for the audio, with DirectShowSource with video=false
give them separately to QuEnc and it'll automaticaly recognize the input format and change the destination file to .m2v or .mp2 according to the input

Just Tried it out and it works Great!!!
Thanks!!
Rog


All times are GMT -5. The time now is 06:59 PM  —  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.