View Full Version : AviSource doesn't support DV type-1
bb
25th August 2003, 22:32
Why doesn't AviSource support DV type-1 files? If you try to open a DV type-1 AVI using AviSource, you get an unrecognized exception. I can understand if it doesn't want to deal with type-1 audio, but wouldn't it be possible for AviSynth to simply ignore the audio like VirtualDub does?
Currently you can open type-1 files with DirectShowSource only, which makes you dependent on DirectShow DV filters (provided by M$). And seeking doesn't work.
bb
OUTPinged_
26th August 2003, 15:30
What about converting them to DV type2?
bb
26th August 2003, 16:53
Well, of course you can do that, but it's a hassle to copy 4 GB or more of data just to increase the size by another 5% for the copy of the audio stream in auds...
So in brief: convertion to type-2 takes too much time (and HDD space), and it's simply inconvenient.
bb
OUTPinged_
26th August 2003, 20:55
Since there is input for mpeg audio implemented maybe it will be better to request full support of DV type1 (with audio). Will require an update of AVISource anyway.
sh0dan
27th August 2003, 12:53
Then the only option is to demux the audio (either with a tool, if it exists, or saving out the audio using DirectShowSource), and audiodub it using Wav-source, while opening the AVI with AviSource with no audio.
Type 1 audio is not within AVI-spec, as it places audio the wrong place. a quick google (http://thetechnozone.com/videobuyersguide/Codecs/Type1-Type2-DV.html).
bb
27th August 2003, 18:27
Originally posted by sh0dan
Type 1 audio is not within AVI-spec, as it places audio the wrong place.
Yes, Sh0dan, I know, but nevertheless type-1 support would be a great benefit for all the DV folks. Unfortunately noone here seems to care much about it, neither the AviSynth developers, nor the audio guys (BeSweet). I'm glad that at least Avery Lee didn't ignore the type-1 format completely, so that you can open and process it in VirtualDub (without the audio).
bb
sh0dan
27th August 2003, 19:30
All my DV material is type 2, so I will at least need some test-material. I'll see if there is an easy workaround for the crash. I assume it also happends with "audio=false" parameter on AviSource.
Why can't you use DirectShowSource? I know it's inconvenient, since it cannot seek, but with added sound support it has become even more of an option now than ever.
DDogg
27th August 2003, 21:27
Why can't you use DirectShowSource? I think many of us would prefer to use our own VFW codecs. I would hope you might consider what bb mentioned. If you could just "disregard" the audio it would be great. Then Dv'ers that find themselves with this file-type would get all the benefit of avisource. It would be a real help to us if you can fit it in.
Dali Lama
28th August 2003, 01:33
I would just like to confer that I too would find type-1 support very supportive. Actually, I am struggling with merging several type-2 dv captures.
Sh0dan, how are all of your DV files type-2? Maybe PAL using type-2? Because all of the NTSC consumer camcorders use type-1 I believe.
-Dali
stickboy
28th August 2003, 03:08
Doesn't whatever software you use to download the video from the camera to your PC decide what type to use?
sh0dan
28th August 2003, 08:12
I use Canopus DV Raptor software to capture, and it captures directly to segmented type 2 AVI files, from a Sony DSR 20. I am in PAL-world, but I didn't think that made a difference.
Anyway - for any progress, I still need testmaterial that crashes AviSynth (as always). ;)
bb
28th August 2003, 16:34
sh0dan,
you can easily convert your type-2 sources to type-1. There are several converters available, see the sticky thread "Links" in the DV forum:
http://forum.doom9.org/showthread.php?s=&threadid=33519
I use PureMotion's "DV Type Convertor", which you get for free (whereas the main product EditStudio isn't free). But any converter should give you something to play with.
I can provide you with a small sample, too, if you have some webspace available (or I could ask Swede again).
bb
bb
28th August 2003, 16:56
Originally posted by sh0dan
Type 1 audio is not within AVI-spec, as it places audio the wrong place.
Hmm, I wouldn't say type-1 is out of the AVI specification, just because it doesn't store the streams in vids / auds. As far as I know the intermuxed ivas stream type is mentioned in Microsoft's specs, too.
bb
bb
31st August 2003, 12:52
Watch this:
http://www.microsoft.com/whdc/hwdev/tech/stream/vidcap/dvavi.mspx
bb
vhelp
31st August 2003, 22:38
hi bb..
I just thought that I would throw in my two cents worth becuase
I've ben their w/ Type-1 source files.
Best tip I can give...
If you want to open Type-1 files inside AVIsynth w/out issues, and
save on the re-muxing/audio thing, then just open your Type-1 files
inside vdub (ignore temp err msg) and then frameserve the .vdr source
into AVIsynth, and vualla !! no spending hours for reencoding to
Type-2 files... I've ben there and know how long it takes just to do
a 10 minue source - - pfew!!
Note, regarding below.. I'm sure you know this, but others may not.
Below is a snip of my .AVS script I use when feeding all types of
source files (not dvd rips) I often make all sorts of changes to it
when brain-storming, but this one is basically my default one I use
to copy over to others that I'm sure to revise heavily.
Also, remember to start your source .vdr w/ an index number as I did
for the SegmentedAVISource(x) to work, ie, nnn.01.vdr else
use the AVISource() or DirectShowSource() w/ regular filenaming:
----------------- --------------------- ----------------------
Source file: h:\01.00.01.vdr
Script below:
x="h:\01.00.vdr"
### v2.52 DLL Filters go here ###
txt_dir252="c:\dlls252\"
LoadPlugin(txt_dir252+"MPEG2Dec3.dll")
LoadPlugin(txt_dir252+"decomb.dll")
LoadPlugin(txt_dir252+"STMedianFilter.dll")
LoadPlugin(txt_dir252+"asharp.dll")
LoadPlugin(txt_dir252+"UnDot.dll")
LoadPlugin(txt_dir252+"GripFit_YV12.dll")
LoadPlugin(txt_dir252+"atc.dll")
LoadPlugin(txt_dir252+"UnFilter.dll")
LoadPlugin(txt_dir252+"TemporalCleaner.dll")
LoadPlugin(txt_dir252+"DctFilter.dll")
LoadPlugin(txt_dir252+"VagueDenoiser.dll")
LoadPlugin(txt_dir252+"Convolution3D.dll")
### Older DLL Filters go here ###
# txt_dir25x="c:\dlls\"
# LoadPlugin("d:\LoadPluginEx.dll")
# LoadPlugin(txt_dir25x+"mpeg2dec.dll")
# LoadPlugin(txt_dir25x+"DustV5.dll")
# LoadPlugin(txt_dir25x+"FluxSmooth.dll")
### Your MOVIE source goes here (avi or d2v) ###
## AVISource(x)
## directshowsource(x)
SegmentedAVISource(x)
### Filters ###
ConvertToYUY2(interlaced=true)
SeparateFields()
# odd=SelectOdd.STMedianFilter(15,50,25,25)
# evn=SelectEven.STMedianFilter(15,50,25,25)
odd=SelectOdd.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
evn=SelectEven.Convolution3D(1, 6, 10, 6, 8, 2.8, 0)
Interleave(evn,odd)
Weave()
sh0dan
3rd September 2003, 16:48
New CVS binary, for your pleasure.
It now opens the test clip I recieved without problems. No audio, of course.
(Thanks to Avery Lee for "inspiration") :)
yaz
4th September 2003, 11:05
Originally posted by sh0dan
New CVS binary, for your pleasure.
u've hidden this info (almost) perfectly :-))
anyway, many thx for your continuous efforts!
the bests
y
bb
4th September 2003, 18:45
Just tested it, and I must say: works as expected. Good work, and thank you very much, sh0dan!
bb
Dali Lama
7th September 2003, 06:15
Thank you Sh0dan!
:)
Dali
WarpEnterprises
8th September 2003, 16:31
sh0dan, is there a way to read the timecode from an DV-AVI?
Any hint would be apprecciated.
sh0dan
8th September 2003, 16:38
I haven't got the slightest idea how it could be done. :(
WarpEnterprises
9th September 2003, 09:00
Is there a way to get the NOT DECOMPRESSED frame from the AVI?
As I found out the data is hidden in there.
We discuss it here, too.
http://virtualdub.everwicked.com/index.php?act=ST&f=7&t=4344
vcmohan
15th September 2003, 04:37
[QUOTE]Originally posted by vhelp
hi [b]bb..
"If you want to open Type-1 files inside AVIsynth w/out issues, and
save on the re-muxing/audio thing, then just open your Type-1 files
inside vdub (ignore temp err msg) and then frameserve the .vdr source
into AVIsynth, and vualla !!"
I tried this but Virtualdub does not allow ignoring the error message. There is only an OK button. My vdub is release 1.5.
Any suggestions?
vhelp
15th September 2003, 06:30
I tried this but Virtualdub does not allow ignoring the error message. There is only an OK button. My vdub is release 1.5.
Any suggestions?
Yes.. just click on the [OK] button, and vdub will continue using
your Type-1 source file. Only, it won't use the Audio.. will just be
an Video only file.
As for the Audio part of the DV file, you have a number of options to
use in extracting it or importing it into vdub. At the very least, you
can use TMPG, by opening the Type-1 source, and selecting Menu/File
and then Save As, bring down the other menu and you just click on the
WAV option. Well, that's one way out of many.
-vhelp
vcmohan
16th September 2003, 15:39
Originally posted by vhelp
Yes.. just click on the [OK] button, and vdub will continue using
your Type-1 source file. Only, it won't use the Audio.. will just be
an Video only file.
-vhelp
I tried again vdub but after the error message nothing happens. Under the File Tab except for Open Video Source rest are greyed out. I do not see any thing on display.
I have captured my AVI file with Ulead Video Studio version 5. Avi codec says Error AVI 0. Audio 0. Windows media player plays it. Under properties it says DV Video Decoder. Audio Codec Unknown.
WarpEnterprises
16th September 2003, 15:50
Look at http://www.dvunlimited.com/ for a conversion tool, maybe it works
Mug Funky
22nd September 2003, 16:55
it'd be cool to see a "DVsource()" command in avisynth. this would just be pipe dreams i think, but it'd be cool to have the kind of control over iDCT that one gets with mpegsource implementations.
imagine a reference iDCT for avisynth! you wouldn't have to worry about how good/bad your decoder is, whether it sharpens or blurs, whether the chroma comes out correct, etc.
unfortunately for this to work, some poor git has to write a decoder, and that i'd say would mean buying the DV standard, or at least significant parts of it.
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.