Opened 4 years ago

Closed 4 years ago

#1400 closed defect (fixed)

Segfault, using -filter_complex

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

Description

Summary of the bug:
When running the following command line, a segmentation fault message appeared:

$ ffmpeg -i 1.flv -i 2.flv -filter_complex '[0:0]scale=iw/2:ih/2,pad=2*iw:ih[left];[1:0]scale=iw/2:ih/2[right];[left][right]overlay=main_w/2:0;[0:1][1:1] amerge' out.flv
ffmpeg version N-41142-g8f61526 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 30 2012 13:40:37 with gcc 4.6.3
  configuration: --enable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-libx264 --enable-libaacplus --enable-libmp3lame --enable-libopenjpeg --enable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
[h264 @ 0x9797680] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 0x9797680] Missing reference picture
[h264 @ 0x9797680] decode_slice_header error
[h264 @ 0x9797680] concealing 576 DC, 576 AC, 576 MV errors
[h264 @ 0x9797680] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x9797680] Missing reference picture
    Last message repeated 1 times
[h264 @ 0x9797680] reference picture missing during reorder
[h264 @ 0x9797680] Missing reference picture
Input #0, flv, from '1.flv':
  Metadata:
    encoder         : Lavf54.0.100
  Duration: 00:15:04.99, start: 0.000000, bitrate: 157 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 512x288 [SAR 3:4 DAR 4:3], 250 tbr, 1k tbn, 50 tbc
    Stream #0:1: Audio: aac, 44100 Hz, stereo, s16
[h264 @ 0x9798da0] reference picture missing during reorder
    Last message repeated 3 times
[h264 @ 0x9798da0] Missing reference picture
[h264 @ 0x9798da0] decode_slice_header error
[h264 @ 0x9798da0] concealing 576 DC, 576 AC, 576 MV errors
[h264 @ 0x9798da0] reference picture missing during reorder
    Last message repeated 1 times
[h264 @ 0x9798da0] Missing reference picture
    Last message repeated 1 times
[h264 @ 0x9798da0] reference picture missing during reorder
[h264 @ 0x9798da0] Missing reference picture
Input #1, flv, from '2.flv':
  Metadata:
    encoder         : Lavf53.31.100
  Duration: 00:15:00.49, start: 0.000000, bitrate: 431 kb/s
    Stream #1:0: Video: h264 (High), yuv420p, 512x288 [SAR 3:4 DAR 4:3], 50 tbr, 1k tbn, 50 tbc
    Stream #1:1: Audio: aac, 44100 Hz, stereo, s16
[buffer @ 0x9ae4b40] w:512 h:288 pixfmt:yuv420p tb:1/1000 sar:3/4 sws_param:flags=2
[buffer @ 0x98ab100] w:512 h:288 pixfmt:yuv420p tb:1/1000 sar:3/4 sws_param:flags=2
[buffersink @ 0x9ae4a40] No opaque field provided
No channel layout for input 1
Segmentation fault

(warnings about "reference picture" are due to live capturing of h264 stream, so some starting key frames are missing I guess, but both videos play normally)

Change History (9)

comment:1 Changed 4 years ago by burek

Just to be sure, I've tried this same command on some other videos I have and it's pretty much the same error:

$ ffmpeg -i supermen.flv -i kittens.flv -filter_complex '[0:0]scale=iw/2:ih/2,pad=2*iw:ih[left];[1:0]scale=iw/2:ih/2[right];[left][right]overlay=main_w/2:0;[0:1][1:1] amerge' out.flvffmpeg version N-41142-g8f61526 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 30 2012 13:40:37 with gcc 4.6.3
  configuration: --enable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-libx264 --enable-libaacplus --enable-libmp3lame --enable-libopenjpeg --enable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, flv, from 'supermen.flv':
  Metadata:
    lastkeyframetimestamp: 20
    lastkeyframelocation: 949687
    creator         : YouTube, Inc.
    metadatacreator : YouTube Metadata Injector.
    haskeyframes    : true
    hasmetadata     : true
  Duration: 00:00:20.84, start: 0.000000, bitrate: 371 kb/s
    Stream #0:0: Video: flv1, yuv420p, 320x240, 380 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s
Input #1, flv, from 'kittens.flv':
  Metadata:
    lastkeyframetimestamp: 183
    lastkeyframelocation: 7513173
    creator         : YouTube, Inc.
    metadatacreator : YouTube Metadata Injector.
    haskeyframes    : true
    hasmetadata     : true
  Duration: 00:03:02.90, start: 0.000000, bitrate: 328 kb/s
    Stream #1:0: Video: flv1, yuv420p, 320x240, 336 kb/s, 30 tbr, 1k tbn, 1k tbc
    Stream #1:1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
