Opened 10 years ago

Closed 5 years ago

#4136 closed defect (needs_more_info)

Error streaming to Akamai

Reported by: Oren Shalmy Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: librtmp
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

I'm tring to stream an x264 encoded file as RTMP to an Akamai entry point on a Windows machine. I tried both HHTP authentication and LibRTMP authentication. Both fail.


This is the command using HTTP authentication:
c:\ffmpeg\ffmpeg.exe -v debug -re -i C:\folder\file.mp4 -c copy -f flv rtmp://user:password@p.ep12345.i.akamaientrypoint.net/EntryPoint/ffstream_1_1000@12345

This is the command's output:
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument
'debug'.
Reading option '-re' ... matched as option 're' (read input at native frame rate
) with argument '1'.
Reading option '-i' ... matched as input file with argument 'C:\folder\file.mp4'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.

Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'
.
Reading option 'rtmp://user:password@p.ep12345.i.akamaientrypoint.net/EntryPo
int/ffstream_1_1000@12345' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file C:\folder\file.mp4.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: C:\folder\file.mp4
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002c68be0] Format mov,mp4,m4a,3gp,3g2,mj2 prob
ed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002c68be0] ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002c68be0] Before avformat_find_stream_info()
pos: 14448656 bytes read:2061878 seeks:1
[h264 @ 0000000002c79dc0] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002c68be0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002c68be0] After avformat_find_stream_info() p
os: 14584473 bytes read:2192950 seeks:1 frames:26
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\folder\file.mp4':

Metadata:

major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2014-11-03 15:39:59

Duration: 01:17:17.48, start: 0.000000, bitrate: 1290 kb/s

Stream #0:0(eng), 25, 1/25000: Video: h264 (Main) (avc1 / 0x31637661), yuv42

0p, 1024x576 [SAR 1:1 DAR 16:9], 1/50, 1199 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tb
c (default)

Metadata:

handler_name : Telestream Media Handler

Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, ster

eo, fltp, 61 kb/s (default)

Metadata:

handler_name : Telestream Media Handler

Successfully opened the file.
Parsing a group of options: output file rtmp://user:password@p.ep12345.i.akamaientrypoint.net/EntryPoint/ffstream_1_1000@12345.
Applying option c (codec name) with argument copy.
Applying option f (force format) with argument flv.
Successfully parsed a group of options.
Opening an output file: rtmp://user:password@p.ep12345.i.akamaientrypoint.net/EntryPoint/ffstream_1_1000@12345.
Parsing...
Parsed protocol: 0
Parsed host : 147781
Parsed app : EntryPoint
RTMP_Connect0, failed to connect socket. 10051 (Unknown error)
rtmp://user:password@p.ep12345.i.akamaientrypoint.net/EntryPoint/ffstream_1_1000@12345: Unknown error occurred
[AVIOContext @ 0000000002c71440] Statistics: 2192950 bytes read, 1 seeks


This is the LibRTMP command:
c:\ffmpeg\ffmpeg.exe -v debug -re -i C:\folder\file.mp4 -c copy -f flv rtmp://p.ep12345.i.akamaientrypoint.net/EntryPoint flashver=FMLE/3.0\20(compatible;\20FMSc/1.0) live=true pubUser='user' pubPasswd='password' playpath=ffstream_1_1000@12345

This is the full LibRTMP output:
Splitting the commandline.
Reading option '-v' ... matched as option 'v' (set logging level) with argument
'debug'.
Reading option '-re' ... matched as option 're' (read input at native frame rate
) with argument '1'.
Reading option '-i' ... matched as input file with argument 'C:\folder\file.mp4'.
Reading option '-c' ... matched as option 'c' (codec name) with argument 'copy'.

Reading option '-f' ... matched as option 'f' (force format) with argument 'flv'
.
Reading option 'rtmp://p.ep12345.i.akamaientrypoint.net/EntryPoint/' ... matche
d as output file.
Reading option 'flashver=FMLE/3.0\20(compatible;\20FMSc/1.0)' ... matched as out
put file.
Reading option 'live=true' ... matched as output file.
Reading option 'pubUser='user' ... matched as output file.
Reading option 'pubPasswd='password' ... matched as output file.
Reading option 'playpath=ffstream_1_1000@12345' ... matched as output file.
Finished splitting the commandline.
Parsing a group of options: global .
Applying option v (set logging level) with argument debug.
Successfully parsed a group of options.
Parsing a group of options: input file C:\folder\file.mp4.
Applying option re (read input at native frame rate) with argument 1.
Successfully parsed a group of options.
Opening an input file: C:\folder\file.mp4.
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002b7fcc0] Format mov,mp4,m4a,3gp,3g2,mj2 prob
ed with size=2048 and score=100
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002b7fcc0] ISO: File Type Major Brand: mp42
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002b7fcc0] Before avformat_find_stream_info()
pos: 14448656 bytes read:2061878 seeks:1
[h264 @ 0000000002b3fc40] no picture
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002b7fcc0] All info found
[mov,mp4,m4a,3gp,3g2,mj2 @ 0000000002b7fcc0] After avformat_find_stream_info() p
os: 14584473 bytes read:2192950 seeks:1 frames:26
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'C:\folder\file.mp4':

Metadata:

major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
creation_time : 2014-11-03 15:39:59

Duration: 01:17:17.48, start: 0.000000, bitrate: 1290 kb/s

Stream #0:0(eng), 25, 1/25000: Video: h264 (Main) (avc1 / 0x31637661), yuv42

