Page 1 of 1

Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 15:05
by MAK
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

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); } }

Re: Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 16:26
by revolunet
hello

this syntax works for me in Mozilla/IE 0.8.6b

Code: Select all

:sout=#transcode{vcodec=DIV3,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=file,mux=ogg,dst=C:\\test.ogg}}
this this post viewtopic.php?f=16&t=41353

Re: Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 16:38
by MAK
i need to play stream without transcoding (in original quality), but write stream encoded

i've tested your code, and i've got only audio, and no video stream

Re: Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 16:49
by revolunet
i can play resulting test.ogg in VLC, and in stream info it says its DIV3...

Re: Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 17:09
by MAK
i'm transporting tv (video and audio)
with the sample

Code: Select all

:sout=#transcode{vcodec=DIV3,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=file,mux=ogg,dst=C:\\test.ogg}}
i've got only audio stream (in the "display" and in the file)
i need a file when a copy of a stream, but transcoded

Re: Playing http stream, transcoding and writing to a file

Posted: 25 Oct 2007 17:12
by revolunet
Sorry i don't understand

with this code, i can, with the mozilla plugin, view some http stream while transcoding and saving to a gfile

Re: Playing http stream, transcoding and writing to a file

Posted: 26 Oct 2007 08:05
by MAK
hello

this syntax works for me in Mozilla/IE 0.8.6b

Code: Select all

:sout=#transcode{vcodec=DIV3,vb=1024,scale=1}:duplicate{dst=display,dst=std{access=file,mux=ogg,dst=C:\\test.ogg}}
this this post viewtopic.php?f=16&t=41353
with this code i've got only audio, no video