Playing http stream, transcoding and writing to a file

About encoding, codec settings, muxers and filter usage
MAK
Blank Cone
Blank Cone
Posts: 13
Joined: 26 Dec 2006 16:14
Contact:

Playing http stream, transcoding and writing to a file

Postby MAK » 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

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

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

Postby revolunet » 25 Oct 2007 16:26

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
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

MAK
Blank Cone
Blank Cone
Posts: 13
Joined: 26 Dec 2006 16:14
Contact:

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

Postby MAK » 25 Oct 2007 16:38

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

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

Postby revolunet » 25 Oct 2007 16:49

i can play resulting test.ogg in VLC, and in stream info it says its DIV3...
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

MAK
Blank Cone
Blank Cone
Posts: 13
Joined: 26 Dec 2006 16:14
Contact:

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

Postby MAK » 25 Oct 2007 17:09

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

revolunet
Big Cone-huna
Big Cone-huna
Posts: 515
Joined: 17 Oct 2007 13:16
VLC version: 0.9.8
Operating System: Vista
Location: Paris, France
Contact:

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

Postby revolunet » 25 Oct 2007 17:12

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
VLC & web IT consulting - http://www.revolunet.com
Github : http://github.com/revolunet

MAK
Blank Cone
Blank Cone
Posts: 13
Joined: 26 Dec 2006 16:14
Contact:

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

Postby MAK » 26 Oct 2007 08:05

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


Return to “VLC stream-output (sout)”

Who is online

Users browsing this forum: No registered users and 12 guests