Results 1 to 5 of 5

Thread: ffmpeg publish rtmp with authentication

  1. #1
    Join Date
    Dec 2011
    Posts
    6

    Default ffmpeg publish rtmp with authentication

    Hi,

    I am trying to publish to a wowza server from ffmpeg using this command:

    ffmpeg -re -i sample.mp4 -c:v copy -c:a copy -f flv rtmp://user:pass@mywowzaserver/myapp/mystream

    I get an error connecting: RTMP_connect0 failed to connect socket (uknown error)


    Any gues what i am doing wrong? I checked to connect with fmle using the same url and credentials and that works fine

    Thanks

  2. #2

    Default

    Try it using this syntax: rtmp://username:password@wowzaserver/app/streamname.

    If it still doesn't work can you post the contents of your Application.xml file?

    Salvadore

  3. #3
    Join Date
    Dec 2011
    Posts
    6

    Default

    Hi,

    I tried it without the credentials: ffmpeg -re -i sample.mp4 -c:v copy -c:a copy -f flv rtmp://wowzaserver/app/streamname
    and removing the following authentication module in the application.xml:

    <Module>
    <Name>ModuleRTMPAuthenticate</Name>
    <Description>ModuleRTMPAuthenticate</Description>
    <Class>com.wowza.wms.plugin.security.ModuleRTMPAuthenticate</Class>
    </Module>

    Without the authentication it works fine, so i think the ffmpeg rtmp module does not support authentication or is the way i authenticate wrong?

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

    Default

    You can use Wowza SecureURLParams instead in this case.

    I'm not exactly sure if or how you can get RTMP authentication working with Wowza, this FFmpeg thread got it working against the FMS version, which might work with Wowza, but I'm not sure

    Richard

  5. #5
    Join Date
    Dec 2011
    Posts
    6

    Default

    Thanks!

    I am now able to secure the publishing stream with the SecureURLParams like this:
    ffmpeg -re -i sample.mp4 -c:v copy -c:a copy -f flv rtmp://wowzaserver/app?doPublish=12345/streamname

Similar Threads

  1. Replies: 1
    Last Post: 09-22-2014, 02:49 AM
  2. RTMP authentication, RTSP authentication => problem
    By nvanhaute1 in forum Server Administration Discussion
    Replies: 4
    Last Post: 11-09-2011, 03: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
  •