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
When playing this video with zh_TW subtitle on YouTube Web. (0:14)
Actual behavior
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)
Change History (9)
by , 5 years ago
comment:1 by , 5 years ago
Component: | ffmpeg → avcodec |
---|---|
Keywords: | wishlist ass subtitle removed |
Type: | defect → enhancement |
Version: | 4.2 → git-master |
comment:2 by , 3 years ago
Cc: | added |
---|
comment:3 by , 2 years ago
Keywords: | webvtt added; vtt removed |
---|
comment:4 by , 11 months ago
Cc: | added |
---|
comment:5 by , 5 months ago
Cc: | added |
---|
comment:6 by , 3 months ago
i thik you should elevate to critical/important? it seems to fit their discription of "data is lost"
comment:7 by , 3 months ago
comment:8 by , 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.
See also #9609