[buffer @ 0x9107840] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:0/1 sws_param:flags=2
[buffer @ 0x9107700] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:0/1 sws_param:flags=2
[buffersink @ 0x9105560] No opaque field provided
[amerge @ 0x9107120] No channel layout for input 1                                                                                                                                                                                           
Segmentation fault                                                
Version 1, edited 4 years ago by burek (previous) (next) (diff)

comment:2 Changed 4 years ago by burek

I've tried to change 'amerge' with 'amix' and boy did it kill my debian machine instantly :)
Apparently, the encoding process completes, but after that, something starts happening with hdd which takes a lot of time and finally kills the OS (I guess some serious swapping starts or something like that).

The first time I tried with 'amix', it crashed my machine efficiently, so I rebooted and turned the swap off (swapoff -a) and tried the command again :) This time it started again to rape my hdd, but only after the encoding has finished and just before the summary is displayed. I figured, this time it can't be swapping, since it's turned off, so I immediately pressed (and hold for some time) CTRL+C, which finally stopped it (after a minute or so).

This is the entire log of that 2nd try:

$ ffmpeg -i supermen.flv -i Sleeping\ Kittens.flv -filter_complex '[0:0]scale=iw/2:ih/2,pad=2*iw:ih[left];[1:0]scale=iw/2:ih/2[right];[left][right]overlay=main_w/2:0;[0:1][1:1] amix' out.flv
ffmpeg version N-41142-g8f61526 Copyright (c) 2000-2012 the FFmpeg developers
  built on May 30 2012 13:40:37 with gcc 4.6.3
  configuration: --enable-static --enable-shared --enable-gpl --enable-nonfree --enable-postproc --enable-libx264 --enable-libaacplus --enable-libmp3lame --enable-libopenjpeg --enable-zlib
  libavutil      51. 55.100 / 51. 55.100
  libavcodec     54. 23.100 / 54. 23.100
  libavformat    54.  6.101 / 54.  6.101
  libavdevice    54.  0.100 / 54.  0.100
  libavfilter     2. 77.100 /  2. 77.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0. 15.100 /  0. 15.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, flv, from 'supermen.flv':
  Metadata:
    lastkeyframetimestamp: 20
    lastkeyframelocation: 949687
    creator         : YouTube, Inc.
    metadatacreator : YouTube Metadata Injector.
    haskeyframes    : true
    hasmetadata     : true
  Duration: 00:00:20.84, start: 0.000000, bitrate: 371 kb/s
    Stream #0:0: Video: flv1, yuv420p, 320x240, 380 kb/s, 25 tbr, 1k tbn, 1k tbc
    Stream #0:1: Audio: mp3, 22050 Hz, mono, s16, 56 kb/s
Input #1, flv, from 'Sleeping Kittens.flv':
  Metadata:
    lastkeyframetimestamp: 183
    lastkeyframelocation: 7513173
    creator         : YouTube, Inc.
    metadatacreator : YouTube Metadata Injector.
    haskeyframes    : true
    hasmetadata     : true
  Duration: 00:03:02.90, start: 0.000000, bitrate: 328 kb/s
    Stream #1:0: Video: flv1, yuv420p, 320x240, 336 kb/s, 30 tbr, 1k tbn, 1k tbc
    Stream #1:1: Audio: mp3, 22050 Hz, mono, s16, 64 kb/s
[buffer @ 0x81d6a40] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:0/1 sws_param:flags=2
[buffer @ 0x8140a40] w:320 h:240 pixfmt:yuv420p tb:1/1000 sar:0/1 sws_param:flags=2
[buffersink @ 0x813e560] No opaque field provided
File 'out.flv' already exists. Overwrite ? [y/N] y                                                                                                          
auto-inserting filter 'auto-inserted resampler 0' between the filter '0:1' and the filter 'Parsed_amix_4'
[amix @ 0x8140120] auto-inserting filter 'auto-inserted resampler 1' between the filter '1:1' and the filter 'Parsed_amix_4'
[scale @ 0x813ebc0] w:320 h:240 fmt:yuv420p sar:0/1 -> w:160 h:120 fmt:yuv420p sar:0/1 flags:0x2
[pad @ 0x81ceac0] w:160 h:120 -> w:320 h:120 x:0 y:0 color:0x000000FF
[scale @ 0x81d13e0] w:320 h:240 fmt:yuv420p sar:0/1 -> w:160 h:120 fmt:yuva420p sar:0/1 flags:0x2
[overlay @ 0x81d41c0] main w:320 h:120 fmt:yuv420p overlay x:160 y:0 w:160 h:120 fmt:yuva420p
[overlay @ 0x81d41c0] main_tb:1/1000 overlay_tb:1/1000 -> tb:1/1000 exact:1
[aresample @ 0x813db20] chl:mono fmt:s16 r:22050Hz -> chl:mono fmt:flt r:22050Hz
[aresample @ 0x813d8a0] chl:mono fmt:s16 r:22050Hz -> chl:mono fmt:flt r:22050Hz
Output #0, flv, to 'out.flv':
  Metadata:
    lastkeyframetimestamp: 20
    lastkeyframelocation: 949687
    creator         : YouTube, Inc.
    metadatacreator : YouTube Metadata Injector.
    haskeyframes    : true
    hasmetadata     : true
    encoder         : Lavf54.6.101
    Stream #0:0: Video: flv1 ([2][0][0][0] / 0x0002), yuv420p, 320x120, q=2-31, 200 kb/s, 1k tbn, 25 tbc
    Stream #0:1: Audio: mp3 ([2][0][0][0] / 0x0002), 22050 Hz, mono, flt
