#5212: Can't seek while using -re and -ss at the same time -------------------------------------+------------------------------------- Reporter: groove | Type: defect Status: new | Priority: normal Component: | Version: git- undetermined | master Keywords: | Blocked By: Blocking: | Reproduced by developer: 0 Analyzed by developer: 0 | -------------------------------------+------------------------------------- '''Summary of the bug:''' If i use ''-re'' while using ''-ss 10'', the video will be delayed by 10 seconds, instead of skipping 10 seconds into the video, which is normal behavior while not using ''-re''
'''How to reproduce:''' {{{ ffmpeg -re -ss 10 -i test.mkv -c:v copy -c:a copy new.mkv }}} '''Output:''' {{{ ffmpeg version N-78257-gdd57b31 Copyright (c) 2000-2016 the FFmpeg developers built with gcc 4.9.2 (Debian 4.9.2-10) configuration: --prefix=/opt/ffmpeg --enable-libx264 --enable-libssh --enable-libfdk-aac --enable-libmp3lame --enable-libxvid --enable-libvpx --enable-openssl --enable-gpl --enable-nonfree libavutil 55. 17.100 / 55. 17.100 libavcodec 57. 24.101 / 57. 24.101 libavformat 57. 24.100 / 57. 24.100 libavdevice 57. 0.101 / 57. 0.101 libavfilter 6. 28.100 / 6. 28.100 libswscale 4. 0.100 / 4. 0.100 libswresample 2. 0.101 / 2. 0.101 libpostproc 54. 0.100 / 54. 0.100 Input #0, matroska,webm, from 'test.mkv': Metadata: ENCODER : Lavf57.24.100 Duration: 00:01:30.60, start: 0.000000, bitrate: 11347 kb/s Chapter #0:0: start 0.000000, end 5.463000 Chapter #0:1: start 5.463000, end 93.508000 Stream #0:0: Video: h264 (High), yuv420p, 1920x800, SAR 1:1 DAR 12:5, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc (default) Metadata: DURATION : 00:01:30.590000000 Stream #0:1: Audio: dts (DTS), 48000 Hz, 5.1(side), fltp, 1536 kb/s (default) Metadata: DURATION : 00:01:30.600000000 Output #0, matroska, to 'new.mkv': Metadata: encoder : Lavf57.24.100 Chapter #0:0: start 0.000000, end 83.508000 Stream #0:0: Video: h264 (H264 / 0x34363248), yuv420p, 1920x800 [SAR 1:1 DAR 12:5], q=2-31, 23.98 fps, 23.98 tbr, 1k tbn, 1k tbc (default) Metadata: DURATION : 00:01:30.590000000 Stream #0:1: Audio: dts (DTS) ([1] [0][0] / 0x2001), 48000 Hz, 5.1(side), 1536 kb/s (default) Metadata: DURATION : 00:01:30.600000000 Stream mapping: Stream #0:0 -> #0:0 (copy) Stream #0:1 -> #0:1 (copy) Press [q] to stop, [?] for help [matroska @ 0x3122200] failed to avoid negative pts -75 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -63 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -53 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -42 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -31 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -21 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. [matroska @ 0x3122200] failed to avoid negative pts -10 in stream 1. Try -avoid_negative_ts 1 as a possible workaround. frame= 1958 fps= 24 q=-1.0 Lsize= 113108kB time=00:01:20.59 bitrate=11497.4kbits/s speed= 1x video:97980kB audio:15059kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.061519% }}} -- Ticket URL: <https://trac.ffmpeg.org/ticket/5212> FFmpeg <https://ffmpeg.org> FFmpeg issue tracker _______________________________________________ FFmpeg-trac mailing list FFmpeg-trac@avcodec.org http://ffmpeg.org/mailman/listinfo/ffmpeg-trac