Results 1 to 3 of 3

Thread: Receiving Streaming frames

  1. #1
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Receiving Streaming frames

    Hi,

    I have a IP camera that I want to get the frames that it streams.
    I'm able to get one frame using QNetworkAccesManager using a Url request and receiving the image on a QNetworkReply. Using this method I can use a timer to poll the camera.
    Now I configured the camera to send the image every second to my computer IP(unicast sending). The problem is that I don't know how to get the image as QNetworkReply gets me.

    Thanks,
    Òscar Llarch i Galán

  2. #2
    Join Date
    Mar 2009
    Location
    Brisbane, Australia
    Posts
    7,729
    Thanks
    13
    Thanked 1,610 Times in 1,537 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows
    Wiki edits
    17

    Default Re: Receiving Streaming frames

    We don't have any idea what your camera is doing either. I would guess that it is one of:
    1. Send an HTTP get that triggers the camera to start. The camera holds open the connection and keeps sending images. This would show a a QNetworkReply that did not finish but kept issuing signals as more data arrives. You would have to know how to seprate images.
    2. Send an HTTP get that triggers the camera to start. Each HTTP return contains a "refresh" meta tag. You then program to refetch the page on the requested period.
    3. Use a UDP listening socket and handle the proprietary stream that you (might) receive.

    My money is on option 3 but your guess is almost certainly better informed than ours.

  3. The following user says thank you to ChrisW67 for this useful post:

    ^NyAw^ (29th May 2012)

  4. #3
    Join Date
    Jan 2006
    Location
    Sta. Eugènia de Berga (Vic - Barcelona - Spain)
    Posts
    869
    Thanks
    70
    Thanked 59 Times in 57 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: Receiving Streaming frames

    Hi,

    Thanks for your reply. I used option 1. I used wireshark to decrypt what the camera is sending and it sends what you explained in your first approach.
    I used "readyRead" signal to get every frame(parsing the received data).

    Thanks,
    Òscar Llarch i Galán

Similar Threads

  1. Can't see frames around widgets
    By paie in forum Newbie
    Replies: 3
    Last Post: 11th August 2011, 14:11
  2. slide of frames
    By vinayaka in forum Newbie
    Replies: 3
    Last Post: 18th July 2011, 06:50
  3. Camera Frames in UI
    By Johncdy in forum Qt Programming
    Replies: 1
    Last Post: 14th March 2011, 02:03
  4. Move Frames
    By Slewman in forum Qt Programming
    Replies: 2
    Last Post: 13th October 2009, 14:03
  5. Frames connection
    By cuios in forum Newbie
    Replies: 6
    Last Post: 23rd March 2009, 18:08

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.