Repository: streamlink/streamlink

Issue:
Audio playlist.m3u8
Can someone please tell me which command I have to execute in order to hear this video?

```
https://deswowa3player.akamaized.net/vsg/_definst_/assets2/2018/06/27/ED8FBB5B-31FD-4F6D-864C-A41F55670ED2/hls.smil/playlist.m3u8?pulse=assets2%2F2018%2F06%2F27%2FED8FBB5B-31FD-4F6D-864C-A41F55670ED2%2F%7C1530629459%7C685ee530053b51a73b454f27d0869916
```



Discussion:
@DjUnknown, please use the issue template and post the commands you tried (eg. `streamlink <URL> best`? Please post `debug` logs too. 

You might need `ffmpeg` installed, however with the logs we cannot help you. The templates are there so that we can help you more easily. If you don't follow the template you will not get an answer. 
@beardypig 

<!--
Thanks for reporting a bug!

Please read the contribution guidelines before creating a bug report:

(https://github.com/streamlink/streamlink/blob/master/CONTRIBUTING.md#contributing-to-streamlink)

Also check the list of known issues before reporting an issue!

Please fill out the following template. Be as detailed as possible.

Please see the text preview to avoid unnecessary formatting errors.
-->

## Bug Report

- [ ] I have read the contribution guidelines. <!-- Replace the space with an x to check the box: [x] -->

### Description
```
Link playlist.m3u8 extracted from https://www.atresplayer.com/antena3/series/el-secreto-de-puente-viejo/julieta-y-los-hermanos-ortega/03-07-18_5b3408497ed1a8c72cd472b5/
```

<!-- Explain the bug as clearly as you can. How is functionality impacted? Which OS/Player/Streamlink version are you using? Etc. -->




<!-- What do you expect to happen, and what is actually happening? -->


### Reproduction steps / Explicit stream URLs to test

<!-- How can we reproduce this? Please note the exact steps below using the list format supplied. If you need more steps please add them. -->
```
"C:\Program Files (x86)\Streamlink\bin\streamlink.exe" https://deswowa3player.akamaized.net/vsg/_definst_/assets2/2018/06/27/49029982-929F-40DA-9CDD-CB9FB71345B2/hls.smil/playlist.m3u8?pulse=assets2%2F2018%2F06%2F27%2F49029982-929F-40DA-9CDD-CB9FB71345B2%2F%7C1530649413%7C004405fd7333776cfdc52b81b35304b0 best --player "C:\Program Files\FFmpeg\ffplay.exe" 
```

### Logs
```
"C:\Program Files (x86)\Streamlink\bin\streamlink.exe" h
ttps://deswowa3player.akamaized.net/vsg/_definst_/assets2/2018/06/27/49029982-92
9F-40DA-9CDD-CB9FB71345B2/hls.smil/playlist.m3u8?pulse=assets2%2F2018%2F06%2F27%
2F49029982-929F-40DA-9CDD-CB9FB71345B2%2F%7C1530649413%7C004405fd7333776cfdc52b8
1b35304b0 best --player "C:\Program Files\FFmpeg\ffplay.exe" -l debug
[cli][debug] OS:         Windows 7
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin hls for URL https://deswowa3player.akamaized.n
et/vsg/_definst_/assets2/2018/06/27/49029982-929F-40DA-9CDD-CB9FB71345B2/hls.smi
l/playlist.m3u8?pulse=assets2%2F2018%2F06%2F27%2F49029982-929F-40DA-9CDD-CB9FB71
345B2%2F%7C1530649413%7C004405fd7333776cfdc52b81b35304b0
[plugin.hls][debug] URL=https://deswowa3player.akamaized.net/vsg/_definst_/asset
s2/2018/06/27/49029982-929F-40DA-9CDD-CB9FB71345B2/hls.smil/playlist.m3u8?pulse=
assets2%2F2018%2F06%2F27%2F49029982-929F-40DA-9CDD-CB9FB71345B2%2F%7C1530649413%
7C004405fd7333776cfdc52b81b35304b0; params={}
[stream.hls][debug] Using external audio tracks for stream 1080p (language=es, n
ame=Spanish)
[stream.hls][debug] Using external audio tracks for stream 720p (language=es, na
me=Spanish)
[stream.hls][debug] Using external audio tracks for stream 480p (language=es, na
me=Spanish)
[stream.hls][debug] Using external audio tracks for stream 360p (language=es, na
me=Spanish)
[stream.hls][debug] Using external audio tracks for stream 240p (language=es, na
me=Spanish)
[cli][info] Available streams: 240p (worst), 360p, 480p, 720p, 1080p (best)
[cli][info] Starting player: C:\Program Files\FFmpeg\ffplay.exe
[cli][info] Got HTTP request from Lavf/58.17.101
[cli][info] Opening stream: 1080p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Segments in this playlist are encrypted
[stream.hls][debug] First Sequence: 0; Last Sequence: 319
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 319
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
[stream.hls][debug] Adding segment 4 to queue
[stream.hls][debug] Adding segment 5 to queue
[stream.hls][debug] Adding segment 6 to queue
[stream.hls][debug] Adding segment 7 to queue
[stream.hls][debug] Adding segment 8 to queue
[stream.hls][debug] Adding segment 9 to queue
[stream.hls][debug] Adding segment 10 to queue
[stream.hls][debug] Adding segment 11 to queue
[stream.hls][debug] Adding segment 12 to queue
[stream.hls][debug] Adding segment 13 to queue
[stream.hls][debug] Adding segment 14 to queue
[stream.hls][debug] Adding segment 15 to queue
[stream.hls][debug] Adding segment 16 to queue
[stream.hls][debug] Adding segment 17 to queue
[stream.hls][debug] Adding segment 18 to queue
[stream.hls][debug] Adding segment 19 to queue
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 319
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 319
[stream.hls][debug] Adding segment 0 to queue
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\Program Files (x86)\Streamlink\
ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-2268-638 -i \\.\pipe\ffmpeg-226
8-430 -c:v copy -c:a copy -map 0 -map 1 -f mpegts pipe:1
[stream.hls][debug] Adding segment 3 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-2268-638
[stream.hls][debug] Adding segment 4 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-2268-430
[stream.hls][debug] Adding segment 5 to queue
[stream.hls][debug] Adding segment 6 to queue
[stream.hls][debug] Adding segment 7 to queue
[stream.hls][debug] Adding segment 8 to queue
[stream.hls][debug] Adding segment 9 to queue
[stream.hls][debug] Adding segment 10 to queue
[stream.hls][debug] Adding segment 11 to queue
[stream.hls][debug] Adding segment 12 to queue
[stream.hls][debug] Adding segment 13 to queue
[stream.hls][debug] Adding segment 14 to queue
[stream.hls][debug] Adding segment 15 to queue
[stream.hls][debug] Adding segment 16 to queue
[stream.hls][debug] Adding segment 17 to queue
[stream.hls][debug] Adding segment 18 to queue
[stream.hls][debug] Adding segment 19 to queue
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 1 complete
[stream.hls][debug] Adding segment 23 to queue
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 to queue
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 to queue
[stream.hls][debug] Download of segment 4 complete
[stream.hls][debug] Adding segment 26 to queue
[stream.hls][debug] Download of segment 5 complete
[stream.hls][debug] Adding segment 27 to queue
[stream.hls][debug] Download of segment 6 complete
[stream.hls][debug] Adding segment 28 to queue
[stream.hls][debug] Download of segment 7 complete
[stream.hls][debug] Adding segment 29 to queue
[stream.hls][debug] Download of segment 8 complete
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 10 complete
[stream.hls][debug] Adding segment 32 to queue
[stream.hls][debug] Download of segment 11 complete
[stream.hls][debug] Adding segment 33 to queue
[stream.hls][debug] Download of segment 12 complete
[stream.hls][debug] Adding segment 34 to queue
[stream.hls][debug] Download of segment 13 complete
[stream.hls][debug] Adding segment 35 to queue
[stream.hls][debug] Download of segment 14 complete
[stream.hls][debug] Adding segment 36 to queue
[stream.hls][debug] Download of segment 15 complete
[stream.hls][debug] Adding segment 37 to queue
[stream.hls][debug] Download of segment 16 complete
[stream.hls][debug] Adding segment 38 to queue
[stream.hls][debug] Download of segment 17 complete
[stream.hls][debug] Adding segment 39 to queue
[stream.hls][debug] Download of segment 18 complete
[stream.hls][debug] Adding segment 40 to queue
[stream.hls][debug] Download of segment 19 complete
[stream.hls][debug] Adding segment 41 to queue
[stream.hls][debug] Download of segment 1 complete
[stream.hls][debug] Adding segment 23 to queue
[stream.hls][debug] Download of segment 20 complete
[stream.hls][debug] Adding segment 42 to queue
[cli][debug] Writing stream to player
[stream.hls][debug] Download of segment 21 complete
[stream.hls][debug] Adding segment 43 to queue
[stream.hls][debug] Download of segment 22 complete
[stream.hls][debug] Adding segment 44 to queue
[stream.hls][debug] Download of segment 23 complete
[stream.hls][debug] Adding segment 45 to queue
[stream.hls][debug] Download of segment 24 complete
[stream.hls][debug] Adding segment 46 to queue
[stream.hls][debug] Download of segment 25 complete
[stream.hls][debug] Adding segment 47 to queue
[stream.hls][debug] Download of segment 26 complete
[stream.hls][debug] Adding segment 48 to queue
[stream.hls][debug] Download of segment 27 complete
[stream.hls][debug] Adding segment 49 to queue
[stream.hls][debug] Download of segment 28 complete
[stream.hls][debug] Adding segment 50 to queue
[stream.hls][debug] Download of segment 29 complete
[stream.hls][debug] Adding segment 51 to queue
[stream.hls][debug] Download of segment 30 complete
[stream.hls][debug] Adding segment 52 to queue
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 to queue
[stream.hls][debug] Download of segment 31 complete
[stream.hls][debug] Adding segment 53 to queue
[stream.hls][debug] Download of segment 32 complete
[stream.hls][debug] Adding segment 54 to queue
[stream.hls][debug] Download of segment 33 complete
[stream.hls][debug] Adding segment 55 to queue
[stream.hls][debug] Download of segment 34 complete
[stream.hls][debug] Adding segment 56 to queue
[stream.hls][debug] Download of segment 35 complete
[stream.hls][debug] Adding segment 57 to queue
[stream.hls][debug] Download of segment 36 complete
[stream.hls][debug] Adding segment 58 to queue
[stream.hls][debug] Download of segment 37 complete
[stream.hls][debug] Adding segment 59 to queue
[stream.hls][debug] Download of segment 38 complete
[stream.hls][debug] Adding segment 60 to queue
[stream.hls][debug] Download of segment 39 complete
[stream.hls][debug] Adding segment 61 to queue
[stream.hls][debug] Download of segment 40 complete
[stream.hls][debug] Adding segment 62 to queue
[stream.hls][debug] Download of segment 41 complete
[stream.hls][debug] Adding segment 63 to queue
[stream.hls][debug] Download of segment 42 complete
[stream.hls][debug] Adding segment 64 to queue
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 to queue
[stream.hls][debug] Download of segment 43 complete
[stream.hls][debug] Adding segment 65 to queue
[stream.hls][debug] Download of segment 44 complete
[stream.hls][debug] Adding segment 66 to queue
[stream.hls][debug] Download of segment 45 complete
[stream.hls][debug] Adding segment 67 to queue
[stream.hls][debug] Download of segment 46 complete
[stream.hls][debug] Adding segment 68 to queue
[stream.hls][debug] Download of segment 47 complete
[stream.hls][debug] Adding segment 69 to queue
[stream.hls][debug] Download of segment 48 complete
[stream.hls][debug] Adding segment 70 to queue
[stream.hls][debug] Download of segment 49 complete
[stream.hls][debug] Adding segment 71 to queue
[stream.hls][debug] Download of segment 50 complete
[stream.hls][debug] Adding segment 72 to queue
[stream.hls][debug] Download of segment 51 complete
[stream.hls][debug] Adding segment 73 to queue
[stream.hls][debug] Download of segment 52 complete
[stream.hls][debug] Adding segment 74 to queue
[stream.hls][debug] Download of segment 53 complete
[stream.hls][debug] Adding segment 75 to queue
[stream.hls][debug] Download of segment 54 complete
[stream.hls][debug] Adding segment 76 to queue
[stream.hls][debug] Download of segment 55 complete
[stream.hls][debug] Adding segment 77 to queue
[stream.hls][debug] Download of segment 56 complete
[stream.hls][debug] Adding segment 78 to queue
[stream.hls][debug] Download of segment 57 complete
[stream.hls][debug] Adding segment 79 to queue
[stream.hls][debug] Download of segment 58 complete
[stream.hls][debug] Adding segment 80 to queue
[stream.hls][debug] Download of segment 59 complete
[stream.hls][debug] Adding segment 81 to queue
[stream.hls][debug] Download of segment 60 complete
[stream.hls][debug] Adding segment 82 to queue
[stream.hls][debug] Download of segment 61 complete
[stream.hls][debug] Adding segment 83 to queue
[stream.hls][debug] Download of segment 62 complete
[stream.hls][debug] Adding segment 84 to queue
[stream.hls][debug] Download of segment 63 complete
[stream.hls][debug] Adding segment 85 to queue
[stream.hls][debug] Download of segment 64 complete
[stream.hls][debug] Adding segment 86 to queue
[stream.hls][debug] Download of segment 65 complete
[stream.hls][debug] Adding segment 87 to queue
[stream.hls][debug] Download of segment 66 complete
[stream.hls][debug] Adding segment 88 to queue
[stream.hls][debug] Download of segment 67 complete
[stream.hls][debug] Adding segment 89 to queue
[stream.hls][debug] Download of segment 68 complete
[stream.hls][debug] Adding segment 90 to queue
[stream.hls][debug] Download of segment 69 complete
[stream.hls][debug] Adding segment 91 to queue
[stream.hls][debug] Download of segment 70 complete
[stream.hls][debug] Adding segment 92 to queue
[stream.hls][debug] Download of segment 71 complete
[stream.hls][debug] Adding segment 93 to queue
[stream.hls][debug] Download of segment 72 complete
[stream.hls][debug] Adding segment 94 to queue
[stream.hls][debug] Download of segment 73 complete
[stream.hls][debug] Adding segment 95 to queue
[stream.hls][debug] Download of segment 74 complete
[stream.hls][debug] Adding segment 96 to queue
[stream.hls][debug] Download of segment 75 complete
[stream.hls][debug] Adding segment 97 to queue
[stream.hls][debug] Download of segment 76 complete
[stream.hls][debug] Adding segment 98 to queue
[stream.hls][debug] Download of segment 77 complete
[stream.hls][debug] Adding segment 99 to queue
[stream.hls][debug] Download of segment 78 complete
[stream.hls][debug] Adding segment 100 to queue
[stream.hls][debug] Download of segment 79 complete
[stream.hls][debug] Adding segment 101 to queue
[stream.hls][debug] Download of segment 80 complete
[stream.hls][debug] Adding segment 102 to queue
[stream.hls][debug] Download of segment 81 complete
[stream.hls][debug] Adding segment 103 to queue
[stream.hls][debug] Download of segment 82 complete
[stream.hls][debug] Adding segment 104 to queue
[stream.hls][debug] Download of segment 83 complete
[stream.hls][debug] Adding segment 105 to queue
[stream.hls][debug] Download of segment 84 complete
[stream.hls][debug] Adding segment 106 to queue
[stream.hls][debug] Download of segment 85 complete
[stream.hls][debug] Adding segment 107 to queue
[stream.hls][debug] Download of segment 86 complete
[stream.hls][debug] Adding segment 108 to queue
[stream.hls][debug] Download of segment 87 complete
[stream.hls][debug] Adding segment 109 to queue
[stream.hls][debug] Download of segment 88 complete
[stream.hls][debug] Adding segment 110 to queue
[stream.hls][debug] Download of segment 89 complete
[stream.hls][debug] Adding segment 111 to queue
[cli][info] HTTP connection closed
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.segmented][debug] Closing worker thread
[stream.segmented][debug] Closing writer thread
[stream.segmented][debug] Closing worker thread
[stream.hls][debug] Download of segment 4 complete
[stream.segmented][debug] Closing writer thread
[stream.hls][debug] Download of segment 90 complete
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2268-430
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2268-638
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams


```
<!--
Logs are always required for a bug report, use `-l debug` [(help)](https://streamlink.github.io/cli.html#cmdoption-l) and avoid using `--stream-url` as that will suppress log output.

Make sure to **remove username and password**

You can upload your logs to https://gist.github.com/ or place your logs below.
-->



### Additional comments, screenshots, etc.

I do not hear the video


same as https://github.com/streamlink/streamlink/pull/1853#issuecomment-401041683

there streams are invalid
It seemed to work for me with `ffmpeg 4.0.1` and `mpv 0.28.2` - just takes a while to start. As @back-to said, their streams are a bit broken. 
The direct URL works for me using ffplay or MPC-HC, no delay to start either, but using the dash stream, HLS-Multi stream i have issues on this website, command used : 

`Streamlink --player "M:\FFMPEG\ffplay.exe" --stream-priority=dash https://www.atresplayer.com/antena3/series/el-secreto-de-puente-viejo/julieta-y-los-hermanos-ortega/03-07-18_5b3408497ed1a8c72cd472b5/ best`

M3u URL seems like i have issues too.

**Edit :** for ffplay i forgot to say that i have to use an older version of it as last ones are broken and send back an error message " WASAPI can't initialize audio client" , apparently reported few times according to google searches and the only solution if to go back to an older version , I'm using ffplay version N-82143-gbf14393, last ones are messed up, this said np with MPC-HC, only have the LAV splitter source Network setting set to 2000ms there.

**Edit again :** 
For FFplay the trick explained here "set SDL_AUDIODRIVER=directsound" might work if you encounter the  " WASAPI can't initialize audio clients error displayed on new versions : 
https://forum.videohelp.com/threads/388189-ffplay-WASAPI-can-t-initialize-audio-client-error

The mpd, f4m and link atresplayer.com...... I can see and hear it without any problem, the only one that does not work properly is the m3u8, I see it without sound.

Resolving patch:
diff --git a/src/streamlink/stream/hls.py b/src/streamlink/stream/hls.py
--- a/src/streamlink/stream/hls.py
+++ b/src/streamlink/stream/hls.py
@@ -295,15 +295,18 @@ class MuxedHLSStream(MuxedStream):
 
     def __init__(self, session, video, audio, force_restart=False, ffmpeg_options=None, **args):
         tracks = [video]
+        maps = ["0:v"]
         if audio:
             if isinstance(audio, list):
                 tracks.extend(audio)
             else:
                 tracks.append(audio)
+        for i in range(1, len(tracks)):
+            maps.append("{0}:a".format(i))
         substreams = map(lambda url: HLSStream(session, url, force_restart=force_restart, **args), tracks)
         ffmpeg_options = ffmpeg_options or {}
 
-        super(MuxedHLSStream, self).__init__(session, *substreams, format="mpegts", **ffmpeg_options)
+        super(MuxedHLSStream, self).__init__(session, *substreams, format="mpegts", maps=maps, **ffmpeg_options)
 
 
 class HLSStream(HTTPStream):


Test patch: