[FFmpeg-trac] #8843(undetermined:open): concat Segmentation fault filter_complex

FFmpeg trac at avcodec.org
Sun Aug 9 13:58:30 EEST 2020


#8843: concat Segmentation fault filter_complex
-------------------------------------+-------------------------------------
             Reporter:  dirvann      |                    Owner:  dirvann
                 Type:  defect       |                   Status:  open
             Priority:  normal       |                Component:
                                     |  undetermined
              Version:  git-master   |               Resolution:
             Keywords:  crash        |               Blocked By:
  concat                             |
             Blocking:               |  Reproduced by developer:  0
Analyzed by developer:  0            |
-------------------------------------+-------------------------------------

Comment (by dirvann):

 Replying to [comment:11 Cigaes]:
 > Simplified command-line:
 >
 > {{{
 > ./ffmpeg_g -loglevel verbose -i /tmp/vid1.mp4 -filter_complex "
 > testsrc2=s=16x16:r=25:d=0.062 [v1] ;
 > testsrc2=s=16x16:r=24:d=0.040 [v2] ;
 > anullsrc , atrim=0:0.062 [a2] ;
 > anullsrc , atrim=0:0.040 [a3] ;
 > [0:a]atrim=9.960:10.022 , asetpts=PTS-STARTPTS[a1] ;
 > [a1][a2]amix=inputs=2[Seq1_out_a] ;
 > [v1][Seq1_out_a][v2][a3]concat=n=2:v=1:a=1[vid][aud]" -map "[vid]" -map
 "[aud]
 > " -f null -
 > }}}
 >
 > Removing input from the file or amix make the bug disappear.

 Just combining 2 of the streams poses no problem. But combining the 3
 does.
 This command works flawlessly:
 {{{
 ffmpeg -i vid1.mp4 -i vid2.mp4 -filter_complex "\

 color=s=500x500[Seq0_bg];\
 [0:v]trim=0:5,setpts=PTS-STARTPTS, scale=w=500:h=500:eval=init[Seq0_0_v];\
 [Seq0_bg][Seq0_0_v]overlay=x=0:y=0:eval=init:shortest=1[Seq0_out_v];\
 [0:a]atrim=0:5,asetpts=PTS-STARTPTS[Seq0_out_a];\

 color=s=500x500[Seq1_bg];\
 [0:v]trim=5:10.022,setpts=PTS-
 STARTPTS,scale=w=500:h=250:eval=init[Seq1_0_v];\
 [1:v]trim=0:5.022,setpts=PTS-
 STARTPTS,scale=w=500:h=250:eval=init[Seq1_1_v];\
 [Seq1_bg][Seq1_0_v]overlay=x=0:y=0:eval=init:shortest=1[Seq1_overlay_0];\
 [Seq1_overlay_0][Seq1_1_v]overlay=x=0:y=250[Seq1_out_v];\
 [0:a]atrim=5:10.022,asetpts=PTS-STARTPTS[Seq1_0_a];\
 [1:a]atrim=0:5.022,asetpts=PTS-STARTPTS[Seq1_1_a];\
 [Seq1_0_a][Seq1_1_a]amix=inputs=2[Seq1_out_a];\

 [Seq0_out_v][Seq0_out_a][Seq1_out_v][Seq1_out_a]concat=n=2:v=1:a=1[vid][aud]"
 \
 -map [vid] -map [aud] -y out.mp4
 }}}

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


More information about the FFmpeg-trac mailing list