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

.srt file gets italics even though .ttml has none #16551

Closed
forthrin opened this issue May 26, 2018 · 1 comment
Closed

.srt file gets italics even though .ttml has none #16551

forthrin opened this issue May 26, 2018 · 1 comment
Labels

Comments

@forthrin
Copy link

@forthrin forthrin commented May 26, 2018

  • I've verified and I assure that I'm running youtube-dl 2018.05.26
  • At least skimmed through the README, most notably the FAQ and BUGS sections
  • Searched the bugtracker for similar issues including closed ones
  • Bug report (encountered problems with youtube-dl)
$ youtube-dl -v
[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.05.26
[debug] Python version 2.7.10 (CPython) - Darwin-16.7.0-x86_64-i386-64bit
[debug] exe versions: ffmpeg 4.0, ffprobe 4.0, rtmpdump 2.4
[debug] Proxy map: {}

When converting videos with .ttml subtitles using --write-sub --sub-lang en,no --convert-subtitles srt:

<?xml version="1.0" encoding="UTF-8"?><tt xml:lang="no" xmlns="http://www.w3.org/ns/ttml" xmlns:tts="http://www.w3.org/ns/ttml#styling">
  <head>
    <styling>
      <style xml:id="italic" tts:fontStyle="italic" />
      <style xml:id="left" tts:textAlign="left" />
    </styling>
  </head>
  <body>
    <div>
      <p begin="00:00:00.000" dur="00:00:10.000" style="left">Hello, World</p>
    </div>
  </body>
</tt>

The destination .srt file gets italics even though this is not specified in the source .ttml. The same happens for any number of subtitles added to the .ttml file.

1
00:00:00,000 --> 00:00:10,000
<i>Hello, World</i>

Example URL (may be geo-restricted):

https://tv.nrk.no/serie/skam-austin/KOIF20001618/sesong-1/episode-3

@remitamine
Copy link
Collaborator

@remitamine remitamine commented May 26, 2018

post a URL to a real subtitle.

@remitamine remitamine added incomplete and removed incomplete labels May 26, 2018
@remitamine remitamine added the fixed label May 26, 2018
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.