View Full Version : How to open audio stream of avi file with avisynth...
tg0021
21st March 2002, 12:13
... I manage with directshow source to open the video stream but avisynth doesn't open the audio stream. I'm trying to get something like that.
video=Directshowsource("c:\movie.avi",24)
sound=?????("c:\movie.avi")
...
Ps : Maybe using avisynth external plugin or VDub plugins
thanks to all
Nic
21st March 2002, 12:24
Have you tried using AVISource to load your AVI file rather than DirectShowSource.....That will load the audio....Otherwise youll have to decode the audio in the AVI & use WAVSource then audiodub them together inside AviSynth.
-Nic
tg0021
21st March 2002, 12:38
AVIsource only loads the video part of my avi file (XVID+MP3). No audio. Have a try :
# this is the avs file
avisource("c:\film.avi")
# end of avs file
and open it with media player : you'll get only video, no audio :(
DDogg
21st March 2002, 15:09
No, actually most do get audio. I had another person say something similar about not getting audio with avisource but I do not know the cause.
western shinma
22nd March 2002, 04:17
Are you sure? I thought that avisynth only works with uncompressed audio.
DDogg
22nd March 2002, 15:27
I thought that avisynth only works with uncompressed audio.
That's probably it. I only use avis from my dvcam which have uncompressed audio.
DaveQB
26th June 2003, 11:20
hmmm i found openning a DivX/mp3 file played audio fine but for some strange reason this time had a funny colour to it
http://davidward.myvnc.com/files/avseg.jpg
compared to openning the same file directly
http://davidward.myvnc.com/files/avieg.jpg
weird huh?
even tried playing back with ffdshow, but same results
DaveQB
26th June 2003, 11:22
oh, why i have brought this thread back from the grave is that i was looking to see what ind of files 'wavsource' can open
not working with ogg atm, wondering if i am trying to acomplish the impossible
Wilbert
26th June 2003, 11:50
hmmm i found openning a DivX/mp3 file played audio fine but for some strange reason this time had a funny colour to it
I don't think this has something to do with the audio. Did you try stuff like:
AviSource()
SwapUV()
or
AviSource(,pixel_type="YUY2")
not working with ogg atm, wondering if i am trying to acomplish the impossible
No. But there is a crappy ogg ACM codec somewhere on the internet, and if you put a wav header on the ogg file it might work (importing with WavSource). But, I never tried this.
DaveQB
26th June 2003, 13:10
this is what i had, and got the funny colour
avisource("UTS.avi")
tried what u said, (well what i thought u meant :D)
avisource("UTS.avi",pixel_type="YUY2")
no ??
DaveQB
26th June 2003, 13:17
AHH my bad
i had:
avisource("UTS.avi",pixel_type="YUY2"))
:D
a copy and paste error
cheers
this script returns sound but no picture in ZoomPlayer
but both video and sound in VDMod
video=avisource("intro.avi") + avisource("harrychamber.avi")
audio=wavsource("intro.wav") + wavsource("harry1.wav")
audiodub(video,audio)
ZoomPlayer normally always returns scripts fine hmmmmm
avisynth Patch ??
Wilbert
26th June 2003, 13:49
So, are the colors still messed up when using (in vdubmod):
avisource("UTS.avi",pixel_type="YUY2")
DaveQB
26th June 2003, 14:21
nah, that script works great in Zplayer or VD ,
u got it in one man ;)
vBulletin® v3.8.11, Copyright ©2000-2026, vBulletin Solutions Inc.