Results 1 to 7 of 7

Thread: Smil file sequencing

  1. #1

    Default Smil file sequencing

    I have a large smil file with a weeks worth of entries in the following format :

    <playlist name="VPV_H_2012-09-11_camera" playOnStream="VPV_H" repeat="true" scheduled="2012-09-11 08:00:00">
    <video src="camera-VPV_H.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-11_mp4" playOnStream="VPV_H" repeat="true" scheduled="2012-09-11 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-12_camera" playOnStream="VPV_H" repeat="true" scheduled="2012-09-12 08:00:00">
    <video src="camera-VPV_H.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-12_mp4" playOnStream="VPV_H" repeat="true" scheduled="2012-09-12 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-13_camera" playOnStream="VPV_H" repeat="true" scheduled="2012-09-13 08:00:00">
    <video src="camera-VPV_H.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-13_mp4" playOnStream="VPV_H" repeat="true" scheduled="2012-09-13 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-14_camera" playOnStream="VPV_H" repeat="true" scheduled="2012-09-14 08:00:00">
    <video src="camera-VPV_H.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_H_2012-09-14_mp4" playOnStream="VPV_H" repeat="true" scheduled="2012-09-14 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>


    This is repeated on multiple streams. I have spotted an oddity which I cant explain where right now (20.15) my stream is playing clouds.mp4 and not camera-VPV_H.stream

    There is nothing in the logs to say it should be playing clouds.mp4, in fact the last entry for the playlist shows :

    2012-09-12 18:33:46 GET comment server INFO 200 - ServerListenerStreamPublisher PlayList Item Start: camera-VPV_H.stream - - - 7.223 --- - - - - - - - - - - - - - - - - - - - - - -

    with the last entry for clouds.mp4 being here :

    2012-09-12 07:59:51 GET comment server INFO 200 - Stream.switch[live/_definst_/VPV_H]: index: 0 name:mp4:clouds.mp4 start:0 length:-1 - - -195862.839 - - - - - - - - - - - - - - - - - - - - - --- -


    Notice on the above that 1 says ServerListenerStreamPublisher and the other Stream.switch therefore suggesting something didnt switch on this particular stream at 08.00 to camera-VPV_H.stream

    An example of one that IS working is here :

    <playlist name="VPV_P_2012-09-11_camera" playOnStream="VPV_P" repeat="true" scheduled="2012-09-11 08:00:00">
    <video src="camera-VPV_P.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-11_mp4" playOnStream="VPV_P" repeat="true" scheduled="2012-09-11 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-12_camera" playOnStream="VPV_P" repeat="true" scheduled="2012-09-12 08:00:00">
    <video src="camera-VPV_P.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-12_mp4" playOnStream="VPV_P" repeat="true" scheduled="2012-09-12 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-13_camera" playOnStream="VPV_P" repeat="true" scheduled="2012-09-13 08:00:00">
    <video src="camera-VPV_P.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-13_mp4" playOnStream="VPV_P" repeat="true" scheduled="2012-09-13 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-14_camera" playOnStream="VPV_P" repeat="true" scheduled="2012-09-14 08:00:00">
    <video src="camera-VPV_P.stream" start="-2" length="-1"/>
    </playlist>

    <playlist name="VPV_P_2012-09-14_mp4" playOnStream="VPV_P" repeat="true" scheduled="2012-09-14 23:30:00">
    <video src="mp4:clouds.mp4" start="0" length="-1"/>
    </playlist>

    Looks identical to me and both are generated using the same script.

    I regenerate a weeks worth of playlist entries for my cameras and restart the service each week to pull them in. Is there a limit to the amount of data I can store in a schedule file ?

    Look forward to hearing from you

  2. #2
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    I don't know of any practical limit to size. Can you figure out a simple way to replicate the problem?

    Richard

  3. #3

    Default

    Hi Richard,

    It is strange as it didnt affect all cameras. However since overnight the switch to clouds.mp4 and then back to the live cameras has happened and all are working fine.

    The only thing that did happen yesterday was I restarted Wowza prior to seeing clouds.mp4 at the wrong time, so I am thinking it got confused at load up time and got its sequencing slightly wrong and missed one for that particular stream where it should have been playing the live camera.

    My schedule file right now is from 10-20th September (I cover just over a week to give me a few days to sort anything if the weekly generate of the schedule has a problem I can do something about it)

    Is there a way to make Wowza 're-check' the schedule if I spot something like this? My other thoughts were something along the lines of if there is any way to have a default input for each stream but I dont really like that idea as whichever I pick could potentially be the wrong one, or lastly is there a way to manually force a specific input onto one of the scheduled streams?

  4. #4
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    The schedule example only runs when Wowza starts. You could lift that part into a application module to check and reset the schedule on demand.

    Richard

  5. #5

    Default

    is there any notes for how to do this?

    I also saw another post relating to schedules with past dates loading up all at once which may explain the problem i was having above anyway even though the sequencing still doesnt match up with it.

  6. #6

    Default

    Just had live issue with wowza losing connection to ip webcam. situation is this :

    1) wowza spotted unable to connect to camera

    2012-09-25 16:02:38 GET comment server INFO 200 - MediaStreamMap.removeLiveStreamPacketizer[live/_definst_/camera-MUV_H.stream]: Destroy live stream packetizer: sanjosestreamingpacketizer -- - 6974.827 - - - - - - - - - - -- - - - - - - - - - - - - -
    2012-09-25 16:02:38 GET comment server INFO 200 - MediaStreamMap.removeLiveStreamPacketizer[live/_definst_/MUV_H]: Destroy live stream packetizer: sanjosestreamingpacketizer - - -6974.827 - - - - - - - - - - - - -- - - - - - - - - - - -
    2012-09-25 16:02:39 GET comment server INFO 200 - ModuleMediaCasterStreamMonitorAdvanced.onValidateMediaCaster[live/_definst_] Stream not healthy [stream timeout]: flv:camera-MUV_H.stream -- - 6975.335 - - - - - - - - - - -- - - - - - - - - - - - - -
    2012-09-25 16:02:39 GET comment server INFO 200 - ModuleMediaCasterStreamMonitorAdvanced.onValidateMediaCastersStop[live/_definst_] Reset stream [mediaCaster]: flv:camera-MUV_H.stream - -- 6975.34 - - - - - - - - - - - - -- - - - - - - - - - - -
    2012-09-25 16:02:39 GET comment server INFO 200 - RTPMediaCaster.resetConnection[1054517016:live/_definst_:camera-MUV_H.stream]: - - - 6975.34 - - - - -- - - - - - - - - - - - - - -- - - - -
    2012-09-25 16:02:39 GET comment server INFO 200 - RTPMediaCaster.closeRTPSession[1054517016:live/_definst_:camera-MUV_H.stream] - - - 6975.34 - - - - -- - - - - - - - - - - - - - -- - - - -
    2012-09-25 16:02:39 GET unpublish stream INFO 200 camera-MUV_H.stream - _defaultVHost_ live _definst_ 6970.749 - 80 null 127.0.0.1 rtsp - known 182203113 1767665052 0 109 1348574545426 1767665052 0 camera-MUV_H.stream - - - - - null null - null -
    2012-09-25 16:02:39 GET destroy stream INFO 200 camera-MUV_H.stream - _defaultVHost_ live _definst_ 6970.75 - 80 null 127.0.0.1 rtsp - known 1822031131767665052 0 109 0 1767665052 0 camera-MUV_H.stream - - - -- null null - null -
    2012-09-25 16:02:39 GET comment server INFO 200 - RTPMediaCaster.Reconnector[1054517016:live/_definst_:camera-MUV_H.stream]: start: 2 - - - 6975.341 - - -- - - - - - - - - - - - - - -- - - - - - -

    2) looks like attempting to reset mediacaster stream from above messages

    3) error log confirms problem connecting :

    ERROR server comment 2012-09-25 16:02:39 - - - - - 6975.443 -- - - - - - - MediaCasterConnection.connect: Failed to connect[10.230.23.18:554]: org.apache.mina.common.RuntimeIOException: Failed to get the session[ConnectException: Connection refused].
    WARN server comment 2012-09-25 16:02:39 - - - - - 6975.443 -- - - - - - - RTPSessionDescriptionDataProviderBasic.getStreamInfo: RTSP/RTP re-streaming. Cannot connect to server: rtsp://admin:4321@10.230.23.18:554/profile5/media.smp

    4) mediacaster stream managed to reconnect :

    2012-09-25 16:04:13 GET create stream INFO 200 - - _defaultVHost_ live _definst_ 0.0 - 80 null 127.0.0.1 rtsp - known 822840838 0 0134 0 0 0 camera-MUV_H.stream - - - - - null null -null -
    2012-09-25 16:04:13 GET publish stream INFO 200 camera-MUV_H.stream - _defaultVHost_ live _definst_ 0.002 - 80 null 127.0.0.1 rtsp - known 8228408380 0 134 0 0 0 camera-MUV_H.stream - - - - - null null - null -
    2012-09-25 16:04:13 GET comment server INFO 200 - RTPMediaCaster.Reconnector[1054517016:live/_definst_:camera-MUV_H.stream]: done: 2 - - - 7069.058 - - -- - - - - - - - - - - - - - -- - - - - - -

    5) able to connect and view mediacaster stream using live/camera-MUV_H.stream fine

    6) issue is scheduler stream has not spotted there was problem and camera not working attempting to connect to scheduler stream name live/MUV_H

    This would suggest scheduler streams are not monitored in same way as mediacaster streams? Any way to enable this easily?

  7. #7
    Join Date
    Dec 2007
    Posts
    21,962

    Default

    First, re your earlier posts, I added this yesterday:
    http://www.wowza.com/forums/content....cation-module)

    The MediaCaster monitor is monitoring MediaCaster streams, resetting if necessary. A scheduler (Stream class) stream which might be using a MediaCaster stream as a source is not involved in that.

    Richard

Similar Threads

  1. http(hls) streaming with smil file to refer 1 mp4 file ( multi-cahannels )
    By qstream in forum Video On Demand Streaming Discussion
    Replies: 4
    Last Post: 10-26-2013, 12:52 AM
  2. Can smil file come from external?
    By welbyobeng in forum Video On Demand Streaming Discussion
    Replies: 1
    Last Post: 06-29-2012, 07:43 AM
  3. cannot play SMIL file in STB using ASX file
    By BKCPuttur in forum Server Administration Discussion
    Replies: 3
    Last Post: 12-06-2011, 07:09 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
  •