Skip to content

Instantly share code, notes, and snippets.

@kepstin
Created May 4, 2012 19:15
Show Gist options
  • Save kepstin/2597109 to your computer and use it in GitHub Desktop.
Save kepstin/2597109 to your computer and use it in GitHub Desktop.
Trace of HTTP put to ew-stream-server
== Info: About to connect() to localhost port 8080 (#0)
== Info: Trying 127.0.0.1... == Info: connected
=> Send header, 250 bytes (0xfa)
0000: 50 55 54 20 2f 70 75 73 68 20 48 54 54 50 2f 31 PUT /push HTTP/1
0010: 2e 31 0d 0a 55 73 65 72 2d 41 67 65 6e 74 3a 20 .1..User-Agent:
0020: 63 75 72 6c 2f 37 2e 32 32 2e 30 20 28 78 38 36 curl/7.22.0 (x86
0030: 5f 36 34 2d 70 63 2d 6c 69 6e 75 78 2d 67 6e 75 _64-pc-linux-gnu
0040: 29 20 6c 69 62 63 75 72 6c 2f 37 2e 32 32 2e 30 ) libcurl/7.22.0
0050: 20 4f 70 65 6e 53 53 4c 2f 31 2e 30 2e 31 20 7a OpenSSL/1.0.1 z
0060: 6c 69 62 2f 31 2e 32 2e 33 2e 34 20 6c 69 62 69 lib/1.2.3.4 libi
0070: 64 6e 2f 31 2e 32 33 20 6c 69 62 72 74 6d 70 2f dn/1.23 librtmp/
0080: 32 2e 33 0d 0a 48 6f 73 74 3a 20 6c 6f 63 61 6c 2.3..Host: local
0090: 68 6f 73 74 3a 38 30 38 30 0d 0a 41 63 63 65 70 host:8080..Accep
00a0: 74 3a 20 2a 2f 2a 0d 0a 54 72 61 6e 73 66 65 72 t: */*..Transfer
00b0: 2d 45 6e 63 6f 64 69 6e 67 3a 20 63 68 75 6e 6b -Encoding: chunk
00c0: 65 64 0d 0a 43 6f 6e 74 65 6e 74 2d 54 79 70 65 ed..Content-Type
00d0: 3a 61 70 70 6c 69 63 61 74 69 6f 6e 2f 6f 67 67 :application/ogg
00e0: 0d 0a 45 78 70 65 63 74 3a 20 31 30 30 2d 63 6f ..Expect: 100-co
00f0: 6e 74 69 6e 75 65 0d 0a 0d 0a ntinue....
<= Recv header, 23 bytes (0x17)
0000: 48 54 54 50 2f 31 2e 31 20 31 30 30 20 43 6f 6e HTTP/1.1 100 Con
0010: 74 69 6e 75 65 0d 0a tinue..
<= Recv header, 37 bytes (0x25)
0000: 44 61 74 65 3a 20 46 72 69 2c 20 30 34 20 4d 61 Date: Fri, 04 Ma
0010: 79 20 32 30 31 32 20 31 39 3a 31 31 3a 32 39 20 y 2012 19:11:29
0020: 47 4d 54 0d 0a GMT..
<= Recv header, 19 bytes (0x13)
0000: 43 6f 6e 74 65 6e 74 2d 4c 65 6e 67 74 68 3a 20 Content-Length:
0010: 30 0d 0a 0..
=> Send data, 134 bytes (0x86)
0000: 38 30 0d 0a 4f 67 67 53 00 02 00 00 00 00 00 00 80..OggS........
0010: 00 00 11 32 26 85 00 00 00 00 7c fb 46 81 01 2a ...2&.....|.F..*
0020: 80 74 68 65 6f 72 61 03 02 01 00 28 00 17 00 02 .theora....(....
0030: 80 00 01 68 00 08 00 00 00 18 00 00 00 01 00 00 ...h............
0040: 01 00 00 01 00 03 0d 40 00 d0 4f 67 67 53 00 02 [email protected]..
0050: 00 00 00 00 00 00 00 00 4b 12 72 6a 00 00 00 00 ........K.rj....
0060: 9c b3 c8 57 01 1e 01 76 6f 72 62 69 73 00 00 00 ...W...vorbis...
0070: 00 02 80 bb 00 00 00 00 00 00 00 00 00 00 00 00 ................
0080: 00 00 bb 01 0d 0a ......
=> Send data, 3303 bytes (0xce7)
0000: 63 65 30 0d 0a 4f 67 67 53 00 00 00 00 00 00 00 ce0..OggS.......
0010: 00 00 00 11 32 26 85 01 00 00 00 25 70 4e 60 0e ....2&.....%pN`.
0020: 33 ff ff ff ff ff ff ff ff ff ff ff ff 90 81 74 3..............t
0030: 68 65 6f 72 61 0c 00 00 00 4c 61 76 66 35 34 2e heora....Lavf54.
0040: 33 2e 31 30 30 01 00 00 00 14 00 00 00 65 6e 63 3.100........enc
0050: 6f 64 65 72 3d 4c 61 76 66 35 34 2e 33 2e 31 30 oder=Lavf54.3.10
0060: 30 82 74 68 65 6f 72 61 be cd 28 f7 b9 cd 6b 18 0.theora..(...k.
0070: b5 a9 49 4a 10 73 9c e6 31 8c 52 94 a4 21 08 31 ..IJ.s..1.R..!.1
0080: 8c 62 10 84 21 08 40 00 00 00 00 00 00 00 00 00 .b..!.@.........
0090: 11 6d ae 53 67 92 c8 fc 56 12 fc 78 39 5b 6c e6 .m.Sg...V..x9[l.
00a0: 2a f5 68 ab 54 28 13 29 24 5a 10 fe 79 39 9b 8d *.h.T(.)$Z..y9..
00b0: 66 53 09 78 b2 55 29 93 89 24 82 19 08 7c 3c 1d fS.x.U)..$...|<.
00c0: 8e 06 a3 41 80 bc 56 2a 14 09 04 62 21 08 7c 3c ...A..V*...b!.|<
00d0: 1c 0c 86 02 c1 40 88 38 15 16 da e5 36 79 2c 8f [email protected],.
00e0: c5 61 2f c7 83 95 b6 ce 62 af 56 8a b5 42 81 32 .a/.....b.V..B.2
00f0: 92 45 a1 0f e7 93 99 b8 d6 65 30 97 8b 25 52 99 .E.......e0..%R.
0100: 38 92 48 21 90 87 c3 c1 d8 e0 6a 34 18 0b c5 62 8.H!......j4...b
0110: a1 40 90 46 22 10 87 c3 c1 c0 c8 60 2c 14 08 83 [email protected]"......`,...
0120: 81 40 b0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 .@..............
0130: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ................
0140: f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 f0 ................
##
## <trim a bunch of encoded video data>
##
=> Send data, 5 bytes (0x5)
0000: 30 0d 0a 0d 0a 0....
<= Recv header, 17 bytes (0x11)
0000: 48 54 54 50 2f 31 2e 31 20 32 30 30 20 4f 4b 0d HTTP/1.1 200 OK.
0010: 0a .
<= Recv header, 2 bytes (0x2)
0000: 0d 0a ..
== Info: Connection #0 to host localhost left intact
== Info: Closing connection #0
##
## At this point, the ew-stream-server prints out the following messages:
##
push PUT
User-Agent: curl/7.22.0 (x86_64-pc-linux-gnu) libcurl/7.22.0 OpenSSL/1.0.1 zlib/1.2.3.4 libidn/1.23 librtmp/2.3
Host: localhost:8080
Accept: */*
Transfer-Encoding: chunked
Content-Type: application/ogg
Expect: 100-continue
Fri, 04 May 2012 15:11:31 -0400: push_stream: start
( fdsrc fd=19 name=src ! oggdemux name=demux ! queue ! rtptheorapay name=pay0 pt=96 demux. ! queue ! rtpvorbispay name=pay1 pt=97 )
(lt-ew-stream-server:31546): GLib-GObject-WARNING **: invalid (NULL) pointer instance
(lt-ew-stream-server:31546): GLib-GObject-CRITICAL **: g_signal_emit_by_name: assertion `G_TYPE_CHECK_INSTANCE (instance)' failed
pipeline: fdsrc name=src do-timestamp=true ! oggparse name=parse ! queue ! multifdsink sync=false time-min=200000000 recover-policy=keyframe unit-type=2 units-max=20000000000 units-soft-max=11000000000 sync-method=burst-keyframe burst-unit=2 burst-value=3000000000 name=sink
Fri, 04 May 2012 15:11:31 -0400: push_stream: end of stream
Fri, 04 May 2012 15:11:31 -0400: push_stream: stop
Fri, 04 May 2012 15:11:36 -0400: push_stream: start
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment