[MPlayer-users] Playing m3u8 playlist with additional token parameters

Reza Rizvi rezilient at gmail.com
Fri Apr 12 06:28:18 CEST 2013


Hello.

I am trying to TEST a Live HLS stream (m3u8 playlist) using MPlayer on
Linux.  Here is the command I'm using to test the stream:

mplayer -user-agent 'Apple-iPhone3C1/801.293' -noconsolecontrols -nocache
-nolirc -nomouseinput -identify -vo null -ao null -frames 0 -v -playlist
http://streamer.website.com/tv/channelfive/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9NC8xMi8yMDEzIDQ6MTI6MTAgQU0maGFzaF92YWx1ZT1hcVZoRG1RVElzNVBVVTFkdWkrVEtnPT0mdmFsaWRtaW51dGVzPTI=

You will notice the "wmsAuthSign" and then a token, this is because the
streamer is using the WMSAuth plugin for Wowza (http://www.wmsauth.org).
 The streamer is our partner so we have a valid token and I am able to play
the streams fine using VLC and other methods using a valid token.

The problem is MPlayer is not allowing this token in the command line.

Here is the output that I'm seeing:

Connecting to server streamer37.eboundservices.com[146.185.20.106]: 80...
--- HTTP DEBUG HEADER --- START ---
protocol:           [HTTP/1.0]
http minor version: [0]
uri:                [(null)]
method:             [(null)]
status code:        [403]
reason phrase:      [Forbidden]
body size:          [0]
Fields:
 0 - Server: FlashCom/3.5.7
 1 - Content-Length: 0
--- HTTP DEBUG HEADER --- END ---
Server returned 403: Forbidden

No stream found to handle url
http://streamer.website.com/tv/channelfive/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9NC8xMi8yMDEzIDQ6MTI6MTAgQU0maGFzaF92YWx1ZT1hcVZoRG1RVElzNVBVVTFkdWkrVEtnPT0mdmFsaWRtaW51dGVzPTI=

Error while opening playlist file
http://streamer.website.com/tv/channelfive/playlist.m3u8?wmsAuthSign=c2VydmVyX3RpbWU9NC8xMi8yMDEzIDQ6MTI6MTAgQU0maGFzaF92YWx1ZT1hcVZoRG1RVElzNVBVVTFkdWkrVEtnPT0mdmFsaWRtaW51dGVzPTI=:
Operation now in progress

Error parsing option on the command line: -playlist


Notice the "403 forbidden" code, this occurs when the WMSAuth model is not
accepting the token.  I'm assuming MPlayer is not treating this URL as a
valid one for HLS due to the extra token parameters.  Is there any way to
make this work?  We are trying to build a testing script that will evaluate
if the streams are working periodically and it works great for
"non-protected" streams but we're having trouble with this WMSAuth model.

Thanks.
Rezilient


More information about the MPlayer-users mailing list