[FFmpeg-trac] #4401(undetermined:closed): Past duration too large
FFmpeg
trac at avcodec.org
Wed May 13 19:08:30 CEST 2015
#4401: Past duration too large
-------------------------------------+-------------------------------------
Reporter: ghazel | Owner:
Type: defect | Status: closed
Priority: normal | Component:
Version: git-master | undetermined
Keywords: | Resolution:
Blocking: | needs_more_info
Analyzed by developer: 0 | Blocked By:
| Reproduced by developer: 0
-------------------------------------+-------------------------------------
Comment (by Kaleru):
Maybe I can provide a bit of information.
My intention is to set up screencasting under Linux (Debian Jessie). For
this, I also need to record (and simultaneously listen to) the sound
output of any programs. So, I instructed ffmpeg to record the analog
stereo monitor via PulseAudio. Just capturing the video isn't a problem,
but when I add the audio settings, I encounter those messages, too. With
ffmpeg version 2.6.2 they get written out once per frame information
(frame=...) and with 2.6.git they occur mostly at the start of the
recording and then at irregular intervals.
Since I'm on a 1920x1080 display the "`-video_size 1400x800 -i
:0.0+310,140`" part will center the recording window and provide a larger
size than 1280x720. "`-thread_queue_size 32`", "`-af aresample=async=1`",
"`-channel_layout stereo`" and "`-pix_fmt yuv444p`" have been added to fix
several warnings, like "`Thread message queue blocking; consider raising
the thread_queue_size option`" or "`Guessed Channel Layout for Input
Stream #1.0 : stereo`". The only warning I couldn't fix is this one.
Command line output follows:
{{{
tech at D:~/Dokumente/ffmpeg/FFmpeg-master$ ./ffmpeg -y -thread_queue_size 32
-f x11grab -framerate 30 -show_region 1 -video_size 1400x800 -i
:0.0+310,140 -f pulse -ac 2 -channel_layout stereo -i alsa_output.pci-
0000_00_1b.0.analog-stereo.monitor -c:v libx264 -pix_fmt yuv444p -preset
ultrafast -qp 0 -c:a flac -compression_level 0 -af aresample=async=1
output.mkv
ffmpeg version 2.6.git Copyright (c) 2000-2015 the FFmpeg developers
built with gcc 4.9.2 (Debian 4.9.2-10)
configuration: --enable-libx264 --enable-gpl --enable-version3 --enable-
nonfree --enable-libpulse
libavutil 54. 23.101 / 54. 23.101
libavcodec 56. 38.100 / 56. 38.100
libavformat 56. 33.101 / 56. 33.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 16.101 / 5. 16.101
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 1.100 / 1. 1.100
libpostproc 53. 3.100 / 53. 3.100
Input #0, x11grab, from ':0.0+310,140':
Duration: N/A, start: 1431534784.038481, bitrate: N/A
Stream #0:0: Video: rawvideo (BGR[0] / 0x524742), bgr0, 1400x800, 30
fps, 30 tbr, 1000k tbn, 30 tbc
[pulse @ 0x3830b40] pa_stream_get_latency() failed
Last message repeated 2 times
Input #1, pulse, from 'alsa_output.pci-0000_00_1b.0.analog-
stereo.monitor':
Duration: N/A, start: 1431534784.014578, bitrate: 1536 kb/s
Stream #1:0: Audio: pcm_s16le, 48000 Hz, stereo, s16, 1536 kb/s
[libx264 @ 0x385a160] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.1
Cache64
[libx264 @ 0x385a160] profile High 4:4:4 Predictive, level 3.2, 4:4:4
8-bit
[libx264 @ 0x385a160] 64 - core 146 - H.264/MPEG-4 AVC codec - Copyleft
2003-2015 - http://www.videolan.org/x264.html - options: cabac=0 ref=1
deblock=0:0:0 analyse=0:0 me=dia subme=0 psy=0 mixed_ref=0 me_range=16
chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=0
chroma_qp_offset=0 threads=6 lookahead_threads=1 sliced_threads=0 nr=0
decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=0
weightp=0 keyint=250 keyint_min=25 scenecut=0 intra_refresh=0 rc=cqp
mbtree=0 qp=0
Output #0, matroska, to 'output.mkv':
Metadata:
encoder : Lavf56.33.101
Stream #0:0: Video: h264 (libx264) (H264 / 0x34363248), yuv444p,
1400x800, q=-1--1, 30 fps, 1k tbn, 30 tbc
Metadata:
encoder : Lavc56.38.100 libx264
Stream #0:1: Audio: flac ([172][241][0][0] / 0xF1AC), 48000 Hz,
stereo, s16, 128 kb/s
Metadata:
encoder : Lavc56.38.100 flac
Stream mapping:
Stream #0:0 -> #0:0 (rawvideo (native) -> h264 (libx264))
Stream #1:0 -> #0:1 (pcm_s16le (native) -> flac (native))
Press [q] to stop, [?] for help
Past duration 0.862785 too large
Past duration 0.999947 too large
Past duration 0.999901 too large
Past duration 0.999977 too large
frame= 17 fps=0.0 q=0.0 size= 724kB time=00:00:00.76
bitrate=7727.4kbits/sframe= 33 fps= 33 q=0.0 size= 826kB
time=00:00:01.27 bitrate=5320.0kbits/sframe= 48 fps= 32 q=0.0 size=
852kB time=00:00:01.70 bitrate=4093.8kbits/sframe= 63 fps= 31 q=0.0
size= 880kB time=00:00:02.37 bitrate=3034.2kbits/sframe= 78 fps= 31
q=0.0 size= 936kB time=00:00:02.95 bitrate=2598.6kbits/sframe= 93
fps= 31 q=0.0 size= 958kB time=00:00:03.28 bitrate=2387.9kbits/sframe=
108 fps= 31 q=0.0 size= 983kB time=00:00:03.91
bitrate=2059.2kbits/sframe= 123 fps= 30 q=0.0 size= 1053kB
time=00:00:04.20 bitrate=2053.0kbits/sframe= 138 fps= 30 q=0.0 size=
1087kB time=00:00:04.80 bitrate=1854.4kbits/sframe= 153 fps= 30 q=0.0
size= 1104kB time=00:00:05.35 bitrate=1690.1kbits/sframe= 169 fps= 30
q=0.0 size= 1168kB time=00:00:05.73 bitrate=1669.3kbits/sframe= 184
fps= 30 q=0.0 size= 1224kB time=00:00:06.31 bitrate=1588.4kbits/sframe=
199 fps= 30 q=0.0 size= 1275kB time=00:00:06.73
bitrate=1550.8kbits/sframe= 214 fps= 30 q=0.0 size= 1324kB
time=00:00:07.27 bitrate=1491.4kbits/sframe= 229 fps= 30 q=0.0 size=
1378kB time=00:00:07.73 bitrate=1459.7kbits/sframe= 244 fps= 30 q=0.0
size= 1429kB time=00:00:08.23 bitrate=1421.8kbits/sPast duration
0.994286 too large
frame= 259 fps= 30 q=0.0 size= 1991kB time=00:00:08.76
bitrate=1862.2kbits/sframe= 275 fps= 30 q=0.0 size= 2025kB
time=00:00:09.31 bitrate=1781.4kbits/sPast duration 0.998772 too large
frame= 285 fps= 30 q=-1.0 Lsize= 2064kB time=00:00:09.83
bitrate=1719.8kbits/s dup=0 drop=9
video:2053kB audio:6kB subtitle:0kB other streams:0kB global headers:0kB
muxing overhead: 0.252497%
[libx264 @ 0x385a160] frame I:2 Avg QP: 0.00 size:517596
[libx264 @ 0x385a160] frame P:283 Avg QP: 0.00 size: 3770
[libx264 @ 0x385a160] mb I I16..4: 100.0% 0.0% 0.0%
[libx264 @ 0x385a160] mb P I16..4: 11.4% 0.0% 0.0% P16..4: 0.3% 0.0%
0.0% 0.0% 0.0% skip:88.4%
[libx264 @ 0x385a160] coded y,u,v intra: 6.4% 1.2% 1.2% inter: 0.2% 0.0%
0.0%
[libx264 @ 0x385a160] i16 v,h,dc,p: 96% 2% 1% 1%
[libx264 @ 0x385a160] kb/s:1710.21
}}}
--
Ticket URL: <https://trac.ffmpeg.org/ticket/4401#comment:7>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker
More information about the FFmpeg-trac
mailing list