PDA

View Full Version : Overlay Time on a mms: Source


Starduster
27th November 2007, 23:11
I thought I saw this somewhere but can't find it now. What I'd like to do is "simply" overlay the time over an mms stream. I was hoping something like:

directShowSource("mms://server/file.wmv")
showSMPTE()

Would do the trick, but it appears that directShowSource doesn't like the mms part very much. Then I realized, I've never used AviSynth with a stream and don't even know if you can.

Any direction here would sure be appreciated.

Thanks,

Steve

Leak
28th November 2007, 12:03
Then I realized, I've never used AviSynth with a stream and don't even know if you can.
Not really - AviSynth assumes that the number of frames in your video stream is known as soon as it is opened, but of course that's quite impossible with a stream.

IanB
28th November 2007, 14:15
You will have to render the stream in GraphEdit, save a .GRF file and then load said .GRF file into DirectShowSource() You will need to specify the FrameCount option and probably the FPS option as wellDirectShowSource("Plugh.GRF", FrameCount=10000, FPS=25, ConvertFPS=True)You probably should just save the output to a fast lossless format like huffyuv as you will need to ensure you can keep up with the stream in real time. If you get behind directshow will drop frames to catch you up and this may spoil your capture.

If you just want to rip the stream there are a few programs that can directly capture mms:'s straight to a .WMV file. Or you can do it directly in GraphEdit by adding a muxer and file writer into your graph and just running it.

Starduster
28th November 2007, 17:45
Leak, IanB,

Thanks for the responses. I figured I was going to need to do something like that. Now that I know there are no options for directly dealing with the .wmv, I'll get on with snagging the file.

Many thanks!

Steve

IanB
28th November 2007, 22:28
Once you have made the .GRF file, DirectShowSource will directly "deal" with the stream.