Figure out support for RTMP Streaming

  • I am also extremely interested in RTMP streaming, and I will be attempting to add this functionality very soon.
    I am new to flex, but I simply must have this feature, and will do everything possible to implement it.

    Klaus, can you please send me the source code, and provide some basic pointers of where to start?

    Can RTMP playback be achieved by modifying the videoplayer plugin only?

  • I am pleased to attach an update to the videoplayer.swf file that includes support for RTMP streaming (thank you Klaus!). *thumbsup*

    *attention* Use this at your own risk. It works, but has not been extensively tested, and is not supported by either Klaus or myself. *attention*

    How to use it:

    1. Back-up your existing videoplayer.swf plugin
    2. Unzip the attached file (videoplayer.zip) into the plugins folder.
    3. In your application .xml file, set the 'videourl' property of the videoplayer plugin/hotspot to the fully-qualified RTMP stream MRL, e.g.:
    videourl="rtmp://streaming_server/application/stream"
    (4. Modify your streaming server settings if necessary - see update below)

    Note: for live streams set 'buffertime=0'

    A properly tested and improved version of the videoplayer plugin with RTMP functionality should appear in the next krpano release - thank you Klaus!

    Regards,

    Fred.

    Update 1st March 2012:

    If you are experiencing playback problems (no video) when using an RTMP stream as the main pano, or as a distorted hotspot, then you will need to modify the Application.xml file of the streaming application on your media server:

    Flash Media Server:

    <Application>
    <Client>
    <Access>
    <AudioSampleAccess enabled="true">/</AudioSampleAccess>
    <VideoSampleAccess enabled="true">/</VideoSampleAccess>

    </Access>
    </Client>
    </Application>

    Wowza Media Server:

    <Application>
    <Client>
    <Access>
    <StreamVideoSampleAccess>*</StreamVideoSampleAccess>
    <SharedObjectReadAccess>*</SharedObjectReadAccess>

    </Access>
    </Client>
    </Application>

    This change allows krpano to sample raw video/audio data from the stream, which is required for rendering to the pano layer, or to a distorted hotspot.
    If the Application.xml file does not exist, create it.

    If you are using another streaming server, you need to look up how to enable raw video/audio sampling for that server.
    If your stream is hosted by someone else (e.g. Influxis), ask them to enable video/audio sample access.
    If you can't change this setting, then you can only use RTMP streams in non-pano plugins or non-distorted hotspots.

    The long and boring explanation for this behaviour is that when krpano renders the panorama (and a distorted hotspot video), it directly accesses the sample data from the input video stream. By default, RTMP servers are configured to prevent this behaviour in order to make copying/modification more difficult. So when you try to use your live stream as the panorama source (or as a distorted hotspot), the player connects to the server, but the request for pixel access to the stream is denied, and only a blank screen is displayed. I am not sure how to detect this from the videoplayer.swf file, otherwise I would have added an error message.

    Thanks to forum member lab, for identifying this problem.

  • Hi, i m testing wowza.

    it looks working fine on live.html example /i have rtsm and stream/

    it shows camera on normal page with live transmission.

    then... i try to create sample pano with xml:


    <hotspot name="video"
    url="videoplayer.swf"
    videourl="rtmp://mywowzaip/live/camera.stream"
    ath="12"
    atv="10"
    scale="0.5"
    rx="0" ry="0" rz="0"
    distorted="true"
    pausedonstart="false"
    loop="true"
    volume="0.7"
    directionalsound="true"
    range="120"
    onclick="togglepause();"
    buffertime="0"
    />


    then... i load it.. and i see no player at all... when i press "o" i see:


    INFO: Connected successfully to server
    INFO: rtmp server = rtmp://this is my ip wowza/live/
    INFO: rtmp stream =camera.stream
    INFO: Connected successfully to server

    -----------

    and thats all...

    i tried rtsp on vlc and its working, i tried rtmp on flash wowza example player and its working..

    i add wowza example file : in Access:

    <StreamVideoSampleAccess>*</StreamVideoSampleAccess>
    <SharedObjectReadAccess>*</SharedObjectReadAccess>

    no other changes in Application.xml in WOWZA /all default/

    any clues?

  • Hi Pavka,

    Some things to try:

    1.) Have you tried playing the stream as a non-pano plugin? If it works OK, then the Wowza XML settings have probably not been applied correctly?

    2.) Did you restart Wowza / streaming-application after changing the XML?

    3.) Are you sure the video is in a format supported by Flash player (e.g. H.264 encoded mp4)?

    I admit that the output log is not very helpful here because it does not diagnose stream issues. However it does indicate that the server url is correct and the stream URL is correct, and that the videoplayer has connected successfully. I think the most likely explanation is either the stream access issue, or the video format is not readable in Flash.

    Regards,

    Fred.

  • Need some help i signed up for a free trial at http://www.serverroom.us/ using there 5 day free trail http://www.serverroom.us/flashmediaserverhosting
    And we have tried to stream a video from Adobe Live encoder into krpano player now the problem i have is

    If i plug Krpano player into Local Adobe flash media server and live encoder i can get the player to show the video as needed
    BUt when i then change the coding to point at serverroom server all i get is a black screen.
    I need to see if anyone has used serverroom before and knows what config needs to be changed i did make the changes suggested and rebooted server but no luck at all.
    I can confirm the video is playing fine as i can test this using another player.

  • I talked to serverroom and you cannot enable sample access on a trial account, so you will not be able to use the stream as the pano or as a distorted hotspot. I am waiting for a response as to whether it is possible to adjust the sample access settings with a paid account.

  • Thanks for checking this out for me fredp let me know how u go. Unless somebody else new a good host we could use for rtmp they could recommend or suggest.
    or if somebody had a account we could piggy back off to test live streaming our Ladybug setup

  • The trial account with serverroom is shared between trial users, and therefore serverroom does not allow users to configure the Application.xml. However, I have asked them to change the default settings to allow sample access and hopefully this will happen in the next few days. If you sign up for a dedicated FMS instance with serverroom (or any other stream hosting site) then you will have complete control over the application settings and can enable sample access yourself (as well as host your own video! *smile* ).

  • This is the code we are using for our xml when doing basically just a blank screen but when pressing o
    i can see this INFO: krpano 1.0.8.15 (build 2012-10-05)
    INFO: Flashplayer WIN 11.4.402.287 PlugIn
    INFO: registered to: ****
    INFO: rtmp server = rtmp://http://aaron3.srfms.com/live/
    INFO: rtmp stream =live.flv
    INFO: rtmp server = rtmp://http://aaron3.srfms.com/live/
    INFO: rtmp stream =live.flv
    INFO: Connected successfully to server
    INFO: Connected successfully to server
    INFO: Server Connection closed
    INFO: Server Connection closed

    The Closed connection happened when i restarted the vhost so we can see its correctly commucating with the host.

    I also get this on the live log
    Accepted a connection from IP:101.165.8.***, referrer: http://www.****.com/testcode/http://krpano.swf/[[DYNAMIC]]/1/[[DYNAMIC]]/4, pageurl: http://www.****.com/testcode/
    Accepted a connection from IP:101.165.8.***, referrer: http://www.****.com/testcode/http://krpano.swf/[[DYNAMIC]]/1/[[DYNAMIC]]/3, pageurl: http://www.****.com/testcode/
    Accepted a connection from IP:101.165.8.***, referrer: , pageurl:
    Accepted a connection from IP:101.165.8.2***,, referrer: , pageurl:
    Any advise would be great thanks


    <krpano>
    <plugin name="video" url="videoplayer.swf" videourl="rtmp://http://aaron3.srfms.com/live/live.flv" buffertime="0" />
    <image>
    <sphere url="plugin:video" />
    </image>
    <hotspot name="videospot"
    url="videoplayer.swf"
    alturl="videoplayer.js"
    videourl="rtmp://http://aaron3.srfms.com/live/live.flv"
    posterurl=""
    distorted="false"
    ath="0"
    atv="0"
    edge="center"
    scale="1.0"
    rx="0"
    ry="0"
    rz="0"
    loop="false"
    pausedonstart="false"
    directionalsound="true"
    range="200"
    volume="0.7"
    onclick="togglepause();"
    />
    </krpano>


    Any help on this would be great all i get atm is blank screen on m y jplayer reading same rtmp host i can see its working and but once in krpano just blank.
    If anyone knows or suggests another host they know works would be great.

  • Hello All.
    I have a question about the broadcast of live video 360.

    Can I broadcast by video in the SDP(Prototsol Session Description) for player KrPano.

    CDN that I'm testing distributes broadcast in the following format:

    ConnectURL: rtmp :/ / aloha.cdnvideo.ru / aloha-live
    Stream: fedya.sdp

    When you start the player an error ERROR: SecurityError: Error # 2123


    Can somebody tell CDN that can be easily configured to work with a video broadcast on the player KrPano?


    Fedor.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!