Hi,
I generally have no issues with live streaming Axis IP cameras through Wowza over RTSP and playing the stream on the desktop (RTMP), in Android (HLS) and iOS (HLS). Unfortunately, I have encountered issues lately streaming some of these cameras to iOS. The live stream sometimes plays on iOS, but then stops with an error. Sometimes the streams do not start at all. I also experience similar playback issues playing the HLS stream in VLC. Android seems to have no issue playing the streams.
The only potential issue I’ve been able to identify is that some #EXTINF entries in the chunklist file are small negative numbers, for example: #EXTINF:-0.067,
Wowza version: WowzaMediaServer -> /usr/local/WowzaMediaServer-3.5.2
conf/rtp/Application.xml:
...
<LiveStreamPacketizer>
<Properties>
<Property>
<Name>cupertinoChunkDurationTarget</Name>
<Value>2000</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoMaxChunkCount</Name>
<Value>10</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoPlaylistChunkCount</Name>
<Value>3</Value>
<Type>Integer</Type>
</Property>
<Property>
<Name>cupertinoRepeaterChunkCount</Name>
<Value>3</Value>
<Type>Integer</Type>
</Property>
</Properties>
</LiveStreamPacketizer>
...
Example playlist.m3u8:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=144122,CODECS="avc1.77.30",RESOLUTION=640x480
chunklist.m3u8?wowzasessionid=399343192
Example chunklist.m3u8:
#EXTM3U
#EXT-X-VERSION:3
#EXT-X-ALLOW-CACHE:NO
#EXT-X-TARGETDURATION:5
#EXT-X-MEDIA-SEQUENCE:6
#EXTINF:4.067,
media_6.ts?wowzasessionid=1520963831
#EXTINF:-0.067,
media_7.ts?wowzasessionid=1520963831
#EXTINF:4.066,
media_8.ts?wowzasessionid=1520963831
Apple Media Validator Tool Output:
$ mediastreamvalidator --timeout=15 http://<site>:1935/rtp/_definst_/<stream>/playlist.m3u8
mediastreamvalidator: Beta Version 1.1(130423)
Validating http://<site>:1935/rtp/_definst_/<stream>/playlist.m3u8
Validating child playlist chunklist.m3u8?wowzasessionid=2025878337 [116.91 kbits/sec]
Segment processing interrupted: chunklist.m3u8?wowzasessionid=2025878337 - 8 out of 8 segments processed...
--------------------------------------------------------------------------------
http://<site>:1935/rtp/_definst_/<stream>/playlist.m3u8
--------------------------------------------------------------------------------
Playlist Syntax: OK
Alternate playlist(s):
--------------------------------------------------------------------------------
chunklist.m3u8?wowzasessionid=2025878337
--------------------------------------------------------------------------------
Playlist Syntax:
Error: (-12646:-12264) Negative number in EXTINF
--> #EXTINF:-0.066,
Warning: (0:-12264) extra characters at end of line
--> #EXTINF:-0.066,
Error: (-12646:-12264) Negative number in EXTINF
--> #EXTINF:-0.066,
Warning: (0:-12264) extra characters at end of line
--> #EXTINF:-0.066,
Error: (-12646:-12264) Negative number in EXTINF
--> #EXTINF:-0.066,
Warning: (0:-12264) extra characters at end of line
--> #EXTINF:-0.066,
Segments: OK
Average segment duration: 0.70 seconds
Playlist target bitrate: 116.91 kbits/sec
Segment bitrate: Average: 65.05 kbits/sec, Max: 104.68 kbits/sec
Any ideas?
Thanks,
Dan