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 [336m 8327[00m 0x7fffc8005410 [36mINFO [00m [00m
audioresample gstaudioresample.c:1560:_benchmark_integer_resampling:[00m
Using float resampler for everything: 37934.857143 <= 103510.000000
0:00:00.669558622 [336m 8327[00m 0x7fffc8005410 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1371:gst_audio_resample_set_property:<audioresample0>[00m
new quality 4
0:00:00.669596502 [336m 8327[00m 0x7fffc8005410 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1371:gst_audio_resample_set_property:<SD.I0.ASRC>[00m
new quality 4
0:00:01.797124611 [336m 8327[00m 0x7fffa8003210 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1327:gst_audio_resample_query:<SD.I0.ASRC>[00m Peer
latency: min 0:00:00.640000000 max 0:00:00.640000000
0:00:01.797287924 [336m 8327[00m 0x7fffa8003210 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1337:gst_audio_resample_query:<SD.I0.ASRC>[00m Our
latency: 0:00:00.000000000
0:00:01.797304918 [336m 8327[00m 0x7fffa8003210 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1345:gst_audio_resample_query:<SD.I0.ASRC>[00m
Calculated total latency : min 0:00:00.640000000 max 0:00:00.640000000
0:00:02.695035506 [336m 8327[00m 0x260b000 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1327:gst_audio_resample_query:<SD.I0.ASRC>[00m Peer
latency: min 0:00:00.640000000 max 0:00:00.640000000
0:00:02.695135963 [336m 8327[00m 0x260b000 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1337:gst_audio_resample_query:<SD.I0.ASRC>[00m Our
latency: 0:00:00.000000000
0:00:02.695160457 [336m 8327[00m 0x260b000 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1345:gst_audio_resample_query:<SD.I0.ASRC>[00m
Calculated total latency : min 0:00:00.640000000 max 0:00:00.640000000
0:00:21.757223834 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample gstaudioresample.c:566:*gst_audio_resample_set_caps*:[00m
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 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:[00m
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 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.760657670 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 192204
0:00:21.782168406 [336m 8327[00m 0x7fffb4007990 [36mINFO [00m [00m
audioresample
gstaudioresample.c:412:gst_audio_resample_init_state:<SD.I0.ASRC>[00m Using
the full sinc filter table
0:00:21.782448828 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:06.000000000, duration
0:00:01.000000000, offset 288000, offset_end 336000
0:00:21.782524545 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1216:gst_audio_resample_transform:<SD.I0.ASRC>[00m found
discontinuity; resyncing
0:00:21.782558772 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1235:gst_audio_resample_transform:<SD.I0.ASRC>[00m
marking this buffer with the DISCONT flag
0:00:21.782604775 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:915:gst_audio_resample_push_drain:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [288000, 336000) = [6000000000, 7000000000) ns; output = samples
[288333, 336319) = [6000687500, 7000395833) ns
0:00:21.783167516 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.783229081 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 192204
0:00:21.783272723 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:07.000000000, duration
0:00:01.000000000, offset 336000, offset_end 384000
0:00:21.783480621 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [336000, 384000) = [7000000000, 8000000000) ns; output = samples
[336319, 384369) = [7000395833, 8001437500) ns
0:00:21.783763373 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.783808491 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 192204
0:00:21.783838451 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:08.000000000, duration
0:00:01.000000000, offset 384000, offset_end 432000
0:00:21.783939703 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [384000, 432000) = [8000000000, 9000000000) ns; output = samples
[384369, 432419) = [8001437500, 9002479167) ns
0:00:21.785681767 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:[00m
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 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.805081440 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 191804
0:00:21.805148415 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:09.000000000, duration
0:00:01.000000000, offset 432000, offset_end 480000
0:00:21.805287936 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [432000, 480000) = [9000000000, 10000000000) ns; output = samples
[432419, 480069) = [9002479167, 9995187500) ns
0:00:21.805626761 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.805691542 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 191804
0:00:21.805749741 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:10.000000000, duration
0:00:01.000000000, offset 480000, offset_end 528000
0:00:21.806042414 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [480000, 528000) = [10000000000, 11000000000) ns; output =
samples [480069, 528019) = [9995187500, 10994145833) ns
0:00:21.806738267 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.806808814 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 191804
0:00:21.806857863 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:11.000000000, duration
0:00:01.000000000, offset 528000, offset_end 576000
0:00:21.807368262 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [528000, 576000) = [11000000000, 12000000000) ns; output =
samples [528019, 575969) = [10994145833, 11993104167) ns
0:00:21.807682876 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.807733133 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 191804
0:00:21.807789286 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
transforming buffer of 192000 bytes, ts 0:00:12.000000000, duration
0:00:01.000000000, offset 576000, offset_end 624000
0:00:21.807878589 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1169:gst_audio_resample_process:<SD.I0.ASRC>[00m
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 [336m 8327[00m 0x7fffb4007990 [37mDEBUG [00m [00m
audioresample
gstaudioresample.c:1252:gst_audio_resample_transform:<SD.I0.ASRC>[00m input
= samples [576000, 624000) = [12000000000, 13000000000) ns; output =
samples [575969, 623919) = [11993104167, 12992062500) ns
0:00:21.808780856 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample gstaudioresample.c:566:gst_audio_resample_set_caps:[00m
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 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:515:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
asked to transform size 192000 in direction SINK
0:00:21.834135608 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:550:gst_audio_resample_transform_size:<SD.I0.ASRC>[00m
transformed size 192000 to 192204
0:00:21.834195379 [336m 8327[00m 0x7fffb4007990 [33;01mLOG [00m [00m
audioresample
gstaudioresample.c:1198:gst_audio_resample_transform:<SD.I0.ASRC>[00m
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