Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Zattoo with Captions ? #1847

Closed
1 task done
Ordval opened this issue Jun 25, 2018 · 27 comments
Closed
1 task done

Zattoo with Captions ? #1847

Ordval opened this issue Jun 25, 2018 · 27 comments
Labels

Comments

@Ordval
Copy link

Ordval commented Jun 25, 2018

  • This is a feature request (or whatever).

This locale setting thing, how does it work ?

--locale system locale error: unrecognized arguments: best
LookupError: Invalid language code: system_locale
--locale sp_CH KeyError: 'sp'
LookupError: Invalid language code: sp
LookupError: Invalid language code: es_CHE

It says "Spanish" on their home page (under the video).
Spanish in German is "Spanisch"
...
Actual behavior
With --locale es_CH I do get the Video, but no subs.
...

the Explicit stream URL
"https://zattoo.com/watch/tve/141129369-cine-de-barrio/119891679/1528560300000/1528566900000/6600000"

Logs (...well, you asked for it...)

C:\Users\Ordval>call streamlink.exe -l debug --zattoo-email="xxx@xxxx.xx" --zattoo-password="xxxx" --locale es_CH "https://zattoo.com/watch/tve/141129369-cine-de-barrio/119891679/1528560300000/1528566900000/6600000" best -o "C:\Users\Ordval\Videos\till Desken\Vente a ligar al oeste (1971); Alfredo Landa.mp4"
[console][debug] OS:         Windows 10
[console][debug] Python:     3.5.2
[console][debug] Streamlink: 0.13.0
[console][debug] Requests(2.18.4), Socks(1.6.7), Websocket(0.48.0)
[console][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/141129369-cine-de-barrio/119891679/1528560300000/1528566900000/6600000
[console][debug] Plugin specific arguments:
[console][debug]  --zattoo-email=xxx@xxxx.xx (email)
[console][debug]  --zattoo-password=******** (password)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] _watch_recording ...
[plugin.zattoo][debug] Found post data
[console][info] Available streams: 600k_alt (worst), 600k, 900k, 1500k (best)
[console][info] Opening stream: 1500k (hls)
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 2024
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 2024
[stream.hls][debug] Adding segment 0 to queue
[console][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 1 to queue
[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] Download of segment 0 complete
[console][debug] Checking file output
File C:\Users\Ordval\Videos\till Desken\Vente a ligar al oeste (1971); Alfredo Landa.mp4 already exists! Overwrite it? [y/N] [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 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
y[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
[console][debug] Writing stream to output
[stream.hls][debug] Download of segment 16 complete
[download][..971); Alfredo Landa.mp4] Written 11.6 MB (0s @ 20.9 MB/s)[stream.hls][debug] Adding segment 38 to queue
                                                 [stream.hls][debug] Download of segment 17 complete
[stream.hls][debug] Adding segment 39 to queue
[download][..971); Alfredo Landa.mp4] Written 12.3 MB (1s @ 10.8 MB/s)                                                 [stream.hls][debug] Download of segment 18 complete
[download][..971); Alfredo Landa.mp4] Written 13.0 MB (1s @ 7.7 MB/s)[stream.hls][debug] Adding segment 40 to queue
                                                  [stream.hls][debug] Download of segment 19 complete
[download][..971); Alfredo Landa.mp4] Written 13.7 MB (2s @ 6.3 MB/s)                                                  [stream.hls][debug] Adding segment 41 to queue
[stream.hls][debug] Download of segment 20 complete
[stream.hls][debug] Adding segment 42 to queue
[download][..971); Alfredo Landa.mp4] Written 14.5 MB (2s @ 5.3 MB/s)                                                  [stream.hls][debug] Download of segment 21 complete
[download][..971); Alfredo Landa.mp4] Written 15.2 MB (3s @ 1.3 MB/s)[stream.hls][debug] Adding segment 43 to queue
                                                  [stream.hls][debug] Download of segment 22 complete
[stream.hls][debug] Adding segment 44 to queue
[download][..971); Alfredo Landa.mp4] Written 15.9 MB (3s @ 1.3 MB/s)                                                  [stream.hls][debug] Download of segment 23 complete
[download][..971); Alfredo Landa.mp4] Written 16.6 MB (4s @ 1.3 MB/s)[stream.hls][debug] Adding segment 45 to queue
                                                  [stream.hls][debug] Download of segment 24 complete
[download][..971); Alfredo Landa.mp4] Written 17.3 MB (5s @ 1.3 MB/s)[stream.hls][debug] Adding segment 46 to queue
                                                  [stream.hls][debug] Download of segment 25 complete
[download][..971); Alfredo Landa.mp4] Written 18.1 MB (5s @ 1.2 MB/s)[stream.hls][debug] Adding segment 47 to queue
                                                  [stream.hls][debug] Download of segment 26 complete
[download][..971); Alfredo Landa.mp4] Written 18.8 MB (6s @ 1.3 MB/s)[stream.hls][debug] Adding segment 48 to queue
                                                  [stream.hls][debug] Download of segment 27 complete
[download][..971); Alfredo Landa.mp4] Written 19.5 MB (6s @ 1.3 MB/s)                                                  [stream.hls][debug] Adding segment 49 to queue
[stream.hls][debug] Download of segment 28 complete
[stream.hls][debug] Adding segment 50 to queue
[download][..971); Alfredo Landa.mp4] Written 20.2 MB (7s @ 1.2 MB/s)                                                  [stream.hls][debug] Download of segment 29 complete
[download][..971); Alfredo Landa.mp4] Written 21.0 MB (7s @ 1.2 MB/s)                                                  [stream.hls][debug] Adding segment 51 to queue
[stream.hls][debug] Download of segment 30 complete
[download][..971); Alfredo Landa.mp4] Written 21.7 MB (8s @ 1.2 MB/s)[stream.hls][debug] Adding segment 52 to queue
                                                  [stream.hls][debug] Download of segment 31 complete
[download][..971); Alfredo Landa.mp4] Written 22.4 MB (9s @ 1.2 MB/s)[stream.hls][debug] Adding segment 53 to queue
                                                  [stream.hls][debug] Download of segment 32 complete
[stream.hls][debug] Adding segment 54 to queue
[download][..971); Alfredo Landa.mp4] Written 23.7 MB (9s @ 1.5 MB/s)                                                  [stream.hls][debug] Download of segment 33 complete
[download][..971); Alfredo Landa.mp4] Written 23.9 MB (10s @ 1.3 MB/s)                                                 [stream.hls][debug] Adding segment 55 to queue
[stream.hls][debug] Download of segment 34 complete
[download][..971); Alfredo Landa.mp4] Written 24.6 MB (10s @ 1.3 MB/s)[stream.hls][debug] Adding segment 56 to queue
                                                 [stream.hls][debug] Download of segment 35 complete
[download][..971); Alfredo Landa.mp4] Written 25.3 MB (11s @ 1.3 MB/s)[stream.hls][debug] Adding segment 57 to queue
                                                 [stream.hls][debug] Download of segment 36 complete
[download][..971); Alfredo Landa.mp4] Written 26.0 MB (11s @ 1.3 MB/s)[stream.hls][debug] Adding segment 58 to queue
                                                 [stream.hls][debug] Download of segment 37 complete
[stream.hls][debug] Adding segment 59 to queue
[download][..971); Alfredo Landa.mp4] Written 26.8 MB (12s @ 1.1 MB/s)                                                 [stream.hls][debug] Download of segment 38 complete
[download][..971); Alfredo Landa.mp4] Written 27.5 MB (12s @ 1.3 MB/s)[stream.hls][debug] Adding segment 60 to queue
                                                 [stream.hls][debug] Download of segment 39 complete
[download][..971); Alfredo Landa.mp4] Written 28.2 MB (13s @ 1.3 MB/s)[stream.hls][debug] Adding segment 61 to queue
                                                 [stream.hls][debug] Download of segment 40 complete
[download][..971); Alfredo Landa.mp4] Written 28.9 MB (14s @ 1.2 MB/s)[stream.hls][debug] Adding segment 62 to queue
                                                 [stream.hls][debug] Download of segment 41 complete
[stream.hls][debug] Adding segment 63 to queue
[download][..971); Alfredo Landa.mp4] Written 29.6 MB (14s @ 1.2 MB/s)                                                 [stream.hls][debug] Download of segment 42 complete
[stream.segmented][debug] Closing worker thread
[stream.hls][debug] Adding segment 64 to queue
[stream.segmented][debug] Closing writer thread
[console][info] Stream ended
Interrupted! Exiting...
[console][info] Closing currently open stream...

Comments
The rest I don't understand: help="""
Anyone wanting to reproduce needs to use their own recording of course.

Is there some command that would let me download subs. separately ?

[Windows 10, Processor: lntel(R) Core(TM) m3-6Y30 CPU @ 0.90GHz 1.51 GHz
Installed memory (RAM): 8.00 GB (7.90 GB usable)
System type: 64-bit Operating System, x64-based processor]

@beardypig
Copy link
Member

You want Spanish subtitles? Did you try --locale es_ES?

@Ordval
Copy link
Author

Ordval commented Jun 26, 2018

No, trying it currently, (thought of it, but it wasn't logical).
On a preliminary view, watching it as it downloads,
it doesn't seem to, but am getting back to you when all is completed.

@Ordval
Copy link
Author

Ordval commented Jun 26, 2018

Played it back with VLC and SMPlayer but no visible subtitles, nor in their respective submenus.
What wasn't logical is that Z.'s country code is CH so it should have been that,
but now both have been tried.

@beardypig
Copy link
Member

@Ordval, are you able to get Spanish subtitles on the website?

@back-to
Copy link
Collaborator

back-to commented Jun 26, 2018

there normal hls streams don't have any subtitles, this streams are used by streamlink.


there other hls streams are muxed like this

https://github.com/streamlink/streamlink/blob/master/tests/test_hls_playlist.py#L12-L42

they have subtitles, but I don't know if streamlink can handle the subtitles automatically with muxed streams.


there dash streams also have subtitles, but the same as hls muxed I don't know if streamlink can handle it automatically

@beardypig
Copy link
Member

Streamlink doesn't mux subtitles by default - we could support it, it's just another complication in the HLS parser :)

@Ordval
Copy link
Author

Ordval commented Jun 26, 2018

@beardypig
Maybe already answered by back-to but yes, most of Tve's broadcasts (streams?)
have subtitles (in its original language, mind you). It varies from channel to channel.

Then, ....because a command similar to --locale es_ES won't work here ?

@beardypig
Copy link
Member

With the zattoo plugin? It could be added, but @back-to would know better than I. The rtve has an option to mux the subtitles --rtve-mux-subtitles.

@Ordval
Copy link
Author

Ordval commented Jun 26, 2018

I take it, the first of your options is what I have to wait for then.
I presume the --rtve-mux-subtitle option is exclusive to RTVE's site,
and I won't find what I'm looking for there, but they have other videos of course .

@back-to
Copy link
Collaborator

back-to commented Jun 26, 2018

--rtve-mux-subtitle

this is different, the subs url is stand alone,
for zattoo the subs url is built into the m3u8 / playlist file
which is not supported by streamlink without bigger changes.


--locale works only for the AUDIO when a stream has more than one language,
that could easily be added for zattoo

@Ordval
Copy link
Author

Ordval commented Jun 26, 2018

The reason for me to look into it is that it says: --locale LOCALE

The preferred locale setting, for selecting the preferred subtitle and audio language.
The locale is formatted as [language_code]_[country_code], eg. en_US or es_ES.
Default is: system locale.

on the support pages.

@beardypig
Copy link
Member

Should probably say something like “where available and supported”

@back-to
Copy link
Collaborator

back-to commented Jul 4, 2018

#1902 will allow the usage of the muxed streams

--locale for different audio sources will work,
but not subtitles because streamlink does not support it.

@back-to
Copy link
Collaborator

back-to commented Jul 7, 2018

The muxed streams are now available in the dev version,
as noted above subs are not support by streamlink only the audio.

Audio example

streamlink URL best --zattoo-stream-types hls5 --hls-audio-select "*"

https://streamlink.github.io/latest/cli.html#cmdoption-hls-audio-select
https://streamlink.github.io/latest/cli.html#cmdoption-zattoo-stream-types

@back-to back-to closed this as completed Jul 7, 2018
@Ordval
Copy link
Author

Ordval commented Jul 7, 2018

as noted above subs are not support by streamlink only the audio.

....but it could with/ through the muxed streams I hope ? I mean, why else the update ?
The issue with dual audio was already briefed in #804 and wasn't it solved then ?
I'm still in the process of finding an acceptable VPN service so I'll have to get back with an evaluation.

beardypig added a commit to beardypig/streamlink that referenced this issue Jul 17, 2018
This feature can be enabled by using the `--hls-subtitles` command line
option. Some extra options were added for ffmpeg to allows for some
work arounds when using different versions of ffmpeg.

