Wowza Community

Wowza plus Cloudfront Singed Url Issue

Hi Team,

I have followed below article to setup Wowza with Cloudfront.

https://www.wowza.com/docs/how-to-integrate-your-wowza-ec2-instance-with-cloudfront

I have created two distribution at Cloudfront. One with signed url and one without singed url.

Cloudfront distribution where signed url is disabled, HLS stream is working fine.

However Cloudfront distribution where signed url is enabled, HLS stream is not working and giving below error at VLC. Cloudfront auth is getting passed successfully.

Your input can’t be opened:

VLC is unable to open the MRL ‘http://d1tne0kka6flci.cloudfront.net/vodhttporigin/sample.mp4/chunklist.m3u8’. Check the log for details.

Your input can’t be opened:

VLC is unable to open the MRL ‘http://d1tne0kka6flci.cloudfront.net/vodhttporigin/sample.mp4/chunklist.m3u8’. Check the log for details.

Your input can’t be opened:

VLC is unable to open the MRL ‘http://d1tne0kka6flci.cloudfront.net/vodhttporigin/sample.mp4/chunklist.m3u8’. Check the log for details.

Logs: Cloudfront distribution where signed url is disabled.

2016-05-14 18:17:57 UTC comment server INFO 200 - ServerListenerEC2Variables#ApplicationInstanceNotify.onApplicationInstanceCreate[vodhttporigin/definst]: Auto-set application RTSP addresses: internal[bind]:10.164.5.239 external[origin,connection]:54.254.110.139 - - - 300488.964 – - - - - - - - - - - - - - - - - - - - - – -

2016-05-14 18:17:57 UTC app-start application INFO 200 definst vodhttporigin/definst - - - 300488.968 – - - - - - - - - - - - - - - - - - - - - – -

2016-05-14 18:17:57 UTC comment server INFO 200 - HTTPStreamerApplicationContextBase.init[vodhttporigin/definst]: HTTP Streamer is in origin mode: HTTPStreamerApplicationContextCupertinoStreamer - - - 300488.968 - - - - - - - - – - - - - - - - - - - - - - - -

2016-05-14 18:17:57 UTC connect cupertino INFO 200 1515061230 - defaultVHost vodhttporigin definst 0.037 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 0 - 0 - - sample.mp4 - - – - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:17:57 UTC create stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 0.0 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 0 1 0 0 0 sample.mp4 - - - – http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:17:57 UTC comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vodhttporigin/definst/sample.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC} - - - 0.042 - - - – - - - - - - - - - - - - - - - - - - - -

2016-05-14 18:17:57 UTC comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vodhttporigin/definst/sample.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30.000000} - - - 0.042 - - - - - - - - - - - - - - - - - - - - – - - -

2016-05-14 18:17:59 UTC play stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 1.894 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 2285 1 10000 0 0 sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:18:43 UTC comment server INFO 200 - HTTPStreamerApplicationContextBase.init[vodhttporigin/definst]: HTTP Streamer is in origin mode: HTTPStreamerApplicationContextMPEGDashStreamer - - - 300534.861 - - - - - - - - – - - - - - - - - - - - - - - -

2016-05-14 18:18:43 UTC comment server INFO 200 - HTTPStreamerApplicationContextBase.init[vodhttporigin/definst]: HTTP Streamer is in origin mode: HTTPStreamerApplicationContextSmoothStreamer - - - 300534.861 - - - - - - - - - – - - - - - - - - - - - - - -

2016-05-14 18:18:43 UTC comment server INFO 200 - HTTPStreamerApplicationContextBase.init[vodhttporigin/definst]: HTTP Streamer is in origin mode: HTTPStreamerApplicationContextSanJoseStreamer - - - 300534.861 - - - - - - - - – - - - - - - - - - - - - - - -

2016-05-14 18:19:22 UTC comment server INFO 200 - HTTPStreamerSessions.removeHTTPOriginSession[defaultVHost:vodhttporigin/definst/sample.mp4[cupertinostreaming]:1515061230]: remove - - - 85.076 - - - - - - - - - - - – - - - - - - - - - - - -

2016-05-14 18:19:22 UTC stop stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 85.041 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 12048287 1 120000 0 12043656 sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:19:22 UTC destroy stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 85.044 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 12048287 1 120000 0 12043656 sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:19:22 UTC disconnect cupertino INFO 200 1515061230 - defaultVHost vodhttporigin definst 85.082 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u854.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 12048287 - 120000 - - sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

Logs: Cloudfront distribution where signed url is enabled.

2016-05-14 18:20:00 UTC connect cupertino INFO 200 1515061230 - defaultVHost vodhttporigin definst 122.946 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 0 - 0 - - sample.mp4 - - – - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:20:00 UTC create stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 0.002 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 0 2 0 0 0 sample.mp4 - - - – http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:20:00 UTC comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vodhttporigin/definst/sample.mp4][mp4a.40.2]: AAC Audio info: {MediaCodecInfoAudio: codec:AAC, channels:2, frequency:48000, samplesPerFrame:1024, objectType:LC} - - - 122.953 - - - – - - - - - - - - - - - - - - - - - - - -

2016-05-14 18:20:00 UTC comment server INFO 200 - MediaReaderH264Cupertino.indexFile[vodhttporigin/definst/sample.mp4][avc1.66.21]: H.264 Video info: {MediaCodecInfoVideo: codec:H264, profile:Baseline, level:2.1, frameSize:512x288, displaySize:512x288, frameRate:30.000000} - - - 122.954 - - - - - - - - - - - - - - - - - - - - – - - -

2016-05-14 18:20:30 UTC comment server INFO 200 - HTTPStreamerSessions.removeHTTPOriginSession[defaultVHost:vodhttporigin/definst/sample.mp4[cupertinostreaming]:1515061230]: remove - - - 153.264 - - - - - - - - - - - – - - - - - - - - - - - -

2016-05-14 18:20:30 UTC destroy stream INFO 200 sample.mp4 - defaultVHost vodhttporigin definst 30.323 ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 54.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 332 2 0 0 0 sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:20:30 UTC disconnect cupertino INFO 200 1515061230 - defaultVHost vodhttporigin definst 153.269ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com 80 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u854.239.188.86 http (cupertino) - Amazon CloudFront 1515061230 0 332 - 0 - - sample.mp4 - sample.mp4 mp4 58958409 634.633 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 - http://ec2-54-254-110-139.ap-southeast-1.compute.amazonaws.com:80/vodhttporigin/sample.mp4/playlist.m3u8 -

2016-05-14 18:21:30 UTC app-stop application INFO 200 definst vodhttporigin/definst - - - 300702.409 – - - - - - - - - - - - - - - - - - - - - – -

Please help me to close this issue.

BR

Tapan Thapa

Hello,

Thanks for contacting the Wowza Community

See this note in the article you mentioned

At this time, live streams can't be delivered securely by using CloudFront-signed URLs due to the nature by which player applications generate URL requests for the live stream data. However, progressively downloaded media can be delivered privately by using signed URLs. For more information, see Serving Private Content through Cloudfront.

The URL needs to be progressice download for a signed URL to work with Cloudfront.

Hope this helps. If any further questions, feel free to reach out.

regards,

Jermaine