Dear VLC Developers:
I am doing some transcode tests, but fail, and i miss something?? list below is the test code. and I also test the vlc media player, and get the same results.
vcodec=mp2v, mux=ts=====>get hang ><
vcodec=mp2v, mux=ps=====>get hang ><
vcodec=mp4v, mux=ts=====>works, but when i close the vlc media player by click left upper X button, the vlc media player crash.
vcodec=mp4v, mux=ps=====>works, but when i close the vlc media player by click left upper X button, the vlc media player crash.
vcodec=mp4v, mux=asf=====>works, but when i close the vlc media player by click left upper X button, the vlc media player crash.
vcodec=h264, mux=ts=====>ie crash, vlc media player test also crash.
any ideas?
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="test.aspx.cs" Inherits="WebIPFinder.test" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<table>
<tr>
<td>
<!-- vlc player -->
<div id="CH1" style="width:352px;height:240px;background:blue">
<object classid="clsid:9BE31822-FDAD-461B-AD51-BE1D1C159921"
width="400" height="300" id="VLCH1" >
</object>
</div>
</td>
</tr>
</table>
<script type="text/javascript">
var options = [":no-overlay", ":no-one-instance"];
document.VLCH1.playlist.add("rtsp://192.168.90.12/mpeg4/media.amp", null, options);
document.VLCH1.playlist.play();
function Button1_onclick() {
var myopts = [":sout=#transcode{vcodec=mp4v}:duplicate{dst=display,dst=std{access=file,mux=ps,dst=c:/output1.wmv}}"];
document.VLCH1.playlist.add("rtsp://192.168.90.13/mpeg4/media.amp", null, myopts);
document.VLCH1.playlist.togglePause();
document.VLCH1.playlist.togglePause();
document.VLCH1.playlist.next();
}
function Button2_onclick() {
document.VLCH1.playlist.stop();
}
</script>
<p><input id="Button1" type="button" value="button" onclick="return Button1_onclick()" /></p>
<p><input id="Button2" type="button" value="button" onclick="return Button2_onclick()" /></p>
</form>
</body>
</html>