HLS streams use VTT subtitles, which are text based, MPEG-TS only
supports bitmap based subtitles and ffmpeg cannot convert from text to
bitmap. Because of this the Matroska container format must be used (as
it supports text subtitles), however, MPEG-TS and Matroska support
different types of AAC streams. Because of _this_ a bitstream filter
(bsf) needs to be applied to the audio stream to make it compatible
with Matroska.
Older versions of ffmpeg do not support AAC fully and you must use the
`-strict -2` option, which is why the `--ffmpeg-strict` option was
added.

Fixes streamlink#1847
Fixes streamlink#1940
beardypig added a commit to beardypig/streamlink that referenced this issue Jul 17, 2018
This feature can be enabled by using the `--hls-subtitles` command line
option. Some extra options were added for ffmpeg to allows for some
work arounds when using different versions of ffmpeg.

HLS streams use VTT subtitles, which are text based, MPEG-TS only
supports bitmap based subtitles and ffmpeg cannot convert from text to
bitmap. Because of this the Matroska container format must be used (as
it supports text subtitles), however, MPEG-TS and Matroska support
different types of AAC streams. Because of _this_ a bitstream filter
(bsf) needs to be applied to the audio stream to make it compatible
with Matroska.
Older versions of ffmpeg do not support AAC fully and you must use the
`-strict -2` option, which is why the `--ffmpeg-strict` option was
added.

Fixes streamlink#1847
Fixes streamlink#1940
@Ordval
Copy link
Author

Ordval commented Jul 22, 2018

I’ve used the --hls-subtitles command to both the hls and hls5 alternatives (to no avail),
still don’t know if at all it is possible get subtitles with dash, I’m back to the discussions on
#1882 where, if I should or should not use the --ffmpeg-verbose and --ffmpeg-verbose-path
commands, and how.

Presently downloading it like this:
$ call streamlink.exe --http-header X-Forwarded-For=179.43.167.154 --zattoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-purge-credentials --ffmpeg-video-transcode h264 --ffmpeg-audio-transcode aac --zattoo-stream-type dash "https://zattoo.com/watch/tve/142146553-luna-de-verano/122508268/1530978900000/1530986100000/0" best -o "C:\Users\~\Luna de Verano (19xx) dash u --hls-subtitles.mp4"

Earlier tried:

$ call streamlink.exe --http-header X-Forwarded-For=179.43.167.154 --
zattoo-email="xxxl@xxx.yy" --zattoo-password="xxx"  --zattoo-purge-creden
tials --hls-subtitles --ffmpeg-strict "https://zattoo.com/watch/tve/142146553-lu
na-de-verano/122508268/1530978900000/1530986100000/0" best -o "C:\Users\~\Luna de verano (19xx) hls.mp4"
error: No plugin can handle URL: best
$ call streamlink.exe --http-header X-Forwarded-For=179.43.167.154 --
zattoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-purge-creden
tials --hls-subtitles "https://zattoo.com/watch/tve/142146553-luna-de-verano/122
508268/1530978900000/1530986100000/0" best -o "C:\Users\~\Luna de veran
o (19xx) hls.mkv"
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0
[plugin.zattoo][info] All credentials were successfully removed.
[cli][info] Available streams: 600k_alt (worst), 600k, 900k, 1500k (best)
[cli][info] Opening stream: 1500k (hls)
[download][..e verano (19xx) hls.mkv] Written 1.53 GB (29m13s @ 920.2 KB/s)
[cli][info] Stream ended
[cli][info] Closing currently open stream...

etc. experimenting.

$ call streamlink.exe --http-header X-Forwarded-For=179.43.167.154 --
zattoo-email="xxxl@xxx.yy" --zattoo-password="xxx"  --zattoo-purge-creden
tials --zattoo-stream-type dash --hls-subtitles "https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0" best -o "C:\User
s\~\Luna de Verano (19xx) dash.mp4"
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0
[plugin.zattoo][info] All credentials were successfully removed.
[cli][info] Available streams: 288p_alt (worst), 288p, 432p (best)
[cli][info] Opening stream: 432p (dash)
[download][.. verano (19xx) dash.mp4] Written 1.46 GB (27m25s @ 1.1 MB/s)  
[stream.ffmpegmux][error] Pipe copy aborted: \\.\pipe\ffmpeg-10228-671
[stream.ffmpegmux][error] Pipe copy aborted: \\.\pipe\ffmpeg-10228-5

the --hls-subtitles command was put in just for the heck of it.

(Installed the latest Nightly and changed the 4 .py's manually,
downloaded latest FFmpeg and added it in PATH)

@beardypig
Copy link
Member

--ffmpeg-strict takes an argument like -2, you gave it the url, hence the error. You probably don’t need to use it, unless you are using an older version of ffmpeg (2.8 or so).

Your 3rd example looks correct, but you need to provide debug logs and use --ffmpeg-verbose.

I don’t have enough time at the moment to work on that branch, but maybe in a couple of weeks I’ll sort out the WebBVTT streams properly, so they don’t produce duplicate subtitles etc. Maybe some kind of stream post processing api...

@back-to
Copy link
Collaborator

back-to commented Jul 22, 2018

@Ordval
don't use --zattoo-purge-credentials if you don't need it
https://streamlink.github.io/cli.html#cmdoption-zattoo-purge-credentials

you only need to enter your email, password once in a month not everytime.


to get the muxed hls stream use

--zattoo-stream-types hls5

not dash


for the --hls-subtitles part, I don't know about VODs but for Livestream it won't work for me.
(the player won't open and the subtitle input is not used with ffmpeg or stuck somewhere)

$ streamlink --zattoo-stream-types hls5 --hls-subtitles --ffmpeg-verbose URL
[cli][debug] OS:         Linux-4.17.5
[cli][debug] Python:     3.6.6
[cli][debug] Streamlink: 0.14.2+32.gfb5d46f.dirty
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] Found data for hls5
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.ffmpegmux][debug] Opening hls substream
[stream.ffmpegmux][debug] Opening hls substream
[stream.mp4mux-ffmpeg][debug]ffmpeg command:

/usr/bin/ffmpeg -nostats
-y -i /tmp/ffmpeg-5389-532 -i /tmp/ffmpeg-5389-851 -i /tmp/ffmpeg-5389-804
-c:v copy -c:a copy -c:s ass -bsf:a aac_adtstoasc
-map 0:v? -map 0:a? -map 1:a -map 2:s -metadata:s:s:0 language=en -f matroska pipe:1

[stream.ffmpegmux][debug] Starting copy to pipe: /tmp/ffmpeg-5389-532
[stream.ffmpegmux][debug] Starting copy to pipe: /tmp/ffmpeg-5389-851
[stream.ffmpegmux][debug] Starting copy to pipe: /tmp/ffmpeg-5389-804
[cli][debug] Pre-buffering 8192 bytes
ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 8.1.1 (GCC) 20180531
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping
  --enable-avresample --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl
  --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdrm
  --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883
  --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb
  --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse
  --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2
  --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264
  --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvenc
  --enable-omx --enable-shared --enable-version3
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
[stream.hls][debug] Download of segment 114628259 complete
...
[stream.hls][debug] Download of segment 114628261 complete
Input #0, mpegts, from '/tmp/ffmpeg-5389-532':
  Duration: N/A, start: 26460.000000, bitrate: N/A
  Program 1 
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive),768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #1, aac, from '/tmp/ffmpeg-5389-851':
  Metadata:
    id3v2_priv.com.apple.streaming.transportStreamTimestamp: \x00\x00\x00\x00\x8d\xf1K\x80
  Duration: N/A, bitrate: 163 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 163 kb/s
[stream.hls][debug] Download of segment 114628261 complete
...

@Ordval
Copy link
Author

Ordval commented Jul 26, 2018

As I'm struggling to make this work, I suspect that all’s not right with FFmpeg:
when extracting it all ends up to the same folder !
I find it difficult to find a simple guide that tells you
which files should go in what folders, or doesn't it matter anyway ?

EDIT. Compiling (?) FFmpeg.
Answering my own question, following an old versions build;
all the .html and the 3 .css goes into “doc”, the 3 .exe into “bin”
and of course all the .ffpreset and ffprobe.xsd goes into the “presets” folder.

Now I’ll just have to see if it “made all better”.

@Ordval
Copy link
Author

Ordval commented Aug 1, 2018

back-to wrote:

to get the muxed hls stream use
--zattoo-stream-types hls5

On many of the attempts, following and previous, the subtitle option(-s)
are highlighted in VLC and MPC,
giving the impression they would be available;... and they aren't.

No modification in streamlink-0.14.2-20180725, added --ffmpeg-verbose
without the --hls-subtitles command
"subtitle:0kB", 1.60 GB (1,681,210,384 byte)
Done my best to be quick to copy the first bit that gets erased (why?):

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.32 --za
ttoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-types hl
s5 --ffmpeg-verbose -l debug "https://zattoo.com/watch/tve/142146553-luna-de-ver
ano/122508268/1530978900000/1530986100000/0" best -o "C:\~\Filmer\Luna d
e Verano (1959) u --hls-subtitles fö 2.mp4"
[plugin.zattoo][debug] Restored cookies: beaker.session.id, pzuid
[cli][debug] OS:         Windows 7
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxxl@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 122508268
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: en_GB
[stream.hls][debug] Using external audio tracks for stream 432p (language=es, na
me=Español)
[stream.hls][debug] Using external audio tracks for stream 288p (language=es, na
me=Español)
[stream.hls][debug] Using external audio tracks for stream 288p_alt (language=es
, name=Español)
[utils.l10n][debug] Language code: en_GB
[stream.hls][debug] Using external audio tracks for stream 288p (language=es, na
me=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[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
etc.
[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] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[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.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.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streaml
ink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-7740-342 -i \\.\pipe\ffmpeg
-7740-943 -c:v copy -c:a copy -map 0:v? -map 0:a? -map 1:a -f mpegts pipe:1
[stream.hls][debug] Adding segment 8 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7740-342
[stream.hls][debug] Adding segment 9 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7740-943
[stream.hls][debug] Adding segment 10 to queue
etc.
[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 1 complete
[stream.hls][debug] Adding segment 23 to queue
[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
ffmpeg version n3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/opt/ffmpeg-windo
ws-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --
pkg-config=pkg-config --disable-w32threads --enable-libsoxr --enable-fontconfig
--enable-libass --enable-libbluray --enable-iconv --enable-libtwolame --extra-cf
lags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug -
-extra-libs=-lstdc++ --extra-libs=-lpng --enable-decklink --extra-libs=-loleaut3
2 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnu
tls --enable-libgsm --enable-libfreetype --enable-libopus --enable-bzlib --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-
libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-li
bwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-li
bopenh264 --enable-netcdf --enable-libflite --enable-lzma --enable-libsnappy --e
nable-libzimg --enable-gpl --enable-libx264 --enable-libx265 --enable-frei0r --e
nable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libxavs
--enable-libxvid --enable-libmfx --extra-libs=-lpsapi --extra-libs=-lspeexdsp --
extra-cflags='-mtune=core2' --extra-cflags=-O3 --enable-static --disable-shared
--prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i68
6/i686-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
Input #0, mpegts, from '\\.\pipe\ffmpeg-7740-342':
  Duration: N/A, start: 46200.000000, bitrate: N/A
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(pro
gressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #1, aac, from '\\.\pipe\ffmpeg-7740-943':
  Duration: N/A, bitrate: 147 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 147 kb/s
Output #0, mpegts, to 'pipe:1':
  Metadata:
    encoder         : Lavf57.56.100
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressiv
e), 768x432 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, [stream.hls][debug] Download of
segment 2 complete
25 tbr, 90k tbn,[stream.hls][debug] Adding segment 24 to queue
 90k tbc
    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, 147 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 009feea0] Thread message queue blocking; consider raising the thread_q
ueue_size option (current value: 8)
[cli][debug] Checking file output
[aac @ 069e1320] Thread message queue blocking; consider raising the thread_queu
e_size option (current value: 8)
[cli][debug] Writing stream to output
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 to queue
[mpegts @ 069f2600] AAC bitstream not in ADTS format and extradata missing
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 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 3 complete
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Adding segment 25 to queue
[download][..subtitles fö 2 test.mp4] Written 2.3 MB (0s @ 2.8 MB/s)
[stream.hls][debug] Download of segment 10 complete
[stream.hls][debug] Adding segment 32 to queue
[stream.hls][debug] Download of segment 11 complete
etc.
[stream.hls][debug] Adding segment 39 to queue
[stream.hls][debug] Download of segment 18 complete
[stream.hls][debug] Adding segment 40 to queue
[download][..) u --hls-subtitles.mp4] Written 13.6 MB (5s @ 1.9 MB/s)
[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 19 complete
[stream.hls][debug] Adding segment 41 to queue
[stream.hls][debug] Download of segment 20 complete
[stream.hls][debug] Adding segment 42 to queue
[download][..) u --hls-subtitles.mp4] Written 15.2 MB (5s @ 1.9 MB/s)
[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 21 complete
[stream.hls][debug] Adding segment 43 to queue
[stream.hls][debug] Download of segment 22 complete
[download][..) u --hls-subtitles.mp4] Written 16.7 MB (6s @ 1.9 MB/s)          [
stream.hls][debug] Adding segment 44 to queue

Last message repeated 23 [stream.hls][debug] Download of segment 28 complete 

[stream.hls][debug] Adding segment 93 to queue
[download][..) u --hls-subtitles.mp4] Written 53.8 MB (28s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 92 complete
[stream.hls][debug] Adding segment 114 to queue
[stream.hls][debug] Download of segment 72 complete
[stream.hls][debug] Adding segment 94 to queue
[download][..) u --hls-subtitles.mp4] Written 54.7 MB (29s @ 1.7 MB/s)         [
stream.hls][debug] Download of segment 93 complete
[stream.hls][debug] Adding segment 115 to queue
[stream.hls][debug] Download of segment 73 complete
[stream.hls][debug] Adding segment 95 to queue
[download][..) u --hls-subtitles.mp4] Written 56.0 MB (29s @ 1.8 MB/s)         [
stream.hls][debug] Download of segment 94 complete
[stream.hls][debug] Adding segment 116 to queue
[stream.hls][debug] Download of segment 95 complete
[stream.hls][debug] Adding segment 117 to queue
[stream.hls][debug] Download of segment 74 complete
etc.
[stream.hls][debug] Download of segment 2167 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m10s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 2168 complete
[stream.hls][debug] Download of segment 2169 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m11s @ 1.8 MB/s)
[stream.hls][debug] Download of segment 2170 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m12s @ 1.9 MB/s)      [
stream.hls][debug] Download of segment 2171 complete
[stream.hls][debug] Download of segment 2172 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m12s @ 1.8 MB/s)
[stream.hls][debug] Download of segment 2173 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m13s @ 1.9 MB/s)      [
stream.hls][debug] Download of segment 2174 complete
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2040-94
    Last message repeated 2179 times
