Wowza Community

Client to Wowza connection stability problem (vlc/ffmpeg) (rtsp/rtmp)

Hi,

I made a live stream as you adviced.

I use rtmp from ffmpeg to wowza, and it’s seems to be stable.

If I connect to wowza by vlc with rtsp://…:1395… , it sometimes disconnects. But if I connect with rtmp://… it always disconnect after about 30 sec.

If I connect by ffmpeg with rtsp://…:1935… , it also disconnects sooner or later (max 1 hour). It says “Last message repeated 2659 times” and “missing picture in access unit”. If I connect with rtmp://… it’s seems to be stable. I’ve run a test for 1.5 hour.

my ffmpeg commands:

ffmpeg -r 30 -i rtsp://<server>:1935/live/teststream?tcp -vcodec libx264 -r 30 -vpre libx264-lossless_fast -f matroska kimenet.mkv
ffmpeg -r 30 -f flv -i rtmp://<server>:1935/live/teststream?tcp -vcodec libx264 -r 30 -vpre libx264-lossless_fast -f matroska kimenet.mkv

If I connect with rtmp, I always wait more than half minute before start play/decode.

Ffmpeg with rtsp start fast. Vlc with rtsp also slower.

Server with wowza has public IP, Encoder is behind firewall, Client is behind another firewall.

I want use ffmpeg after tests, but I don’t know if these problems is normal? Should I change some options in ffmpeg and/or wowza to make it more stable?

Hi biroati,

What’s giving you the “missing picture” error? ffmpeg, right? Usually that means a problem with the file.

You should try using the example files included with Wowza.

Here’s some encoding suggestions for creating VOD files: https://www.wowza.com/docs/how-to-encode-video-on-demand-content

Play around with that and see if it helps.

x264 give “missing picture in access unit” error, in decoder ffmpeg.

I need live stream, I’ve a program which give the frames to encoder ffmpeg.

So is the problem that the input too slow from wowza? Should I set up a buffer or something on encoder side? Or in wowza?

Now my program give the frames in every 33 millisec, and I set ffmpeg “-r” property to 30 on both side.

I’ve run my last test for 2.8 hour. At the end, ffmpeg wrote this row:

frame=273319 fps= 27 q=-1.0 Lsize= 1643414kB time=10170.43 bitrate=1323.7kbits/s dup=0 drop=1

I recode the stream to an mkv file.

It says the speed of process is only 27 fps. Is that the problem?

Now I removed the “-re” property from the encoder ffmpeg command.

I hope it’ll help.

I’ve run my last test for 2.8 hour. At the end, ffmpeg wrote this row:

frame=273319 fps= 27 q=-1.0 Lsize= 1643414kB time=10170.43 bitrate=1323.7kbits/s dup=0 drop=1

I recode the stream to an mkv file.

It says the speed of process is only 27 fps. Is that the problem?

solved by

Now I removed the “-re” property from the encoder ffmpeg command.

I hope it’ll help.