首页 新闻 会员 周边

C# (WinForm) 调用Vlc ActiveX 边播边保存的问题?求助

0
悬赏园豆:20 [已解决问题] 解决于 2015-01-29 12:05
(安装的VLC 是2.1.5版本的)
我现在调用vlc activex 插件,能够播放 一个VGA信号器 的信号。
但是我需要把这个信号保存成视频文件,该怎么解决?
 private void button1_Click(object sender, EventArgs e)
        {
            //输入参数
            string parameter = ":sout=#transcode{vcodec=h264,acodec=mpga,ab=128,channels=2,samplerate=44100}:file{dst=D:\\123.mp4,overwrite} :sout-all :sout-keep";

            //this.axVLCPlugin21.AutoPlay = true;
            ////判断是否正在播放
            //if (this.axVLCPlugin21.playlist.isPlaying)
            //{
            //    //如果正在播放, 则停止
            //    this.axVLCPlugin21.playlist.stop();
            //}

            //清空播放列表
            this.axVLCPlugin21.playlist.clear();

            //添加播放列表
            this.axVLCPlugin21.playlist.add("http://192.168.1.168:80/vga", null, parameter);

            //播放列表更新到新添加的播放项
            //this.axVLCPlugin21.playlist.next();
            //播放
            this.axVLCPlugin21.playlist.play();

        }

是命令的问题吗? 

咲丶的主页 咲丶 | 初学一级 | 园豆:58
提问于:2015-01-27 11:38
< >
分享
最佳答案
0

没搞过,找新度娘应该没问题。。

收获园豆:20
KingMi | 小虾三级 |园豆:1344 | 2015-01-27 13:32
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册