\\.\pipe\ffmpeg-2040-94: Invalid argument
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m14s @ 1.9 MB/s)      [
mpegts @ 06580060] AAC bitstream not in ADTS format and extradata missing
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m14s @ 1.6 MB/s)
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m15s @ 1.2 MB/s)
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2040-14
    Last message repeated 8 times
\\.\pipe\ffmpeg-2040-14: Invalid argument
[mpegts @ 06580060] AAC bitstream not in ADTS format and extradata missing
    Last message repeated 1 times
frame=217500 fps=223 q=-1.0 Lsize= 1681210kB time=02:25:44.87 bitrate=1574.9kbit
s/s speed=8.97x
video:1395348kB audio:138840kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 9.583056%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

Without beardypigs .py's modifications in Streamlink-0.14.2-20180725 added
--ffmpeg-verbose --locale es_ES --hls-subtitles
at least the subtitles option is highlighted in VLC but no functional subs.,
"subtitle:228kB", 1.46 GB (1,570,365,391 byte)
Audio gradually gets out of sync and file can't be clicked through:

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.16 --za
ttoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-types hl
s5 --ffmpeg-verbose --locale es_ES --hls-subtitles -l debug "https://zattoo.com/
watch/tve/142146553-luna-de-verano/122508268/1530978900000/1530986100000/0" best
 -o "C:~\Filmer\Luna de Verano (1959) m --hls-subtitles fö 4 .mkv"
[plugin.zattoo][debug] Restored cookies: beaker.session.id, pzuid
[cli][debug] OS:         Windows 7
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxxl@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 122508268
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 432p AUDIO:(language=es, na
me=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, na
me=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p_alt AUDIO:(language=es
, name=Español), SUBTITLES:(language=es, name=Español)
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, na
me=Español), SUBTITLES:(language=es, name=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
etc.
[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: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
etc.
[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] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[stream.hls][debug] Adding segment 0 to queue
[stream.hls][debug] Download of segment 1 complete
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 23 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streaml
ink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-7508-217 -i \\.\pipe\ffmpeg
-7508-520 -i \\.\pipe\ffmpeg-7508-251 -c:v copy -c:a copy -c:s ass -bsf:a aac_ad
tstoasc -map 0:v? -map 0:a? -map 1:a -map 2:s -metadata:s:s:0 language=es -f mat
roska pipe:1
[stream.hls][debug] Adding segment 3 to queue
[stream.hls][debug] Adding segment 4 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7508-217
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7508-520
[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.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7508-251
[stream.hls][debug] Adding segment 8 to queue
[stream.hls][debug] Adding segment 9 to queue
etc.
[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 1 complete
etc.
[stream.hls][debug] Adding segment 35 to queue
[stream.hls][debug] Download of segment 8 complete
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Download of segment 14 complete
[stream.hls][debug] Adding segment 36 to queue
ffmpeg version n3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/opt/ffmpeg-windo
ws-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --
pkg-config=pkg-config --disable-w32threads --enable-libsoxr --enable-fontconfig
--enable-libass --enable-libbluray --enable-iconv --enable-libtwolame --extra-cf
lags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug -
-extra-libs=-lstdc++ --extra-libs=-lpng --enable-decklink --extra-libs=-loleaut3
2 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnu
tls --enable-libgsm --enable-libfreetype --enable-libopus --enable-bzlib --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-
libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-li
bwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-li
bopenh264 --enable-netcdf --enable-libflite --enable-lzma --enable-libsnappy --e
nable-libzimg --enable-gpl --enable-libx264 --enable-libx265 --enable-frei0r --e
nable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libxavs
--enable-libxvid --enable-libmfx --extra-libs=-lpsapi --extra-libs=-lspeexdsp --
extra-cflags='-mtune=core2' --extra-cflags=-O3 --enable-static --disable-shared
--prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i68
6/i686-w64-mingw32 --enable-runtime-cpudetect
[stream.hls][debug] Download of segment 15 complete
[stream.hls][debug] Adding segment 37 to queue
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Download of segment 16 complete
[stream.hls][debug] Adding segment 38 to queue
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[stream.hls][debug] Download of segment 17 complete
[stream.hls][debug] Adding segment 39 to queue
[stream.hls][debug] Download of segment 10 complete
[stream.hls][debug] Adding segment 32 to queue
[stream.hls][debug] Download of segment 18 complete
[stream.hls][debug] Adding segment 40 to queue
[stream.hls][debug] Download of segment 11 complete
[stream.hls][debug] Adding segment 33 to queue
[stream.hls][debug] Download of segment 19 complete
[stream.hls][debug] Adding segment 41 to queue
[stream.hls][debug] Download of segment 12 complete
[stream.hls][debug] Adding segment 34 to queue
[stream.hls][debug] Download of segment 20 complete
[stream.hls][debug] Adding segment 42 to queue
[stream.hls][debug] Download of segment 21 complete
[stream.hls][debug] Adding segment 43 to queue
[stream.hls][debug] Download of segment 13 complete
[stream.hls][debug] Adding segment 35 to queue
[stream.hls][debug] Download of segment 22 complete
[stream.hls][debug] Download of segment 4 complete
[stream.hls][debug] Adding segment 44 to queue
[stream.hls][debug] Adding segment 26 to queue
Input #0, mpegts, from '\\.\pipe\ffmpeg-7508-217':
  Duration: N/A, start: 46200.000000, bitrate: N/A
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(pro
gressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #1, aac, from '\\.\pipe\ffmpeg-7508-520':
  Duration: N/[stream.hls][debug] Download of segment 23 complete
A, bitrate: 147 kb/s
    Stream #1:0[stream.hls][debug] Download of segment 14 complete
: Audio: aac (LC), 48000 Hz, stereo, fltp, 147 kb/
[stream.hls][debug] Adding segment 36 to queue
[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 15 complete
[stream.hls][debug] Adding segment 37 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 16 complete
[stream.hls][debug] Adding segment 38 to queue
[stream.hls][debug] Download of segment 27 complete
[stream.hls][debug] Adding segment 49 to queue
[stream.hls][debug] Download of segment 17 complete
[stream.hls][debug] Download of segment 28 complete
etc.
[stream.hls][debug] Download of segment 46 complete
[stream.hls][debug] Adding segment 68 to queue
[stream.hls][debug] Download of segment 279 complete
[stream.hls][debug] Adding segment 301 to queue
[download][..hls-subtitles fö 4 .mkv] Written 16.0 MB (5s @ 3.6 MB/s)          [
AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 47 complete
etc.
[stream.hls][debug] Adding segment 309 to queue
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 55 complete
[stream.hls][debug] Adding segment 77 to queue
[stream.hls][debug] Download of segment 288 complete
[stream.hls][debug] Adding segment 310 to queue
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..hls-subtitles fö 4 .mkv] Written 22.3 MB (7s @ 3.2 MB/s)          [
stream.hls][debug] Download of segment 56 complete
etc.
[stream.hls][debug] Adding segment 337 to queue
[download][..hls-subtitles fö 4 .mkv] Written 40.8 MB (12s @ 3.8 MB/s)         [
AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 316 complete
etc.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 322 complete
[stream.hls][debug] Adding segment 344 to queue
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 323 complete
etc.
[stream.hls][debug] Adding segment 100 to queue
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 330 complete
[stream.hls][debug] Adding segment 352 to queue
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 331 complete
[stream.hls][debug] Adding segment 353 to queue
etc.
[download][..hls-subtitles fö 4 .mkv] Written 1.46 GB (14m45s @ 1.6 MB/s)      [
stream.hls][debug] Download of segment 2169 complete
etc.
[download][..hls-subtitles fö 4 .mkv] Written 1.46 GB (14m47s @ 1.7 MB/s)      [
stream.hls][debug] Download of segment 2174 complete
[stream.segmented][debug] Closing writer thread
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-7508-217
\\.\pipe\ffmpeg-7508-217: Invalid argument
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..hls-subtitles fö 4 .mkv] Written 1.46 GB (14m48s @ 1.8 MB/s)      [
AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
etc.
[AVBSFContext @ 06a4db60] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-7508-520
\\.\pipe\ffmpeg-7508-520: Invalid argument
[matroska @ 06a10860] Starting new cluster due to timestamp
[download][..hls-subtitles fö 4 .mkv] Written 1.46 GB (14m49s @ 1.6 MB/s)      f
rame=217500 fps=244 q=-1.0 Lsize= 1533560kB time=15:14:57.13 bitrate= 228.8kbits
/s speed=61.7x
video:1395348kB audio:135887kB subtitle:228kB other streams:0kB global headers:1
kB muxing overhead: 0.136929%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

No modification in streamlink-0.14.2-20180725 with --ffmpeg-verbose, --locale es_ES
subtitle:0kB

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.33 --za
ttoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-types hl
s5 --ffmpeg-verbose --locale es_ES -l debug "https://zattoo.com/watch/tve/142146
553-luna-de-verano/122508268/1530978900000/1530986100000/0" best -o 
"C:\~\Filmer\Luna de Verano (1959) u --hls-subtitles fö 3 .mp4"
[plugin.zattoo][debug] Restored cookies: pzuid, beaker.session.id
[cli][debug] OS:         Windows 7
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/14
2146553-luna-de-verano/122508268/1530978900000/1530986100000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxxl@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 122508268
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external audio tracks for stream 432p (language=es, na
me=Español)
[stream.hls][debug] Using external audio tracks for stream 288p (language=es, na
me=Español)
[stream.hls][debug] Using external audio tracks for stream 288p_alt (language=es
, name=Español)
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external audio tracks for stream 288p (language=es, na
me=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[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
etc.
[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] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 2174
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequ
ence: 2174
[stream.hls][debug] Adding segment 0 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streaml
ink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-5464-422 -i \\.\pipe\ffmpeg
-5464-764 -c:v copy -c:a copy -map 0:v? -map 0:a? -map 1:a -f mpegts pipe:1
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-5464-422
[stream.hls][debug] Adding segment 3 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-5464-764
[stream.hls][debug] Adding segment 4 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[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 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
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 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
etc.
[stream.hls][debug] Adding segment 78 to queue
    Last message rep[stream.hls][debug] Download of segment 189 complete
e[stream.hls][debug] Adding segment 211 to queue
[download][..hls-subtitles fö 3 .mp4] Written 43.0 MB (20s @ 1.7 MB/s)         [
stream.hls][debug] Download of segment 190 complete
[stream.hls][debug] Adding segment 212 to queue
[stream.hls][debug] Download of segment 191 complete
etc.
[stream.hls][debug] Adding segment 237 to queue
[stream.hls][debug] Download of segment 216 complete
[stream.hls][debug] Download of segment 63 complete
 [stream.hls][debug] Adding segment 85 to queue
 [stream.hls][debug] Adding segment 238 to queue
  Last mess[stream.hls][debug] Download of segment 217 complete
[stream.hls][debug] Adding segment 239 to queue
[download][..hls-subtitles fö 3 .mp4] Written 48.0 MB (23s @ 1.4 MB/s)         [
stream.hls][debug] Download of segment 218 complete
[stream.hls][debug] Adding segment 240 to queue
[stream.hls][debug] Download of segment 219 complete
etc.
[stream.hls][debug] Adding segment 245 to queue
[stream.hls][debug] Download of segment 65 complete
[stream.hls][debug] Adding segment 87 to queue
[download][..hls-subtitles fö 3 .mp4] Written 49.2 MB (24s @ 1.6 MB/s)
   Las[stream.hls][debug] Download of segment 224 complete
t[stream.hls][debug] Adding segment 246 to queue
[stream.hls][debug] Download of segment 225 complete
etc.
[stream.hls][debug] Adding segment 318 to queue
[stream.hls][debug] Download of segment 297 complete
[stream.hls][debug] Adding segment 319 to queue
[stream.hls][debug] Download of segment 298 complete
[stream.hls][debug] Adding segment 320 to queue
etc.
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m32s @ 1.6 MB/s)      [
stream.hls][debug] Download of segment 2168 complete
[stream.hls][debug] Download of segment 2169 complete
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m32s @ 1.6 MB/s)
[stream.hls][debug] Download of segment 2170 complete
[stream.hls][debug] Download of segment 2171 complete
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m33s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 2172 complete
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m34s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 2173 complete
[stream.hls][debug] Download of segment 2174 complete
[stream.segmented][debug] Closing writer thread
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m35s @ 1.6 MB/s)
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-5464-422
    Last message repeated 2179 times
\\.\pipe\ffmpeg-5464-422: Invalid argument
[mpegts @ 06a92600] AAC bitstream not in ADTS format and extradata missing
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m35s @ 1.7 MB/s)
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-5464-764
    Last message repeated 8 times
\\.\pipe\ffmpeg-5464-764: Invalid argument
[mpegts @ 06a92600] AAC bitstream not in ADTS format and extradata missing
    Last message repeated 1 times
frame=217500 fps=232 q=-1.0 Lsize= 1681218kB time=02:25:45.28 bitrate=1574.9kbit
s/s speed=9.34x
video:1395348kB audio:138847kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 9.583060%
[download][..hls-subtitles fö 3 .mp4] Written 1.60 GB (15m36s @ 1.6 MB/s)
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

Maybe these following previous attempts will be regarded as garbage information as the .css
was in the “bin” folder, unsure about ffprobe.xsd.

For the following attempts with the 'faulty' FFmpeg I've used this
(is all of it called a command or a string?):
call streamlink.exe --http-header X-Forwarded-For=82.102.24.54 zattoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-types hls5 --hls-subtitles --ffmpeg-verbose "https://zattoo.com/watch/tve/142146553-luna-de-verano/122508268/1530978900000/1530986100000/0" best -o "C:\~\Filmer\Luna de Verano (1959) m --hls-subtitles.mp4"

Here with .py modifications as you will see,
without the --hls-subtitles command.

Downloaded with a trial of SaferVPN
down 3.61 Mbit/s up 2.08 Mbit/s answer(Swedish) 88.99 ms (Bredbandskollen)

On this one, you can't click through the video, subtitle:228kB:

(The bit above here gets erased, why?,  
but the bit I could copy):

[download][..19xx) hls5 försök 2.mkv] Written 13.9 MB (4s @ 3.8 MB/s)          [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..19xx) hls5 försök 2.mkv] Written 15.9 MB (4s @ 4.3 MB/s)          [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!

(the bit following here is just a long repeat, but an increase of the downloaded)

Error applying bitstream filters to an output packet for stream #0:1.
[download][..19xx) hls5 försök 2.mkv] Written 23.5 MB (7s @ 2.7 MB/s)          [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..19xx) hls5 försök 2.mkv] Written 24.2 MB (11s @ 1.2 MB/s)         [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!
     etc.
Error applying bitstream filters to an output packet for stream #0:1.
[download][..19xx) hls5 försök 2.mkv] Written 962.4 MB (2h1m15s @ 75.2 KB/s)   [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
etc.
[download][..19xx) hls5 försök 2.mkv] Written 962.4 MB (2h1m16s @ 66.4 KB/s)   [
AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 067b0160] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
\\.\pipe\ffmpeg-2648-422: Invalid argument
[matroska @ 06a725c0] Starting new cluster due to timestamp
[download][..19xx) hls5 försök 2.mkv] Written 962.6 MB (2h1m16s @ 98.9 KB/s)   f
rame=217500 fps= 30 q=-1.0 Lsize=  985875kB time=15:14:57.13 bitrate= 147.1kbits
/s speed=7.54x
video:882112kB audio:101825kB subtitle:228kB other streams:0kB global headers:1k
B muxing overhead: 0.173684%
[download][..19xx) hls5 försök 2.mkv] Written 962.8 MB (2h1m17s @ 149.6 KB/s)
[cli][info] Stream ended
[cli][info] Closing currently open stream...

Without the --hls-subtitles command.
Here, One can click through the video but the audio gradually gets out of sync:
subtitle:0kB, downloaded 1.61 GB:

[download][..) u --hls-subtitles.mp4] Written 159.2 MB (1m36s @ 1.7 MB/s)
[download][..) u --hls-subtitles.mp4] Written 160.2 MB (1m36s @ 1.8 MB/s)
[download][..) u --hls-subtitles.mp4] Written 161.3 MB (1m37s @ 1.7 MB/s)
[download][..) u --hls-subtitles.mp4] Written 162.2 MB (1m38s @ 1.8 MB/s)
[download][..) u --hls-subtitles.mp4] Written 163.2 MB (1m38s @ 1.8 MB/s)

