Log in

View Full Version : Very early audio support in DirectShowSource


sh0dan
11th July 2003, 22:34
I spend some hours trying to put audio into DirectShowSource - and to some extend I succeded. You can try it out, but it is still considered extremely alpha - so don't expect anything to work! ;)

It only supports strictly linear access - if you do not access the file linearly, it will spit out silent samples instead.

It _should_ support > 2 channel input - it has NOT been tested.

It does NOT support float sample input - it will however probably do so later!

It will probably desync - even though it shouldn't ;)

All decodable sources should work. However pure sound files has not been tested.

(Use the second link in my sig. for download).

Si
12th July 2003, 01:06
Hallelujah :D
I thought I'd be in my grave before this happened :D

I'd just echo the "don't seek" instruction from sh0dan.

I did and my system reset itself :(

Retrying on an ex SVCD MPEG-2 source converting to MJPEG - let you know what happens.
Straight covert to MJPEG using VirtualDub worked fine on a 66000 frame ex SVCD MPEG-2 file - no obvious sync problems - great work

regards

Simon

Nic
12th July 2003, 09:42
Sorry to be an idiot, but if someone could clue as to where this part is in the CVS (and under what tag/branch) I wouldn't mind trying to help :) (I did look last night, but couldn't see it...it was very late though)

Cheers,
-Nic

sh0dan
12th July 2003, 09:53
It's in the MAIN branch - the web-cvs does however not seem to be updated instantly - probably some bug at sourceforge, which is quite annoying. It's updated now though.

I have encountered the following problems with the current code:

- Hang at end of stream.
- It should be able to reinitialize at frame 0/sample 0.
- Or better general seeking, if possible. No matter what I try it just seems to hang.
- StopGraph has some code uncommented so it doesn't hang.
- I have had crashes at unload with MPEG1.
- Isn't it possible to detect fps - it almost always seem to fail.
- Pure sound - Edit: Now it does - code in CVS - no binary.
- Pure video - does this work?

@Nic: Do you know how to use GraphEdit - I've added some code from the documentation, that should be able to load .GRF files - I do however not know anything about GraphEdit, so you might be able to help here?

I would guess that the AviSynth filter(s) should be added to the graphs after the graph has been loaded?!?

sh0dan
17th July 2003, 12:01
New version up - Changes:

- DirectShowSource capable of opening audio only. WAV/AC3/MP3 can be opened using DirectshowSource.
- Made adjustments for longer sample support in ResampleAudio.
- Added experimental "align=true/false" to crop - this will realign frames if they aren't already. Alignement is 16 for SSE2 machines, 8 for others.
- Updates to DirectshowSource audio support.
- Minor adjustments for long audio.
- Removed ffvfw from installation.

Wilbert
12th August 2003, 17:21
v=blankclip()
a=DirectShowSource("d:\disc3\test7\surroundtest.ac3")
audiodub(v,a)

doesn't work. The error-message:
DirectShowSource: the filter graph manager won't talk to me (line 2)

I used AC3filter (set on 5.1) and Waveout to play it. Otoh if I set it on 2.0 the script plays without any error.