Opened 5 years ago

Last modified 3 months ago

#8410 new enhancement

wishlist vtt: support styling when converting to ass

Reported by: Yi-Jyun Pan Owned by:
Priority: wish Component: avcodec
Version: git-master Keywords: webvtt
Cc: Igetin, nathanielcwm, bernardo Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug

When I convert a vtt file to ass, it appears like styles are removed.

How to reproduce

Logs

$ ffmpeg -i AIAIAI.zh-TW.vtt -f ass out.ass
ffmpeg version n4.2.1 Copyright (c) 2000-2019 the FFmpeg developers
  built with gcc 9.2.0 (GCC)
  configuration: --prefix=/usr --disable-debug --disable-static --disable-stripping --enable-fontconfig --enable-gmp --enable-gnutls --enable-gpl --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libdav1d --enable-libdrm --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libiec61883 --enable-libjack --enable-libmodplug --enable-libmp3lame --enable-libopencore_amrnb --enable-libopencore_amrwb --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libsoxr --enable-libspeex --enable-libssh --enable-libtheora --enable-libv4l2 --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxcb --enable-libxml2 --enable-libxvid --enable-nvdec --enable-nvenc --enable-omx --enable-shared --enable-version3
  libavutil      56. 31.100 / 56. 31.100
  libavcodec     58. 54.100 / 58. 54.100
  libavformat    58. 29.100 / 58. 29.100
  libavdevice    58.  8.100 / 58.  8.100
  libavfilter     7. 57.100 /  7. 57.100
  libswscale      5.  5.100 /  5.  5.100
  libswresample   3.  5.100 /  3.  5.100
  libpostproc    55.  5.100 / 55.  5.100
[webvtt @ 0x5648bc272780] Dropping 2 duplicated subtitle events
Input #0, webvtt, from 'AIAIAI.zh-TW.vtt':
  Duration: N/A, bitrate: N/A
    Stream #0:0: Subtitle: webvtt
Output #0, ass, to 'out.ass':
  Metadata:
    encoder         : Lavf58.29.100
    Stream #0:0: Subtitle: ass (ssa)
    Metadata:
      encoder         : Lavc58.54.100 ssa
Stream mapping:
  Stream #0:0 -> #0:0 (webvtt (native) -> ass (ssa))
Press [q] to stop, [?] for help
size=      96kB time=00:03:03.99 bitrate=   4.3kbits/s speed=2.72e+03x    
video:0kB audio:0kB subtitle:56kB other streams:0kB global headers:1kB muxing overhead: 69.999657%

Platform

  • System: Arch Linux (testing / kde-unstable) x86-64
  • System Language: zh_TW.UTF-8
  • Desktop Environment: Plasma 5.17.3 / KDE Frameworks 5.64.0 / Qt 5.14
  • Font: Noto Sans CJK TC
  • youtube-dl installed

Expected Behavior

https://user-images.githubusercontent.com/28441561/69917571-70538280-14a2-11ea-9365-de85e28b82e2.png

When playing this video with zh_TW subtitle on YouTube Web. (0:14)

Actual behavior

https://user-images.githubusercontent.com/28441561/69917763-90844100-14a4-11ea-99d2-075839fca6f7.png

When playing this video with the converted ass on mpv. (0:14)

(For developers) some reference of styling

Text Color: https://www.w3.org/TR/webvtt1/#default-text-color
Cue settings, like alignment, position and etc.: https://www.w3.org/TR/webvtt1/#cue-settings

Sample File

Referenced Issues

Attachments (1)

Kizuna AI - AIAIAI (feat. 中田ヤスタカ)【Official Music Video】-S8dmq5YIUoc.zh-TW.vtt (136.1 KB ) - added by Carl Eugen Hoyos 5 years ago.

Download all attachments as: .zip

Change History (9)

comment:1 by Carl Eugen Hoyos, 5 years ago

Component: ffmpegavcodec
Keywords: wishlist ass subtitle removed
Type: defectenhancement
Version: 4.2git-master

comment:2 by Igetin, 3 years ago

Cc: Igetin added

comment:3 by Carl Eugen Hoyos, 2 years ago

Keywords: webvtt added; vtt removed

See also #9609

comment:4 by nathanielcwm, 11 months ago

Cc: nathanielcwm added

comment:5 by bernardo, 5 months ago

Cc: bernardo added

comment:6 by solomoncyj, 3 months ago

i thik you should elevate to critical/important? it seems to fit their discription of "data is lost"

Last edited 3 months ago by solomoncyj (previous) (diff)

comment:8 by Balling, 3 months ago

fit their discription of "data is lost"

No, it does not. Data is not lost just not used.

Note: See TracTickets for help on using tickets.