(same here with the long repeat, but an increase of the downloaded)

[download][..) u --hls-subtitles.mp4] Written 452.5 MB (4m37s @ 1.5 MB/s)
[download][..) u --hls-subtitles.mp4] Written 453.8 MB (4m38s @ 1.7 MB/s)
[download][..) u --hls-subtitles.mp4] Written 454.8 MB (4m39s @ 1.0 MB/s)
 etc.
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (18m9s @ 1.5 MB/s)
etc.
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (18m14s @ 1.3 MB/s)
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (18m14s @ 1.2 MB/s)
    Last message repeated 2179 times
\\.\pipe\ffmpeg-572-590: Invalid argument
[mpegts @ 06b8e320] AAC bitstream not in ADTS format and extradata missing
[download][..) u --hls-subtitles.mp4] Written 1.61 GB (18m15s @ 1.2 MB/s)
[download][..) u --hls-subtitles.mp4] Written 1.61 GB (18m15s @ 1.3 MB/s)
    Last message repeated 8 times
\\.\pipe\ffmpeg-572-479: Invalid argument
[mpegts @ 06b8e320] AAC bitstream not in ADTS format and extradata missing
    Last message repeated 1 times
frame=217499 fps=198 q=-1.0 Lsize= 1684109kB time=02:25:44.87 bitrate=1577.6kbit
s/s speed=7.98x
video:1398010kB audio:138840kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 9.581865%
[download][..) u --hls-subtitles.mp4] Written 1.61 GB (18m16s @ 1.2 MB/s)
[cli][info] Stream ended
[cli][info] Closing currently open stream...

subtitle:0kB Written 962.8 MB, not a click-trough video:

first bit gone
[stream.hls][debug] Adding segment 2164 to queue
[stream.hls][debug] Download of segment 2143 complete
[stream.hls][debug] Adding segment 2165 to queue
[download][..) u --hls-subtitles.mp4] Written 1.58 GB (16m0s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 2144 complete
[stream.hls][debug] Adding segment 2166 to queue
[stream.hls][debug] Download of segment 2145 complete
etc.
[stream.hls][debug] Download of segment 2167 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m10s @ 1.7 MB/s)
[stream.hls][debug] Download of segment 2168 complete
[stream.hls][debug] Download of segment 2169 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m11s @ 1.8 MB/s)
[stream.hls][debug] Download of segment 2170 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m12s @ 1.9 MB/s)      [
stream.hls][debug] Download of segment 2171 complete
[stream.hls][debug] Download of segment 2172 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m12s @ 1.8 MB/s)
[stream.hls][debug] Download of segment 2173 complete
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m13s @ 1.9 MB/s)      [
stream.hls][debug] Download of segment 2174 complete
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2040-94
    Last message repeated 2179 times
\\.\pipe\ffmpeg-2040-94: Invalid argument
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m14s @ 1.9 MB/s)      [
mpegts @ 06580060] AAC bitstream not in ADTS format and extradata missing
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m14s @ 1.6 MB/s)
[download][..) u --hls-subtitles.mp4] Written 1.60 GB (16m15s @ 1.2 MB/s)
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-2040-14
    Last message repeated 8 times
\\.\pipe\ffmpeg-2040-14: Invalid argument
[mpegts @ 06580060] AAC bitstream not in ADTS format and extradata missing
    Last message repeated 1 times
frame=217500 fps=223 q=-1.0 Lsize= 1681210kB time=02:25:44.87 bitrate=1574.9kbit
s/s speed=8.97x
video:1395348kB audio:138840kB subtitle:0kB other streams:0kB global headers:0kB
 muxing overhead: 9.583056%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread

subtitle:0kB

