| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Get inside! Sample the range of functionality easily built with JMSL Library for Time Series Data Analysis, Heat Maps, Portfolio Optimization, Monte Carlo Simulation, Stock Price Charting and more. Download Now! |
|
#1
|
|||
|
|||
|
choose bitrate of stream
Hello,
I dont know if i post this in the right forum but i have a question. im looking fore a way to make a script ore something to make this kind of function select movie in different bitrates (look like this) I dont know if it is one movie ore diffirent files with another bitrate? ore de windows media services compressed the file? please can somebody give me some answers? I have windows server 2003 and installed windows media services mark Quote:
Last edited by Lafinboy : March 19th, 2005 at 09:31 PM. Reason: Moved from ASP forum |
|
#2
|
||||
|
||||
|
You do it by creating different Publishing Points with different bitrates as fed from the WME. WME doesn't come with WMS, its a separate freeware download from Microsoft.com.
Note that the use of WME for streaming media applications and on-the-fly encoding takes a LOT of processor time, ensure you're using a dedicated box with at least 512mb RAM and a 2.5Ghz processor or more. Back in the old days, streaming media was done with SMP server clusters, but now it can be accomplished with single high-perf boxes. Anwyay, that page you speak of just employs some JavaScript to change the stream: Straight rip: Code:
var base_url = 'http://www.filmfocus.nl/streaming_media/asx.php?trailer_id=1008&speed=[speed]';
function loadTrailer(speed)
{
var movOBJECT = document.getElementById('player_ie');
var movEMBED = document.getElementById('player_moz');
try{
movOBJECT.stop();
movOBJECT.FileName = base_url.replace('[speed]', speed);
// wait 1 sec before playing (preload/buffering)
setTimeout('document.getElementById(\'player_ie\') .play()', 1000);
} catch(e)
{
movEMBED.src = base_url.replace('[speed]', speed);
}
/*
var type= 'ie';
if (!mov) {
type = 'moz';
mov = document.getElementById('player_moz');
}
alert(type)
if (mov)
{
mov.stop();
mov.FileName = base_url.replace('[speed]', speed);
document.getElementById('speed'+ speed).checked='checked';
// wait 2 sec before playing (preload/buffering)
setTimeout('document.getElementById(\'player_'+typ e+'\').play()', 1000);
}
*/
}
Of course, why didn't you consider looking at the page source before asking this question? |
|
#3
|
|||
|
|||
|
I agree with Phoenix
WME - Windows Media Encoder can do what you want to do. It's a free download at: http://www.microsoft.com/windows/windowsmedia/9series/encoder/default.aspx The easiest way for you to do it is to create 3 different video files each with the bitrate that you want. This is the simplest way to do it. Read through the WME tutorials and help documents and you'll find this is covered there. |
![]() |
| Viewing: ASP Free Forums > Web Design > Multimedia > choose bitrate of stream |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|
|
|