0p, 1024x576 [SAR 1:1 DAR 16:9], 1/50, 1199 kb/s, 25 fps, 25 tbr, 25k tbn, 50 tb
c (default)

Metadata:

handler_name : Telestream Media Handler

Stream #0:1(und), 1, 1/44100: Audio: aac (mp4a / 0x6134706D), 44100 Hz, ster

eo, fltp, 61 kb/s (default)

Metadata:

handler_name : Telestream Media Handler

Successfully opened the file.
Parsing a group of options: output file rtmp://p.ep12345.i.akamaientrypoint.net
/EntryPoint/.
Applying option c (codec name) with argument copy.
Applying option f (force format) with argument flv.
Successfully parsed a group of options.
Opening an output file: rtmp://p.ep12345.i.akamaientrypoint.net/EntryPoint/.
Parsing...
Parsed protocol: 0
Parsed host : p.ep12345.i.akamaientrypoint.net
Parsed app : EntryPoint
RTMP_Connect1, ... connected, handshaking
HandShake: Type Answer : 03
HandShake: Server Uptime : 439291169
HandShake: FMS Version : 4.5.5.1
HandShake: Handshaking finished....
RTMP_Connect1, handshaked
RTMP_SendPacket: fd=440, size=121

0000: 03 00 00 00 00 00 79 14 00 00 00 00 ......y.....
0000: 02 00 07 63 6f 6e 6e 65 63 74 00 3f f0 00 00 00 ...connect.?....
0010: 00 00 00 03 00 03 61 70 70 02 00 0a 45 6e 74 72 ......app...Entr
0020: 79 50 6f 69 6e 74 00 04 74 79 70 65 02 00 0a 6e yPoint..type...n
0030: 6f 6e 70 72 69 76 61 74 65 00 05 74 63 55 72 6c onprivate..tcUrl
0040: 02 00 33 72 74 6d 70 3a 2f 2f 70 2e 65 70 31 33 ..3rtmp://p.ep12
0050: 34 37 30 36 2e 69 2e 61 6b 61 6d 61 69 65 6e 74 345.i.akamaient
0060: 72 79 70 6f 69 6e 74 2e 6e 65 74 2f 45 6e 74 72 rypoint.net/Entr
0070: 79 50 6f 69 6e 74 00 00 09 yPoint...

Invoking connect
RTMP_ReadPacket: fd=440

0000: 02 00 00 00 00 00 04 05 00 00 00 00 ............
0000: 00 13 12 d0 ....

HandleServerBW: server BW = 1250000
RTMP_ReadPacket: fd=440

0000: 02 00 00 00 00 00 05 06 00 00 00 00 ............
0000: 00 13 12 d0 02 .....

HandleClientBW: client BW = 1250000 2
RTMP_ReadPacket: fd=440

0000: 02 00 00 00 00 00 04 01 00 00 00 00 ............
0000: 00 00 04 00 ....

HandleChangeChunkSize, received: chunk size change to 1024
RTMP_ReadPacket: fd=440

0000: 03 00 00 00 00 00 94 14 00 00 00 00 ............
0000: 02 00 06 5f 65 72 72 6f 72 00 3f f0 00 00 00 00 ..._error.?.....
0010: 00 00 05 03 00 05 6c 65 76 65 6c 02 00 05 65 72 ......level...er
0020: 72 6f 72 00 04 63 6f 64 65 02 00 1e 4e 65 74 43 ror..code...NetC
0030: 6f 6e 6e 65 63 74 69 6f 6e 2e 43 6f 6e 6e 65 63 onnection.Connec
0040: 74 2e 52 65 6a 65 63 74 65 64 00 0b 64 65 73 63 t.Rejected..desc
0050: 72 69 70 74 69 6f 6e 02 00 12 43 6f 6e 6e 65 63 ription...Connec
0060: 74 69 6f 6e 20 66 61 69 6c 65 64 2e 00 0b 61 70 tion failed...ap
0070: 70 6c 69 63 61 74 69 6f 6e 03 00 03 6d 73 67 02 plication...msg.
0080: 00 0c 42 61 64 20 72 65 71 75 65 73 74 21 00 00 ..Bad request!..
0090: 09 00 00 09 ....

RTMP_ClientPacket, received: invoke 148 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: Connection failed.>
Property: <Name: application, OBJECT>
(object begin)
Property: <Name: msg, STRING: Bad request!>
(object end)
(object end)
(object end)
HandleInvoke, server invoking <_error>
HandleInvoke, received error for method call <connect>
HandleInvoke, error description: Connection failed.
RTMP_ReadPacket: fd=440

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>
rtmp server requested close
rtmp://p.ep12345.i.akamaientrypoint.net/EntryPoint/: Unknown error occurred
[AVIOContext @ 0000000002b77f80] Statistics: 2192950 bytes read, 1 seeks


ffmpeg version N-66521-g3edb9aa
built on Sep 27 2014 22:10:25 with gcc 4.9.1 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avis
ynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable
-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --en
able-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmo
dplug --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb
--enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger
--enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enab
le-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis -
-enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-li
bx265 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 54. 7.101 / 54. 7.101
libavcodec 56. 1.101 / 56. 1.101
libavformat 56. 7.101 / 56. 7.101
libavdevice 56. 1.100 / 56. 1.100
libavfilter 5. 1.102 / 5. 1.102
libswscale 3. 1.100 / 3. 1.100
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 1.100 / 53. 1.100


Thank you,
Oren

Change History (1)

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegundetermined
Keywords: librtmp added; stream LibRTMP Akamai removed
Resolution: needs_more_info
Status: newclosed
Note: See TracTickets for help on using tickets.