Wowza Community

Use login credentials with avconv

This is not exactely a wowza query , but any workaround in wowza to achieve this would also be appreciated.

avconv should according to documentation (e.g https://wiki.libav.org/Snippets/avconv) be able to send in the format ftmp://username:password@serverip/live/streamname

However I get this fault when using that format :

/usr/bin/avconv -i rtsp://10.7.59.2:554/live2.sdp -vcodec copy -acodec copy -f flv rtmp://gym:mypasswordhere@myserverip/live/streamname

avconv version 9.14-6:9.14-1rpi1rpi1, Copyright © 2000-2014 the Libav developers

built on Jul 22 2014 15:08:12 with gcc 4.6 (Debian 4.6.3-14+rpi1)

[rtsp @ 0x14ed580] Unimplemented RTP/JPEG restart marker header.

Last message repeated 2600 times Last message repeated 2280 times

[rtsp @ 0x14ed580] max_analyze_duration reached

[rtsp @ 0x14ed580] Estimating duration from bitrate, this may be inaccurate

Guessed Channel Layout for Input Stream #0.1 : mono

Input #0, rtsp, from ‘rtsp://10.7.59.2:554/live2.sdp’:

Metadata:

title : RTSP/RTP stream 2 from DCS-5222LB

comment : live2.sdp with v2.0

Duration: N/A, start: 0.000000, bitrate: N/A

Stream #0.0: Video: mjpeg, 90k tbn

Stream #0.1: Audio: pcm_mulaw, 8000 Hz, mono, s16, 64 kb/s

Problem accessing the DNS. (addr: gym)

rtmp://gym:mypasswordhere@myiphere:/live/streamname: Unknown error occurred

Same probem with dashes around rtmp://… Any suggestions ? With ffmpeg this format works.

Hi,

I’m not sure about avconv, but I know it’s very similar to ffmpeg.

With FFMPEG you need to use the secureURLparams module in Wowza Streaming Engine

along with a commandline similar to this:

 ffmpeg -re -i sample.mp4 -c:v copy -c:a copy -f flv rtmp://wowzaserver/app?doPublish=12345/streamname

There are some more details to be found at this FFMPEG forum thread.

Daren