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

Support for CEA-608 closed captions (or prioritize other formats for now) #13730

Closed
nyuszika7h opened this issue Jul 24, 2017 · 0 comments
Closed

Comments

@nyuszika7h
Copy link
Contributor

@nyuszika7h nyuszika7h commented Jul 24, 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/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/may-z-force-be-with-you-s4-ep410-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.217.190.78 (US) as X-Forwarded-For.
[nick.com] may-z-force-be-with-you-s4-ep410-full-episode: Downloading webpage
[nick.com] cebc1f4e-d4a4-11e6-bfd4-0026b9414f30: Downloading info
[nick.com] 503f98d1-0610-488f-b744-ebae643da950: Extracting information
[nick.com] 503f98d1-0610-488f-b744-ebae643da950: Downloading video urls
[nick.com] 503f98d1-0610-488f-b744-ebae643da950: Downloading m3u8 information
[nick.com] e07ebc4e-21ca-49c7-9338-92cb736f7a91: Extracting information
[nick.com] e07ebc4e-21ca-49c7-9338-92cb736f7a91: Downloading video urls
[nick.com] e07ebc4e-21ca-49c7-9338-92cb736f7a91: Downloading m3u8 information
[nick.com] ccb2523a-047e-4533-a01e-32cf26068d90: Extracting information
[nick.com] ccb2523a-047e-4533-a01e-32cf26068d90: Downloading video urls
[nick.com] ccb2523a-047e-4533-a01e-32cf26068d90: Downloading m3u8 information
[nick.com] 0323342b-ff93-4127-85fa-d67b80f17450: Extracting information
[nick.com] 0323342b-ff93-4127-85fa-d67b80f17450: Downloading video urls
[nick.com] 0323342b-ff93-4127-85fa-d67b80f17450: Downloading m3u8 information
[download] Downloading playlist: The Thundermans: "May Z-Force Be With You"
[nick.com] playlist The Thundermans: "May Z-Force Be With You": Collected 4 video ids (downloading 4 of them)
[download] Downloading video 1 of 4
[info] Writing video subtitles to: The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.en.vtt
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/02/24/02/46/09/10a1d239412c46b386769b0fcc1118e4/1589707/pvevmpuGy0_HDTHN410A1_1589707_7171713_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWAhVUPt%2f+dVldaCrZTwFjRgq1zCd%2f0IHaxYBYNTSixDNTKnzSZFmRqFMfX%2fSbtJVCfEX%2fGg%3d%3d&hdntl=exp=1500991583~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f02%2f24%2f02%2f46%2f09%2f10a1d239412c46b386769b0fcc1118e4%2f1589707%2fpvevmpuGy0_HDTHN410A1_1589707_7171713_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=8ea985be4cfd7c6445387e42b9908fa992e37ffda7018b7353eef7e5f933a088'
[download] The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.mp4 has already been downloaded
[download] 100% of 215.73MiB
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.en.vtt' -f srt 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.en.srt'
Deleting original file The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.en.vtt (pass -k to keep)
[ffmpeg] Embedding subtitles in 'The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.mp4'
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.mp4' -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.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 - '"'"'May Z-Force Be With You'"'"' S1-503f98d1-0610-488f-b744-ebae643da950.temp.mp4'
Deleting original file The Thundermans - 'May Z-Force Be With You' S1-503f98d1-0610-488f-b744-ebae643da950.en.srt (pass -k to keep)
[download] Downloading video 2 of 4
[info] Writing video subtitles to: The Thundermans - 'May Z-Force Be With You' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.en.cea-608
[debug] Invoking downloader on 'https://cp479184-vh.akamaihd.net/i/mtvnorigin/gsp.alias/mediabus/kids.com/2017/02/24/02/46/10/3e1fd5954ae34251ad2c430fb93333e5/1589708/KRqgkjoCsr_HDTHN410A2_1589708_7171713_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil/index_6_av.m3u8?null=0&id=AgBUAnSWWN2QfeT+dVmjJp5R5tj5Bx4pVe3JOL4cRgMyXE+QPhBLRO+qGRMXdD%2fkbKk9kTa1rgwSNA%3d%3d&hdntl=exp=1500991588~acl=%2fi%2fmtvnorigin%2fgsp.alias%2fmediabus%2fkids.com%2f2017%2f02%2f24%2f02%2f46%2f10%2f3e1fd5954ae34251ad2c430fb93333e5%2f1589708%2fKRqgkjoCsr_HDTHN410A2_1589708_7171713_,384x216_278,512x288_498,640x360_1028,768x432_1528,960x540_2128,1280x720_3128,1920x1080_5128,.mp4.csmil%2f*~data=hdntl~hmac=f30254884f7b3604de18bf94c8118690ef45bec9b3933ae91d243bee58fb40d5'
[download] The Thundermans - 'May Z-Force Be With You' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.mp4 has already been downloaded
[download] 100% of 329.38MiB
[debug] ffmpeg command line: ffprobe -show_streams 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.mp4'
[ffmpeg] Fixing malformed AAC bitstream in "The Thundermans - 'May Z-Force Be With You' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.mp4"
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.mp4' -c copy -f mp4 -bsf:a aac_adtstoasc 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.temp.mp4'
[ffmpeg] Converting subtitles
[debug] ffmpeg command line: ffmpeg -y -i 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.en.cea-608' -f srt 'file:The Thundermans - '"'"'May Z-Force Be With You'"'"' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.en.srt'
ERROR: file:The Thundermans - 'May Z-Force Be With You' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.en.cea-608: Invalid data found when processing input
Traceback (most recent call last):
  File "/home/nyuszika7h/.local/lib/python3.6/site-packages/youtube_dl/YoutubeDL.py", line 2002, in post_process
    files_to_delete, info = pp.run(info)
  File "/home/nyuszika7h/.local/lib/python3.6/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 605, in run
    self.run_ffmpeg(old_file, new_file, ['-f', new_format])
  File "/home/nyuszika7h/.local/lib/python3.6/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 208, in run_ffmpeg
    self.run_ffmpeg_multiple_files([path], out_path, opts)
  File "/home/nyuszika7h/.local/lib/python3.6/site-packages/youtube_dl/postprocessor/ffmpeg.py", line 204, in run_ffmpeg_multiple_files
    raise FFmpegPostProcessorError(msg)
youtube_dl.postprocessor.ffmpeg.FFmpegPostProcessorError: file:The Thundermans - 'May Z-Force Be With You' S2-e07ebc4e-21ca-49c7-9338-92cb736f7a91.en.cea-608: Invalid data found when processing input

Description of your issue, suggested solution and other information

FFmpeg does not currently support CEA-608 closed captions, which results in the above error. As a workaround, youtube-dl could automatically prefer other subtitle formats when available (as it is the case with nick.com in the example), without having to manually specify the preference with --sub-format. Or a parser for this could be implemented similar to the TTML parser. The open source CCExtractor project may be helpful.

@nyuszika7h nyuszika7h changed the title Support for CEA-608 closed captions / prioritize other formats Support for CEA-608 closed captions (or prioritize other formats for now) Sep 30, 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.