The problem that I am having is that while I can record the stream to hard drive, i can not seem to be able to change the recording settings, and the recorded movies are very large (close to 1 GB for 15 minutes).
Using the standalone version of the VLC Media Player, I was able to generate a command string that does the recording, the preview, and the transcoding, and it also seems to workwhen used with the command line. The generated string looked similar to this:
Code: Select all
:sout=#transcode{vcodec=mp2v,vb=3072,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=display,dst=std{access=file,mux=ps,dst="C:\VLC\myTestMovie.MPG"}}
For example setting the options using Javascript like this does not work at all:
Code: Select all
var options = "sout=#transcode{vcodec=mp2v,vb=3072,scale=1,acodec=mpga,ab=128,channels=2}:duplicate{dst=display,dst=std{access=file,mux=ps,dst=C:\VLC\myTestMovie.MPG";
Code: Select all
function record()
{
var oVlc = document.getElementById("vlc1");
var mrl = "udp://@239.1.1.1:4444";
var options = ":sout=#transcode{vcodec=mp2v,vb=3072,scale=1,acodec=mpga,ab=128,channels=2} :sout=#duplicate{dst=display,dst=std{access=file,mux=ps,dst=C:\\VLC\\media\\myTestMovie.mpg";
var vId = oVLc.playlist.add(mrl, "vlc1", options);
ovlc.playlist.playItem(vId);
}
Thanks.
A.