Wowza Community

"The operation could not be completed" message on ipad

Hi

I studied the following guide for live streaming and make all the changes in files described here in the guide:

https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtmp-based-encoder

I am using ffmpeg as encoder and the command is:

ffmpeg -f dshow -i video=“UScreenCapture” -c:v libx264 -b:v 150k -analyzeduration 0 -pix_fmt yuv420p -profile:v baseline -f flv rtmp://192.168.17.128:1935/live/videoName

When I am trying to playback the stream, it is playing well in flash rtmp player but when I am trying to play it in Apple iOS device I am getting following alert message and stream in not playing:

“The operation could not be completed”

Please provide the solution.

Thanks

Take a look at these examples for reference:

https://www.wowza.com/docs/how-to-use-ffmpeg-with-wowza-media-server-mpeg-ts

Try adding “-level 2.1” And you might want to set -g (gop) to 60, something reasonable. Wowza breaks chunks on key frames, so a very long gop could be the problem

I don’t see any audio, so shouldn’t be an issue.

Richard

That indicates a very low FPS, 1 or 2fps, because Flash RTMP player likes about 60 frames before it starts playback. The long packetizing time for iOS fits this too. Try adding “-r 30”.

Also, the -g setting is more likely to be 60 where -r is 30 (for a 2 second key frame frequency), for example. I was giving example values for fps in previous post (which I will edit)

Two things to look at:

  1. Open the Wowza access log. Find the x-event “publish” associated with this stream, then step through the Cupertino packetizer messages. You will see a lot detailed info about the audio and video codec of the stream.

  2. Download and look at the chunklist:

http://[wowza-address]/live/videoname/chunklist.m3u8
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-TARGETDURATION:12
#EXT-X-MEDIA-SEQUENCE:1
#EXTINF:10.208,
media_1.ts?wowzasessionid=1807468460
#EXTINF:12.334,
media_2.ts?wowzasessionid=1807468460
#EXTINF:3.045,
media_3.ts?wowzasessionid=1807468460
#EXT-X-ENDLIST

You can see the chunk duration (#EXTINF), and with this info you can download a .ts chunk:

http://[wowza-address]/live/videoname/media_1.ts?wowzasessionid=1807468460

That can playback in VLC.

Also, for testing purposes, the Wowza cupertino stream will play in VLC.

Richard

Thanks Richard for your quick response.

I apply your solution but It is not solving my problem.

I want to write more findings, hope it will help us to find the problem.

The initial playback time (time to display first picture in player screen) in flash rtmp player is very high (about 1-2 minutes long) but this player does not throw an error and start playback. On other hand in case of Apple ios device if stream is already started to server from last 1-2 minutes and then I invoke safari it start playing stream but if I invoke safari with in 1 minute(approx) after sending stream to server it throws error and does not start playback.

Thanks