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

Subtitle problem with --load-info-json switch #24912

Closed
afsharsafavi opened this issue Apr 20, 2020 · 1 comment
Closed

Subtitle problem with --load-info-json switch #24912

afsharsafavi opened this issue Apr 20, 2020 · 1 comment
Labels

Comments

@afsharsafavi
Copy link

@afsharsafavi afsharsafavi commented Apr 20, 2020

Checklist

  • I'm reporting a broken site support issue
  • I've verified that I'm running youtube-dl version 2020.03.24
  • 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

youtube-dl --load-info-json 1.js "https://www.youtube.com/watch?v=brkgt0d_vY4" --write-sub --sub-lang en,fa --embed-subs --write-auto-sub -v
[debug] System config: []
[debug] User config: []
[debug] Custom config: []
[debug] Command-line args: [u'--load-info-json', u'1.js', u'https://www.youtube.com/watch?v=brkgt0d_vY4', u'--write-sub', u'--sub-lang', u'en,fa', u'--embed-subs', u'--write-auto-sub', u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2020.03.24
[debug] Python version 2.7.5 (CPython) - Linux-3.10.0-514.10.2.el7.x86_64-x86_64
[debug] exe versions: avconv 12.3, avprobe 12.3, ffmpeg 4.2.1, ffprobe 4.2.1, phantomjs 2.1.1, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Default format spec: bestvideo+bestaudio/best
[debug] Invoking downloader on u'https://r2---sn-5hne6nlk.googlevideo.com/videoplayback?expire=1587442138&ei=eh2eXqH0DZbI7gPMx6nwDA&ip=2a00%3A1768%3A1001%3A54%3A%3A324&id=o-ALVKP-LtIROWxGnH75MX7nGKJgw5cnflKopkbA2CJG0G&itag=247&aitags=133%2C134%2C135%2C136%2C160%2C242%2C243%2C244%2C247%2C278&source=youtube&requiressl=yes&mh=RB&mm=31%2C29&mn=sn-5hne6nlk%2Csn-5hnekn7k&ms=au%2Crdu&mv=m&mvi=1&pl=36&initcwndbps=812500&vprv=1&mime=video%2Fwebm&gir=yes&clen=69347482&dur=2179.944&lmt=1556389252957928&mt=1587420455&fvip=2&keepalive=yes&c=WEB&txp=5535432&sparams=expire%2Cei%2Cip%2Cid%2Caitags%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJpPlLswRAIgXzvGkmk3UIx64vG4xfgR1MSIzm3HMGOAYto8AUDV4scCIEssqambCnoh24dEqg3f9Hj8JGe9C3yN5QXh3M0s6sVR&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALrAebAwRAIgVsRuQYhaLIrA4Rt9x0X4MzVL1TxUsBPxKyBE3zVvJs8CIHIpLW2q8KG6ogRO-fiEGXhNzWrIqlat88sa8-w149Tj&ratebypass=yes'
[download] Destination: Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f247.webm
[download] 100% of 66.13MiB in 00:01
[debug] Invoking downloader on u'https://r2---sn-5hne6nlk.googlevideo.com/videoplayback?expire=1587442138&ei=eh2eXqH0DZbI7gPMx6nwDA&ip=2a00%3A1768%3A1001%3A54%3A%3A324&id=o-ALVKP-LtIROWxGnH75MX7nGKJgw5cnflKopkbA2CJG0G&itag=251&source=youtube&requiressl=yes&mh=RB&mm=31%2C29&mn=sn-5hne6nlk%2Csn-5hnekn7k&ms=au%2Crdu&mv=m&mvi=1&pl=36&initcwndbps=812500&vprv=1&mime=audio%2Fwebm&gir=yes&clen=37112351&dur=2180.021&lmt=1556385211465176&mt=1587420455&fvip=2&keepalive=yes&c=WEB&txp=5531432&sparams=expire%2Cei%2Cip%2Cid%2Citag%2Csource%2Crequiressl%2Cvprv%2Cmime%2Cgir%2Cclen%2Cdur%2Clmt&sig=AJpPlLswRQIhAJBSrR9xfCOxAI3ELVvW8_5yCoYxj2l4e943OwPezxnmAiBgpT9iRuGjyihwG2CkQdy7ilhdAn6a9tXdXEbq0OT8DQ%3D%3D&lsparams=mh%2Cmm%2Cmn%2Cms%2Cmv%2Cmvi%2Cpl%2Cinitcwndbps&lsig=ALrAebAwRAIgVsRuQYhaLIrA4Rt9x0X4MzVL1TxUsBPxKyBE3zVvJs8CIHIpLW2q8KG6ogRO-fiEGXhNzWrIqlat88sa8-w149Tj&ratebypass=yes'
[download] Destination: Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f251.webm
[download] 100% of 35.39MiB in 00:00
[ffmpeg] Merging formats into "Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel 'repeat+info' -i 'file:Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f247.webm' -i 'file:Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f251.webm' -c copy -map '0:v:0' -map '1:a:0' 'file:Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.temp.webm'
Deleting original file Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f247.webm (pass -k to keep)
Deleting original file Cinema 4D R20 tutorial - Transforming effect-brkgt0d_vY4.f251.webm (pass -k to keep)
[ffmpeg] There aren't any subtitles to embed

Description

Hi
I have a problem with subtitles while using --load-info-json.
Without this switch, there is no problem and subtitles has been downloaded.
But it seems with --load-info-json, Youtube-dl forgot subtitles

@dstftw
Copy link
Collaborator

@dstftw dstftw commented Apr 20, 2020

This is expected behavior. With --load-info-json no extraction takes place, all data is loaded from JSON. If you need to extract subtitles the you must write JSON with subtitle options enabled.

@dstftw dstftw closed this Apr 20, 2020
@dstftw dstftw added the invalid label Apr 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.