[FFmpeg-user] Facebook Live API ( RTMPS )
Micael Silva
micaelsilva at gmail.com
Wed May 15 22:54:56 EEST 2019
On Wed, May 15, 2019 at 10:27 AM Michalis Odysseos <mikeodysseos at gmail.com>
wrote:
> Hi Micael,
>
> Here's the full command output:
>
> PS C:\Users\m.odysseos> ffmpeg -i $(youtube-dl -f 300 -g
> >> https://www.youtube.com/watch?v=f2qdBkB91ec) -acodec aac -vcodec
> libx264
> >> -f flv rtmps://
> live-api-s.facebook.com:443/rtmp/10161625305460332?s_bl=1
> >> "&"s_ps=1"&"s_sml=0"&"s_sw=0"&"s_vt=api-s"&"a=AbyPgttRibOTTpnE
> >
> > ffmpeg version N-93855-g21832b93d5 Copyright (c) 2000-2019 the FFmpeg
> >> developers
> >
> > built with gcc 8.3.1 (GCC) 20190414
> >
> > configuration: --enable-gpl --enable-version3 --enable-sdl2
> >> --enable-fontconfig --enable-gnutls --enable-iconv --enable-libass
> >> --enable-libdav1d --enable-libbluray --enable-libfreetype
> >> --enable-libmp3lame --enable-libopencore-amrnb
> --enable-libopencore-amrwb
> >> --enable-libopenjpeg --enable-libopus --enable-libshine
> --enable-libsnappy
> >> --enable-libsoxr --enable-libtheora --enable-libtwolame --enable-libvpx
> >> --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265
> >> --enable-libxml2 --enable-libzimg --enable-lzma --enable-zlib
> --enable-gmp
> >> --enable-libvidstab --enable-libvorbis --enable-libvo-amrwbenc
> >> --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom
> >> --enable-libmfx --enable-amf --enable-ffnvcodec --enable-cuvid
> >> --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2
> >> --enable-avisynth --enable-libopenmpt
> >
> > libavutil 56. 27.100 / 56. 27.100
> >
> > libavcodec 58. 52.101 / 58. 52.101
> >
> > libavformat 58. 27.103 / 58. 27.103
> >
> > libavdevice 58. 7.100 / 58. 7.100
> >
> > libavfilter 7. 51.100 / 7. 51.100
> >
> > libswscale 5. 4.101 / 5. 4.101
> >
> > libswresample 3. 4.100 / 3. 4.100
> >
> > libpostproc 55. 4.100 / 55. 4.100
> >
> > [hls @ 0000015b33399440] Opening '
> >>
> https://r3---sn-f58xn2xxq-aj5l.googlevideo.com/videoplayback/id/f2qdBkB91ec.0/itag/300/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D298/hls_chunk_host/r3---sn-f58xn2xxq-aj5l.googlevideo.com/playlist_type/DVR/ei/NhPcXNSJCMTH1waCzb_oBg/gcr/cy/initcwndbps/7880/mm/32/mn/sn-f58xn2xxq-aj5l/ms/lv/mv/m/pl/20/keepalive/yes/mt/1557926608/disable_polymer/true/ip/213.133.80.242/ipbits/0/expire/1557948310/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/50ABE34537D187D9192CF0AB5F1916A0CC585A72.4278E5198D75861A389F013E4994FA7108A70C7B/key/dg_yt0/playlist/index.m3u8/sq/8291/goap/clen%3D44173%3Blmt%3D1557910122108144/govp/clen%3D443567%3Blmt%3D1557910122108151/dur/2.000/file/seg.ts
> '
> >> for reading
> >
> > [hls @ 0000015b33399440] Opening '
> >>
> https://r3---sn-f58xn2xxq-aj5l.googlevideo.com/videoplayback/id/f2qdBkB91ec.0/itag/300/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D298/hls_chunk_host/r3---sn-f58xn2xxq-aj5l.googlevideo.com/playlist_type/DVR/ei/NhPcXNSJCMTH1waCzb_oBg/gcr/cy/initcwndbps/7880/mm/32/mn/sn-f58xn2xxq-aj5l/ms/lv/mv/m/pl/20/keepalive/yes/mt/1557926608/disable_polymer/true/ip/213.133.80.242/ipbits/0/expire/1557948310/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/50ABE34537D187D9192CF0AB5F1916A0CC585A72.4278E5198D75861A389F013E4994FA7108A70C7B/key/dg_yt0/playlist/index.m3u8/sq/8292/goap/clen%3D44059%3Blmt%3D1557910122108154/govp/clen%3D380570%3Blmt%3D1557910122108161/dur/2.000/file/seg.ts
> '
> >> for reading
> >
> > Input #0, hls, from '
> >>
> https://manifest.googlevideo.com/api/manifest/hls_playlist/id/f2qdBkB91ec.0/itag/300/source/yt_live_broadcast/requiressl/yes/ratebypass/yes/live/1/goi/160/sgoap/gir%3Dyes%3Bitag%3D140/sgovp/gir%3Dyes%3Bitag%3D298/hls_chunk_host/r3---sn-f58xn2xxq-aj5l.googlevideo.com/playlist_type/DVR/ei/NhPcXNSJCMTH1waCzb_oBg/gcr/cy/initcwndbps/7880/mm/32/mn/sn-f58xn2xxq-aj5l/ms/lv/mv/m/pl/20/dover/11/keepalive/yes/mt/1557926608/disable_polymer/true/ip/213.133.80.242/ipbits/0/expire/1557948310/sparams/ip,ipbits,expire,id,itag,source,requiressl,ratebypass,live,goi,sgoap,sgovp,hls_chunk_host,playlist_type,ei,gcr,initcwndbps,mm,mn,ms,mv,pl/signature/50ABE34537D187D9192CF0AB5F1916A0CC585A72.4278E5198D75861A389F013E4994FA7108A70C7B/key/dg_yt0/playlist/index.m3u8
> >> ':
> >
> > Duration: N/A, start: 16581.994667, bitrate: N/A
> >
> > Program 0
> >
> > Metadata:
> >
> > variant_bitrate : 0
> >
> > Stream #0:0: Audio: aac (LC) ([15][0][0][0] / 0x000F), 48000 Hz,
> >> stereo, fltp
> >
> > Metadata:
> >
> > variant_bitrate : 0
> >
> > Stream #0:1: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
> >> 1280x720 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 90k tbn, 120 tbc
> >
> > Metadata:
> >
> > variant_bitrate : 0
> >
> > [rtmps @ 0000015b3469eac0] Cannot open connection tls://
> >> live-api-s.facebook.com:443
> >
> > rtmps://
> >>
> live-api-s.facebook.com:443/rtmp/10161625305460332?s_bl=1&s_ps=1&s_sml=0&s_sw=0&s_vt=api-s&a=AbyPgttRibOTTpnE
> :
> >> Resource temporarily unavailable
> >
> >
> The same command works perfectly when I run it on Ubuntu on Windows 10.
>
> Best regards
>
> On Wed, 15 May 2019 at 15:23, Micael Silva <micaelsilva at gmail.com> wrote:
>
> > On Wed, May 15, 2019 at 3:33 AM Michalis Odysseos <
> mikeodysseos at gmail.com>
> > wrote:
> >
> > > Hi all,
> > >
> > > Feels a bit weird to be addressing everyone in the email list but if
> this
> > > is how it's done I will get used to it :)
> > >
> > > My issue with the latest build (as well as the 4.1.3) is that I cannot
> > > stream to RTMPS, as per the new requirements of Facebook Live API. I
> know
> > > it can be done with other software, but I would never have the
> > flexibility
> > > of FFMPEG :) Also because I use it together with youtube-dl.
> > >
> > > I don't know if I'm missing something, since it works on my Mac. When I
> > run
> > > the same command on Powershell I get an error. Then I proceeded with
> > using
> > > a different command, something much simpler and I got the same
> > > error message, so I thought maybe is a bug of ffmpeg builds for
> windows?
> > >
> > > Sample command:
> > > ffmpeg -i $(youtube-dl -f 300 -g
> > > https://www.youtube.com/watch?v=Ioi8gJsYwaI)
> > > -acodec aac -vcodec libx264 -f flv rtmps://
> > > live-api-s.facebook.com:443/rtmp/......
> > >
> > > Error:
> > >
> > > [rtmps @ 000001e8583ef4c0] Cannot open connection tls://
> > > live-api-s.facebook.com:443
> > > rtmps://
> > >
> > >
> >
> live-api-s.facebook.com:443/rtmp/10161625965950332?s_bl=1&s_sml=0&s_sw=0&s_vt=api-s&a=AbwOTS-GzuT7YMrU
> > > :
> > > Resource temporarily unavailable
> > >
> > > Best Regards
> > > Mike
> > >
> > >
> > Please provide full command output
>
>
At first look seems that the compilation you're trying to use isn't
compiled with OpenSSL but with GnuTLS. I don't know if there is any issue
with GnuTLS and the new Facebook RTMPS endpoint but worth check if the
versions you tried on Mac and Linux uses OpenSSL and narrow down the issue.
More information about the ffmpeg-user
mailing list