First  bit missing 
[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 4 complete
[download][..subtitles fö 2 test.mp4] Written 3.0 MB (1s @ 2.0 MB/s)           [
stream.hls][debug] Adding segment 26 to queue
[stream.hls][debug] Download of segment 16 complete
etc.
[stream.hls][debug] Adding segment 27 to queue
[download][..subtitles fö 2 test.mp4] Written 3.8 MB (2s @ 1.7 MB/s)           [
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
[download][..subtitles fö 2 test.mp4] Written 4.5 MB (2s @ 1.6 MB/s)[stream.hls]
[debug] Download of segment 25 complete
[download][..subtitles fö 2 test.mp4] Written 4.6 MB (5s @ 814.2 KB/s)         [
stream.hls][debug] Download of segment 6 complete
[stream.hls][debug] Download of segment 26 complete
[stream.hls][debug] Download of segment 27 complete
[stream.hls][debug] Adding segment 46 to queue
[stream.hls][debug] Adding segment 47 to queue
[stream.hls][debug] Adding segment 48 to queue
[stream.hls][debug] Adding segment 49 to queue
[stream.hls][debug] Adding segment 28 to queue
[stream.hls][debug] Download of segment 28 complete
[stream.hls][debug] Download of segment 29 complete
[stream.hls][debug] Download of segment 7 complete
[stream.hls][debug] Download of segment 30 complete
[stream.hls][debug] Download of segment 31 complete
[stream.hls][debug] Adding segment 50 to queue
[stream.hls][debug] Adding segment 51 to queue
[stream.hls][debug] Adding segment 52 to queue
[stream.hls][debug] Adding segment 53 to queue
[stream.hls][debug] Download of segment 8 complete
[stream.hls][debug] Adding segment 29 to queue
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Download of segment 10 complete
[stream.hls][debug] Download of segment 32 complete
[stream.hls][debug] Download of segment 11 complete
[stream.hls][debug] Download of segment 33 complete
[stream.hls][debug] Download of segment 34 complete
[stream.hls][debug] Adding segment 54 to queue
[stream.hls][debug] Adding segment 55 to queue
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Download of segment 35 complete
[stream.hls][debug] Download of segment 12 complete
[stream.hls][debug] Adding segment 56 to queue
[stream.hls][debug] Adding segment 32 to queue
[stream.hls][debug] Download of segment 36 complete
etc.
[stream.hls][debug] Download of segment 46 complete
[stream.hls][debug] Download of segment 47 complete
[stream.hls][debug] Adding segment 33 to queue
[stream.hls][debug] Adding segment 34 to queue
[stream.hls][debug] Adding segment 57 to queue
etc.
[stream.hls][debug] Adding segment 68 to queue
[stream.hls][debug] Adding segment 69 to queue
[stream.hls][debug] Download of segment 13 complete
[stream.hls][debug] Adding segment 35 to queue
[stream.hls][debug] Download of segment 48 complete
[download][..subtitles fö 2 test.mp4] Written 6.6 MB (6s @ 817.5 KB/s)         [
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 14 complete
[stream.hls][debug] Adding segment 36 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 15 complete
[stream.hls][debug] Adding segment 37 to queue
[download][..subtitles fö 2 test.mp4] Written 11.4 MB (6s @ 1.6 MB/s)          [
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 16 complete
[stream.hls][debug] Adding segment 38 to queue
[stream.hls][debug] Download of segment 58 complete
[stream.hls][debug] Adding segment 80 to queue
[download][..subtitles fö 2 test.mp4] Written 12.5 MB (7s @ 1.7 MB/s)          [
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 17 complete
[stream.hls][debug] Download of segment 61 complete
[stream.hls][debug] Adding segment 39 to queue
[stream.hls][debug] Adding segment 83 to queue
    Last message repeated 17 times
frame= 1699 fps=219 q=-1.0 Lsize=   13181kB time=00:01:07.88 bitrate=1590.6kbits
/s speed=8.76x
video:10946kB audio:1079kB subtitle:0kB other streams:0kB global headers:0kB mux
ing overhead: 9.608857%
Exiting normally, received signal 2.
[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.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
Interrupted! Exiting...
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

Did my best to be quick to get the first bit.
a Try with --hls-subtitles, only this one with -l debug
not a complete download (subtitle:0kB) :

[stream.hls][debug] Adding segment 0 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\Users\~\Local\Streaml
ink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-7360-304 -i \\.\pipe\ffmpeg
-7360-990 -i \\.\pipe\ffmpeg-7360-630 -c:v copy -c:a copy -c:s ass -bsf:a aac_ad
tstoasc -map 0:v? -map 0:a? -map 1:a -map 2:s -metadata:s:s:0 language=es -f mat
roska pipe:1
[stream.hls][debug] Adding segment 1 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7360-304
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7360-990
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-7360-630
[stream.hls][debug] Download of segment 7 complete
[stream.hls][debug] Adding segment 4 to queue
etc.
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] Adding segment 29 to queue
[stream.hls][debug] Download of segment 4 complete
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 26 to queue
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 8 complete
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Download of segment 1 complete
[stream.hls][debug] Adding segment 23 to queue
ffmpeg version n3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/opt/ffmpeg-windo
ws-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --
pkg-config=pkg-config --disable-w32threads --enable-libsoxr --enable-fontconfig
--enable-libass --enable-libbluray --enable-iconv --enable-libtwolame --extra-cf
lags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug -
-extra-libs=-lstdc++ --extra-libs=-lpng --enable-decklink --extra-libs=-loleaut3
2 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-
libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnu
tls --enable-libgsm --enable-libfreetype --enable-libopus --enable-bzlib --enabl
e-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-
libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-li
bwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-li
bopenh264 --enable-netcdf --enable-libflite --enable-lzma --enable-libsnappy --e
nable-libzimg --enable-gpl --enable-libx264 --enable-libx265 --enable-frei0r --e
nable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libxavs
--enable-libxvid --enable-libmfx --extra-libs=-lpsapi --extra-libs=-lspeexdsp --
extra-cflags='-mtune=core2' --extra-cflags=-O3 --enable-static --disable-shared
--prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i68
6/i686-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 to queue
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
Input #0, mpegts, from '\\.\pipe\ffmpeg-7360-304':
  Duration: N/A, start: 46200.000000, bitrate: N/A
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(pro
gressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 to queue
Input #1, aac, from '\\.\pipe\ffmpeg-7360-990':
  Duration: N/A, bitrate: 6 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 6 kb/s
[stream.hls][debug] Download of segment 4 complete
etc.
[stream.hls][debug] Adding segment 27 to queue
[stream.hls][debug] Download of segment 11 complete
 etc.
[stream.hls][debug] Download of segment 156 complete
[stream.hls][debug] Adding segment 178 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1556 complete
etc.
[stream.hls][debug] Adding segment 1581 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 2.8 MB (30s @ 58.8 KB/s)         [
stream.hls][debug] Download of segment 1560 complete
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
etc.
[stream.hls][debug] Adding segment 1585 to queue
[stream.hls][debug] Download of segment 1564 complete
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Adding segment 1586 to queue
[download][..) m --hls-subtitles.mp4] Written 2.9 MB (30s @ 67.7 KB/s)         [
stream.hls][debug] Download of segment 1565 complete
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1567 complete
etc.
[stream.hls][debug] Adding segment 1592 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 2.9 MB (31s @ 64.0 KB/s)         [
stream.hls][debug] Download of segment 1571 complete
etc.
[stream.hls][debug] Adding segment 1594 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1573 complete
etc.
[stream.hls][debug] Adding segment 1597 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 2.9 MB (31s @ 67.0 KB/s)[stream.hl
s][debug] Download of segment 1576 complete
         [stream.hls][debug] Adding segment 1598 to queue
[stream.hls][debug] Download of segment 1577 complete
etc.
[stream.hls][debug] Adding segment 1600 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1579 complete
etc.
[stream.hls][debug] Adding segment 1603 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 3.0 MB (32s @ 68.5 KB/s)         [
stream.hls][debug] Download of segment 1582 complete
etc.
[stream.hls][debug] Adding segment 190 to queue
[download][..) m --hls-subtitles.mp4] Written 3.0 MB (32s @ 70.4 KB/s)         [
AVBSFContext @ 06b6c9a0] [stream.hls][debug] Download of segment 1588 complete
Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
etc.
[stream.hls][debug] Adding segment 192 to queue
[download][..) m --hls-subtitles.mp4] Written 3.1 MB (33s @ 69.5 KB/s)         [
AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1593 complete
etc.
[stream.hls][debug] Adding segment 1618 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1597 complete
etc.
[stream.hls][debug] Adding segment 194 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 3.1 MB (34s @ 68.4 KB/s)         [
stream.hls][debug] Download of segment 1600 complete
etc.
[stream.hls][debug] Adding segment 195 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1603 complete
etc.
[stream.hls][debug] Adding segment 1628 to queue
[download][..) m --hls-subtitles.mp4] Written 3.1 MB (34s @ 63.3 KB/s)         [
AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1607 complete
etc.
[stream.hls][debug] Adding segment 197 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1610 complete
etc.
[stream.hls][debug] Adding segment 1634 to queue
[download][..) m --hls-subtitles.mp4] Written 3.2 MB (35s @ 61.9 KB/s)         [
AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1613 complete
etc.
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1618 complete
[stream.hls][debug] Adding segment 1640 to queue
[stream.hls][debug] Download of segment 1619 complete
etc.
[stream.hls][debug] Adding segment 1657 to queue
[stream.hls][debug] Download of segment 185 complete
[stream.hls][debug] Adding segment 207 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 3.3 MB (37s @ 68.5 KB/s)         [
stream.hls][debug] Download of segment 1636 complete
etc.
[stream.hls][debug] Adding segment 2133 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 2112 complete
etc.
[stream.hls][debug] Adding segment 2147 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 2126 complete
[stream.hls][debug] Adding segment 2148 to queue
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
etc.
[download][..) m --hls-subtitles.mp4] Written 39.0 MB (9m44s @ 55.3 KB/s)      [
stream.hls][debug] Download of segment 2138 complete
[stream.hls][debug] Adding segment 2160 to queue
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 39.3 MB (9m49s @ 72.1 KB/s)      [
stream.hls][debug] Download of segment 2157 complete
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 2164 complete
[download][..) m --hls-subtitles.mp4] Written 39.5 MB (9m51s @ 67.2 KB/s)
Error parsing ADTS frame header!
etc.
[download][..) m --hls-subtitles.mp4] Written 39.5 MB (9m52s @ 67.3 KB/s)      [
stream.hls][debug] Download of segment 2167 complete
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 2168 complete
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 39.6 MB (9m53s @ 72.0 KB/s)      [
stream.hls][debug] Download of segment 2169 complete
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 39.6 MB (9m54s @ 69.4 KB/s)      [
stream.hls][debug] Download of segment 2173 complete
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 2174 complete
[stream.segmented][debug] Closing writer thread
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-7360-304
\\.\pipe\ffmpeg-7360-304: Invalid argument
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[download][..) m --hls-subtitles.mp4] Written 39.7 MB (9m54s @ 74.5 KB/s) 
etc.
[AVBSFContext @ 06b6c9a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
\\.\pipe\ffmpeg-7360-990: Invalid argument
frame=217500 fps=365 q=-1.0 Lsize=   40699kB time=02:25:32.73 bitrate=  38.2kbit
s/s speed=14.7x
video:36274kB audio:3581kB subtitle:0kB other streams:0kB global headers:1kB mux
ing overhead: 2.115989%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

Downloaded with a trial of Windscribe
down 11,90 Mbit/s up 11,74 Mbit/s answer(Swedish) 92.88 ms (Bredbandskollen)

And then on a more serious note;

Nightly FFmpeg (but is this version even being used here ?, put in PATH though),
Windows 10, with beardypigs .py's.

How to get hold of “Streamlink: 0.14.2+32.gfb5d46f.dirty” I don't know,
so I can't reproduce what back-to did.

"Luna de Verano" had expired so I took the next one from the list
and as this next movie was chopped into two, it was easier to just
downlod the 1st smaller file.

Here audio gradually gets out of sync, file can be clicked through
subtitle:0kB, 566.2 MB.

thread_queue_size option (
Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. All rights reserved.
  
$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.19 --zattoo-email="xxxx@xxx.yy" --zattoo-password="xxx" --zattoo-stream-type hls5 --ffmpeg-verbose --locale es_ES -l debug "https://zattoo.com/watch/tve/143618678-cine-de-barrio/123881211/1532188800000/1532190300000/0" best -o "C:\~\Videos\till Desken\Susana 1st half (19xx) Bear mod fö 5 .mkv"
[plugin.zattoo][debug] Restored cookies: pzuid, beaker.session.id
[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/143618678-cine-de-barrio/123881211/1532188800000/1532190300000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxx@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 123881211
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 432p AUDIO:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p_alt AUDIO:(language=es, name=Español)
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 749
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 749
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 749
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 749
[stream.hls][debug] Adding segment 0 to queue
[stream.hls][debug] Adding segment 1 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-11600-370 -i \\.\pipe\ffmpeg-11600-90 -c:v copy -c:a copy -c:s copy -map 0:v? -map 0:a? -map 1:a -f mpegts pipe:1
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-11600-370
[stream.hls][debug] Adding segment 4 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-11600-90
[stream.hls][debug] Adding segment 5 to queue
[stream.hls][debug] Adding segment 6 to queue
[stream.hls][debug] Adding segment 7 to queue
[cli][debug] Pre-buffering 8192 bytes
[stream.hls][debug] Adding segment 8 to queue
[stream.hls][debug] Adding segment 9 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
ffmpeg version n3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-libsoxr --enable-fontconfig --enable-libass --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-decklink --extra-libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-libopenh264 --enable-netcdf --enable-libflite --enable-lzma --enable-libsnappy --enable-libzimg --enable-gpl --enable-libx264 --enable-libx265 --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libxavs --enable-libxvid --enable-libmfx --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-cflags='-mtune=core2' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 1 complete
etc.
[stream.hls][debug] Adding segment 30 to queue
[stream.hls][debug] Download of segment 1 complete
[stream.hls][debug] Adding segment 23 to queue
Input #0, mpegts, from '\\.\pipe\ffmpeg-11600-370':
  Duration: N/A, start: 46500.000000, bitrate: N/A
  Program 1
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, 25 tbr, 90k tbn, 50 tbc
Input #1, aac, from '\\.\pipe\ffmpeg-11600-90':
  Duration: N/A, bitrate: 113 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 113 kb/s
Output #0, mpegts, to 'pipe:1':
  Metadata:
    encoder         : Lavf57.56.100
    Stream #0:0: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 768x432 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 90k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC), 48000 Hz, stereo, 113 kb/s
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
Press [q] to stop, [?] for help
[mpegts @ 0929fdc0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[cli][debug] Checking file output
File C:\~\Videos\till Desken\Susana 1st half (19xx) Bear mod try 5 .mkv already exists! Overwrite it? [y/N] 

(Had forgotten prevoiusly, to turn the VPN on).

[aac @ 09e29d80] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
y
[cli][debug] Writing stream to output
[mpegts @ 09ba0060] AAC bitstream not in ADTS format and extradata missing
[stream.hls][debug] Download of segment 9 complete
[stream.hls][debug] Adding segment 31 to queue
[stream.hls][debug] Download of segment 10 complete
etc.
[stream.hls][debug] Adding segment 33 to queue
[stream.hls][debug] Download of segment 70 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 8.3 MB (19s @ 402.9 KB/s)                                                [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
[download][..9xx) Bear mod try 5 .mkv] Written 9.1 MB (20s @ 411.6 KB/s)--- Logging error ---
                                                Traceback (most recent call last):
  File "logging\__init__.py", line 983, in emit
OSError: raw write() returned invalid length 106 (should have been between 0 and 53)
[download][..9xx) Bear mod try 5 .mkv] Written 9.1 MB (24s @ 283.0 KB/s)Call stack:
                                                    Last m  File "threading.py", line 882, in _bootstrap
e  File "threading.py", line 914, in _bootstrap_inner
s  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
s  File "logging\__init__.py", line 1267, in debug
  File "logging\__init__.py", line 1415, in _log
a  File "logging\__init__.py", line 1425, in handle
g  File "logging\__init__.py", line 1487, in callHandlers
e  File "logging\__init__.py", line 855, in handle
  File "logging\__init__.py", line 986, in emit
 Message: 'Download of segment {0} complete'
Arguments: (74,)
rep[stream.hls][debug] Download of segment 74 complete
[stream.hls][debug] Download of segment 12 complete
[stream.hls][debug] Download of segment 75 complete
[stream.hls][debug] Adding segment 96 to queue
[stream.hls][debug] Download of segment 13 complete
etc.
[stream.hls][debug] Adding segment 278 to queue
[stream.hls][debug] Download of segment 59 complete
[stream.hls][debug] Adding segment 81 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 44.5 MB (1m41s @ 486.8 KB/s)                                              [stream.hls][debug] Download of segment 257 complete
[stream.hls][debug] Adding segment 279 to queue
[stream.hls][debug] Download of segment 258 complete
etc.
[stream.hls][debug] Adding segment 338 to queue
[stream.hls][debug] Download of segment 76 complete
[stream.hls][debug] Adding segment 98 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 57.3 MB (2m8s @ 481.4 KB/s)                                               [stream.hls][debug] Download of segment 317 complete
[stream.hls][debug] Adding segment 339 to queue
[stream.hls][debug] Download of segment 318 complete
etc.
[stream.hls][debug] Adding segment 230 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 157.2 MB (5m11s @ 576.9 KB/s)                                             [stream.hls][debug] Download of segment 464 complete
[stream.hls][debug] Adding segment 486 to queue
[stream.hls][debug] Download of segment 209 complete
etc.
[stream.hls][debug] Adding segment 239 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 164.1 MB (5m23s @ 566.3 KB/s)                                            [stream.hls][debug] Download of segment 472 complete
[stream.hls][debug] Adding segment 494 to queue
[stream.hls][debug] Download of segment 218 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 164.8 MB (5m24s @ 559.4 KB/s)--- Logging error ---
                                            Traceback (most recent call last):
  File "logging\__init__.py", line 983, in emit
[download][..9xx) Bear mod fö 5 .mkv] Written 164.8 MB (5m25s @ 491.4 KB/s)OSError: raw write() returned invalid length 108 (should have been between 0 and 54)
                                            Call stack:
  File "threading.py", line 882, in _bootstrap
  File "threading.py", line 914, in _bootstrap_inner
   File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
   File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
   File "logging\__init__.py", line 1267, in debug
   File "logging\__init__.py", line 1415, in _log
  File "logging\__init__.py", line 1425, in handle
La  File "logging\__init__.py", line 1487, in callHandlers
s  File "logging\__init__.py", line 855, in handle
t  File "logging\__init__.py", line 986, in emit
 Message: 'Download of segment {0} complete'
Arguments: (218,)
m[stream.hls][debug] Download of segment 218 complete
[stream.hls][debug] Download of segment 473 complete
e[stream.hls][debug] Adding segment 240 to queue
s[stream.hls][debug] Adding segment 495 to queue
[stream.hls][debug] Download of segment 219 complete
[stream.hls][debug] Adding segment 241 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 165.6 MB (5m26s @ 571.5 KB/s)                                            [stream.hls][debug] Download of segment 474 complete
[stream.hls][debug] Adding segment 496 to queue
[stream.hls][debug] Download of segment 220 complete
[stream.hls][debug] Adding segment 242 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 166.3 MB (5m27s @ 564.0 KB/s)                                            [stream.hls][debug] Download of segment 475 complete
etc.
[stream.hls][debug] Adding segment 248 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 170.9 MB (5m36s @ 555.2 KB/s)                                            [stream.hls][debug] Download of segment 481 complete
[stream.hls][debug] Adding segment 503 to queue
[stream.hls][debug] Download of segment 227 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 171.6 MB (5m37s @ 558.6 KB/s)--- Logging error ---
                                            Traceback (most recent call last):
[download][..9xx) Bear mod fö 5 .mkv] Written 171.6 MB (5m42s @ 301.5 KB/s)  File "logging\__init__.py", line 983, in emit
                                            OSError: raw write() returned invalid length 108 (should have been between 0 and 54)
Call stack:
      File "threading.py", line 882, in _bootstrap
L  File "threading.py", line 914, in _bootstrap_inner
a  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
s  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
t   File "logging\__init__.py", line 1267, in debug
m  File "logging\__init__.py", line 1415, in _log
  File "logging\__init__.py", line 1425, in handle
  File "logging\__init__.py", line 1487, in callHandlers
  File "logging\__init__.py", line 855, in handle
  File "logging\__init__.py", line 986, in emit
Message: 'Download of segment {0} complete'
Arguments: (227,)
[stream.hls][debug] Download of segment 227 complete
[stream.hls][debug] Download of segment 482 complete
[stream.hls][debug] Adding segment 249 to queue
e[stream.hls][debug] Download of segment 228 complete
[stream.hls][debug] Adding segment 504 to queue
[stream.hls][debug] Adding segment 250 to queue
[stream.hls][debug] Download of segment 229 complete
[stream.hls][debug] Download of segment 230 complete
[stream.hls][debug] Adding segment 251 to queue
[stream.hls][debug] Adding segment 252 to queue
[stream.hls][debug] Download of segment 483 complete
[stream.hls][debug] Adding segment 505 to queue
[stream.hls][debug] Download of segment 484 complete
[stream.hls][debug] Adding segment 506 to queue
[stream.hls][debug] Download of segment 485 complete
[stream.hls][debug] Adding segment 507 to queue
[stream.hls][debug] Download of segment 231 complete
[stream.hls][debug] Adding segment 253 to queue
[stream.hls][debug] Download of segment 486 complete
[stream.hls][debug] Adding segment 508 to queue
[stream.hls][debug] Download of segment 232 complete
[stream.hls][debug] Adding segment 254 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 175.4 MB (5m43s @ 581.7 KB/s)                                            [stream.hls][debug] Download of segment 487 complete
[stream.hls][debug] Adding segment 509 to queue
[stream.hls][debug] Download of segment 233 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 176.2 MB (5m45s @ 567.9 KB/s)                                            [stream.hls][debug] Adding segment 255 to queue
[stream.hls][debug] Download of segment 488 complete
etc.
[stream.hls][debug] Download of segment 244 complete
[stream.hls][debug] Adding segment 266 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 184.5 MB (6m0s @ 563.7 KB/s)                                             [stream.hls][debug] Download of segment 499 complete
    Last mess[stream.hls][debug] Adding segment 521 to queue
[stream.hls][debug] Download of segment 245 complete
[stream.hls][debug] Adding segment 267 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 185.2 MB (6m1s @ 553.7 KB/s)                                             [stream.hls][debug] Download of segment 500 complete
[stream.hls][debug] Adding segment 522 to queue
[stream.hls][debug] Download of segment 246 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 186.0 MB (6m3s @ 556.5 KB/s)[stream.hls][debug] Adding segment 268 to queue
                                             [stream.hls][debug] Download of segment 501 complete
[stream.hls][debug] Adding segment 523 to queue
[stream.hls][debug] Download of segment 247 complete
etc.                                          [stream.hls][debug] Download of segment 566 complete
[stream.hls][debug] Adding segment 588 to queue
[stream.hls][debug] Download of segment 312 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 235.7 MB (7m33s @ 567.5 KB/s)[stream.hls][debug] Adding segment 334 to queue
                                            [stream.hls][debug] Download of segment 567 complete
[stream.hls][debug] Adding segment 589 to queue
[stream.hls][debug] Download of segment 313 complete
etc.                                            [stream.hls][debug] Download of segment 372 complete
[stream.hls][debug] Adding segment 394 to queue
[stream.hls][debug] Download of segment 626 complete
[stream.hls][debug] Adding segment 648 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 281.1 MB (8m56s @ 560.1 KB/s)                                             [stream.hls][debug] Download of segment 373 complete
[stream.hls][debug] Adding segment 395 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 281.8 MB (8m57s @ 560.2 KB/s)[stream.hls][debug] Download of segment 627 complete
                                            [stream.hls][debug] Adding segment 649 to queue
[stream.hls][debug] Download of segment 628 complete
[stream.hls][debug] Adding segment 650 to queue
 etc.                                      [stream.hls][debug] Download of segment 724 complete
[stream.hls][debug] Adding segment 746 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 355.8 MB (11m11s @ 575.2 KB/s)[stream.hls][debug] Download of segment 471 complete
                                           [stream.hls][debug] Adding segment 493 to queue
[stream.hls][debug] Download of segment 725 complete
etc.
[stream.hls][debug] Adding segment 543 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 393.6 MB (12m15s @ 601.7 KB/s)                                            [stream.hls][debug] Download of segment 522 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 394.3 MB (12m16s @ 601.7 KB/s)[stream.hls][debug] Adding segment 544 to queue
[stream.hls][debug] Download of segment 523 completemessage repeated 525 times
[stream.hls][debug] Adding segment 545 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 395.1 MB (12m18s @ 610.1 KB/s)                                            [stream.hls][debug] Download of segment 524 complete
etc.
[stream.hls][debug] Adding segment 683 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 499.5 MB (15m10s @ 632.7 KB/s)                                            [stream.hls][debug] Download of segment 662 complete
[stream.hls][debug] Adding segment 684 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 500.3 MB (15m11s @ 633.9 KB/s)                                            [stream.hls][debug] Download of segment 663 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 501.0 MB (15m13s @ 634.0 KB/s)--- Logging error ---
                                           Traceback (most recent call last):
  File "logging\__init__.py", line 983, in emit
OSError: raw write() returned invalid length 108 (should have been between 0 and 54)
[download][..9xx) Bear mod fö 5 .mkv] Written 501.0 MB (16m0s @ 58.7 KB/s)Call stack:
                                               File "threading.py", line 882, in _bootstrap
  File "threading.py", line 914, in _bootstrap_inner
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
  File "logging\__init__.py", line 1267, in debug
  File "logging\__init__.py", line 1415, in _log
  File "logging\__init__.py", line 1425, in handle
  File "logging\__init__.py", line 1487, in callHandlers
   File "logging\__init__.py", line 855, in handle
   File "logging\__init__.py", line 986, in emit
 Message: 'Download of segment {0} complete'
