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

Respect chosen subtitle format when embedding #13712

Closed
nyuszika7h opened this issue Jul 23, 2017 · 1 comment
Closed

Respect chosen subtitle format when embedding #13712

nyuszika7h opened this issue Jul 23, 2017 · 1 comment

Comments

@nyuszika7h
Copy link
Contributor

@nyuszika7h nyuszika7h commented Jul 23, 2017

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 that [x])
  • Use Preview tab to see how your issue will actually look like

Make sure you are using the latest version: run youtube-dl --version and ensure your version is 2017.07.23. 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 2017.07.23

Before submitting an issue make sure you have:

  • At least skimmed through README and most notably FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones

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 -v flag to your command line you run youtube-dl with, 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: ['-f', 'bestvideo[ext=mp4][height<=?1080]+bestaudio[ext=m4a]/best[ext=mp4]/best', '--external-downloader', 'aria2c', '--external-downloader-args', '-x 5', '--hls-use-mpegts', '--write-sub', '--sub-format', 'srt/ass/ssa/vtt/dfxp/ttml/best', '--convert-subs', 'srt', '--embed-subs']
[debug] Custom config: []
[debug] Command-line args: ['-v', '--geo-bypass-country', 'US', 'http://www.nick.com/the-thundermans/videos/parks-t-rex-s4-ep409-full-episode/']
[debug] Encodings: locale UTF-8, fs utf-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2017.07.23
[debug] Python version 3.6.1 - Linux-4.4.0-43-Microsoft-x86_64-with-Ubuntu-17.04-zesty
[debug] exe versions: ffmpeg 3.2.4-1build2, ffprobe 3.2.4-1build2, rtmpdump 2.4
[debug] Proxy map: {}
[debug] Using fake IP 3.59.194.190 (US) as X-Forwarded-For.
[nick.com] parks-t-rex-s4-ep409-full-episode: Downloading webpage
[nick.com] 2eb32294-c0ff-11e6-bfd4-0026b9414f30: Downloading info
[nick.com] 46fb9330-9c04-4596-a495-f36728bf22c3: Extracting information
[nick.com] 46fb9330-9c04-4596-a495-f36728bf22c3: Downloading video urls
[nick.com] 46fb9330-9c04-4596-a495-f36728bf22c3: Downloading m3u8 information
[nick.com] 4b62f08d-0175-49a3-a1de-5e339a6f282b: Extracting information
[nick.com] 4b62f08d-0175-49a3-a1de-5e339a6f282b: Downloading video urls
[nick.com] 4b62f08d-0175-49a3-a1de-5e339a6f282b: Downloading m3u8 information
[nick.com] cdbe9383-d8c9-4173-a993-6b8b17d42367: Extracting information
[nick.com] cdbe9383-d8c9-4173-a993-6b8b17d42367: Downloading video urls
[nick.com] cdbe9383-d8c9-4173-a993-6b8b17d42367: Downloading m3u8 information
[nick.com] c168ca93-7010-4a6a-be34-8cdd2c36fe00: Extracting information
[nick.com] c168ca93-7010-4a6a-be34-8cdd2c36fe00: Downloading video urls
[nick.com] c168ca93-7010-4a6a-be34-8cdd2c36fe00: Downloading m3u8 information
[download] Downloading playlist: The Thundermans: "Parks &amp; T-Rex"
[nick.com] playlist The Thundermans: "Parks &amp; T-Rex": Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[info] Writing video subtitles to: The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.vtt
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/01/25/01/46/24/3fad5cc19537470f94b57fe46bc5655c/1548644/Zf7MRb8DN7_HDTHN409A1_1548644_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWaFZvF8eZdFmXGOFpmw%2fWL0IbFd2WhRi2fP4S6bYcJbEd2Ucm3tXjZ5HHePJIwiOOmMGWvA%3d%3d&hdntl=exp=1500900167~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f01%2f25%2f01%2f46%2f24%2f3fad5cc19537470f94b57fe46bc5655c%2f1548644%2fZf7MRb8DN7_HDTHN409A1_1548644_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=5686d73d4e32ee00346fa31275acef1c2d5052f692762c5bd0eedcc94eaafe2d'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 47
[download] Destination: The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4
[download] 100% of 163.26MiB in 01:16
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.vtt' -f srt 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.srt'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.vtt (pass -k to keep)
[ffmpeg] Embedding subtitles in 'The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.mp4' -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.srt' -map 0 -c copy -map -0:s -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S1-46fb9330-9c04-4596-a495-f36728bf22c3.temp.mp4'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S1-46fb9330-9c04-4596-a495-f36728bf22c3.en.srt (pass -k to keep)
[download] Downloading video 2 of 4
[info] Writing video subtitles to: The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.vtt
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/01/25/01/46/29/5eb124af3bb44ef7b85ab441e8c1688e/1548645/XmZTDwU67i_HDTHN409A2_1548645_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWaFZvF82ZdFlfgAJBEDQE%2f1vs3jN5IY5V%2fPhh7Nzm4MvQ2BxyyKwxo7V1SCobEwcjDBDe1Q%3d%3d&hdntl=exp=1500900173~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f01%2f25%2f01%2f46%2f29%2f5eb124af3bb44ef7b85ab441e8c1688e%2f1548645%2fXmZTDwU67i_HDTHN409A2_1548645_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=ad67e78fc0565994c17900ce339de8e741e9fac6becc14f1694c6eff9f6f090f'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 84
[download] Destination: The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4
[download] 100% of 302.48MiB in 02:21
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.vtt' -f srt 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.srt'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.vtt (pass -k to keep)
[ffmpeg] Embedding subtitles in 'The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.mp4' -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.srt' -map 0 -c copy -map -0:s -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.temp.mp4'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S2-4b62f08d-0175-49a3-a1de-5e339a6f282b.en.srt (pass -k to keep)
[download] Downloading video 3 of 4
[info] Writing video subtitles to: The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.vtt
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/01/25/01/46/34/404cb04102554a1091bbebc472983c2c/1548655/N9TDVRC4pb_HDTHN409A3_1548655_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWaFZvF82ZdFmmzJBfVxZZUeEdgFzCsL1n7Tp+cpqgkchqZCHjl9efoy8hlyKk0YxZWyfAbg%3d%3d&hdntl=exp=1500900173~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f01%2f25%2f01%2f46%2f34%2f404cb04102554a1091bbebc472983c2c%2f1548655%2fN9TDVRC4pb_HDTHN409A3_1548655_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=c825f77262ae396de6db1f0d1358af82312a156ad87c1cce6e7dee8d403715d8'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 91
[download] Destination: The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4
[download] 100% of 325.10MiB in 02:37
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.vtt' -f srt 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.srt'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.vtt (pass -k to keep)
[ffmpeg] Embedding subtitles in 'The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.mp4' -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.srt' -map 0 -c copy -map -0:s -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.temp.mp4'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S3-cdbe9383-d8c9-4173-a993-6b8b17d42367.en.srt (pass -k to keep)
[download] Downloading video 4 of 4
[info] Writing video subtitles to: The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.vtt
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/01/25/01/46/32/082737f9e2804711a5ad92a5d6895b86/1548656/jiGhQ3jAEn_HDTHN409A4_1548656_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWWN2QfdOZdFkvBLsc5bK36zc9GG78YNBDJFTSGrO%2fcqy+QxYmPDnwPeVAF+RPHhHMc8T0uQ%3d%3d&hdntl=exp=1500900179~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f01%2f25%2f01%2f46%2f32%2f082737f9e2804711a5ad92a5d6895b86%2f1548656%2fjiGhQ3jAEn_HDTHN409A4_1548656_7110228_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=6a4427af8a6f750e689d63b9fb5bdb27af4cec33872d3c1783ad9ebef7cc6794'
[hlsnative] Downloading m3u8 manifest
[hlsnative] Total fragments: 6
[download] Destination: The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4
[download] 100% of 1.97MiB in 00:03
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.vtt' -f srt 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.srt'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.vtt (pass -k to keep)
[ffmpeg] Embedding subtitles in 'The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.mp4' -i 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.srt' -map 0 -c copy -map -0:s -c:s mov_text -map 1:0 -metadata:s:s:0 language=eng 'file:The Thundermans - '"'"'Parks &amp; T-Rex'"'"' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.temp.mp4'
Deleting original file The Thundermans - 'Parks &amp; T-Rex' S4-c168ca93-7010-4a6a-be34-8cdd2c36fe00.en.srt (pass -k to keep)
[download] Finished downloading playlist: The Thundermans: "Parks &amp; T-Rex"

Description of your issue, suggested solution and other information

If I use --embed-subs --convert-subs srt and the audio format is compatible with the video format or both are in a single file, I get MP4 files with TX3G subtitles, rather than MKV with SRT subtitles. The subtitle format should also be considered for container compatibility.

@nyuszika7h
Copy link
Contributor Author

@nyuszika7h nyuszika7h commented Jul 23, 2017

Sorry, I just noticed this is a duplicate of #6996.

@nyuszika7h nyuszika7h closed this Jul 23, 2017
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
1 participant
You can’t perform that action at this time.