Stream mapping:
  Stream #0:0 (flv) -> scale
  Stream #0:1 (mp3) -> amix:input0
  Stream #1:0 (flv) -> scale
  Stream #1:1 (mp3) -> amix:input1
  overlay -> Stream #0:0 (flv)
  amix -> Stream #0:1 (libmp3lame)
Press [q] to stop, [?] for help
get_buffer() failed (-12 2 (nil))   736kB time=00:00:20.36 bitrate= 296.3kbits/s    
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
get_buffer() failed (-12 2 (nil))   736kB time=00:00:20.36 bitrate= 296.3kbits/s                                                                            
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
get_buffer() failed (-12 2 (nil))   736kB time=00:00:20.36 bitrate= 296.3kbits/s                                                                            
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0                                                                                                                            
get_buffer() failed (-12 2 (nil))   736kB time=00:00:20.36 bitrate= 296.3kbits/s                                                                            
Error while decoding stream #1:0                                                                                                                            
[flv @ 0x812a2a0] get_buffer() failed (-12 2 (nil))                                                                                                         
Error while decoding stream #1:0
frame=  509 fps= 14 q=3.5 Lsize=    1206kB time=00:00:20.36 bitrate= 485.4kbits/s                                                                           
video:636kB audio:487kB global headers:0kB muxing overhead 7.392104%
Received signal 2: terminating.
^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C^C$

I think the problem rises just after the 1st video has run out, so maybe some kind of bogus error happens because one of the outputs has finished or something. Btw, the resulting output video plays fine :D

comment:3 Changed 4 years ago by cehoyos

Please add backtrace etc. as explained on http://ffmpeg.org/bugreports.html

comment:4 follow-up: Changed 4 years ago by Cigaes

Please try the patches sent to the mailing list:
http://ffmpeg.org/pipermail/ffmpeg-devel/2012-June/125387.html
http://ffmpeg.org/pipermail/ffmpeg-devel/2012-June/125388.html

Also, try inserting aformat=channel_layouts=''whatever'' in front of each input of amerge.

Also, in the future, the get help the most efficiently, try to trim your command line to the bare minimum exhibiting the problem and using publicly available files.

comment:5 Changed 4 years ago by burek

ok, I'll keep that in mind, I just wanted to avoid the reply like "please provide complete uncut output..."

anyway, I'd like not to try to do anything with that anymore, since it crashes my machine every time I try it.. so I'd like to stay away from it if I can.. I just reported it for the devels to investigate further if they feel like doing it..

comment:6 in reply to: ↑ 4 ; follow-up: Changed 4 years ago by atlithorn

The patches work (they have since been pushed to git) but the other issue burek mention for amix now also occurs with amerge.

I guess it's not a bug with the audio filters themselves but that we are using them in the same filter_complex statement as the audio filter

running overlay on its own works fine
ffmpeg -i 1.flv -i 2.flv -filter_complex '[0:0]scale=iw/2:ih/2,pad=2*iw:ih[left];[1:0]scale=iw/2:ih/2[right];[left][right]overlay=main_w/2:0' out.flv

as does amerge:
ffmpeg -i 1.flv -i 2.flv -filter_complex '[0:1][1:1] amerge' out.flv

but running them in the same command as burek described ends up crashing the machine right when the end of the file is reached

More than willing to run further tests if that would help.

comment:7 in reply to: ↑ 6 Changed 4 years ago by atlithorn

Created a new ticket for the crash bug #1422

comment:8 Changed 4 years ago by Cigaes

Can you try this patch: http://ffmpeg.org/pipermail/ffmpeg-devel/2012-June/125541.html and see if it fixes anything?

Also, to avoid crashes by memory exhaustion, you can issue limit addressspace 1024M (or the equivalent for other shells).

comment:9 Changed 4 years ago by michael

  • Component changed from undetermined to avfilter
  • Keywords crash added
  • Resolution set to fixed
  • Status changed from new to closed

Cant reproduce a crash, also the patch that should fix this has been applied.
If you still have a crash, please reopen

Note: See TracTickets for help on using tickets.