mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-04-22 03:12:43 +00:00
FS-8688 #comment add more detailed logs and tweak some params for the comming libvpx 1.5.0
seems 1.5.0 doesn't support postproc, returns VPX_CODEC_INCAPABLE if set
This commit is contained in:
parent
9113f23b75
commit
d6e942c82c
@ -186,7 +186,7 @@ static inline int IS_VP8_KEY_FRAME(uint8_t *data)
|
|||||||
if (S && (PID == 0)) {
|
if (S && (PID == 0)) {
|
||||||
return __IS_VP8_KEY_FRAME(*data);
|
return __IS_VP8_KEY_FRAME(*data);
|
||||||
} else {
|
} else {
|
||||||
if (PID > 0) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "PID: %d\n", PID);
|
// if (PID > 0) switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "PID: %d\n", PID);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -260,11 +260,11 @@ static switch_status_t init_decoder(switch_codec_t *codec)
|
|||||||
cfg.threads = switch_core_cpu_count();
|
cfg.threads = switch_core_cpu_count();
|
||||||
|
|
||||||
if (!context->is_vp9) { // vp8 only
|
if (!context->is_vp9) { // vp8 only
|
||||||
dec_flags = VPX_CODEC_USE_POSTPROC;
|
// dec_flags = VPX_CODEC_USE_POSTPROC;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (vpx_codec_dec_init(&context->decoder, context->decoder_interface, &cfg, dec_flags) != VPX_CODEC_OK) {
|
if (vpx_codec_dec_init(&context->decoder, context->decoder_interface, &cfg, dec_flags) != VPX_CODEC_OK) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Codec init error: [%d:%s]\n", context->encoder.err, context->encoder.err_detail);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Codec %s init error: [%d:%s]\n", vpx_codec_iface_name(context->decoder_interface), context->encoder.err, context->encoder.err_detail);
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -466,7 +466,7 @@ static switch_status_t init_encoder(switch_codec_t *codec)
|
|||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (vpx_codec_enc_init(&context->encoder, context->encoder_interface, config, 0 & VPX_CODEC_USE_OUTPUT_PARTITION) != VPX_CODEC_OK) {
|
if (vpx_codec_enc_init(&context->encoder, context->encoder_interface, config, 0 & VPX_CODEC_USE_OUTPUT_PARTITION) != VPX_CODEC_OK) {
|
||||||
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Codec init error: [%d:%s]\n", context->encoder.err, context->encoder.err_detail);
|
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Codec %s init error: [%d:%s]\n", vpx_codec_iface_name(context->encoder_interface), context->encoder.err, context->encoder.err_detail);
|
||||||
return SWITCH_STATUS_FALSE;
|
return SWITCH_STATUS_FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user