All pastes #217211 Raw Edit

Untitled

public text v1 · immutable
#217211 ·published 2006-10-23 14:43 UTC
rendered paste body
        static void Main(string[] args)
        {
            VLC vlc = new VLC();
            vlc.ClearPlaylist();
            string[] options = new string[] { @":sout=#transcode{vcodec=theo,vb=800,scale=1, width=512,height=384, fps=25, acodec=vorb, ab=80,channels=2}:duplicate{dst=std{access=file, mux=ogg, url=""d:\test.ogg""}}" };
            vlc.AddTarget("d:\test.mp4");
            vlc.Play();
            while(true)
            {
                System.Threading.Thread.Sleep(100);
                int len = vlc.GetLengthSecs();
                int pos = vlc.GetPositionSecs();
                Console.WriteLine(len+":"+pos+":"+vlc.GetError());
            }
        }