Opened 8 years ago

Closed 6 years ago

#5257 closed defect (worksforme)

Buffer queue overflow, dropping.

Reported by: Stanislav Owned by:
Priority: normal Component: avfilter
Version: unspecified Keywords: concat
Cc: Blocked By:
Blocking: Reproduced by developer: no
Analyzed by developer: no

Description

Summary of the bug: I am trying to split video1 to two pieces dropping 8 damaged video frames at the same time, and insert 326 video frames into video1 from similar video2 using concat video filter.
FFmpeg inserts whole first piece from video1, whole piece from video2 and only some frames from second piece of video1 producing many messages like:
[Parsed_concat_8 @ 000000b4e1af0100] Buffer queue overflow, dropping.7257.2kbits/s

Last message repeated 75 times

[Parsed_concat_8 @ 000000b4e1af0100] Buffer queue overflow, dropping.7257.2kbits/s

Last message repeated 84 times

[Parsed_concat_8 @ 000000b4e1af0100] Buffer queue overflow, dropping.7257.2kbits/s

Last message repeated 69 times

How to reproduce:

ffmpeg -i video1.mpg -i video2.mpg -q:v 0 -intra -filter_complex "[0:v]format=yuv444p,crop=iw-13-11:ih-105-101:13:105-1*(gte(n\,89686))-1*(gte(n\,91577))-1*(gte(n\,97576)),split[1],select=lte(n\,97961)[out1];[1:v]format=yuv444p,crop=iw-13-11:ih-105-101:13:105-3,select=between(n\,97956\,98281)[out2];[1]select=gte(n\,97970)[out3];[out1][out2][out3]concat=n=3" -threads 1 -f yuv4mpegpipe -pix_fmt yuv420p -vsync drop -an -sn -r 25 -y video.y4m
ffmpeg version N-75746-g84b4998 Copyright (c) 2000-2015 the FFmpeg developers
  built with gcc 5.2.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable
-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libdcadec --e
nable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --enable-libopencore-am
rnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --
enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-
libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid
 --enable-lzma --enable-decklink --enable-zlib
  libavutil      55.  2.100 / 55.  2.100
  libavcodec     57.  4.100 / 57.  4.100
  libavformat    57.  3.100 / 57.  3.100
  libavdevice    57.  0.100 / 57.  0.100
  libavfilter     6. 10.100 /  6. 10.100
  libswscale      4.  0.100 /  4.  0.100
  libswresample   2.  0.100 /  2.  0.100
  libpostproc    54.  0.100 / 54.  0.100

FFmpeg outputs only 98544 video frames but should output 124174!
Could you fix it please?

Attachments (1)

ffmpeg.log (37.3 KB ) - added by Stanislav 8 years ago.
Full ffmpeg log

Download all attachments as: .zip

Change History (8)

by Stanislav, 8 years ago

Attachment: ffmpeg.log added

Full ffmpeg log

comment:1 by Carl Eugen Hoyos, 8 years ago

Component: ffmpegavfilter
Keywords: video filter removed

Please test current FFmpeg git head.

Does it work if you insert the fifo filter?

comment:2 by Stanislav, 8 years ago

I use these static builds for Windows:
http://ffmpeg.zeranoe.com/builds/

I tried git version 98a0053 (2016-02-19) yesterday - same thing.
And this issue happens for audio as well.

I didn't tried fifo filter.

in reply to:  2 comment:3 by Carl Eugen Hoyos, 8 years ago

Replying to ssp43:

I didn't tried fifo filter.

Why not?

comment:4 by Stanislav, 8 years ago

Tell me please how I can use fifo in my case in Windows.
I am dropping 8 frames from video1 and inserting 326 frames from video2 into video1 in the same place.

Last edited 8 years ago by Stanislav (previous) (diff)

comment:5 by Elon Musk, 6 years ago

Does this still happens with latest git head?

comment:6 by Stanislav, 6 years ago

Hi, it was ages ago. I think you can close this ticket. Now if I need to combine some pieces of video I use the filter 'trim' but 'select' is also applicable which the option '-vsync drop'. I just use the filter 'setpts=PTS-STARTPTS' after each 'trim' which cuts frames at the start.

comment:7 by Elon Musk, 6 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.