Results 1 to 5 of 5

Thread: IP Camera ffmpeg

  1. #1
    Join Date
    Jul 2014
    Posts
    46
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default IP Camera ffmpeg

    I've researched a lot on the internet on this subject but am unable to find a solution.
    My camera information:

    Image Url : "http://192.168.0.12:8080/snapshot.cgi?user=admin&pwd="

    Using this Url, I made use of the QNetworkAccessManager and I am able to get continous images on my QLabel.
    But this way is ineffective if I have to do continuous monitoring of say 4 cameras. I cannot have every second update of each camera and display it on seperate QLabels.

    So now I want to get the videostream on my QLabel or QWebView or whatever way is possible.
    Some research on the internet told me that this is possible through ffmpeg.
    So now I've got ffmpeg up and running. I have made basic programs like format conversion.
    Also tried html video on my QWebView. Everything is working fine.
    Everything except a way to get my IP Camera stream.

    Video Url : "http://admin@192.168.0.12:8080/videostream.cgi?user=admin&pwd="

    Please help me find a way.
    Thanks.
    Last edited by antweb; 2nd April 2015 at 12:01.

  2. #2
    Join Date
    Oct 2009
    Posts
    483
    Thanked 97 Times in 94 Posts
    Qt products
    Qt4 Qt5
    Platforms
    Unix/X11 Windows

    Default Re: IP Camera ffmpeg

    The first thing you need to figure out is the format of this 'stream'. IIRC QtMultimedia has support for streamed media. See if you can load the stream in a QMediaContent and play it in a QMediaPlayer.

  3. #3
    Join Date
    Jul 2014
    Posts
    46
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: IP Camera ffmpeg

    It's a mjpeg stream!
    Last edited by antweb; 2nd April 2015 at 12:18.

  4. #4
    Join Date
    Jul 2014
    Posts
    46
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default Re: IP Camera ffmpeg

    I have a rtsp camera as well. If someone can guide me it would be a great help!

  5. #5
    Join Date
    Jul 2014
    Posts
    46
    Thanks
    5
    Qt products
    Qt4 Qt/Embedded
    Platforms
    Windows

    Default ffplay in Qt

    I have a rtsp camera. I am able to view it using ffplay through the Linux terminal.
    Any way I can view it on a Qt widget?

Similar Threads

  1. QAudioOutput + FFMPEG
    By Biberbaer in forum Qt Programming
    Replies: 4
    Last Post: 16th January 2015, 17:28
  2. Replies: 0
    Last Post: 1st July 2013, 08:59
  3. How to get ffmpeg output
    By linuxoid in forum Newbie
    Replies: 2
    Last Post: 15th March 2012, 16:06
  4. Using ffmpeg as built in lib
    By Alir3z4 in forum Qt Programming
    Replies: 2
    Last Post: 16th June 2011, 07:25
  5. Ffmpeg?
    By nthung in forum Qt Programming
    Replies: 1
    Last Post: 10th June 2010, 11:17

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.