Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > Avisynth Usage

Reply
 
Thread Tools Search this Thread Display Modes
Old 27th November 2007, 23:11   #1  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 114
Overlay Time on a mms: Source

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
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 28th November 2007, 12:03   #2  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Starduster View Post
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.
__________________
now playing: [artist] - [track] ([album])
Leak is offline   Reply With Quote
Old 28th November 2007, 14:15   #3  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,173
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 well
Code:
DirectShowSource("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.
IanB is offline   Reply With Quote
Old 28th November 2007, 17:45   #4  |  Link
Starduster
Registered User
 
Starduster's Avatar
 
Join Date: Jun 2007
Location: Ann Arbor, MI
Posts: 114
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
__________________
Life is more interesting viewed upside down
Starduster is offline   Reply With Quote
Old 28th November 2007, 22:28   #5  |  Link
IanB
Avisynth Developer
 
Join Date: Jan 2003
Location: Melbourne, Australia
Posts: 3,173
Once you have made the .GRF file, DirectShowSource will directly "deal" with the stream.
IanB is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 16:56.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.