Quantcast Avisynth: Audio only? - digitalFAQ.com Forums [Archives]
  #1  
11-08-2004, 01:47 AM
burnman99 burnman99 is offline
Free Member
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
Is there an Avisynth filter or script that will produce just the audio from an mpeg or avi file?

Thanks in advance!

Rog
__________________
Learn or Burn Baby, Learn or Burn!
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Site Staff / Ad Manager
 
Join Date: Dec 2002
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
11-08-2004, 04:53 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #3  
11-08-2004, 07:42 AM
Prodater64 Prodater64 is offline
Free Member
 
Join Date: Mar 2003
Location: Palma de Mallorca - España
Posts: 2,925
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #4  
11-08-2004, 08:24 AM
clickit clickit is offline
Free Member
 
Join Date: May 2003
Location: Athens, Hellas
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
it's one thing that i know for sure, that i know nothing for sure
Reply With Quote
  #5  
11-08-2004, 08:27 AM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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.
Reply With Quote
  #6  
11-08-2004, 02:04 PM
burnman99 burnman99 is offline
Free Member
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Learn or Burn Baby, Learn or Burn!
Reply With Quote
  #7  
11-08-2004, 02:39 PM
Dialhot Dialhot is offline
Free Member
 
Join Date: May 2003
Posts: 10,463
Thanks: 0
Thanked 0 Times in 0 Posts
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
Reply With Quote
  #8  
11-08-2004, 03:00 PM
burnman99 burnman99 is offline
Free Member
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Learn or Burn Baby, Learn or Burn!
Reply With Quote
  #9  
11-09-2004, 02:05 AM
clickit clickit is offline
Free Member
 
Join Date: May 2003
Location: Athens, Hellas
Posts: 66
Thanks: 0
Thanked 0 Times in 0 Posts
@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
__________________
it's one thing that i know for sure, that i know nothing for sure
Reply With Quote
  #10  
11-12-2004, 01:18 AM
burnman99 burnman99 is offline
Free Member
 
Join Date: Aug 2004
Posts: 28
Thanks: 0
Thanked 0 Times in 0 Posts
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
__________________
Learn or Burn Baby, Learn or Burn!
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
Avisynth: Audio Import? the viking Avisynth Scripting 8 03-07-2005 03:51 PM
Avisynth encoding only the audio? shgr Avisynth Scripting 9 01-01-2005 02:00 PM
Avisynth, get no video just the audio Jon The Gooner Avisynth Scripting 0 10-27-2003 07:51 AM
audio Out of sync with Avisynth? Wolfi Video Encoding and Conversion 4 04-21-2003 03:08 PM
Avisynth: Compressed audio extraction? hedix Avisynth Scripting 4 02-25-2003 02:39 PM

Thread Tools



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