Learn how easy it is to sync an existing GitHub or Google Code repo to a SourceForge project! See Demo

Close

Does this support save/convert?

2010-10-17
2013-05-13
  • Rickey Ward
    Rickey Ward
    2010-10-17

    In VLC player you can convert any stream into another stream, for example you can ever rip a dvd on the fly and encode it into an mp4. Is this possible with libvlc.net?

     
  • Rinat Zaripov
    Rinat Zaripov
    2010-10-23

    Yep. It should be possible. Igor added that functionality in first release. You can use PlayerOutput.Files.Add for that.

     
  • Richard Teel
    Richard Teel
    2011-01-02

    rzar,

    I have been attempting to record a network stream and am having issues so either I am doing something wrong or it is not supported.

    Using libvlcnet-0.3.1.0-src

    Sample code from http://forum.videolan.org/viewtopic.php?f=32&t=77517&start=0

    Fails on Play go to the window object being null in the following line of the Play method.

    getCurrentMediaPlayerInternal().SetDisplayOutput((int)((DoubleWindowBase)playerOutput.Window).GetActiveWindowHandleInternal());
    
    string uri = "mms://61.136.113.41/nytv_1";
    DZ.MediaPlayer.Io.MediaInput mediaInput = new DZ.MediaPlayer.Io.MediaInput(MediaInputType.NetworkStream, uri);
    OutFile outfile = new OutFile("D:\\record.mp4");
    vlcPlayerControl1.playerOutput.Files.Add(outfile);
    vlcPlayerControl1.Play(mediaInput);
    
     
  • Richard Teel
    Richard Teel
    2011-01-02

    remarks.txt

    Implement:
    - Input-output MRLs generation and test it for network streaming and device capturing, transcoding

    BTW: It is creating a 4 byte file when trying to record.