Opened 4 years ago

Closed 4 years ago

Last modified 3 years ago

#2235 closed defect (duplicate)

Subtitles do not seek

Reported by: SubJunk Owned by:
Priority: normal Component: avfilter
Version: git-master Keywords:
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

When using the subtitles filter, the subtitle doesn't seek.
For example using the following cmd:

ffmpeg -ss 100 -i input.mkv -vf subtitles=input.srt -c:a ac3 -c:v mpeg2video output.mpeg

The video and audio will skip 100 seconds like normal, but the subtitles will start from the beginning.

Change History (8)

comment:1 Changed 4 years ago by cehoyos

Please provide your failing command line together with the complete, uncut console output to make this a valid ticket.

comment:2 Changed 4 years ago by SubJunk

Hi cehoyos, thanks for the quick reply :) Here's the complete output:

ffmpeg -ss 100 -i input.mp4 -vf "subtitles=input.srt" -an -f mpeg2video output.mpeg
ffmpeg version N-49527-g985e93a Copyright (c) 2000-2013 the FFmpeg developers

built on Feb 1 2013 18:41:39 with gcc 4.7.2 (GCC)
configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
libavutil 52. 17.100 / 52. 17.100
libavcodec 54. 91.100 / 54. 91.100
libavformat 54. 61.104 / 54. 61.104
libavdevice 54. 3.103 / 54. 3.103
libavfilter 3. 35.100 / 3. 35.100
libswscale 2. 2.100 / 2. 2.100
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100

Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'input.mp4':

Metadata:

major_brand : isom
minor_version : 1
compatible_brands: isom
creation_time : 2011-01-27 13:06:05

Duration: 01:54:43.95, start: 0.000000, bitrate: 1715 kb/s

Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p, 720x384 [SAR 1:1 DAR 15:8], 1583 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc
Metadata:

creation_time : 2011-01-26 23:52:45
handler_name : GPAC ISO Video Handler

Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 128 kb/s
Metadata:

creation_time : 2011-01-27 13:08:22
handler_name : GPAC ISO Audio Handler

[srt @ 0556d140] Estimating duration from bitrate, this may be inaccurate
Output #0, mpeg2video, to 'output.mpeg':

Metadata:

major_brand : isom
minor_version : 1
compatible_brands: isom
encoder : Lavf54.61.104
Stream #0:0(und): Video: mpeg2video, yuv420p, 720x384 [SAR 1:1 DAR 15:8], q=2-31, 200 kb/s, 90k tbn, 29.97 tbc
Metadata:

creation_time : 2011-01-26 23:52:45
handler_name : GPAC ISO Video Handler

Stream mapping:

Stream #0:0 -> #0:0 (h264 -> mpeg2video)

Press [q] to stop, ? for help
[h264 @ 05552380] mmco: unref short failure
[h264 @ 05552380] Missing reference picture, default is 65508

Last Last messa message repeated 1 times

[h264 @ 055527a0] mmco: unref short failure
[h264 @ 05552380] Missing reference picture, default is 65508
[h264 @ 05552fa0] mmco: unref short failure
[Parsed_subtitles_0 @ 00308780] Neither PlayResX nor PlayResY defined. Assuming 384x288
frame=203315 fps=1170 q=31.0 Lsize= 434006kB time=01:53:03.91 bitrate= 524.1kbits/s dup=0 drop=1
video:434006kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%

I've tried it with a few different files (mp4 and mkv, all with srt subtitles) and got the same result each time.
If there's any more info that would be helpful please let me know :)

comment:3 Changed 4 years ago by SubJunk

I can attach some files to test if it would make it easier?

comment:4 Changed 4 years ago by cehoyos

  • Keywords seek added

comment:5 Changed 4 years ago by ubitux

Isn't this a dup of #2067?

comment:6 Changed 4 years ago by SubJunk

Yes it seems like it is a dupe, although it seems more like a defect than an enhancement to me. Is there a way I can specify an amount of the subtitle to skip separately?

comment:7 Changed 4 years ago by cehoyos

  • Component changed from undetermined to avfilter
  • Keywords subtitles added
  • Resolution set to duplicate
  • Status changed from new to closed

comment:8 Changed 3 years ago by cehoyos

  • Keywords seek subtitles removed
Note: See TracTickets for help on using tickets.