I was able to stream a single video using the following code:
Code: Select all
inst = vlc.Instance()
param=[
"test.mp4"
,"sout=#rtp{dst=224.1.1.10,port=10100,mux=ts}"
]
Media = inst.media_new(*param)
player = Media.player_new_from_media()
player.play()
Code: Select all
inst = vlc.Instance('--sout=#gather:rtp{dst=224.1.1.10,port=10100,mux=ts}')
Media_list = inst.media_list_new(['test.m3u'])
list_player = inst.media_list_player_new()
list_player.set_media_list(Media_list)
list_player.play()
Thanks,