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. |
21st September 2009, 20:06 | #2 | Link |
Advanced Blogging
Join Date: May 2009
Posts: 480
|
AviSynth requires knowledge of the exact length of a stream, and most editing operations require random access as well. If by "live source," you mean the analog output on some cheap cameras, I don't think this will work the way you want it to. You should first capture the camera to DV or some other fixed format before using AviSynth.
|
21st September 2009, 20:30 | #3 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
Yes, I am referring to output of a camera attached to the PC, such as a web cam connected via USB or a DV device connected via Firewire.
I was hoping there was a way to do something like: DirectShowSouce("Logitech Webcam Pro 9000") and feed that into Avisynth. I was hoping I could use Avisynth features (transitions, effects, etc.) as I'm capturing video from the attached device. |
21st September 2009, 23:14 | #4 | Link |
Registered User
Join Date: Dec 2007
Location: Enschede, NL
Posts: 301
|
You can make a graph, and use ffdshow with its (avisynth-)filtering. See pictures on http://www.roelofs-coaching.nl/index...ideo&Itemid=10 for some possibilities. You can use zoomplayer to play them.
|
22nd September 2009, 00:45 | #5 | Link |
Registered User
Join Date: Apr 2008
Posts: 18
|
Thanks for the response. Can graph files be generated without a GUI? I'm looking for a method to capture Live Video with Avisynth in an automated way - as the video capture device could vary from system to system. Any other thoughts?
Thanks. |
22nd September 2009, 02:45 | #6 | Link |
x264aholic
Join Date: Jul 2007
Location: New York
Posts: 1,752
|
Capture to a file then do your processing in avisynth afterwards.
If you try to do real time capture and filtering, it would be extremely likely that frame drops would occur.
__________________
You can't call your encoding speed slow until you start measuring in seconds per frame. |
22nd September 2009, 11:09 | #7 | Link | |
Registered User
Join Date: Dec 2007
Location: Enschede, NL
Posts: 301
|
Quote:
If you find a solution, please post it here. I would be interested. |
|
25th April 2010, 06:22 | #8 | Link |
Registered User
Join Date: Jul 2007
Posts: 157
|
After making some progress here, this thread seemed like a good place for posting this solution. Why would anyone want a live source in AviSynth? To use an interlaced DV camcorder, and get some halfway decent deinterlacing for live web streaming. This method can even trick DScaler into seeing your capture card or camera.
First, open graphedit and click Insert Filters (Ctrl+F). You'll want the device you'll use to be up and running, connected to the PC while you do this. Under WDM Streaming Capture Devices, select the device you want AviSynth to see. Next, you need a video pin from which DirectShow can connect. An easy way is to right click on the video pin of your device, and click Render Pin. Then delete the last thing in the chain - the renderer: Now save the GRF file. In your script, just put: DirectShowSource("YourGraph.grf",audio=false,framecount=215784) #or some other big amount of frames. Note the audio=false, since audio and video cannot be done at the same time. This will be a video only script. Now you should be able to open the AVS with other software and see the live input. If all went well, you should be able to resize or deinterlace via the script (without getting too CPU intensive, of course). DScaler was also able to see it as a "file."
__________________
f=33 |
25th April 2010, 09:38 | #9 | Link |
Registered User
Join Date: Dec 2007
Location: Enschede, NL
Posts: 301
|
If you try my previuous posted solution with Zoomplayer you can have the audio too (in the grahp itself you can save your processed video). I use an old version of Zoomplayer. No idea if it works with a new version.
This discussion looks a bit like an old one here: http://forum.doom9.org/showthread.php?t=64461. The problem is similar. You want to read a stream.
__________________
Roelofs Coaching |
|
|