Results 1 to 4 of 4

Thread: publish rtmp with user id and password

  1. #1
    Join Date
    Jun 2012
    Posts
    20

    Default publish rtmp with user id and password

    Hi,

    I gave the following to use the user id and password so that we can give a demo for a remote user to publish his stream
    1) I tried Flash media live encoder. It connects to the server using user name nad password but when we test using longtail flash player
    we dont see any output. We tried to disable the username and password but it still fails.

    2) can u let us know how to pass user name and password using ffmpeg


    ffmpeg -i priest.mp4 -c:v libx264 -b:v 512k -s 640x360 -c:a copy -f flv "rtmp://localhost/tv/livestream?myuser&mypassword"
    but it doesnt connect.
    May be same problem here also
    Couldnt find any eg for rtmp .

    I am attaching the application xml file
    George


    <Root>
    <Application>
    <!-- Uncomment to set application level timeout values
    <ApplicationTimeout>60000</ApplicationTimeout>
    <PingTimeout>12000</PingTimeout>
    <ValidationFrequency>8000</ValidationFrequency>
    <MaximumPendingWriteBytes>0</MaximumPendingWriteBytes>
    <MaximumSetBufferTime>60000</MaximumSetBufferTime>
    <MaximumStorageDirDepth>25</MaximumStorageDirDepth>
    -->
    <Connections>
    <AutoAccept>true</AutoAccept>
    <AllowDomains></AllowDomains>
    </Connections>
    <!--
    StorageDir path variables

    ${com.wowza.wms.AppHome} - Application home directory
    ${com.wowza.wms.ConfigHome} - Configuration home directory
    ${com.wowza.wms.context.VHost} - Virtual host name
    ${com.wowza.wms.context.VHostConfigHome} - Virtual host config directory
    ${com.wowza.wms.context.Application} - Application name
    ${com.wowza.wms.context.ApplicationInstance} - Application instance name

    -->
    <Streams>
    <StreamType>live</StreamType>
    <StorageDir>${com.wowza.wms.context.VHostConfigHome}/content</StorageDir>
    <KeyDir>${com.wowza.wms.context.VHostConfigHome}/keys</KeyDir>
    <!-- LiveStreamPacketizers (separate with commas): cupertinostreamingpacketizer, smoothstreamingpacketizer, sanjosestreamingpacketizer, cupertinostreamingrepeater, smoothstreamingrepeater, sanjosestreamingrepeater -->
    <LiveStreamPacketizers></LiveStreamPacketizers>
    <!-- DVRPacketizers (separate with commas): dvrpacketizer -->
    <DVRPacketizers></DVRPacketizers>
    <!-- Properties defined here will override any properties defined in conf/Streams.xml for any streams types loaded by this application -->
    <Properties>



    </Properties>
    </Streams>
    <!-- HTTPStreamers (separate with commas): cupertinostreaming, smoothstreaming, sanjosestreaming -->
    <HTTPStreamers>cupertinostreaming,smoothstreaming,sanjosestreaming</HTTPStreamers>
    <!-- DVRStores (separate with commas): dvrfilestorage -->
    <DVRStores></DVRStores>
    <SharedObjects>
    <StorageDir></StorageDir>
    </SharedObjects>
    <Client>
    <IdleFrequency>-1</IdleFrequency>
    <Access>
    <StreamReadAccess>*</StreamReadAccess>
    <StreamWriteAccess>*</StreamWriteAccess>
    <StreamAudioSampleAccess></StreamAudioSampleAccess>
    <StreamVideoSampleAccess></StreamVideoSampleAccess>
    <SharedObjectReadAccess>*</SharedObjectReadAccess>
    <SharedObjectWriteAccess>*</SharedObjectWriteAccess>
    </Access>
    </Client>
    <RTP>
    <!-- RTP/Authentication/[type]Methods defined in Authentication.xml. Default setup includes; none, basic, digest -->
    <Authentication>
    <PublishMethod>digest</PublishMethod>
    <PlayMethod>none</PlayMethod>
    </Authentication>
    <!-- RTP/AVSyncMethod. Valid values are: senderreport, systemclock, rtptimecode -->
    <AVSyncMethod>senderreport</AVSyncMethod>
    <MaxRTCPWaitTime>12000</MaxRTCPWaitTime>
    <IdleFrequency>75</IdleFrequency>
    <RTSPSessionTimeout>90000</RTSPSessionTimeout>
    <RTSPMaximumPendingWriteBytes>0</RTSPMaximumPendingWriteBytes>
    <RTSPBindIpAddress></RTSPBindIpAddress>
    <RTSPConnectionIpAddress>0.0.0.0</RTSPConnectionIpAddress>
    <RTSPOriginIpAddress>127.0.0.1</RTSPOriginIpAddress>
    <IncomingDatagramPortRanges>*</IncomingDatagramPortRanges>
    <!-- Properties defined here will override any properties defined in conf/RTP.xml for any depacketizers loaded by this application -->
    <Properties>
    </Properties>
    </RTP>
    <MediaCaster>
    <!-- Properties defined here will override any properties defined in conf/MediaCasters.xml for any MediaCasters loaded by this applications -->
    <Properties>
    </Properties>
    </MediaCaster>
    <MediaReader>
    <!-- Properties defined here will override any properties defined in conf/MediaReaders.xml for any MediaReaders loaded by this applications -->
    <Properties>
    </Properties>
    </MediaReader>
    <MediaWriter>
    <!-- Properties defined here will override any properties defined in conf/MediaWriter.xml for any MediaWriter loaded by this applications -->
    <Properties>
    </Properties>
    </MediaWriter>
    <LiveStreamPacketizer>
    <!-- Properties defined here will override any properties defined in conf/LiveStreamPacketizers.xml for any LiveStreamPacketizers loaded by this applications -->
    <Properties>
    </Properties>
    </LiveStreamPacketizer>
    <HTTPStreamer>
    <!-- Properties defined here will override any properties defined in conf/HTTPStreamers.xml for any HTTPStreamer loaded by this applications -->
    <Properties>
    </Properties>
    </HTTPStreamer>
    <DVRPacketizer>
    <!-- Properties defined here will override any properties defined in conf/DVR.xml for any DVRPacketizer loaded by this applications -->
    <Properties>
    </Properties>
    </DVRPacketizer>
    <DVRStore>
    <!-- Properties defined here will override any properties defined in conf/DVR.xml for any DVRStore loaded by this applications -->
    <Properties>
    </Properties>
    </DVRStore>
    <Repeater>
    <OriginURL></OriginURL>
    <QueryString><![CDATA[]]></QueryString>
    </Repeater>
    <Modules>
    <Module>
    <Name>base</Name>
    <Description>Base</Description>
    <Class>com.wowza.wms.module.ModuleCore</Class>
    </Module>

    <Module>
    <Name>properties</Name>
    <Description>Properties</Description>
    <Class>com.wowza.wms.module.ModuleProperties</Class>
    </Module>
    <Module>
    <Name>logging</Name>
    <Description>Client Logging</Description>
    <Class>com.wowza.wms.module.ModuleClientLogging</Class>
    </Module>
    <Module>
    <Name>flvplayback</Name>
    <Description>FLVPlayback</Description>
    <Class>com.wowza.wms.module.ModuleFLVPlayback</Class>
    </Module>
    <Module>
    <Name>ModuleRTMPAuthenticate</Name>
    <Description>ModuleRTMPAuthenticate</Description>
    <Class>com.wowza.wms.plugin.security.ModuleRTMPAuthenticate</Class>
    </Module>
    </Modules>
    <!-- Properties defined here will be added to the IApplication.getProperties() and IApplicationInstance.getProperties() collections -->
    <Properties>

    </Properties>
    </Application>
    </Root>

  2. #2

    Default

    It looks like your RTMP URL is using the SecureURLParms QueryString syntax, but you don't have that module loaded: http://www.wowza.com/forums/content....-password-file

    For "regular" RTMP and RTSP authentication use this syntax: rtmp://username:password@wowzaserver/app/streamname

    Also, put -re before -i in your ffmpeg command when input is a VOD file, so it gets streamed at the expected data rate.
    Last edited by randall; 10-11-2012 at 08:51 AM.

  3. #3
    Join Date
    Jun 2012
    Posts
    20

    Default

    I tried:
    root@localhost:~/Videos# ffmpeg -re -i priest.mp4 -c:v libx264 -b:v 512k -s 640x360 -c:a copy -f flv "rtmp://myuser:mypassword@localhost/tv/livestream"
    and got error while sending to wowza
    Problem accessing the DNS. (addr: myuser)
    rtmp://myuser:mypassword@localhost/tv/livestream: Unknown error occurred
    I tried FMLE also and it accepts user id and password but stream doesnt work.

    >>>It looks like your RTMP URL is using the SecureURLParms syntax, but you don't have that module loaded: ModuleSecureURLParams-Security-for-Publishing
    Why do u say this.. I used ffmpeg and fmle to do this as per above syntax but it doesnt work.
    I want to give user id and password to the client to test their stream instead of we doing it...
    Last edited by cochin007; 07-20-2012 at 05:12 AM.

  4. #4

    Default

    FMLE works with the ModuleRTMPAuthenticate. You can try to troubleshoot why it's not working.

    FFmpeg might not work with that module. You should be able to use ModuleSecureURLParams with both encoders.

Similar Threads

  1. rtmp user and password
    By kalser in forum General Forum
    Replies: 4
    Last Post: 04-05-2014, 07:59 AM
  2. How to publish live streaming with publish.password file?
    By divyat in forum Live Streaming and Encoder Discussion
    Replies: 1
    Last Post: 11-17-2012, 09:09 AM
  3. connect.password vs. publish.password - protecting upstream
    By riverjack in forum Server Administration Discussion
    Replies: 3
    Last Post: 06-15-2012, 05:00 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •