arut / nginx-rtmp-module

NGINX-based Media Streaming Server
http://nginx-rtmp.blogspot.com
BSD 2-Clause "Simplified" License
13.35k stars 3.51k forks source link

Using with InstagramLive-PHP #1313

Open rameshliyanage opened 6 years ago

rameshliyanage commented 6 years ago

How can we get this to work with the InstagramLive-PHP library - https://github.com/JRoy/InstagramLive-PHP.

The Instagram account shows its live but there is no stream that loads. Assuming the RTMP stream needs to be scaled when sending to Instagram but seem to be confused on getting that done. Appreciate some help.

aloproducao commented 5 years ago

application APPNAME { live on; meta copy; allow publish 127.0.0.1; allow publish SERVER ADRESS; exec_options on;

exec_pull -i rtmp://SERVER/APPNAME/STREAMKEY -vcodec libx264 -threads 0 -vprofile baseline -acodec aac -strict -2 -b:v 1600k -b:a 128k -vf transpose=2 -preset veryfast -crf 23 -f flv rtmp://live-upload.instagram.com:80/rtmp/STREAMKEY;

transpose=2 = 90 rotation

Miguel Kallemback +5521975062482