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 tracks order #9499

Open
Ajaja opened this issue May 15, 2016 · 0 comments
Open

Subtitle tracks order #9499

Ajaja opened this issue May 15, 2016 · 0 comments

Comments

@Ajaja
Copy link

@Ajaja Ajaja commented May 15, 2016

youtube-dl ignores --sub-lang languages order and embeds subtitles randomly(?).
Is there some way to embed them in the selected order?

D:\youtube-dl.exe --format best --format best --keep-video --sub-lang en,ru --embed-subs --write-sub --write-auto-sub --verbose --output %(title)s.%(ext)s --restrict-filenames "https://www.youtube.com/watch?v=vBpxhfBlVLU"
[debug] System config: []
[debug] User config: []
[debug] Command-line args: [u'--format', u'best', u'--format', u'best', u'--keep-video', u'--sub-lang', u'en,ru', u'--embed-subs', u'--write-sub', u'--write-auto-sub', u'--verbose', u'--output', u'%(title)s.%(ext)s', u'--restrict-filenames', u'https://www.youtube.com/watch?v=vBpxhfBlVLU']
[debug] Encodings: locale cp1251, fs mbcs, out cp866, pref cp1251
[debug] youtube-dl version 2016.05.10
[debug] Python version 2.7.10 - Windows-XP-5.1.2600-SP3
[debug] exe versions: ffmpeg 2.4.git
[debug] Proxy map: {}
[youtube] vBpxhfBlVLU: Downloading webpage
[youtube] vBpxhfBlVLU: Downloading video info webpage
[youtube] vBpxhfBlVLU: Extracting video information
[youtube] vBpxhfBlVLU: Looking for automatic captions
[youtube] vBpxhfBlVLU: Downloading MPD manifest
[info] Writing video subtitles to: Why_do_mirrors_flip_horizontally_but_not_vertically.ru.vtt
[info] Writing video subtitles to: Why_do_mirrors_flip_horizontally_but_not_vertically.en.vtt
[debug] Invoking downloader on u'https://r2---sn-8vap5-3c2s.googlevideo.com/videoplayback?ratebypass=yes&ipbits=0&mime=video%2Fmp4&sparams=dur%2Cid%2Cinitcwndbps%2Cip%2Cipbits%2Citag%2Clmt%2Cmime%2Cmm%2Cmn%2Cms%2Cmv%2Cpl%2Cratebypass%2Crequiressl%2Csource%2Cupn%2Cexpire&expire=1463325036&initcwndbps=2611250&mn=sn-8vap5-3c2s&mm=31&signature=ADCE8371EB7E32D0A131BC1A9B07A0494E6F905E.A13C54F346D41B39120D2B225AB1258BB8E7D897&fexp=9407191%2C9416126%2C9416891%2C9419452%2C9422342%2C9422596%2C9428398%2C9429743%2C9431012%2C9431418%2C9433096%2C9433946%2C9434078%2C9434344%2C9434922%2C9435850%2C9436090%2C9436322%2C9436446%2C9436481&key=yt6&ip=93.74.138.5&requiressl=yes&pl=17&source=youtube&sver=3&dur=227.044&mv=m&mt=1463302590&ms=au&id=o-AH40Dxpb2QCbBCG2x6b8XnI8bnoQG9y9qoCqnYySsSn7&lmt=1428126602563068&itag=22&upn=sFeBRwXcMRQ'
[download] Destination: Why_do_mirrors_flip_horizontally_but_not_vertically.mp4
[download] 100% of 51.10MiB in 00:05
[ffmpeg] Embedding subtitles in 'Why_do_mirrors_flip_horizontally_but_not_vertically.mp4'
[debug] ffmpeg command line: ffmpeg -y -i file:Why_do_mirrors_flip_horizontally_but_not_vertically.mp4 -i file:Why_do_mirrors_flip_horizontally_but_not_vertically.ru.vtt -i file:Why_do_mirrors_flip_horizontally_but_not_vertically.en.vtt -map 0 -c copy -map -0:s -c:s mov_text -map 1:0 -metadata:s:s:0 language=rus -map 2:0 -metadata:s:s:1 language=eng file:Why_do_mirrors_flip_horizontally_but_not_vertically.temp.mp4

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.