[FFmpeg-trac] #6424(avfilter:new): endless loop in avfilter.c

FFmpeg trac at avcodec.org
Thu Jun 1 16:55:54 EEST 2017


#6424: endless loop in avfilter.c
-------------------------------------+-------------------------------------
             Reporter:  tinybug      |                    Owner:
                 Type:  defect       |                   Status:  new
             Priority:  important    |                Component:  avfilter
              Version:  git-master   |               Resolution:
             Keywords:  deadlock     |               Blocked By:
  regression                         |  Reproduced by developer:  1
             Blocking:               |
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by tinybug):

 Replying to [comment:3 Cigaes]:
 > This is a bug in amix:
 >
 > {{{
 >                         /* unclosed input with not enough samples */
 >                         return 0;
 > }}}
 >
 > Returning 0 without filtering samples is not acceptable. Fixing it with
 {{{AVERROR(EAGAIN)}}} allows to make some progress, but freezes later.
 >
 > I will try to look into it if time permit, but I consider amix to be
 mostly unsupported.


 I will simplify the command line next time, thanks your advice. In this
 command, if I remove the fps filter before overlay, just like this:
 {{{
 ffmpeg -ss 9 -t 3 -i 7bed448f-b835-44d0-8838-70bd5a98f116.mp4 -ss 0 -t 3
 -i fbb7460b-233a-48a9-8e19-beb37a5297fe.mp4 -y -filter_complex
 "[1:v][0:v]overlay=x=50:y=50[overlay];[0:a]afade=type=out:ss=0:d=3[afade100];[1:a]afade=type=in:ss=0:d=3[afade101];[afade100][afade101]amix=inputs=2:duration=shortest[amix10];[overlay][amix10]concat=n=1:a=1:v=1:unsafe=1[v][a]"
 -map [v] -map [a] -vcodec libx264 -pix_fmt yuv420p -r 25 -profile:v main
 -level 3.1 -acodec aac tmp.mp4
 }}}
 It  will run perfectly. But i just wanna make all input videos to the same
 fps before filtering. The source codes of filter graph is too complicated
 for me, I have a hard time to debug it, but make no sense. Really
 appreciate and thanks for your work.

--
Ticket URL: <https://trac.ffmpeg.org/ticket/6424#comment:4>
FFmpeg <https://ffmpeg.org>
FFmpeg issue tracker


More information about the FFmpeg-trac mailing list