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
Comments
You want Spanish subtitles? Did you try |
No, trying it currently, (thought of it, but it wasn't logical). |
Played it back with VLC and SMPlayer but no visible subtitles, nor in their respective submenus. |
@Ordval, are you able to get Spanish subtitles on the website? |
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 |
Streamlink doesn't mux subtitles by default - we could support it, it's just another complication in the HLS parser :) |
@beardypig Then, ....because a command similar to |
With the zattoo plugin? It could be added, but @back-to would know better than I. The |
I take it, the first of your options is what I have to wait for then. |
this is different, the subs url is stand alone,
|
The reason for me to look into it is that it says:
on the support pages. |
Should probably say something like “where available and supported” |
#1902 will allow the usage of the muxed streams
|
The muxed streams are now available in the dev version, Audio example
https://streamlink.github.io/latest/cli.html#cmdoption-hls-audio-select |
....but it could with/ through the muxed streams I hope ? I mean, why else the update ? |
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
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
I’ve used the Presently downloading it like this: Earlier tried:
etc. experimenting.
the (Installed the latest Nightly and changed the 4 |
Your 3rd example looks correct, but you need to provide debug logs and use 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... |
@Ordval you only need to enter your email, password once in a month not everytime. to get the muxed hls stream use
not for the
|
As I'm struggling to make this work, I suspect that all’s not right with FFmpeg: EDIT. Compiling (?) FFmpeg. Now I’ll just have to see if it “made all better”. |
back-to wrote:
On many of the attempts, following and previous, the subtitle option(-s) No modification in streamlink-0.14.2-20180725, added
Without beardypigs
No modification in streamlink-0.14.2-20180725 with
Maybe these following previous attempts will be regarded as garbage information as the .css For the following attempts with the 'faulty' FFmpeg I've used this Here with Downloaded with a trial of SaferVPN On this one, you can't click through the video, subtitle:228kB:
Without the
subtitle:0kB Written 962.8 MB, not a click-trough video:
subtitle:0kB
Did my best to be quick to get the first bit.
Downloaded with a trial of Windscribe And then on a more serious note; Nightly FFmpeg (but is this version even being used here ?, put in PATH though), How to get hold of “Streamlink: 0.14.2+32.gfb5d46f.dirty” I don't know, "Luna de Verano" had expired so I took the next one from the list Here audio gradually gets out of sync, file can be clicked through
Made the mistake of taking the 2nd half of "Susana".
Phew ! EDIT. |
@Ordval try adding The logs appear to be missing some information, writing to a file can mess with the logs a bit. Can you add |
Exchange the |
@Ordval yes, remove |
Couldn't get started with the command, Audio gradually gets out of sync. Subtitle option highlighted both in MPC and VLC.
|
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. |
Just in case, I wanted to make a try in Windows 7 following you to the letter, but this is the result I got:
without the extra
|
Snooping with ”Video DownloadHelper” (or others) One might get something like: |
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...)
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]
The text was updated successfully, but these errors were encountered: