scivision / PyLivestream

Pure Python FFmpeg-based live video / audio streaming to YouTube, Facebook, Periscope, Twitch, and more
Apache License 2.0
707 stars 156 forks source link

Support instagram #57

Closed omidraha closed 3 years ago

scivision commented 4 years ago

Thank you I will look into this, I appreciate your request.

scivision commented 4 years ago

It appears Instagram uses dynamic RTMP URLs, unlike most other streaming services. Yellow Duck returns the URL and stream key. This would have to be entered at the command line.

I haven't used Yellow Duck, but I think a workaround for this would be to use Pylivestream as if you were going to stream on Facebook, then copy and paste the FFMPEG command line into a text editor. Use Yellow Duck to get the URL and stream key, and replace the Facebook RTMP URL with the Instagram URL.

I don't think that can be automated with PyLivestream. So to stream with Instagram, perhaps Yellow Duck with OBS would work better.