Arguments: (663,)
[stream.hls][debug] Download of segment 663 complete
[stream.hls][debug] Adding segment 685 to queue
[stream.hls][debug] Download of segment 664 complete
etc.
[stream.hls][debug] Download of segment 684 complete
[stream.hls][debug] Adding segment 706 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 508.7 MB (16m1s @ 195.9 KB/s)                                             [stream.hls][debug] Download of segment 685 complete
[stream.hls][debug] Adding segment 707 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 517.7 MB (16m2s @ 358.7 KB/s)                                             [stream.hls][debug] Download of segment 686 complete
etc.
[stream.hls][debug] Adding segment 722 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 529.1 MB (16m21s @ 623.0 KB/s)                                            [stream.hls][debug] Download of segment 701 complete
[stream.hls][debug] Adding segment 723 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 529.8 MB (16m22s @ 616.2 KB/s)                                            [stream.hls][debug] Download of segment 702 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 530.6 MB (16m23s @ 620.1 KB/s)--- Logging error ---
                                           Traceback (most recent call last):
  File "logging\__init__.py", line 983, in emit
[download][..9xx) Bear mod fö 5 .mkv] Written 530.6 MB (17m2s @ 69.9 KB/s)OSError: raw write() returned invalid length 108 (should have been between 0 and 54)
                                             Call stack:
  File "threading.py", line 882, in _bootstrap
  File "threading.py", line 914, in _bootstrap_inner
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
  File "logging\__init__.py", line 1267, in debug
  File "logging\__init__.py", line 1415, in _log
  File "logging\__init__.py", line 1425, in handle
  File "logging\__init__.py", line 1487, in callHandlers
  File "logging\__init__.py", line 855, in handle
  File "logging\__init__.py", line 986, in emit
