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

Language code for Hebrew subtitles not embedded #18765

Closed
5 of 9 tasks
0x9fff00 opened this issue Jan 6, 2019 · 0 comments
Closed
5 of 9 tasks

Language code for Hebrew subtitles not embedded #18765

0x9fff00 opened this issue Jan 6, 2019 · 0 comments

Comments

@0x9fff00
Copy link
Contributor

0x9fff00 commented Jan 6, 2019

Please follow the guide below

  • You will be asked some questions and requested to provide some information, please read them carefully and answer honestly
  • Put an x into all the boxes [ ] relevant to your issue (like this: [x])
  • Use the Preview tab to see what your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2019.01.02. If it's not, read this FAQ entry and update. Issues with outdated version will be rejected.

  • I've verified and I assure that I'm running youtube-dl 2019.01.02

Before submitting an issue make sure you have:

  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Checked that provided video/audio/playlist URLs (if any) are alive and playable in a browser

What is the purpose of your issue?

  • Bug report (encountered problems with youtube-dl)
  • Site support request (request for adding support for a new site)
  • Feature request (request for a new functionality)
  • Question
  • Other

The following sections concretize particular purposed issues, you can erase any section (the contents between triple ---) not applicable to your issue


If the purpose of this issue is a bug report, site support request or you are not completely sure provide the full verbose output as follows:

Add the -v flag to your command line you run youtube-dl with (youtube-dl -v <your command line>), copy the whole output and insert it here. It should look similar to one below (replace it with your log inserted between triple ```):

[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: ['-v', '--merge-output-format', 'mkv', '--embed-subs', '--all-subs', 'https://www.youtube.com/watch?v=M7CkdB5z9PY']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2019.01.02
[debug] Python version 3.7.2 (CPython) - Linux-4.20.0-arch1-1-ARCH-x86_64-with-arch
[debug] exe versions: ffmpeg n4.1, ffprobe n4.1, rtmpdump 2.4
[debug] Proxy map: {}
[youtube] M7CkdB5z9PY: Downloading webpage
[youtube] M7CkdB5z9PY: Downloading video info webpage
[debug] Default format spec: bestvideo+bestaudio/best
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ar.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.zh-TW.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.cs.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.en.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.fr.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.de.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.iw.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.id.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.it.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ko.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pl.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pt.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.es.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.tr.vtt
[info] Writing video subtitles to: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.vi.vtt
[debug] Invoking downloader on 'https://r2---sn-c5ioiv45c-5gol.googlevideo.com/videoplayback?expire=1546815929&keepalive=yes&itag=299&signature=A440FC1D1CD46C653C6387533B8340AB62FE5B23.41CFFCFB166A45496D897C8391B8424B6F276B6A&requiressl=yes&ei=WTUyXJiBC5CT7QS3rbOYCQ&dur=504.083&clen=98181364&source=youtube&initcwndbps=2107500&key=yt6&ipbits=0&lmt=1545417279578501&txp=4532432&c=WEB&mime=video%2Fmp4&id=o-AJlgB9ARRdlKpNtF6wgCzV_apLuQ54WlW8JAsf9HoqWi&pl=24&aitags=133%2C134%2C135%2C136%2C137%2C160%2C242%2C243%2C244%2C247%2C248%2C278%2C298%2C299%2C302%2C303%2C394%2C395%2C396%2C397%2C398&ms=au%2Conr&fvip=2&sparams=aitags%2Cclen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&mt=1546794238&mv=m&mm=31%2C26&ip=0.0.0.0&mn=sn-c5ioiv45c-5gol%2Csn-i5heen7s&gir=yes&ratebypass=yes'
[download] Destination: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f299.mp4
[download] 100% of 93.63MiB in 00:10
[debug] Invoking downloader on 'https://r2---sn-c5ioiv45c-5gol.googlevideo.com/videoplayback?expire=1546815929&keepalive=yes&itag=251&signature=35674C4611DA1B5CE9D52EB3E7048B7B4D573A33.9133B195AA2F6E1F8E27225F78ED188F6C02D044&requiressl=yes&ei=WTUyXJiBC5CT7QS3rbOYCQ&dur=504.121&clen=8563128&source=youtube&initcwndbps=2107500&key=yt6&ipbits=0&lmt=1545427700690233&txp=3511222&c=WEB&mime=audio%2Fwebm&id=o-AJlgB9ARRdlKpNtF6wgCzV_apLuQ54WlW8JAsf9HoqWi&pl=24&ms=au%2Conr&fvip=2&sparams=clen%2Cdur%2Cei%2Cgir%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Ckeepalive%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Crequiressl%2Csource%2Cexpire&mt=1546794238&mv=m&mm=31%2C26&ip=0.0.0.0&mn=sn-c5ioiv45c-5gol%2Csn-i5heen7s&gir=yes&ratebypass=yes'
[download] Destination: Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f251.webm
[download] 100% of 8.17MiB in 00:00
[ffmpeg] Merging formats into "Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.mkv"
[debug] ffmpeg command line: ffmpeg -y -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f299.mp4' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f251.webm' -c copy -map 0:v:0 -map 1:a:0 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.temp.mkv'
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f299.mp4 (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.f251.webm (pass -k to keep)
[ffmpeg] Embedding subtitles in 'Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.mkv'
[debug] ffmpeg command line: ffmpeg -y -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.mkv' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ar.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.zh-TW.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.cs.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.en.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.fr.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.de.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.iw.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.id.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.it.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ko.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pl.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pt.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.es.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.tr.vtt' -i 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.vi.vtt' -map 0 -c copy -map -0:s -map 1:0 -metadata:s:s:0 language=ara -map 2:0 -metadata:s:s:1 language=zho -map 3:0 -metadata:s:s:2 language=ces -map 4:0 -metadata:s:s:3 language=eng -map 5:0 -metadata:s:s:4 language=fra -map 6:0 -metadata:s:s:5 language=deu -map 7:0 -map 8:0 -metadata:s:s:7 language=ind -map 9:0 -metadata:s:s:8 language=ita -map 10:0 -metadata:s:s:9 language=kor -map 11:0 -metadata:s:s:10 language=pol -map 12:0 -metadata:s:s:11 language=por -map 13:0 -metadata:s:s:12 language=spa -map 14:0 -metadata:s:s:13 language=tur -map 15:0 -metadata:s:s:14 language=vie 'file:Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.temp.mkv'
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ar.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.zh-TW.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.cs.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.en.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.fr.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.de.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.iw.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.id.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.it.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.ko.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pl.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.pt.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.es.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.tr.vtt (pass -k to keep)
Deleting original file Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.vi.vtt (pass -k to keep)

Description of your issue, suggested solution and other information

YouTube uses the language code iw instead of he for Hebrew subtitles. Since there is no entry for iw here, it doesn't get embedded in the file:

ffprobe 'Aliens under the Ice – Life on Rogue Planets-M7CkdB5z9PY.mkv'
...
    Stream #0:7(deu): Subtitle: webvtt
    Metadata:
      DURATION        : 00:08:07.930000000
    Stream #0:8: Subtitle: webvtt
    Metadata:
      DURATION        : 00:08:07.900000000
    Stream #0:9(ind): Subtitle: webvtt
    Metadata:
      DURATION        : 00:08:07.930000000
...

Stream 0:8 should have the language code heb, but it doesn't have one.

anisse referenced this issue in anisse/youtube-dl Jan 6, 2019
@dstftw dstftw closed this as completed in b7acc83 Jan 6, 2019
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