Opened 9 months ago

Last modified 9 months ago

#10510 new enhancement

FFMPEG decode 608 caption to webvtt with big cues. How to generate with smaller cues (i.e. gop size)?

Reported by: Qi Cao Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: caption
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description (last modified by Qi Cao)

Summary of the bug: We are using FFMPEG to decode 608 caption to webvtt. webvtt files contains cues with large timespan, such as playing music for two minutes. Since we are getting this till the end of caption, it is too late to display the caption. We are wondering if we could decode the captions to smaller cues, such as gop size. We have been playing the segment command switch with no luck. Could you shed light on this?

How to reproduce:
ffmpeg -data_field first -y -t 10 -f lavfi -i "movie='fallbeatcaptiontest.mp4':streams='v+a'[out0+subcc][out1]" -c:v rawvideo -f rawvideo -pix_fmt nv12 -c:a pcm_s16le -f s16le -ar 16000 -ac 1 -map a -map v -f nut base.nut -map 0:s -c:s webvtt -f webvtt cap-base.vtt

Tried:
ffmpeg -data_field first -y -t 10 -f lavfi -i "movie='fallbeatcaptiontest.mp4':streams='v+a'[out0+subcc][out1]" -c:v rawvideo -f rawvideo -pix_fmt nv12 -c:a pcm_s16le -f s16le -ar 16000 -ac 1 -map a -map v -f nut base.nut -map 0:s -f segment -segment_time 2 -segment_format webvtt output_cue_%03d.vtt

It generated multiple vtt files, but didn't chunk existing large cue to 2 seconds as expected.

chatgpt said segment muxer only applies to video and audio, not caption. Is that true?

Change History (3)

comment:1 by Qi Cao, 9 months ago

Description: modified (diff)

comment:2 by Qi Cao, 9 months ago

Description: modified (diff)

comment:3 by Qi Cao, 9 months ago

Description: modified (diff)
Note: See TracTickets for help on using tickets.