Log in

View Full Version : Avisynth play in browser streaming video


shashaanktulsyan
21st April 2009, 09:42
I am making downloading client that can make it possible to play videos that are being downloaded (supporting both direct links and bittorrent). It's called neembuu [link removed].

This post is to discuss the possibility of using avisynth to manipulate these files in a elegant manner. And also mention a few examples showing it's usefulness.

It has a feature called Watch as you download
[link removed]
The downloader, makes a virtual file, which is used to access the file being downloaded (for more details refer to the link above). The virtual file appears like a normal file and is accessed like any other file. Suppose some program opens this file. Neembuu hears the requests that program makes. If the requested region is downloaded, then the program is supplied with the data, else the requested region is first downloaded and then passed. This way any video can be played as it is being downloaded.

Example of things that can be done using avisynth and neembuu
Using avisynth on a neembuu virtual file (if avisynth makes right kind of requests) we can download for example only audio part from that file (if the virtual file was a media file).
And then AudioDub it with some video.
This way we can get dubs of a video from some other file.
A video provider can add logo to the video without actually hard-encoding the logo in the video.


For the features so far avisynth doesn't need to do change anything.


But things can be made more elegant if avisynth can make a few changes.
Imagine that a script of the sort
DirectShowSource("http://somefilehost/somevideo.avi")
can be played directly in the browser.
Well, it is sort of possible without avisynth need to change itself.
For current scene, neembuu will have to change the
http://somefilehost/somevideo.avi
with the path to the virtual file (eg - c:\temp\Partially_Downloaded_virtualfiles\somevideo.avi )

I guess I can make a plugin that changes URLs into virtual file's path so that avisynth doesn't need to worry.
I just wanted to discuss about it, since I find this thought cool.

Possibilities after changing avisynth to take URLs or torrent file as sources( of course also mentioning the file inside the torrent which has to be played)

A user can select from a webpage which video he wants in which language and other things. The server would generate a AVS file which would directly play in the browser (browser plugin will have to made obviously) or downloaded. The AVS file could also be in working webpages, and the video may run like it does in youtube.

Guest
21st April 2009, 12:42
torrent file as sources

Per forum rule 6 and the stickie in the Newbies forum, we can't help you to process downloaded media files. Thread closed.