Playing http stream, transcoding and writing to a file
Posted: 25 Oct 2007 15:05
Hi.
I'm using mozilla plugin and activex
I've got stream and i need to play it, at the same time i've got to trancode this stream and write to a file
When i'm just playing it and writing to a file (without trancoding) - it works, but when i'm trying to transcode - i've got 0 bytes file
Please help, what's in the options string is wrong
I'm using mozilla plugin and activex
I've got stream and i need to play it, at the same time i've got to trancode this stream and write to a file
When i'm just playing it and writing to a file (without trancoding) - it works, but when i'm trying to transcode - i've got 0 bytes file
Please help, what's in the options string is wrong
Code: Select all
function set_item(name)
{
var options = new Array(":filter=deinterlace", ":vout-filter=deinterlace", ":deinterlace-mode=blend",
":sout=#duplicate{dst=display,dst=\"transcode{vcodec=mp4v,vb=1024,acodec=mp3,ab=128,scale=1,channels=2,deinterlace}:std{access=file,mux=ts,dst=test.avi}\"}"
/* also tried ***
":sout=#duplicate{dst=display,dst=\"#transcode{vcodec=mp4v,vb=1024,acodec=mp3,ab=128,scale=1,channels=2,deinterlace}:std{access=file,mux=ts,dst=test.avi}\"}"
":sout=#duplicate{dst=display,dst=transcode{vcodec=mp4v,vb=1024,acodec=mp3,ab=128,scale=1,channels=2,deinterlace}:std{access=file,mux=ts,dst=test.avi}}"
*/
);
with (document.video1.playlist)
{
stop();
items.clear();
add(name, 'onlinetv', options);
}
}