[FFmpeg-user] librtmp with authentication

Todd Poole tpoole at mail.com
Sun Nov 17 13:25:35 CET 2013


Andrew
I just recently jointed the users group and came across your post. I am having this problem, just wanted to see if you ever got a fix.
Thanks
Todd Poole




Hi,

Has anyone had recent success using the librtmp (--enable-librtmp) to
authenticate with an Adobe Media Server when pushing a stream?

I have it compiling in OK and running but I am getting an authentication
error.

./ffmpeg -f lavfi -i smptebars -c:v libx264 -b:v 500k -an -f flv 'rtmp://
p.ep130468.i.akamaientrypoint.net/EntryPointflashver=FMLE/3.0\20(compatible;\20FMSc/1.0)
live=true
pubUser='userremoved' pubPasswd='passwordremoved' playpath=event_1 at 130468  <http://ffmpeg.org/mailman/listinfo/ffmpeg-user>'
-loglevel debug
ffmpeg version N-54152-g730e07f Copyright (c) 2000-2013 the FFmpeg
developers
   built on Jul 24 2013 16:08:47 with Apple LLVM version 4.2
(clang-425.0.28) (based on LLVM 3.2svn)
   configuration: --enable-gpl --enable-version3 --enable-nonfree
--enable-postproc --enable-libaacplus --enable-libcelt --enable-libfaac
--enable-libfdk-aac --enable-libfreetype --enable-libmp3lame
--enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg
--enable-openssl --enable-libopus --enable-libschroedinger
--enable-libspeex --enable-libtheora --enable-libvo-aacenc
--enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxvid
--enable-libvidstab --prefix=/usr/local --enable-librtmp --cc=clang
   libavutil      52. 37.101 / 52. 37.101
   libavcodec     55. 16.100 / 55. 16.100
   libavformat    55.  9.100 / 55.  9.100
   libavdevice    55.  2.100 / 55.  2.100
   libavfilter     3. 77.101 /  3. 77.101
   libswscale      2.  3.100 /  2.  3.100
   libswresample   0. 17.102 /  0. 17.102
   libpostproc    52.  3.100 / 52.  3.100


Here is a relevant example from my logs without giving passwords out.

RTMP_ClientPacket, received: invoke 158 bytes
(object begin)
Property: <Name:           no-name., STRING: _error>
Property: <Name:           no-name., NUMBER: 1.00>
Property: NULL
Property: <Name:           no-name., OBJECT>
(object begin)
Property: <Name:              level, STRING: error>
Property: <Name:               code, STRING: NetConnection.Connect.Rejected>
Property: <Name:        description, STRING: [ AccessManager.Reject ] : [
authmod=adobe ] : ?reason=authfailed>
(object end)
(object end)
HandleInvoke, server invoking <_error>
HandleInvoke, received error for method call <connect>
HandleInvoke, error description: [ AccessManager.Reject ] : [ authmod=adobe
] : ?reason=authfailed
PublisherAuth, Authentication failed: wrong password
RTMP_ReadPacket: fd=3
   0000:  03 00 00 00 00 00 12 14  00 00 00 00               ............

   0000:  02 00 05 63 6c 6f 73 65  00 00 00 00 00 00 00 00
...close........
   0010:  00 05                                              ..

RTMP_ClientPacket, received: invoke 18 bytes
(object begin)
Property: <Name:           no-name., STRING: close>
Property: <Name:           no-name., NUMBER: 0.00>
Property: NULL
(object end)
HandleInvoke, server invoking <close>

Now I am quite sure all the properties are correct as I can connect with
Flash Media Live Encoder OK. I do have packet captures of both if anyone
thinks they might be able to assist or point me in the direction to patch.

Thanks,
Andrew

-- 
Todd Poole


More information about the ffmpeg-user mailing list