Opened 2 months ago

Last modified 2 months ago

#11102 new defect

[EIA-608] Extracted srt from TS is empty

Reported by: superbonaci Owned by:
Priority: normal Component: undetermined
Version: unspecified Keywords: cc
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug:
How to reproduce:

% ffmpeg -f lavfi -i "movie=600_160p.ts[out0+subcc]" -map s 600_160p.srt
ffmpeg version 7.0.1 Copyright (c) 2000-2024 the FFmpeg developers
  built with Apple clang version 15.0.0 (clang-1500.3.9.4)
  configuration: --prefix=/opt/homebrew/Cellar/ffmpeg/7.0.1 --enable-shared --enable-pthreads --enable-version3 --cc=clang --host-cflags= --host-ldflags='-Wl,-ld_classic' --enable-ffplay --enable-gnutls --enable-gpl --enable-libaom --enable-libaribb24 --enable-libbluray --enable-libdav1d --enable-libharfbuzz --enable-libjxl --enable-libmp3lame --enable-libopus --enable-librav1e --enable-librist --enable-librubberband --enable-libsnappy --enable-libsrt --enable-libssh --enable-libsvtav1 --enable-libtesseract --enable-libtheora --enable-libvidstab --enable-libvmaf --enable-libvorbis --enable-libvpx --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxml2 --enable-libxvid --enable-lzma --enable-libfontconfig --enable-libfreetype --enable-frei0r --enable-libass --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libspeex --enable-libsoxr --enable-libzmq --enable-libzimg --disable-libjack --disable-indev=jack --enable-videotoolbox --enable-audiotoolbox --enable-neon
  libavutil      59.  8.100 / 59.  8.100
  libavcodec     61.  3.100 / 61.  3.100
  libavformat    61.  1.100 / 61.  1.100
  libavdevice    61.  1.100 / 61.  1.100
  libavfilter    10.  1.100 / 10.  1.100
  libswscale      8.  1.100 /  8.  1.100
  libswresample   5.  1.100 /  5.  1.100
  libpostproc    58.  1.100 / 58.  1.100
Input #0, lavfi, from 'movie=600_160p.ts[out0+subcc]':
  Duration: N/A, start: 6117.377000, bitrate: N/A
  Stream #0:0: Video: wrapped_avframe, yuv420p, 284x160 [SAR 1:1 DAR 71:40], 30 fps, 30 tbr, 90k tbn
  Stream #0:1: Subtitle: eia_608 (cc_dec)
Stream mapping:
  Stream #0:1 -> #0:0 (eia_608 (cc_dec) -> subrip (srt))
Press [q] to stop, [?] for help
Output #0, srt, to '600_160p.srt':
  Metadata:
    encoder         : Lavf61.1.100
  Stream #0:0: Subtitle: subrip
      Metadata:
        encoder         : Lavc61.3.100 srt
[out#0/srt @ 0x6000012280c0] video:0KiB audio:0KiB subtitle:0KiB other streams:0KiB global headers:0KiB muxing overhead: unknown
[out#0/srt @ 0x6000012280c0] Output file is empty, nothing was encoded(check -ss / -t / -frames parameters if used)
size=       0KiB time=N/A bitrate=N/A speed=N/A

File 600_160p.srt is empty.

Attachments (1)

600_160p.ts.zip (298.0 KB ) - added by superbonaci 2 months ago.

Download all attachments as: .zip

Change History (6)

by superbonaci, 2 months ago

Attachment: 600_160p.ts.zip added

comment:1 by superbonaci, 2 months ago

6 samples (including 600_160p.ts), same exact video but at different resolutions:
https://mega.nz/file/9aYDlIaa#HKVFioKywseq1eIpsulYOJo-uBN92NBkXvuxzJCP6Aw

Last edited 2 months ago by superbonaci (previous) (diff)

comment:2 by superbonaci, 2 months ago

Summary: [EIA-608] Extracted srt form TS is empty[EIA-608] Extracted srt from TS is empty

comment:3 by Balling, 2 months ago

Keywords: cc added

There are some issues with closed captions. Use google's ccextractor instead.

in reply to:  3 comment:4 by superbonaci, 2 months ago

Replying to Balling:

There are some issues with closed captions. Use google's ccextractor instead.

Not sure which one is that, but I've already reported this:
https://github.com/CCExtractor/ccextractor/issues/1626

comment:5 by Balling, 2 months ago

Yeah, that is the one.

Note: See TracTickets for help on using tickets.