itsagramlive icon indicating copy to clipboard operation
itsagramlive copied to clipboard

ffmpeg rtmps Resource temporarily unavailable

Open DavidM42 opened this issue 4 years ago • 1 comments

Describe the bug When I try to use the ffmpeg example, then ffmpeg always crashes with the following error

[rtmps @ 0x182c130] Cannot open connection tls://live-upload.instagram.com:443
rtmps://live-upload.instagram.com:443/rtmp/XXXXXXXXXX?s_sw=0&s_vt=ig&a=XXXXXXXXXX: Resource temporarily unavailable

I initially tried to run it with fmpeg version 4.1.6-1~deb10u1+rpt2 then I compiled my own newer ffmpeg version 4.4 with --enable-openssl in hopes of fixing it, but sadly nothing. Could this be a problem in the stream key retrieval of itsagramlive or is maybe still something wrong in my ffmpeg setup? Maybe the URL path of Instagram live also changed, I really don't know anymore.

I think it is ssl/tls related but I am not sure how to fix it. Maybe some tls library is too old on my system

To Reproduce Steps to reproduce the behavior:

  1. Run ffmpeg example python script like shown in readme

Expected behavior The stream to be able to start (ffmpeg running)

Environment (please complete the following information):

  • OS: Raspbian GNU/Linux 10 (buster)
  • Python version: 3.7.3

Settings (please complete the following information): No proxy and no two factor in this account

Additional context

The Instagram account I am using is fairly new (created today) but I was able to start a stream from my phone

DavidM42 avatar Jul 29 '21 17:07 DavidM42

On my desktop linux PC with Ubuntu 20.04.1 LTS and ffmpeg ffmpeg version 4.2.4-1ubuntu0.1 it works. So it has to be a problem with the ffmpeg version or some tls library on the OS.

A dist-upgrade of my pi and multiple self-compiles of different newer ffmpeg versions with either --enable-gnutls or --enable-openssl did not fix it sadly

DavidM42 avatar Jul 31 '21 23:07 DavidM42