Message: 'Download of segment {0} complete'
Arguments: (702,)
[stream.hls][debug] Download of segment 702 complete
[stream.hls][debug] Download of segment 703 complete
[stream.hls][debug] Adding segment 724 to queue
[stream.hls][debug] Download of segment 704 complete
etc.
[stream.hls][debug] Adding segment 743 to queue
[stream.hls][debug] Download of segment 723 complete
[stream.hls][debug] Adding segment 744 to queue
[stream.hls][debug] Adding segment 745 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 545.4 MB (17m3s @ 399.8 KB/s)                                             [stream.hls][debug] Download of segment 724 complete
[stream.hls][debug] Adding segment 746 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 547.2 MB (17m4s @ 429.8 KB/s)                                             [stream.hls][debug] Download of segment 725 complete
[stream.hls][debug] Adding segment 747 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 548.0 MB (17m5s @ 430.2 KB/s)                                             [stream.hls][debug] Download of segment 726 complete
[stream.hls][debug] Adding segment 748 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 548.8 MB (17m6s @ 430.1 KB/s)                                             [stream.hls][debug] Download of segment 727 complete
[stream.hls][debug] Adding segment 749 to queue
[download][..9xx) Bear mod fö 5 .mkv] Written 549.5 MB (17m8s @ 3.7 MB/s)                                               [stream.hls][debug] Download of segment 728 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 550.3 MB (17m9s @ 868.4 KB/s)                                             [stream.hls][debug] Download of segment 729 complete
[stream.segmented][debug] Closing worker thread
[download][..9xx) Bear mod fö 5 .mkv] Written 551.0 MB (17m10s @ 625.4 KB/s)                                            [stream.hls][debug] Download of segment 730 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 551.8 MB (17m11s @ 629.4 KB/s)                                            [stream.hls][debug] Download of segment 731 complete
etc.
[download][..9xx) Bear mod fö 5 .mkv] Written 564.7 MB (17m32s @ 630.3 KB/s)                                            [stream.hls][debug] Download of segment 748 complete
[download][..9xx) Bear mod fö 5 .mkv] Written 565.4 MB (17m33s @ 632.9 KB/s)                                            [stream.hls][debug] Download of segment 749 complete
[stream.segmented][debug] Closing writer thread
[download][..9xx) Bear mod fö 5 .mkv] Written 566.2 MB (17m35s @ 622.2 KB/s)                                           [stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-11600-370
    Last message repeated 751 times
\\.\pipe\ffmpeg-11600-370: Invalid argument
[mpegts @ 09ba0060] AAC bitstream not in ADTS format and extradata missing
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-11600-90
\\.\pipe\ffmpeg-11600-90: Invalid argument
[mpegts @ 09ba0060] AAC bitstream not in ADTS format and extradata missing
    Last message repeated 1 times
frame=74998 fps= 71 q=-1.0 Lsize=  580811kB time=00:50:15.50 bitrate=1577.8kbits/s speed=2.86x
video:482161kB audio:47872kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 9.579991%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams  

Made the mistake of taking the 2nd half of "Susana".
Here I've put a restoration of the cmd's first part that got lost (made a reload/ retry).
This file can't be clicked through with MPC, poorly with VLC until it gets stuck,
audio gradually gets out of sync.

Microsoft Windows [Version 10.0.16299.431]
(c) 2017 Microsoft Corporation. All rights reserved.

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.20 --zattoo-email="xxxx@xxx.yy" --zattoo-password="xxx" --zattoo-stream-type hls5 --ffmpeg-verbose --locale es_ES --hls-subtitles -l debug "https://zattoo.com/watch/tve/142978099-susana/123881216/1532190300000/1532196000000/0" best -o "C:\~\Videos\Tv-Program\Susana (1969) Bear mod try 6.mkv"
[plugin.zattoo][debug] Restored cookies: pzuid, beaker.session.id
[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/142978099-susana/123881216/1532190300000/1532196000000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxxx@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 123881216
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 432p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p_alt AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[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
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[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] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[stream.hls][debug] Adding segment 0 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-17928-339 -i \\.\pipe\ffmpeg-17928-424 -i \\.\pipe\ffmpeg-17928-440 -c:v copy -c:a copy -c:s ass -bsf:a aac_adtstoasc -map 0:v? -map 0:a? -map 1:a -map 2:s -metadata:s:s:0 language=es -f matroska pipe:1
[stream.hls][debug] Adding segment 1 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-17928-339
[stream.hls][debug] Adding segment 2 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-17928-424
[stream.hls][debug] Adding segment 3 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-17928-440
[stream.hls][debug] Adding segment 4 to queue
[stream.hls][debug] Adding segment 5 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 to queue
[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
[cli][debug] Pre-buffering 8192 bytes
ffmpeg version n3.2.1 Copyright (c) 2000-2016 the FFmpeg developers
  built with gcc 4.9.3 (GCC)
  configuration: --arch=x86 --target-os=mingw32 --cross-prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/bin/i686-w64-mingw32- --pkg-config=pkg-config --disable-w32threads --enable-libsoxr --enable-fontconfig --enable-libass --enable-libbluray --enable-iconv --enable-libtwolame --extra-cflags=-DLIBTWOLAME_STATIC --enable-libzvbi --enable-libcaca --enable-libmodplug --extra-libs=-lstdc++ --extra-libs=-lpng --enable-decklink --extra-libs=-loleaut32 --enable-libmp3lame --enable-version3 --enable-zlib --enable-librtmp --enable-libvorbis --enable-libtheora --enable-libspeex --enable-libopenjpeg --enable-gnutls --enable-libgsm --enable-libfreetype --enable-libopus --enable-bzlib --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-libschroedinger --enable-libvpx --enable-libilbc --enable-libwavpack --enable-libwebp --enable-libgme --enable-dxva2 --enable-avisynth --enable-gray --enable-libopenh264 --enable-netcdf --enable-libflite --enable-lzma --enable-libsnappy --enable-libzimg --enable-gpl --enable-libx264 --enable-libx265 --enable-frei0r --enable-filter=frei0r --enable-librubberband --enable-libvidstab --enable-libxavs --enable-libxvid --enable-libmfx --extra-libs=-lpsapi --extra-libs=-lspeexdsp --extra-cflags='-mtune=core2' --extra-cflags=-O3 --enable-static --disable-shared --prefix=/opt/ffmpeg-windows-build-helpers/sandbox/cross_compilers/mingw-w64-i686/i686-w64-mingw32 --enable-runtime-cpudetect
  libavutil      55. 34.100 / 55. 34.100
  libavcodec     57. 64.101 / 57. 64.101
  libavformat    57. 56.100 / 57. 56.100
  libavdevice    57.  1.100 / 57.  1.100
  libavfilter     6. 65.100 /  6. 65.100
  libswscale      4.  2.100 /  4.  2.100
  libswresample   2.  3.100 /  2.  3.100
  libpostproc    54.  1.100 / 54.  1.100
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 to queue
[stream.hls][debug] Download of segment 2 complete
etc.
[stream.hls][debug] Adding segment 23 to queue
Input #0, mpegts, from '\\.\pipe\ffmpeg-17928-339':
  Duration: N/A, start: 48000.000000, bitrate: N/A
[stream.hls][debug] Download of segment 8 complete
  Program 1 [stream.hls][debug] Adding segment 30 to queue

    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p(progressive), 768x432 [SAR 1:1 DAR 16:9], 25 fps, [stream.hls][debug] Download of segment 13 complete
25 tbr, [stream.hls][debug] Adding segment 35 to queue
90k tbn, 50 tbc
Input #1, aac, from '\\.\pipe\ffmpeg-17928-424':
  Duration: N/A, bitrate: 142 kb/s
    Stream #1:0: Audio: aac (LC), 48000 Hz, stereo, fltp, 142 kb/s
[stream.hls][debug] Download of segment 14 complete
[stream.hls][debug] Adding segment 36 to queue
[stream.hls][debug] Download of segment 15 complete
etc.
[stream.hls][debug] Download of segment 1779 complete
[stream.segmented][debug] Closing worker thread
[stream.hls][debug] Download of segment 1780 complete
etc.
[stream.hls][debug] Download of segment 1799 complete
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-17928-440
Input #2, webvtt, from '\\.\pipe\ffmpeg-17928-440':
  Duration: N/A, bitrate: N/A
    Stream #2:0: Subtitle: webvtt
Output #0, matroska, to 'pipe:1':
  Metadata:
    encoder         : Lavf57.56.100
    Stream #0:0: Video: h264 (Main) (H264 / 0x34363248), yuv420p(progressive), 768x432 [SAR 1:1 DAR 16:9], q=2-31, 25 fps, 25 tbr, 1k tbn, 90k tbc
    Stream #0:1: Audio: aac (LC) ([255][0][0][0] / 0x00FF), 48000 Hz, stereo, 142 kb/s
    Stream #0:2(es): Subtitle: ass
    Metadata:
      encoder         : Lavc57.64.101 ass
Stream mapping:
  Stream #0:0 -> #0:0 (copy)
  Stream #1:0 -> #0:1 (copy)
  Stream #2:0 -> #0:2 (webvtt (native) -> ass (native))
Press [q] to stop, [?] for help
[mpegts @ 088c00c0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[cli][debug] Checking file output
[aac @ 088d00c0][cli][debug] Writing stream to output
 Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[webvtt @ 08960fa0] Thread message queue blocking; consider raising the thread_queue_size option (current value: 8)
[stream.hls][debug] Download of segment 257 complete
etc.
[stream.hls][debug] Adding segment 479 to queue
[download][..969) Bear mod try 6.mkv] Written 315.4 MB (9m39s @ 517.5 KB/s)                                            [AVBSFContext @ 09d486a0] [stream.hls][debug] Download of segment 711 complete
[stream.hls][debug] Adding segment 733 to queue
Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 458 complete
etc.                                        [stream.hls][debug] Download of segment 755 complete
[stream.hls][debug] Adding segment 777 to queue
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 502 complete
etc.                                         [AVBSFContext @ 09d486a0] [stream.hls][debug] Download of segment 803 complete
[stream.hls][debug] Adding segment 825 to queue
Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 550 complete
etc.
[stream.hls][debug] Adding segment 867 to queue
[stream.hls][debug] Download of segment 592 complete
[stream.hls][debug] Adding segment 614 to queue
[download][..969) Bear mod try 6.mkv] Written 408.5 MB (12m51s @ 509.4 KB/s)                                           [AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 593 complete
[stream.hls][debug] Adding segment 615 to queue
[download][..969) Bear mod try 6.mkv] Written 409.2 MB (12m52s @ 515.4 KB/s)
[stream.hls][debug] Download of segment 846 complete
etc.                                       
[stream.hls][debug] Adding segment 1017 to queue
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 743 complete
[stream.hls][debug] Adding segment 765 to queue
[download][..969) Bear mod try 6.mkv] Written 512.7 MB (16m18s @ 504.1 KB/s)                                           
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header![stream.hls][debug] Download of segment 996 complete
Error applying bitstream filters to an output packet for stream #0:1.
etc.
[stream.hls][debug] Adding segment 1143 to queue
[stream.hls][debug] Download of segment 870 complete
[stream.hls][debug] Adding segment 892 to queue
[download][..969) Bear mod try 6.mkv] Written 600.5 MB (19m12s @ 519.1 KB/s)                                           [AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1122 complete
etc.
[stream.hls][debug] Adding segment 1307 to queue
[stream.hls][debug] Download of segment 1035 complete
[stream.hls][debug] Adding segment 1057 to queue
[download][..969) Bear mod try 6.mkv] Written 714.3 MB (23m0s @ 516.6 KB/s)                                            [stream.hls][debug] Download of segment 1286 complete
[stream.hls][debug] Adding segment 1308 to queue
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1036 complete
etc.
Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Adding segment 1423 to queue
[stream.hls][debug] Download of segment 1151 complete
etc.
[stream.hls][debug] Adding segment 1297 to queue
[download][..969) Bear mod try 6.mkv] Written 880.0 MB (28m52s @ 506.8 KB/s)                                           [AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1525 complete
etc.
[stream.hls][debug] Adding segment 1480 to queue
[download][..969) Bear mod try 6.mkv] Written 1005.7 MB (33m8s @ 496.1 KB/s)                                           [AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1707 complete
[stream.hls][debug] Adding segment 1729 to queue
[stream.hls][debug] Download of segment 1459 complete
etc.
[stream.hls][debug] Adding segment 1754 to queue
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1484 complete
etc.
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1619 complete
[stream.hls][debug] Adding segment 1641 to queue
[download][..969) Bear mod try 6.mkv] Written 1.09 GB (36m43s @ 556.3 KB/s)                                            [AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.hls][debug] Download of segment 1620 complete
etc.
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[AVBSFContext @ 09d486a0] Error parsing ADTS frame header!
Error applying bitstream filters to an output packet for stream #0:1.
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-17436-602
\\.\pipe\ffmpeg-17436-602: Invalid argument
[matroska @ 09f78820] Starting new cluster due to timestamp
frame=180000 fps= 74 q=-1.0 Lsize= 1271271kB time=15:19:59.14 bitrate= 188.7kbits/s speed=22.7x
video:1156843kB audio:112467kB subtitle:217kB other streams:0kB global headers:1kB muxing overhead: 0.137386%

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams 

Phew !

EDIT.
I went back in to see if I could edit some of the commands
not to stretch all out in the right wing, but don't see any way how to.

@beardypig
Copy link
Member

@Ordval try adding --ffmpeg-audio-transcode aac to correct the audio issues.

The logs appear to be missing some information, writing to a file can mess with the logs a bit. Can you add --ffmpeg-verbose-path streamlink-ffmpeg.log and then upload that log file?

@Ordval
Copy link
Author

Ordval commented Aug 1, 2018

Exchange the --ffmpeg-verbose for --ffmpeg-verbose-path ?

@beardypig
Copy link
Member

@Ordval yes, remove --fmpeg-verbose and add --ffmpeg-verbose-path ffmpeg.log :)

@Ordval
Copy link
Author

Ordval commented Aug 2, 2018

streamlink-ffmpeg.log or ffmpeg.log ?

Couldn't get started with the command,
downloaded with both streamlink-ffmpeg.log
and -l debug not ffmpeg.log, or is the last imperative ?

