mirror of
https://github.com/CCExtractor/ccextractor.git
synced 2026-02-03 21:23:48 +00:00
Param "-delay" does not work in out=webvtt but works in out=srt output #500
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @Murmur on GitHub (Aug 29, 2019).
(ccextractor version 0.88 from github)
Using
out=webvttdoes not add 4sec delay to text timings butout=srtfrom the same input oboyes a delay parameter fine.Is it a problem here in webvtt.c file, see srt vs webvtt variable handling
ms_start,ms_end,subs_delayvalues?https://github.com/CCExtractor/ccextractor/blob/master/src/lib_ccx/ccx_encoders_webvtt.c#L399
https://github.com/CCExtractor/ccextractor/blob/master/src/lib_ccx/ccx_encoders_srt.c#L84
@NilsIrl commented on GitHub (Dec 23, 2019):
@Murmur
Was no able to reproduce, could you give your input file? As different input files use different functions
@NilsIrl commented on GitHub (Dec 23, 2019):
I think I know the problem but I would greatly prefer if I had files to test it with
Also @cfsmp3 this seems to be another example where something I feel like should be done earlier in the pipeline rather than be dealt by the encoders.
If I get files to test it with (i.e. attempt to fix it), I will try to make it happen earlier rather than just fixing it for webvtt
@wmstack commented on GitHub (Dec 23, 2019):
Delay works fine with
webvttfor me. Also did you mean... -codec dvbsub -utf8...? can you provide thetest.ts@NilsIrl commented on GitHub (Dec 23, 2019):
Looking at the source code, the problem does indeed exist
@Murmur commented on GitHub (Dec 30, 2019):
I made a small TS test file and a text file with detailed debug information. This file has two problems
a) delay not workingandb) text extract not working for all tracks (I create a separate ticket for this one).http://akini.mbnet.fi/videos/test1_dvbsub.ts
http://akini.mbnet.fi/videos/test1_readme.txt
File has two dvbsub streams (0xc37 works for srt,vtt,png extract. 0xc4f works only for png extract):
CCExtractor test commands to use
-delay 0and-delay 5000argument:Results for delay argument
out=srt works fine for delay 0..n values.
out=webvtt is always using 0 delay.
out=spupng is always using 0 delay in a xml file.