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

Wrong "Codec ID:" for VTT in mkv file #16338

Open
5 of 9 tasks
ibrshv opened this issue Apr 30, 2018 · 3 comments
Open
5 of 9 tasks

Wrong "Codec ID:" for VTT in mkv file #16338

ibrshv opened this issue Apr 30, 2018 · 3 comments

Comments

@ibrshv
Copy link

ibrshv commented Apr 30, 2018

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 2018.04.25. 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 2018.04.25

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: [u'-v']
[debug] Encodings: locale UTF-8, fs UTF-8, out UTF-8, pref UTF-8
[debug] youtube-dl version 2018.04.25
[debug] Python version 2.7.12 (CPython) - Linux-4.13.0-38-generic-x86_64-with-Ubuntu-16.04-xenial
[debug] exe versions: avconv 2.8.14-0ubuntu0.16.04.1, avprobe 2.8.14-0ubuntu0.16.04.1, ffmpeg 2.8.14-0ubuntu0.16.04.1, ffprobe 2.8.14-0ubuntu0.16.04.1
[debug] Proxy map: {}
Usage: youtube-dl [OPTIONS] URL [URL...]
...
<end of log>

If the purpose of this issue is a site support request please provide all kinds of example URLs support for which should be included (replace following example URLs by yours):

Note that youtube-dl does not support sites dedicated to copyright infringement. In order for site support request to be accepted all provided example URLs should not violate any copyrights.


Description of your issue, suggested solution and other information

youtube-dl writes the unsupported "Codec ID: D_WEBVTT/SUBTITLES" in mkv so mkvextract can't extract subtitles. Correct is "S_TEXT/WEBVTT". Seems it's a problem with ffmpeg. If so maybe exists solutions to tackle this issue in a different way? Or simply, how can I get this data from mkv?

@dstftw
Copy link
Collaborator

dstftw commented Apr 30, 2018

Provide the output of exact downloading command that reproduces the problem.

@fcartegnie
Copy link

Provide the output of exact downloading command that reproduces the problem.

See example on :
https://trac.videolan.org/vlc/ticket/24949

The early unspecified D_ mappings have never been really in use and originates from WEBM.
https://www.webmproject.org/docs/container/

The correct payload for MKV mapping is through S_TEXT/WEBVTT,
but ffmpeg still uses the WEBM one, and only when codecs are WEBM compatible.

https://github.com/FFmpeg/FFmpeg/blob/c3cd6b765ba65469401ece256d79b2ac15ac4a9f/libavformat/matroskaenc.c#L2842

To me that's an ffmpeg issue

@srussel
Copy link

srussel commented Jul 15, 2020

The ffmpeg issue
https://trac.ffmpeg.org/ticket/5641

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

4 participants