Problems extracting subtitles
See original GitHub issueChecklist
- I’m reporting a bug unrelated to a specific site
- I’ve verified that I’m running yt-dlp version 2021.09.25
- I’ve checked that all provided URLs are alive and playable in a browser
- I’ve checked that all URLs and arguments with special characters are properly quoted or escaped
- I’ve searched the bugtracker for similar bug reports including closed ones
- I’ve read bugs section in FAQ
Verbose log
F:\Downloads>yt-dlp -v "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/be
fe8ed3-a261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-a
ccc-0497ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28" --list-subs
[debug] Command-line config: ['-v', 'https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed
3-a261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0
497ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28', '--list-subs']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.09.25 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-2012ServerR2-6.3.9600-SP0
[debug] exe versions: ffmpeg 2021-09-22-git-447cf53774-full_build-www.gyan.dev
[debug] Optional libraries: Crypto, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a
261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497
ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28
[generic] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38: Request
ing header
[generic] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38: Downloa
ding m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, vcodec:vp9.2(10), acodec, files
ize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
Available subtitles for ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff7
7db38:
Language Formats
zh-Hans vtt
de vtt
en vtt
es-419 vtt
es-ES vtt
it vtt
pt-BR vtt
F:\Downloads>yt-dlp -v "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/be
fe8ed3-a261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-a
ccc-0497ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28" --sub-langs es-419 -
-write-subs
[debug] Command-line config: ['-v', 'https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed
3-a261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0
497ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28', '--sub-langs', 'es-419',
'--write-subs']
[debug] Encodings: locale cp1252, fs utf-8, out utf-8, pref cp1252
[debug] yt-dlp version 2021.09.25 (exe)
[debug] Python version 3.8.10 (CPython 64bit) - Windows-2012ServerR2-6.3.9600-SP0
[debug] exe versions: ffmpeg 2021-09-22-git-447cf53774-full_build-www.gyan.dev
[debug] Optional libraries: Crypto, mutagen, sqlite, websockets
[debug] Proxy map: {}
[debug] [generic] Extracting URL: https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a
261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497
ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28
[generic] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38: Request
ing header
[generic] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38: Downloa
ding m3u8 information
[debug] Formats sorted by: hasvid, ie_pref, lang, quality, res, fps, vcodec:vp9.2(10), acodec, files
ize, fs_approx, tbr, vbr, abr, asr, proto, vext, aext, hasaud, source, id
[debug] Downloading subtitles: es-419
[debug] Default format spec: bestvideo*+bestaudio/best
[info] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38: Downloadin
g 1 format(s): 3110+aac-64k-Português__Brasil_
[info] Writing video subtitles to: ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-a
ccc-0497ff77db38 [ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38]
.es-419.vtt
[debug] Invoking downloader on "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a26
1-4481-843d-58ab8e210746/r/composite_es-419_FORCED_60276587-d271-4594-86ca-8a00792ea56e_9cd6759a-b19
f-4acd-aef9-d06ddd7730bd.m3u8"
[download] ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38 [ctr-al
l-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38].es-419.vtt has already
been downloaded
[download] 100% of 370.00B
[debug] Invoking downloader on "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a26
1-4481-843d-58ab8e210746/r/composite_3000k_CENC_CTR_SD_SDR_1e30b2d7-f0bc-4564-b50e-b85646959f8a_74d2
9ac4-3341-4894-b477-6f5302f2fd80.m3u8"
[hlsnative] Downloading m3u8 manifest
WARNING: hlsnative detected unsupported features; extraction will be delegated to ffmpeg
[download] Destination: ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff7
7db38 [ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38].f3110.mp4
[debug] ffmpeg command line: ffmpeg -y -loglevel verbose -headers "User-Agent: Mozilla/5.0 (Windows
NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/74.0.3729.78 Safari/537.36
Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7
Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Encoding: gzip, deflate
Accept-Language: en-us,en;q=0.5
" -i "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a261-4481-843d-58ab8e210746/r
/composite_3000k_CENC_CTR_SD_SDR_1e30b2d7-f0bc-4564-b50e-b85646959f8a_74d29ac4-3341-4894-b477-6f5302
f2fd80.m3u8" -c copy -f mp4 "file:ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-ac
cc-0497ff77db38 [ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38].
f3110.mp4.part"
ffmpeg version 2021-09-22-git-447cf53774-full_build-www.gyan.dev Copyright (c) 2000-2021 the FFmpeg
developers
built with gcc 10.3.0 (Rev5, Built by MSYS2 project)
configuration: --enable-gpl --enable-version3 --enable-static --disable-w32threads --disable-autod
etect --enable-fontconfig --enable-iconv --enable-gnutls --enable-libxml2 --enable-gmp --enable-lzma
--enable-libsnappy --enable-zlib --enable-librist --enable-libsrt --enable-libssh --enable-libzmq -
-enable-avisynth --enable-libbluray --enable-libcaca --enable-sdl2 --enable-libdav1d --enable-libzvb
i --enable-librav1e --enable-libsvtav1 --enable-libwebp --enable-libx264 --enable-libx265 --enable-l
ibxvid --enable-libaom --enable-libopenjpeg --enable-libvpx --enable-libass --enable-frei0r --enable
-libfreetype --enable-libfribidi --enable-libvidstab --enable-libvmaf --enable-libzimg --enable-amf
--enable-cuda-llvm --enable-cuvid --enable-ffnvcodec --enable-nvdec --enable-nvenc --enable-d3d11va
--enable-dxva2 --enable-libmfx --enable-libglslang --enable-vulkan --enable-opencl --enable-libcdio
--enable-libgme --enable-libmodplug --enable-libopenmpt --enable-libopencore-amrwb --enable-libmp3la
me --enable-libshine --enable-libtheora --enable-libtwolame --enable-libvo-amrwbenc --enable-libilbc
--enable-libgsm --enable-libopencore-amrnb --enable-libopus --enable-libspeex --enable-libvorbis --
enable-ladspa --enable-libbs2b --enable-libflite --enable-libmysofa --enable-librubberband --enable-
libsoxr --enable-chromaprint
libavutil 57. 6.100 / 57. 6.100
libavcodec 59. 9.100 / 59. 9.100
libavformat 59. 5.100 / 59. 5.100
libavdevice 59. 0.101 / 59. 0.101
libavfilter 8. 9.100 / 8. 9.100
libswscale 6. 1.100 / 6. 1.100
libswresample 4. 0.100 / 4. 0.100
libpostproc 56. 0.100 / 56. 0.100
[tcp @ 000000e642e62f40] Starting connection attempt to 23.222.5.16 port 443
[tcp @ 000000e642e62f40] Successfully connected to 23.222.5.16 port 443
[hls @ 000000e642e5f280] Skip ('#EXT-X-VERSION:6')
[hls @ 000000e642e5f280] Skip ('#EXT-X-PROGRAM-DATE-TIME:2019-01-01T00:00:00.000Z')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DATERANGE:ID="pod_0",START-DATE="2019-01-01T00:00:00.000Z",DU
RATION=1432.764666667,X-START-OFFSET="0.0"')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DISCONTINUITY')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DATERANGE:ID="pod_1",START-DATE="2019-01-01T00:23:52.764Z",DU
RATION=4.004,X-START-OFFSET="1432.764666667"')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DISCONTINUITY')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DATERANGE:ID="pod_2",START-DATE="2019-01-01T00:23:56.768Z",DU
RATION=4.004,X-START-OFFSET="1436.768666667"')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DISCONTINUITY')
[hls @ 000000e642e5f280] Skip ('#EXT-X-DATERANGE:ID="pod_3",START-DATE="2019-01-01T00:24:00.772Z",DU
RATION=4.004,X-START-OFFSET="1440.772666667"')
[hls @ 000000e642e5f280] HLS request for url 'https://vod-akc-na-south-3.media.dssott.com/ps01/disne
y/befe8ed3-a261-4481-843d-58ab8e210746/r/87a60d32-8031-4418-abff-ab90762c202c/08c6-MAIN/02/3000K/map
.mp4', offset 0, playlist 0
[hls @ 000000e642e5f280] SAMPLE-AES encryption is not supported yet
[hls @ 000000e642e5f280] Failed to open an initialization section in playlist 0
[hls @ 000000e642e5f280] Error when loading first segment 'https://vod-akc-na-south-3.media.dssott.c
om/ps01/disney/befe8ed3-a261-4481-843d-58ab8e210746/r/87a60d32-8031-4418-abff-ab90762c202c/08c6-MAIN
/02/3000K/00/00/00_000.mp4'
[AVIOContext @ 000000e642f0b580] Statistics: 18314 bytes read, 0 seeks
https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a261-4481-843d-58ab8e210746/r/compo
site_3000k_CENC_CTR_SD_SDR_1e30b2d7-f0bc-4564-b50e-b85646959f8a_74d29ac4-3341-4894-b477-6f5302f2fd80
.m3u8: Not yet implemented in FFmpeg, patches welcome
ERROR: ffmpeg exited with code 1
File "yt_dlp\__main__.py", line 19, in <module>
File "yt_dlp\__init__.py", line 777, in main
File "yt_dlp\__init__.py", line 767, in _real_main
File "yt_dlp\YoutubeDL.py", line 2925, in download
File "yt_dlp\YoutubeDL.py", line 1219, in extract_info
File "yt_dlp\YoutubeDL.py", line 1227, in wrapper
File "yt_dlp\YoutubeDL.py", line 1265, in __extract_info
File "yt_dlp\YoutubeDL.py", line 1315, in process_ie_result
File "yt_dlp\YoutubeDL.py", line 2344, in process_video_result
File "yt_dlp\YoutubeDL.py", line 2812, in process_info
File "yt_dlp\YoutubeDL.py", line 2489, in dl
File "yt_dlp\downloader\common.py", line 408, in download
File "yt_dlp\downloader\hls.py", line 78, in real_download
File "yt_dlp\downloader\external.py", line 68, in real_download
File "yt_dlp\downloader\common.py", line 176, in report_error
File "yt_dlp\YoutubeDL.py", line 819, in report_error
File "yt_dlp\YoutubeDL.py", line 775, in trouble
[debug] Invoking downloader on "https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a26
1-4481-843d-58ab8e210746/r/composite_64k_mp4a.40.2_pt-BR_PRIMARY_518e1f7a-b860-4d6c-80c5-4efc99cecb2
5_c5705119-ca39-4534-9233-dbb9cbc29453.m3u8"
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 183
[download] Destination: ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff7
7db38 [ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38].faac-64k-P
ortuguês__Brasil_.mp4
ERROR: Initialization fragment found after media fragments, unable to download
File "yt_dlp\__main__.py", line 19, in <module>
File "yt_dlp\__init__.py", line 777, in main
File "yt_dlp\__init__.py", line 767, in _real_main
File "yt_dlp\YoutubeDL.py", line 2925, in download
File "yt_dlp\YoutubeDL.py", line 1219, in extract_info
File "yt_dlp\YoutubeDL.py", line 1227, in wrapper
File "yt_dlp\YoutubeDL.py", line 1265, in __extract_info
File "yt_dlp\YoutubeDL.py", line 1315, in process_ie_result
File "yt_dlp\YoutubeDL.py", line 2344, in process_video_result
File "yt_dlp\YoutubeDL.py", line 2812, in process_info
File "yt_dlp\YoutubeDL.py", line 2489, in dl
File "yt_dlp\downloader\common.py", line 408, in download
File "yt_dlp\downloader\hls.py", line 176, in real_download
File "yt_dlp\downloader\common.py", line 176, in report_error
File "yt_dlp\YoutubeDL.py", line 819, in report_error
File "yt_dlp\YoutubeDL.py", line 775, in trouble
Description
Excuse my English, I am not a native speaker
I want to download a subtitle from an m3u8 link
It has multiple subtitle options, I want to download the one in Latin American Spanish (es-419)
The problem is that sometimes it downloads and sometimes it doesn’t, and it always tries to download audio and video
These are my commands
yt-dlp -v “https://vod-akc-na-south-3.media.dssott.com/ps01/disney/befe8ed3-a261-4481-843d-58ab8e210746/ctr-all-04fea197-c169-409f-8a78-9cc588ee5730-4becd1eb-7073-495f-accc-0497ff77db38.m3u8?v=1&sxl=ja&hash=820473c92cfb69629fbfdd8266df511735b1ef28” --sub-langs es-419 --write-subs
Issue Analytics
- State:
- Created 2 years ago
- Comments:8 (5 by maintainers)
Top Results From Across the Web
Three Wonderful Tools to Extract Subtitles from MP4 with Ease
Method 2 – Use the CCExtractor MP4 Subtitle Extractor ... CCExtractor is a fast closed captions extractor with a very clean and simple...
Read more >Problems extracting subtitle from MP4 files - VideoHelp Forum
Run the mp4 through mkvmerge and save as mkv,then extract the subs with mkvcleaver.You can also open the mp4 with subtitle edit and...
Read more >How to Extract Subtitles from Video | 4 Easy Methods - EaseUS
Sometimes, you may want to extract subtitles from MP4 files for a variety of reasons. With a subtitle extractor, you can extract subtitles...
Read more >Unable to extract subtitles for some films - Emby
I restored to Emby Version 4.4.3.0 and here the forced srt subs are displayed correctly. It doesn't seem to be a general problem...
Read more >Problem with extracting subtitles - avidemux.org
I want to extract subtitles from movies I already own. I installed Avidemux version 2.6.10. According to the book, under Tools I should...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
The Spanish subtitles for the linked video
are emptyseem to only contain a translation of the visual contents (I guess? I cannot download the video stream), not any spoken dialogue. (I suspect it is meant to be used paired with a dubbed audio track in the same language.) Only the Chinese and English subtitles seem to have actual contents. Little we can do about that.To disable downloading audio and video, use the
--skip-download
option.