[FFmpeg-trac] #5212(ffmpeg:closed): Can't seek while using -re and -ss at the same time
FFmpeg
trac at avcodec.org
Wed Feb 3 13:27:05 CET 2016
#5212: Can't seek while using -re and -ss at the same time
------------------------------------+--------------------------------------
Reporter: groove | Owner:
Type: defect | Status: closed
Priority: normal | Component: ffmpeg
Version: git-master | Resolution: worksforme
Keywords: | Blocked By:
Blocking: | Reproduced by developer: 0
Analyzed by developer: 0 |
------------------------------------+--------------------------------------
Changes (by cehoyos):
* status: new => closed
* resolution: => worksforme
Comment:
I cannot reproduce this:
{{{
$ time ./ffmpeg -ss 10 -i test.mkv -c:v copy -c:a copy new.mkv
ffmpeg version N-78269-gc1b23e1 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --enable-libmp3lame
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 : Lavf55.48.100
Duration: 00:00:10.17, start: 0.067000, bitrate: 1875 kb/s
Stream #0:0: Video: h264 (High), yuvj420p(pc), 320x240, SAR 1:1 DAR
4:3, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
Metadata:
ENCODER : Lavc55.69.100 libx264
Stream #0:1: Audio: dts (DTS), 44100 Hz, mono, fltp, 1536 kb/s
(default)
Metadata:
ENCODER : Lavc55.69.100 dca
Output #0, matroska, to 'new.mkv':
Metadata:
encoder : Lavf57.24.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 320x240 [SAR
1:1 DAR 4:3], q=2-31, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Metadata:
ENCODER : Lavc55.69.100 libx264
Stream #0:1: Audio: dts (DTS) ([1] [0][0] / 0x2001), 44100 Hz, mono,
1536 kb/s (default)
Metadata:
ENCODER : Lavc55.69.100 dca
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x2c2cea0] failed to avoid negative pts -66 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x2c2cea0] failed to avoid negative pts -54 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x2c2cea0] failed to avoid negative pts -42 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x2c2cea0] failed to avoid negative pts -31 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x2c2cea0] failed to avoid negative pts -19 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x2c2cea0] failed to avoid negative pts -7 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
frame= 13 fps=0.0 q=-1.0 Lsize= 113kB time=00:00:00.08
bitrate=10392.5kbits/s speed= 111x
video:18kB audio:94kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.164622%
real 0m0.007s
user 0m0.003s
sys 0m0.003s
}}}
{{{
$ time ./ffmpeg -re -ss 10 -i test.mkv -c:v copy -c:a copy new.mkv
ffmpeg version N-78269-gc1b23e1 Copyright (c) 2000-2016 the FFmpeg
developers
built with gcc 4.7 (SUSE Linux)
configuration: --enable-gpl --enable-libmp3lame
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 : Lavf55.48.100
Duration: 00:00:10.17, start: 0.067000, bitrate: 1875 kb/s
Stream #0:0: Video: h264 (High), yuvj420p(pc), 320x240, SAR 1:1 DAR
4:3, 30 fps, 30 tbr, 1k tbn, 60 tbc (default)
Metadata:
ENCODER : Lavc55.69.100 libx264
Stream #0:1: Audio: dts (DTS), 44100 Hz, mono, fltp, 1536 kb/s
(default)
Metadata:
ENCODER : Lavc55.69.100 dca
Output #0, matroska, to 'new.mkv':
Metadata:
encoder : Lavf57.24.100
Stream #0:0: Video: h264 (H264 / 0x34363248), yuvj420p, 320x240 [SAR
1:1 DAR 4:3], q=2-31, 30 fps, 30 tbr, 1k tbn, 1k tbc (default)
Metadata:
ENCODER : Lavc55.69.100 libx264
Stream #0:1: Audio: dts (DTS) ([1] [0][0] / 0x2001), 44100 Hz, mono,
1536 kb/s (default)
Metadata:
ENCODER : Lavc55.69.100 dca
Stream mapping:
Stream #0:0 -> #0:0 (copy)
Stream #0:1 -> #0:1 (copy)
Press [q] to stop, [?] for help
[matroska @ 0x3af6ec0] failed to avoid negative pts -66 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x3af6ec0] failed to avoid negative pts -54 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x3af6ec0] failed to avoid negative pts -42 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x3af6ec0] failed to avoid negative pts -31 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x3af6ec0] failed to avoid negative pts -19 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
[matroska @ 0x3af6ec0] failed to avoid negative pts -7 in stream 1.
Try -avoid_negative_ts 1 as a possible workaround.
frame= 13 fps=0.0 q=-1.0 Lsize= 113kB time=00:00:00.08
bitrate=10392.5kbits/s speed=0.97x
video:18kB audio:94kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 1.164622%
real 0m0.099s
user 0m0.003s
sys 0m0.005s
}}}
Seeking over the first ten seconds takes virtually no time both with and
without {{{-re}}}.
--
Ticket URL: <https://trac.ffmpeg.org/ticket/5212#comment:6>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list