Audio gradually gets out of sync. Subtitle option highlighted both in MPC and VLC.
On the second last and maybe on some of the former, the total playing time indicate 15:19:59
in VLC which renders the click through space in full screen on the control panel to about an inch,
after that the file gets stuck. Can't be clicked through with MPC.
More and more towards the end of the movie the audio gets stuttering
or 'bouncing' as we could say in Swedish.
subtitle: ? kB, 1.21 GB.

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.11 --zattoo-email="xxxx@xxx.yy" --zattoo-password="xxx" --zattoo-stream-type hls5 --ffmpeg-verbose-path streamlink-ffmpeg.log --ffmpeg-audio-transcode aac --locale es_ES --hls-subtitles -l debug "https://zattoo.com/watch/tve/142978099-susana/123881216/1532190300000/1532196000000/0" best -o "C:\~\Videos\till Desken\Susana (1969) 2nd Bear mod try 7.mkv"
[plugin.zattoo][debug] Restored cookies: beaker.session.id, pzuid
[cli][debug] OS:         Windows 10
[cli][debug] Python:     3.5.2
[cli][debug] Streamlink: 0.14.2+53.ged06877
[cli][debug] Requests(2.19.1), Socks(1.6.7), Websocket(0.48.0)
[cli][info] Found matching plugin zattoo for URL https://zattoo.com/watch/tve/142978099-susana/123881216/1532190300000/1532196000000/0
[cli][debug] Plugin specific arguments:
[cli][debug]  --zattoo-email=xxxx@xxx.yy (email)
[cli][debug]  --zattoo-password=******** (password)
[cli][debug]  --zattoo-stream-types=['hls5'] (stream_types)
[plugin.zattoo][debug] _watch ...
[plugin.zattoo][debug] Found recording_id: 123881216
[plugin.zattoo][debug] Found data for hls5
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 432p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[stream.hls][debug] Using external tracks for stream 288p_alt AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[utils.l10n][debug] Language code: es_ES
[stream.hls][debug] Using external tracks for stream 288p AUDIO:(language=es, name=Español), SUBTITLES:(language=es, name=Español)
[cli][info] Available streams: 288p_alt2 (worst), 288p_alt, 288p, 432p (best)
[cli][info] Opening stream: 432p (hls-multi)
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[stream.hls][debug] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[stream.hls][debug] Adding segment 0 to queue
[stream.ffmpegmux][debug] Opening hls substream
[stream.hls][debug] Reloading playlist
[stream.hls][debug] Adding segment 1 to queue
[stream.hls][debug] Adding segment 2 to queue
[stream.hls][debug] Adding segment 3 to queue
etc.
[stream.hls][debug] Adding segment 20 to queue
[stream.hls][debug] Adding segment 21 to queue
[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] First Sequence: 0; Last Sequence: 1799
[stream.hls][debug] Start offset: 0; Duration: None; Start Sequence: 0; End Sequence: 1799
[stream.hls][debug] Download of segment 2 complete
[stream.hls][debug] Adding segment 24 to queue
[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.hls][debug] Adding segment 3 to queue
[stream.mp4mux-ffmpeg][debug] ffmpeg command: C:\~\AppData\Local\Streamlink\ffmpeg\ffmpeg.exe -nostats -y -i \\.\pipe\ffmpeg-13096-230 -i \\.\pipe\ffmpeg-13096-136 -i \\.\pipe\ffmpeg-13096-754 -c:v copy -c:a aac -c:s ass -bsf:a aac_adtstoasc -map 0:v? -map 0:a? -map 1:a -map 2:s -metadata:s:s:0 language=es -f matroska pipe:1
[stream.hls][debug] Adding segment 4 to queue
[stream.hls][debug] Download of segment 0 complete
[stream.hls][debug] Adding segment 5 to queue
[stream.hls][debug] Adding segment 22 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-13096-230
[stream.hls][debug] Adding segment 6 to queue
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-13096-136
[stream.ffmpegmux][debug] Starting copy to pipe: \\.\pipe\ffmpeg-13096-754
[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
[cli][debug] Pre-buffering 8192 bytes
[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] Download of segment 0 complete
[stream.hls][debug] Adding segment 22 to queue
[stream.hls][debug] Download of segment 3 complete
[stream.hls][debug] Adding segment 25 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 4 complete
[stream.hls][debug] Adding segment 26 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
etc.
[stream.hls][debug] Adding segment 1646 to queue
[stream.hls][debug] Download of segment 1625 complete
[stream.hls][debug] Adding segment 1647 to queue
[stream.hls][debug] Download of segment 1626 complete
--- Logging error ---
Traceback (most recent call last):
  File "logging\__init__.py", line 983, in emit
OSError: raw write() returned invalid length 110 (should have been between 0 and 55)
Call stack:
  File "threading.py", line 882, in _bootstrap
  File "threading.py", line 914, in _bootstrap_inner
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\segmented.py", line 167, in run
    self.write(segment, result)
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\hls.py", line 140, in write
    log.debug("Download of segment {0} complete", sequence.num)
  File "logging\__init__.py", line 1267, in debug
  File "logging\__init__.py", line 1415, in _log
  File "logging\__init__.py", line 1425, in handle
  File "logging\__init__.py", line 1487, in callHandlers
  File "logging\__init__.py", line 855, in handle
  File "logging\__init__.py", line 986, in emit
Message: 'Download of segment {0} complete'
Arguments: (1626,)
[stream.hls][debug] Download of segment 1626 complete
[stream.hls][debug] Download of segment 1627 complete
[stream.hls][debug] Adding segment 1648 to queue
[stream.hls][debug] Download of segment 1628 complete
[stream.hls][debug] Adding segment 1649 to queue
[stream.hls][debug] Download of segment 1629 complete
etc.
[stream.hls][debug] Download of segment 1792 complete
[stream.hls][debug] Download of segment 1793 complete
[stream.hls][debug] Download of segment 1794 complete
[stream.hls][debug] Download of segment 1795 complete
[stream.hls][debug] Download of segment 1796 complete
[stream.hls][debug] Download of segment 1797 complete
[stream.hls][debug] Download of segment 1798 complete
[stream.hls][debug] Download of segment 1799 complete
[stream.segmented][debug] Closing writer thread
[stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-13096-754
[cli][debug] Checking file output
File C:\~\Videos\till Desken\Susana (1969) 2nd Bear mod try 7.mkv already exists! Overwrite it? [y/N] y
[cli][debug] Writing stream to output
[stream.hls][debug] Download of segment 257 complete
[stream.hls][debug] Adding segment 279 to queue
[stream.hls][debug] Download of segment 25 complete
[stream.hls][debug] Adding segment 47 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.0 MB (0s @ 2.1 MB/s)                                                   [stream.hls][debug] Download of segment 258 complete
[stream.hls][debug] Adding segment 280 to queue
[stream.hls][debug] Download of segment 26 complete
etc.
[stream.hls][debug] Adding segment 346 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 223.4 MB (2m24s @ 1.2 MB/s)                                              [stream.hls][debug] Download of segment 325 complete
[stream.hls][debug] Adding segment 347 to queue
[stream.hls][debug] Download of segment 579 complete
etc.
[stream.hls][debug] Adding segment 1025 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 692.5 MB (8m20s @ 1.6 MB/s)                                              [stream.hls][debug] Download of segment 1254 complete
[stream.hls][debug] Adding segment 1276 to queue
[stream.hls][debug] Download of segment 1004 complete
etc.
[stream.hls][debug] Adding segment 1416 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 961.9 MB (11m48s @ 1.3 MB/s)                                             [stream.hls][debug] Download of segment 1643 complete
[stream.hls][debug] Adding segment 1665 to queue
[stream.hls][debug] Download of segment 1395 complete
etc.                                            [stream.hls][debug] Download of segment 1772 complete
[stream.hls][debug] Adding segment 1794 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.19 GB (14m50s @ 1.5 MB/s)                                              [stream.hls][debug] Download of segment 1773 complete
[stream.hls][debug] Adding segment 1795 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.19 GB (14m50s @ 1.5 MB/s)                                              [stream.hls][debug] Download of segment 1774 complete
[stream.hls][debug] Adding segment 1796 to queue
[stream.hls][debug] Download of segment 1775 complete
[stream.hls][debug] Adding segment 1797 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.19 GB (14m51s @ 1.5 MB/s)                                              [stream.hls][debug] Download of segment 1776 complete
[stream.hls][debug] Adding segment 1798 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m51s @ 1.5 MB/s)                                              [stream.hls][debug] Download of segment 1777 complete
[stream.hls][debug] Adding segment 1799 to queue
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m52s @ 1.6 MB/s)                                              [stream.hls][debug] Download of segment 1778 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m52s @ 1.7 MB/s)                                              [stream.hls][debug] Download of segment 1779 complete
[stream.segmented][debug] Closing worker thread
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m53s @ 1.7 MB/s)                                              [stream.hls][debug] Download of segment 1780 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m53s @ 1.8 MB/s)                                              [stream.hls][debug] Download of segment 1781 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m54s @ 1.6 MB/s)                                              [stream.hls][debug] Download of segment 1782 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m54s @ 1.4 MB/s)                                              [stream.hls][debug] Download of segment 1783 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m55s @ 1.2 MB/s)                                              [stream.hls][debug] Download of segment 1784 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m55s @ 1.1 MB/s)                                              [stream.hls][debug] Download of segment 1785 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m56s @ 1018.8 KB/s)                                           [stream.hls][debug] Download of segment 1786 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m56s @ 1.1 MB/s)                                              [stream.hls][debug] Download of segment 1787 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m57s @ 1.2 MB/s)                                              [stream.hls][debug] Download of segment 1788 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m57s @ 1.3 MB/s)                                              [stream.hls][debug] Download of segment 1789 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.20 GB (14m58s @ 1.4 MB/s)                                              [stream.hls][debug] Download of segment 1790 complete
[stream.hls][debug] Download of segment 1791 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (14m58s @ 1.4 MB/s)                                              [stream.hls][debug] Download of segment 1792 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (14m59s @ 1.4 MB/s)                                              [stream.hls][debug] Download of segment 1793 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (14m59s @ 1.3 MB/s)                                              [stream.hls][debug] Download of segment 1794 complete
[stream.hls][debug] Download of segment 1795 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m0s @ 1.2 MB/s)                                               [stream.hls][debug] Download of segment 1796 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m0s @ 1.4 MB/s)                                               [stream.hls][debug] Download of segment 1797 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m1s @ 1.5 MB/s)                                               [stream.hls][debug] Download of segment 1798 complete
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m1s @ 1.5 MB/s)                                               [stream.hls][debug] Download of segment 1799 complete
[stream.segmented][debug] Closing writer thread
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m3s @ 1.4 MB/s)                                               [stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-13096-230
[download][.. 2nd Bear mod try 7.mkv] Written 1.21 GB (15m7s @ 150.5 KB/s)                                             [stream.ffmpegmux][debug] Pipe copy complete: \\.\pipe\ffmpeg-13096-136

[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
[cli][info] Stream ended
[cli][info] Closing currently open stream...
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams
Traceback (most recent call last):
  File "C:\~\AppData\Local\Streamlink\bin\streamlink-script.py", line 18, in <module>
    main()
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink_cli\main.py", line 1043, in main
    stream_fd.close()
  File "C:\~\AppData\Local\Streamlink\pkgs\streamlink\stream\ffmpegmux.py", line 183, in close
    self.errorlog.close()
AttributeError: 'NoneType' object has no attribute 'close'
[stream.ffmpegmux][debug] Closing ffmpeg thread
[stream.ffmpegmux][debug] Closed all the substreams

@beardypig
Copy link
Member

Looks like ther could be a bug in the ffmpeg log file writer, I’ll check it out. Either way, the subtitles don’t work properly I will open a new issue where add hls subtitle support can be discussed.

@Ordval
Copy link
Author

Ordval commented Aug 2, 2018

Just in case, I wanted to make a try in Windows 7 following you to the letter, but this is the result I got:

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.17 --za
ttoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-type hls
5  --ffmpeg-audio-transcode aac --locale es_ES --hls-subtitles -l debug --ffmpeg
-verbose-path ffmpeg.log "https://zattoo.com/watch/tve/142978099-susana/12388121
6/1532190300000/1532196000000/0" best -o "C:\~\Filmer\Susana (1969) 2nd
Bear mod try 8.mkv"
usage: streamlink [OPTIONS] <URL> [STREAM]
streamlink: error: unrecognized arguments: --hls-subtitles

without the extra -l debug:

$ call streamlink.exe --http-header X-Forwarded-For=82.102.24.17 --za
ttoo-email="xxxl@xxx.yy" --zattoo-password="xxx" --zattoo-stream-type hls
5 --ffmpeg-audio-transcode aac --locale es_ES --hls-subtitles --ffmpeg-verbose-p
ath ffmpeg.log "https://zattoo.com/watch/tve/142978099-susana/123881216/15321903
00000/1532196000000/0" best -o "C:\~\Filmer\Susana (1969) 2nd Bear mod t
ry 8.mkv"
usage: streamlink [OPTIONS] <URL> [STREAM]
streamlink: error: unrecognized arguments: --hls-subtitles

@Ordval
Copy link
Author

Ordval commented Dec 2, 2019

Snooping with ”Video DownloadHelper” (or others) One might get something like:
https://oldpvr1-dash-pvr.zahs.tv/TVE_Intl/1573923300/1573931700/i_track_subs_bw_2999000_num_0_l_es.mp4?z32=MNZWSZB5GE2UIQZXHBAUEOCCGI2TMMZVGIWTMQ2CGIYTMRCFGRCEMMJWHBBEEJTOMF2GS5TFHUZDSOJZEZ2XGZLSL5UWIPJXG42TCMRSGUTHMPJQEZZWSZZ5GMZF6NLCGI4TEYZQMY3TKZDCGY2TMZLCGMYDGM3GHFQWKZJXGE2DQZJV
couldn't it be used somehow ?
Done some experimenting of course; the result is useless to put up here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants