Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8713185
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:16:56+00:00 2026-06-13T05:16:56+00:00

I am working on a project which streams video/audio through RTSP using VLC Media

  • 0

I am working on a project which streams video/audio through RTSP using VLC Media Player plugin. I would like to provide an option to scan the network for RTSP cameras. I’m sure this will consist of querying a list of all network devices, and testing for port 554. All this I can take care of. However, once I have gotten this far, how do I test the device through port 554 to make sure it’s a valid RTSP camera?

I’m assuming there should be something in Winsock to be able to do this, but how should I test a socket connection and make sure it’s a valid RTSP stream which I can connect to? Whatever method is used, I shouldn’t have to attempt to connect via RTSP to each using any sort of authentication, I’m looking for a lower-level way of determining if the port 554 is actually providing an RTSP stream.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:16:59+00:00Added an answer on June 13, 2026 at 5:16 am

    There is no reliable way to scan network for available RTSP streams. You can still do a great searching considering the following:

    1. For best findings (as opposed to speed) you will need to do a brute force search on available addresses, that is checking adapeter addresses and masks, generating addresses and trying one by one in multiple threads (or async sockets)
    2. You will want port 554 and/or provided by user interactively; real devices (which a hundreds of models) might be using different ports, even with default settings
    3. You can put more likely candidates onto top of the IP address list by searching network for real addresses using UPnP, ZeroConf
    4. Having specific vendors/models in mind you can also implement vendor-specific searches, which typically involve sending broadcast UDP message and listening for response
    5. OPTIONS RTSP command should be good enough for a test, you can use interactive RTSP tool to see how it works. There are no guarantees of any kind anyways since devices might require that you authenticate.

    You have most chances with OPTIONS to receive back anything meaningful anyway. DESCRIBE might already require that you log in, you might have to authenticate even for OPTIONS. Still you have RTSP response that assumes that something exists over there.

    Connection to 192.168.0.59:554 using TCP
    
    OPTIONS * RTSP/1.0
    CSeq: 1
    
    RTSP/1.0 401 Unauthorized
    CSeq: 1
    Date: Tue, Oct 16 2012 22:22:53 GMT
    WWW-Authenticate: Basic realm="RTSP/RTP stream"
    

    To issue a successful DESCRIBE command and receive meaningful results, you need to know resource URI on the device which is not always obvious. Better vendors (who are obviously a minority) support incoming requests flexibly, other assume the client is aware of device specific. For example,

    Connection to 192.168.0.59:554 using TCP
    
    OPTIONS * RTSP/1.0
    CSeq: 1
    
    RTSP/1.0 200 OK
    CSeq: 1
    Date: Tue, Oct 16 2012 22:26:54 GMT
    Public: OPTIONS, DESCRIBE, SETUP, TEARDOWN, PLAY, PAUSE
    
    DESCRIBE rtsp://192.168.0.59/ch0_unicast_secondstream RTSP/1.0
    CSeq: 2
    Accept: application/sdp
    
    RTSP/1.0 200 OK
    CSeq: 2
    Date: Tue, Oct 16 2012 22:27:22 GMT
    Content-Base: rtsp://192.168.0.59/ch0_unicast_secondstream/
    Content-Type: application/sdp
    Content-Length: 506
    
    v=0
    o=- 1350426392586736 1 IN IP4 192.168.0.59
    s=Session of second stream
    i=Second Codec Stream
    t=0 0
    a=tool:LIVE555 Streaming Media v2007.08.03
    a=type:broadcast
    a=control:*
    a=range:npt=0-
    a=x-qt-text-nam:Session of second stream
    a=x-qt-text-inf:Second Codec Stream
    m=video 0 RTP/AVP 26
    c=IN IP4 0.0.0.0
    a=control:track1
    m=audio 0 RTP/AVP 97
    c=IN IP4 0.0.0.0
    a=rtpmap:97 PCMU/16000
    a=control:track2
    m=metadata 0 RTP/AVP 98
    c=IN IP4 0.0.0.0
    a=rtpmap:98 METADATA/64000
    a=control:track3
    
    DESCRIBE rtsp://192.168.0.59 RTSP/1.0
    CSeq: 3
    Accept: application/sdp
    
    RTSP/1.0 404 Stream Not Found
    CSeq: 3
    Date: Tue, Oct 16 2012 22:27:29 GMT
    

    Note that without knowing magic ch0_unicast_secondstream you don’t get anything making much sense from the device.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a project which will require some form validation, which I'm using
I am working on a project which is using MPEG2 codec for decoding of
Can anyone help me find an up-to-date, working ATL project which has a main
Iam working on a project which involves writing a Mork File (Mork is a
I'm working on a project which contains several slave nodes and one master node.
I'm working on a project which involves two processes, let them be A and
I started working on a project which uses Net_URL_Mapper from PEAR (php) as the
I'm working on a project which needs to use youtube api. The html and
I am working on a project which lists file sharing urls from the likes
I am working on a project which uses OsmAnd for the maps. I am

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.