Germany
splendid job.
i'm extending your streamer.aspx a bit so I can add a &start parameter so I can tell the server to "seek" into the file which I do by adding "-ss" to the mencoder params. I'm trying to speed the whole process up so my client gui will respond quicker. have you tried your solution on IIS, are there any tricks/access rights to make mencoder work through IIS?
if (Request.QueryString["start"] != null)
{
int offset = 0;
int qStart = Convert.ToInt32(Request.QueryString["start"]);
offset = Convert.ToInt32( qStart / 3.1415);
// have no idea why this division has to be done, but seems to work on MediaPortal recordings
cfg.Args = "-ss " + offset + " " + cfg.Args;
}
Response.Clear();
Response.Buffer = false;
Response.BufferOutput = false;
Response.AppendHeader("Connection", "Keep-Alive");
Response.ContentType = "text/plain";
Response.StatusCode = 200;
BasicVideoInformation information = MediaInfoHelper.GetBasicVideoInfo(filename);
Response.Write( information.DurationMilliseconds * 1000.0);