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

Subtitles not available #1

Open
2-4601 opened this issue May 27, 2024 · 0 comments
Open

Subtitles not available #1

2-4601 opened this issue May 27, 2024 · 0 comments

Comments

@2-4601
Copy link

2-4601 commented May 27, 2024

Hello,

I have been using this absolutely wonderful plugin for several years. Thank you for making it. Your plugin has saved me from the horrors of hardware video decoding in web browsers as I can just rely on mpv to watch all Yle provided content.

Today I noticed something strange. Subtitles have stopped working in all the videos I tried. However, yle-dl still gets the subtitles. So I thought there might be some subtle change from Yle's side that yle-dl is able to still handle but causes issues with this plugin.

For example, downloading this short news video with yle-dl works:

$ yle-dl https://areena.yle.fi/1-66528750

yle-dl 20240429: Download media files from Yle Areena and Elävä Arkisto
Copyright (C) 2009-2024 Antti Ajanki <[email protected]>, license: GPLv3

[hls @ 0x5e634ceafe40] Can't support the subtitle(uri: ../hdntl=exp=1716910626~acl=%2fvod%2fworld%2f2cf8a48eef224f45a84418c5075a9f7a%2f49a0bffa4e304204963fe72e77704914%2f*~data=hdntl~hmac=c46eb698e0857fce45efd4d129b267815760bd4f48a2e60a1a70b388aa072a5a/c83c5ab4d7794b97aba6baccec9b0d37/33db2be025db4e589c77526450ff6de0/5610b9d519f64eefa450c3786f9bc74f/index_8_0.m3u8)
Output file: Yle Uutiset: Yle Uutiset 17.00: 2024-05-27T17:06.mkv
[webvtt @ 0x611bf387fd80] Dropping 53 duplicated subtitle events
size=  107658kB time=00:05:52.14 bitrate=2504.4kbits/s speed=  22x    
Stream saved to Yle Uutiset: Yle Uutiset 17.00: 2024-05-27T17:06.mkv

The video is saved as MKV and it has subtitles – despite the error in the beginning.

However, playing the same video with mpv and mpv-yledl:

$ mpv https://areena.yle.fi/1-66528750

[yledl_hook] [hls @ 0x5572dbca0e40] Can't support the subtitle(uri: ../hdntl=exp=1716910561~acl=%2fvod%2fworld%2f2cf8a48eef224f45a84418c5075a9f7a%2f49a0bffa4e304204963fe72e77704914%2f*~data=hdntl~hmac=26e0d895e3ae7a16624322935a24b22d42948ed09bd85cd61fdb998769a88766/c83c5ab4d7794b97aba6baccec9b0d37/33db2be025db4e589c77526450ff6de0/5610b9d519f64eefa450c3786f9bc74f/index_8_0.m3u8)
[ffmpeg/demuxer] hls: Can't support the subtitle(uri: ../hdntl=exp=1716910563~acl=%2fvod%2fworld%2f2cf8a48eef224f45a84418c5075a9f7a%2f49a0bffa4e304204963fe72e77704914%2f*~data=hdntl~hmac=0ac236b210613061f8a8435f4be55458e8289517adec95389ab9692d8fe32d21/c83c5ab4d7794b97aba6baccec9b0d37/33db2be025db4e589c77526450ff6de0/5610b9d519f64eefa450c3786f9bc74f/index_8_0.m3u8)
     Video --vid=1 (h264 960x540 25.000fps) (1810 kbps)
     Video --vid=2 (h264 320x180 25.000fps) (273 kbps)
     Video --vid=3 (h264 640x360 25.000fps) (905 kbps)
     Video --vid=4 (h264 1280x720 25.000fps) (2941 kbps)
 (+) Video --vid=5 (h264 1920x1080 25.000fps) (4639 kbps)
     Audio --aid=1 (aac 2ch 48000Hz) (1810 kbps)
     Audio --aid=2 (aac 2ch 48000Hz) (273 kbps)
     Audio --aid=3 (aac 2ch 48000Hz) (905 kbps)
     Audio --aid=4 (aac 2ch 48000Hz) (2941 kbps)
 (+) Audio --aid=5 (aac 2ch 48000Hz) (4639 kbps)
     Audio --aid=6 (aac 2ch 48000Hz) (141 kbps)
AO: [pipewire] 48000Hz stereo 2ch floatp
VO: [gpu] 1920x1080 yuv420p
Track switched:
     Video --vid=1 (h264 960x540 25.000fps) (1810 kbps)
     Video --vid=2 (h264 320x180 25.000fps) (273 kbps)
     Video --vid=3 (h264 640x360 25.000fps) (905 kbps)
     Video --vid=4 (h264 1280x720 25.000fps) (2941 kbps)
 (+) Video --vid=5 (h264 [Main] 1920x1080 25.000fps) (4639 kbps)
     Audio --aid=1 (aac 2ch 48000Hz) (1810 kbps)
     Audio --aid=2 (aac 2ch 48000Hz) (273 kbps)
     Audio --aid=3 (aac 2ch 48000Hz) (905 kbps)
     Audio --aid=4 (aac 2ch 48000Hz) (2941 kbps)
 (+) Audio --aid=5 (aac [LC] 2ch 48000Hz) (4639 kbps)
     Audio --aid=6 (aac 2ch 48000Hz) (141 kbps)
