Results 1 to 4 of 4

Thread: Capturing a stream

  1. #1
    Join Date
    Oct 2011
    Posts
    7

    Default Capturing a stream

    I have a Sercomm camera that supports pushing, although this consists of sending a long stream of media to some URL. I created an HTTProvider to listen to the data, with a filter of *. However, the camera is not sending a proper HTTP message. When the server runs, and the camera sends data, I get:

    02011-10-10 17:24:23,747 [VHostHandler._defaultVHost_.71] DEBUG - open
    02011-10-10 17:24:23,760 [VHostHandler._defaultVHost_.71] INFO  - handshake0: 212
    02011-10-10 17:24:23,832 [VHostHandler._defaultVHost_.73] INFO  - handshake0: 539
    02011-10-10 17:24:23,832 [VHostHandler._defaultVHost_.73] INFO  - handshake0: 589
    02011-10-10 17:24:23,833 [VHostHandler._defaultVHost_.73] INFO  - handshake0: 2037
    02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[1]: length:1948
    02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:412
    02011-10-10 17:24:23,851 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:1860
    02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:3308
    02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:4756
    02011-10-10 17:24:23,852 [VHostHandler._defaultVHost_.73] DEBUG - Handshake[2]: length:6204
    What I would like to do is catch the stream as soon as it is connected, and do the parsing myself. I'm not sure which API calls I can use to do this, since it looks like HTTProviders only handle actual HTTP data. Perhaps some way to hook into the "handshake"? Any suggestions?

  2. #2
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    HTTProvider cannot handle large http post data like this.

    Richard

  3. #3
    Join Date
    Oct 2011
    Posts
    7

    Default

    Is there a recommended way to handle video data that comes in via a large http post?

  4. #4
    Join Date
    Dec 2007
    Posts
    22,013

    Default

    You can install a web server on the same machine to handle uploads

    Richard

Similar Threads

  1. Simultaneously capturing and playing back a live stream
    By eotg_ak in forum Server-side Modules and Code Samples Discussion
    Replies: 4
    Last Post: 03-18-2012, 03:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •