Results 1 to 6 of 6

Thread: Restreaming video from IP camera programatically

  1. #1
    Join Date
    Apr 2014
    Posts
    8

    Post Restreaming video from IP camera programatically

    Hi,

    I am newbie here. What i am trying to do is to restream video from ip camera. I followed the steps mentioned in this url(http://www.wowza.com/forums/content.php?39) and as mentioned i am able to restream using .stream file.

    What i am looking for is to programmatically do the same?
    My scenario is like this, i have a web application which maps camera and its rtsp url to a database. Some thing like
    cam1->rtsp://xx.xxx.xxxxx/xxx
    cam2->rtsp://xx.xxx.xxxxx/xxx
    and my client players use camera name(cam1, cam2) as an alias to actual stream. So what i want is, when a client request for a stream with alias name i want to fetch corresponding rtsp url from database and start the stream.

    I followed the steps mentioned in this link(http://www.wowza.com/forums/content....der2-interface) overriding all resolve*() methods returning rtsp url corresponding to alias name. But streams never got published and played.

    Can you guys please guide me on how to do this?

    Regards,
    Sujil

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

    Default

    Sujil,

    You also need to start the streams, either in StartUpStreams.xml, or you can use the MediaCaster API in the IMediaStreamNameAliasProvider2.resolvePlayAlias() methods.

    Richard

  3. #3
    Join Date
    Apr 2014
    Posts
    8

    Default

    Richard,

    I tried to use MediaCaster API in IMediaStreamNameAliasProvider2.resolvePlayAlias() methods. While debugging i got below error

    ERROR server comment - MediaCasterStreamMap.acquire: Can't find MediaCaster definition for stream type: live

    Can you please let me know how to resolve this error?

    Regards,
    Sujil C

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

    Default

    Sujil,

    The MediaCaster type you want to use is "rtp". You can also use "rtp-record" to also record the whole stream. Other MediaCaster types (but that are not relevant to you in this case) are shoutcast and liverepeater.

    Richard

  5. #5
    Join Date
    Apr 2014
    Posts
    8

    Default

    Changing MediaCaster type to rtp worked.

    Thanks a lot.

  6. #6
    Join Date
    Apr 2014
    Posts
    8

    Default

    Thanks Richard.

    Changing MediaCasterType to rtp worked.

Similar Threads

  1. got a problem with restreaming from IP-Camera(RTSP)
    By daneliau in forum Live Streaming and Encoders
    Replies: 1
    Last Post: 03-17-2014, 06:31 AM
  2. Axis camera restreaming problem
    By mortez28 in forum General Forum
    Replies: 1
    Last Post: 07-08-2013, 08:01 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
  •