Track switched:
     Video --vid=1 (h264 960x540 25.000fps) (1810 kbps)
     Video --vid=2 (h264 320x180 25.000fps) (273 kbps)
     Video --vid=3 (h264 640x360 25.000fps) (905 kbps)
     Video --vid=4 (h264 1280x720 25.000fps) (2941 kbps)
 (+) Video --vid=5 (h264 [Main] 1920x1080 25.000fps) (4639 kbps)
     Audio --aid=1 (aac 2ch 48000Hz) (1810 kbps)
     Audio --aid=2 (aac 2ch 48000Hz) (273 kbps)
     Audio --aid=3 (aac 2ch 48000Hz) (905 kbps)
     Audio --aid=4 (aac 2ch 48000Hz) (2941 kbps)
 (+) Audio --aid=5 (aac [LC] 2ch 48000Hz) (4639 kbps)
     Audio --aid=6 (aac 2ch 48000Hz) (141 kbps)
AV: 00:00:03 / 00:05:52 (1%) A-V:  0.000 ct: -0.059 Dropped: 1 Cache: 91s/28MB
Exiting... (Quit)

The video opens in mpv but there are no subtitles to choose from.

This happens with all videos now. There are no subtitles in any Yle Areena videos anymore when viewed with mpv and mpv-yledl.


I tested this with a clean mpv install. I.e., with an empty ~/.config/mpv directory, except .config/mpv/scripts/yledl_hook.lua.

mpv version: v0.38.0 (02254b92dd237f03aa0a151c2a68778c4ea848f9)
yle-dl version: 20240429 (0d7ae06c94fcecda1d421a805d1c41db26c81e7c)
mpv-yledl version: 0cc82b4

Possibly related: aajanki/yle-dl#302

Info on the test video
$ yle-dl --showmetadata https://areena.yle.fi/1-66528750

[hls @ 0x58dc59a99e40] Can't support the subtitle(uri: ../hdntl=exp=1716911027~acl=%2fvod%2fworld%2f2cf8a48eef224f45a84418c5075a9f7a%2f49a0bffa4e304204963fe72e77704914%2f*~data=hdntl~hmac=5353d2e0431057235c9c2838783f3b51f6918ecb7998c5c1b566478fc2731c4e/c83c5ab4d7794b97aba6baccec9b0d37/33db2be025db4e589c77526450ff6de0/5610b9d519f64eefa450c3786f9bc74f/index_8_0.m3u8)
[
  {
    "program_id": "1-66528750",
    "webpage": "https://areena.yle.fi/1-66528750",
    "title": "Yle Uutiset: Yle Uutiset 17.00: 2024-05-27T17:06",
    "episode_title": "Yle Uutiset: Yle Uutiset 17.00",
    "filename": "Yle Uutiset: Yle Uutiset 17.00: 2024-05-27T17:06.mkv",
    "flavors": [
      {
        "media_type": "audio",
        "bitrate": 141.057,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      },
      {
        "media_type": "video",
        "height": 180,
        "width": 320,
        "bitrate": 273.057,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      },
      {
        "media_type": "video",
        "height": 360,
        "width": 640,
        "bitrate": 904.816,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      },
      {
        "media_type": "video",
        "height": 540,
        "width": 960,
        "bitrate": 1809.957,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      },
      {
        "media_type": "video",
        "height": 720,
        "width": 1280,
        "bitrate": 2941.386,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      },
      {
        "media_type": "video",
        "height": 1080,
        "width": 1920,
        "bitrate": 4638.559,
        "backends": [
          "ffmpeg"
        ],
        "url": "https://yleawsmpondemand-02.akamaized.net/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/c83c5ab4d7794b97aba6baccec9b0d37/index.m3u8?hdnts=exp=1716828227~acl=/vod/world/2cf8a48eef224f45a84418c5075a9f7a/49a0bffa4e304204963fe72e77704914/*~hmac=bd65738de2f3bb5b52a2349961ca4885aa31113ac7daed45c14080efe47edf12"
      }
    ],
    "duration_seconds": 352,
    "subtitles": [],
    "region": "World",
    "publish_timestamp": "2024-05-27T17:06:04+03:00"
  }
]
$ yt-dlp --list-formats https://areena.yle.fi/1-66528750

[YleAreena] Extracting URL: https://areena.yle.fi/1-66528750
[YleAreena] 1-66528750: Downloading webpage
[YleAreena] 1-66528750: Downloading JSON metadata
[YleAreena] 1-66528750: Downloading m3u8 information
WARNING: [YleAreena] Ignoring subtitle tracks found in the HLS manifest; if any subtitle tracks are missing, please report this issue on  https://github.com/yt-dlp/yt-dlp/issues?q= , filling out the appropriate issue template. Confirm you are on the latest version using  yt-dlp -U
[info] Available formats for 1-66528750:
ID       EXT RESOLUTION FPS │   TBR PROTO │ VCODEC      ACODEC     ABR
──────────────────────────────────────────────────────────────────────
hls-141  mp4 audio only     │  141k m3u8  │ audio only  mp4a.40.2 141k
hls-273  mp4 320x180     25 │  273k m3u8  │ avc1.4D400C mp4a.40.2
hls-716  mp4 640x360     25 │  717k m3u8  │ avc1.4D401E mp4a.40.2
hls-1031 mp4 960x540     25 │ 1031k m3u8  │ avc1.4D401F mp4a.40.2
hls-1643 mp4 1280x720    25 │ 1643k m3u8  │ avc1.4D401F mp4a.40.2
hls-3001 mp4 1920x1080   25 │ 3001k m3u8  │ avc1.4D4028 mp4a.40.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant