audioresample assertion failed: (out_len >= out_processed)

Maik Scholz Scholz.Maik at t-online.de
Fri Jul 8 09:51:33 UTC 2016


Hi,

i have a issue with an assert in audioresample (1.8.1).
ERROR:gstaudioresample.c:1125:gst_audio_resample_process: assertion failed:
(out_len >= out_processed)

In my pipeline i implemented a BUFFER PadProbe on the audioresample sink and
source pad.
Within that callback, i like to change the caps rate (norminal 48kHz +-
50Hz).
Unfortunately after some frames, my application stops with the assert.
I attached a pdf file with the debugger backtrace and the local variables.

Do you have any hint?

Maik

GSTREAMER LOG:
0:00:00.669343121  8327 0x7fffc8005410 INFO          
audioresample gstaudioresample.c:1560:_benchmark_integer_resampling:
Using float resampler for everything: 37934.857143 <= 103510.000000
0:00:00.669558622  8327 0x7fffc8005410 DEBUG         
audioresample
gstaudioresample.c:1371:gst_audio_resample_set_property:<audioresample0>
new quality 4
0:00:00.669596502  8327 0x7fffc8005410 DEBUG         
audioresample
gstaudioresample.c:1371:gst_audio_resample_set_property:<SD.I0.ASRC>
new quality 4
0:00:01.797124611  8327 0x7fffa8003210 DEBUG         
audioresample
gstaudioresample.c:1327:gst_audio_resample_query:<SD.I0.ASRC> Peer
latency: min 0:00:00.640000000 max 0:00:00.640000000
0:00:01.797287924  8327 0x7fffa8003210 DEBUG         
audioresample
gstaudioresample.c:1337:gst_audio_resample_query:<SD.I0.ASRC> Our
latency: 0:00:00.000000000
0:00:01.797304918  8327 0x7fffa8003210 DEBUG         
audioresample
gstaudioresample.c:1345:gst_audio_resample_query:<SD.I0.ASRC>
Calculated total latency : min 0:00:00.640000000 max 0:00:00.640000000
0:00:02.695035506  8327      0x260b000 DEBUG         
audioresample
gstaudioresample.c:1327:gst_audio_resample_query:<SD.I0.ASRC> Peer
latency: min 0:00:00.640000000 max 0:00:00.640000000
0:00:02.695135963  8327      0x260b000 DEBUG         
audioresample
gstaudioresample.c:1337:gst_audio_resample_query:<SD.I0.ASRC> Our
latency: 0:00:00.000000000
0:00:02.695160457  8327      0x260b000 DEBUG         
audioresample
gstaudioresample.c:1345:gst_audio_resample_query:<SD.I0.ASRC>
Calculated total latency : min 0:00:00.640000000 max 0:00:00.640000000
0:00:21.757223834  8327 0x7fffb4007990 LOG           
audioresample gstaudioresample.c:566:*gst_audio_resample_set_caps*:
incaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
outcaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
0:00:21.759576179  8327 0x7fffb4007990 LOG           
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:
incaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)47950, channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
outcaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
0:00:21.760605707  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.760657670  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 192204
0:00:21.782168406  8327 0x7fffb4007990 INFO          
audioresample
gstaudioresample.c:412:gst_audio_resample_init_state:<SD.I0.ASRC> Using
the full sinc filter table
0:00:21.782448828  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:06.000000000, duration
0:00:01.000000000, offset 288000, offset_end 336000
0:00:21.782524545  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1216:gst_audio_resample_transform:<SD.I0.ASRC> found
discontinuity; resyncing
0:00:21.782558772  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1235:gst_audio_resample_transform:<SD.I0.ASRC>
marking this buffer with the DISCONT flag
0:00:21.782604775  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:915:gst_audio_resample_push_drain:<SD.I0.ASRC>
Pushing drain buffer of 132 bytes with timestamp 0:00:06.000000000 duration
0:00:00.000687500 offset 288300 offset_end 288333
0:00:21.783005217  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 47986 samples (191944 bytes) with timestamp
0:00:06.000687500, duration 0:00:00.999708333, offset 288333, offset_end
336319
0:00:21.783052679  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [288000, 336000) = [6000000000, 7000000000) ns;  output = samples
[288333, 336319) = [6000687500, 7000395833) ns
0:00:21.783167516  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.783229081  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 192204
0:00:21.783272723  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:07.000000000, duration
0:00:01.000000000, offset 336000, offset_end 384000
0:00:21.783480621  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 48050 samples (192200 bytes) with timestamp
0:00:07.000395833, duration 0:00:01.001041667, offset 336319, offset_end
384369
0:00:21.783659450  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [336000, 384000) = [7000000000, 8000000000) ns;  output = samples
[336319, 384369) = [7000395833, 8001437500) ns
0:00:21.783763373  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.783808491  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 192204
0:00:21.783838451  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:08.000000000, duration
0:00:01.000000000, offset 384000, offset_end 432000
0:00:21.783939703  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 48050 samples (192200 bytes) with timestamp
0:00:08.001437500, duration 0:00:01.001041667, offset 384369, offset_end
432419
0:00:21.783978906  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [384000, 432000) = [8000000000, 9000000000) ns;  output = samples
[384369, 432419) = [8001437500, 9002479167) ns
0:00:21.785681767  8327 0x7fffb4007990 LOG           
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:
incaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48050, channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
outcaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
0:00:21.804097471  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.805081440  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 191804
0:00:21.805148415  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:09.000000000, duration
0:00:01.000000000, offset 432000, offset_end 480000
0:00:21.805287936  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 47650 samples (190600 bytes) with timestamp
0:00:09.002479167, duration 0:00:00.992708333, offset 432419, offset_end
480069
0:00:21.805342067  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [432000, 480000) = [9000000000, 10000000000) ns;  output = samples
[432419, 480069) = [9002479167, 9995187500) ns
0:00:21.805626761  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.805691542  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 191804
0:00:21.805749741  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:10.000000000, duration
0:00:01.000000000, offset 480000, offset_end 528000
0:00:21.806042414  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 47950 samples (191800 bytes) with timestamp
0:00:09.995187500, duration 0:00:00.998958333, offset 480069, offset_end
528019
0:00:21.806104929  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [480000, 528000) = [10000000000, 11000000000) ns;  output =
samples [480069, 528019) = [9995187500, 10994145833) ns
0:00:21.806738267  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.806808814  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 191804
0:00:21.806857863  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:11.000000000, duration
0:00:01.000000000, offset 528000, offset_end 576000
0:00:21.807368262  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 47950 samples (191800 bytes) with timestamp
0:00:10.994145833, duration 0:00:00.998958334, offset 528019, offset_end
575969
0:00:21.807474435  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [528000, 576000) = [11000000000, 12000000000) ns;  output =
samples [528019, 575969) = [10994145833, 11993104167) ns
0:00:21.807682876  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.807733133  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 191804
0:00:21.807789286  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:12.000000000, duration
0:00:01.000000000, offset 576000, offset_end 624000
0:00:21.807878589  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>
Converted to buffer of 47950 samples (191800 bytes) with timestamp
0:00:11.993104167, duration 0:00:00.998958333, offset 575969, offset_end
623919
0:00:21.807966183  8327 0x7fffb4007990 DEBUG         
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC> input
= samples [576000, 624000) = [12000000000, 13000000000) ns;  output =
samples [575969, 623919) = [11993104167, 12992062500) ns
0:00:21.808780856  8327 0x7fffb4007990 LOG           
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:
incaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)47950, channels=(int)2, channel-mask=(bitmask)0x0000000000000003,
outcaps audio/x-raw, format=(string)S16LE, layout=(string)interleaved,
rate=(int)48000, channels=(int)2, channel-mask=(bitmask)0x0000000000000003
0:00:21.833686358  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>
asked to transform size 192000 in direction SINK
0:00:21.834135608  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>
transformed size 192000 to 192204
0:00:21.834195379  8327 0x7fffb4007990 LOG           
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>
transforming buffer of 192000 bytes, ts 0:00:13.000000000, duration
0:00:01.000000000, offset 624000, offset_end 672000
**
ERROR:gstaudioresample.c:1125:gst_audio_resample_process: assertion failed:
(out_len >= out_processed)



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/audioresample-assertion-failed-out-len-out-processed-tp4678533.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list