Search code examples
.netvb.netwinformsvlc

Play video with subtitle by vlc


i tried to play video and subtitle by vlc.

my code:

Process.Start("path to vlc", "videofile.avi, subtitles.srt")

not working.

what is the right way to do it?.

Solution:

Process.Start("C:\Program Files (x86)\VideoLAN\VLC\vlc.exe", "file:///C:/P2.avi --sub-file=file:///C:/123.srt")

Solution

  • Try

    Process.Start("path to VLC", "videofile.avi --sub-file=subtitles.srt");