SplitmediaLabsLimited / xjs

XSplit JS Framework. Make plugins for XSplit Broadcaster, quickly and easily.
Other
39 stars 11 forks source link

from php script i want to change dynamically source media #328

Open federicopalumbo opened 3 years ago

federicopalumbo commented 3 years ago

Hello I have many mp4 and I want stream dynamically that media, I mean that from my local server i can make http requests or command line request and other scripts, and i want xsplit stream my media and also change it dynamically. I need to change media also before the its end, i don't need just queue it. At the moment I can play it in VLC and grab the window, but i would have the media streamed directly.

If is possible, can you give some advice?

Thanks Federico

SML-MeSo commented 3 years ago

Hi! Sorry for the delayed response. A few questions to understand your main use case:

  1. Are your media files hosted locally in your PC or within a network drive?
  2. Are you looking to play the files one after another or do you want the ability to change the media at any pre-determined condition via script?
  3. Are you open to using javascript or are you bent on using php (more complicated to accomplish) ?
federicopalumbo commented 3 years ago

Hi thanks for your answer

Actually I managed using a VLC playlist, with OBS, I have to kill the program to end streaming and before to reopen the program I re-create the playlist.

Tha files are stored locally, files have to be played one after other, and i'm using php.

What would be interesting to have command line interaction with the program, to move to the next item in the playlist, to stop playlist and to reload playlist.

I'm using OSB because I can use some option when starting from command line

obs64.exe --startstreaming --scene "Scene2" --minimize-to-tray

OBS has options to get command through http but I don't find that work properly, and have few commands, so finally I found that I can Kill the program and the streaming stop also because I deselect the option on twitch to maintain the connection while disconnections are short in time...

I am actually starting the channel https://www.twitch.tv/tenetortv that has some of the programmation prepared from news coming from Pressenza News Agency (i have a program that creates videos from web posts), then i will add Live and Talks...

thanks Federico

El mié, 20 ene 2021 a las 12:02, SML_MeSo (notifications@github.com) escribió:

Hi! Sorry for the delayed response. A few questions to understand your main use case:

  1. Are your media files hosted locally in your PC or within a network drive?
  2. Are you looking to play the files one after another or do you want the ability to change the media at any pre-determined condition via script?
  3. Are you open to using javascript or are you bent on using php (more complicated to accomplish) ?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/SplitmediaLabsLimited/xjs/issues/328#issuecomment-763524731, or unsubscribe https://github.com/notifications/unsubscribe-auth/AK2R2HG7PPTKEYQORB6BSNTS22Z6FANCNFSM4UTHZWDQ .

SML-MeSo commented 3 years ago

Not sure if this is what you're looking for, but XBC has the Macros extension, which helps automate streaming and other functions, please see https://www.xsplit.com/blog/how-to-use-macros-in-xsplit-broadcaster.

From the looks of it, these may be some things to note:

If using scripts cannot be avoided: