View Full Version : No Audio with DV video
whugemann
17th July 2008, 20:01
Since version 2.53, AVIsynth has built-in DV type 1 support -- in regard to the video; the audio is not supported.
Well, I always used the Panasonic DV Codec which worked just fine and I used to get video and audio with AVIsynth that way.
But with the newer versions, I found that the audio is lost.
How can I force AVIsynth not to use its built-in suppurt for DV but use the WfW codec?
I already tried DirectShowSource (which I don't like very much anyway), but it just crashes :-(
Comatose
17th July 2008, 20:41
Isn't the audio just PCM? Try doing something like avisource("blah.avi").audiodub(directshowsource("blah.avi",audio=false)) ... it might not crash if you disable video.
I did the same a while ago... or alternatively, you can just use vdub or something to demux the audio then use wavsource().
IanB
17th July 2008, 23:27
@whugemann,
Since 2.53 AviSource will demultiplex Type 1 DV, and it always uses your VfW codec to decode the video stream. It always ignores the Type 1 DV multiplexed audio stream. If there is a Type 2 DV normal PCM audio stream it will open and serve that.
DirectShowSource will demultiplex Type 1 DV and it will always use the DirectShow DV decoder for both the Video and Audio streams. If there is a Type 2 DV normal PCM audio stream it may or may not use it in preference to the Type 1 DV audio stream depending on the metrics of the various DirectShow components installed on your machine. You have to use GraphEdit to manually build a .GRF file to force the opposite decoding strategy.
Comatose's suggestion (if corrected) is currently the only way to directly read the Type 1 DV multiplexed audio stream.audiodub(avisource("blah.avi", False), directshowsource("blah.avi", Video=False))
There is an opensource VfW DV codec, Cedocide, available from http://neuron2.net/ Many consider it superior to the older Panasonic and Sony codecs. There are also apps to directly convert Type 1 DV files to Type 2 DV files, search Doom9's extensive software trove.
45tripp
18th July 2008, 01:08
There is an opensource VfW DV codec, Cedocide, available from http://neuron2.net/ Many consider it superior to the older Panasonic and Sony codecs.
Cedocida
i'll be bold,
it is.
There are also apps to directly convert Type 1 DV files to Type 2 DV files, search Doom9's extensive software trove.
Dvdate, Enosoft DV
Gavino
18th July 2008, 03:45
Since 2.53 AviSource will demultiplex Type 1 DV, and it always uses your VfW codec to decode the video stream. It always ignores the Type 1 DV multiplexed audio stream. If there is a Type 2 DV normal PCM audio stream it will open and serve that.
Does this apply as well to both AviFileSource and OpenDMLSource?
There are also apps to directly convert Type 1 DV files to Type 2 DV files, search Doom9's extensive software trove.
VDub (I used version 1.6.17) will open a Type 1 DV, and if you then save (as Stream Copy), it will save as Type 2, including audio.
whugemann
18th July 2008, 09:55
@whugemann,
Comatose's suggestion (if corrected) is currently the only way to directly read the Type 1 DV multiplexed audio stream.audiodub(avisource("blah.avi", False), directshowsource("blah.avi", Video=False))
OK, that does the trick, thanks!
I would suggest to add this hint to the AVIsynth wiki at www.avisynth.org, as the possible problem is only hinted at over there, but no workaround is given. (The AVIsynth wiki cannot be contributed to by mere mortals.)
Thanks again
Wolfgang Hugemann
Wilbert
18th July 2008, 10:41
I will add it to the wiki.
Gavino
18th July 2008, 16:22
@whugemann. One thing puzzles me about your original question.
You seem to be saying that before Avisynth was changed in v2.53, you were able to obtain both video and audio from Type 1 DV files via AviSource. I thought that VfW applications were unable to read Type 1 files, and that was why Avisynth had to be extended to handle them itself. If AviSource was previously able to deliver both video and audio from Type 1, why was it necessary to change Avisynth at all?
Or did I misunderstand your original point? :confused:
whugemann
30th July 2008, 10:00
@whugemann. One thing puzzles me about your original question.
You seem to be saying that before Avisynth was changed in v2.53, you were able to obtain both video and audio from Type 1 DV files via AviSource. I thought that VfW applications were unable to read Type 1 files, and that was why Avisynth had to be extended to handle them itself. If AviSource was previously able to deliver both video and audio from Type 1, why was it necessary to change Avisynth at all?
Or did I misunderstand your original point? :confused:
Sorry for my delayed answer. I am most seldomly interested in the audio, but yes, that's how it used to be. I used the Pansonic DV codec and never met problems with the audio. So the buildt-in DV support is more an obstruction to me than a real help...
Gavino
30th July 2008, 10:20
I used the Pansonic DV codec and never met problems with the audio. So the buildt-in DV support is more an obstruction to me than a real help...
In that case, I'm curious as to why the built-in support was necessary at all. Can anyone shed light on this?
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.