1. Post #1
    Gold Member
    runtime's Avatar
    December 2005
    1,124 Posts
    I'm trying to setup a small home survailance system where I can login to an interface and stream a feed from an IP camera I have on the network. The interface is sitting on my network with the correct firewall permissions to allow HTTP access to it and works great, but the IP webcam - although sitting on the same network - does not have the firewall rules to allow direct access to it from an external interface. To this end, any external users from the web cannot see my webcam feed as they are not on the same subnet as the IP webcam.

    The webcam streams to an ASF file which is available via its own HTTP server. I have tried to find ways to stream this via PHP (so the stream would go through my HTTP interface *before* being streamed to the users browser) but I have no idea how to go about doing this. If anyone has any pointers, I would be very appreciative.

  2. Post #2
    duno's Avatar
    October 2007
    375 Posts
    PHP shouldn't be used to handle data like that. Python or something even more low level like c running on a computer or server would do.

  3. Post #3
    Gold Member
    runtime's Avatar
    December 2005
    1,124 Posts
    PHP shouldn't be used to handle data like that. Python or something even more low level like c running on a computer or server would do.
    That unfortunately was what I concluded after writing this post, and was out of the question to implement.

    I have worked around this however. The application I was developing was to be used internally to provide a simple web interface for webcam monitoring. As I could not stream ASF directly through PHP due to several reasons I instead built a small script that would get a "snapshot" from the webcam every second, and save it to a publicly viewable directory. I just used plain HTML to show that image, and a simple meta refresh to update it every second. So, a 1fps feed. Not perfect, but considering the client was myself and the webcam was monitoring my cats, it does the job perfectly.
    Reply With Quote Edit / Delete Reply Windows 7 United Kingdom Show Events Funny Funny x 5 (list)

  4. Post #4
    graymic's Avatar
    September 2005
    138 Posts
    Could always try it in Java, I suppose. not that I'm a fan of Java though.
    Reply With Quote Edit / Delete Reply Mac United Kingdom Show Events Agree Agree x 1 (list)

  5. Post #5
    Gold Member
    runtime's Avatar
    December 2005
    1,124 Posts
    Could always try it in Java, I suppose. not that I'm a fan of Java though.
    Neither am I. The JVM would be too resource hungry for the application I'm using it for, sadly..