Here's the command:
Code: Select all
C:\Program Files\VideoLAN\VLC\vlc.exe" hannibal.mkv --sout="#transcode{vcodec=theo,vb=1024,channels=2,samplerate=44100,ab=128,acodec=vorb}:http{mux=ogg,dst=:8080/hannibal.ogg}" :sout-all :sout-keep -I dummy
Code: Select all
import vlc
inst = vlc.Instance()
med = inst.media_new("D:\\Rich\\Videos\\hannibal.mkv", "sout=#transcode(vcodec=theo,vb=1024,channels=2,samplerate=44100,ab=128,acodec=vorb):http(mux=ogg,dst=:8080/hannibal.ogg)", "sout-all", "sout-keep", "I=dummy")
p = med.player_new_from_media()
p.play()