mirror of
https://github.com/mpv-player/mpv
synced 2025-04-01 14:50:07 +00:00
player: hide audio/video codec and file format messages
None of these are very important usually. For error analysis, the plain log is useless anyway, and this information is still printed with "-v".
This commit is contained in:
parent
5567aa131b
commit
498c997474
@ -163,8 +163,7 @@ int audio_init_best_codec(struct dec_audio *d_audio, char *audio_decoders)
|
||||
d_audio->decoder_desc =
|
||||
talloc_asprintf(d_audio, "%s [%s:%s]", decoder->desc, decoder->family,
|
||||
decoder->decoder);
|
||||
MP_INFO(d_audio, "Selected audio codec: %s\n",
|
||||
d_audio->decoder_desc);
|
||||
MP_VERBOSE(d_audio, "Selected audio codec: %s\n", d_audio->decoder_desc);
|
||||
MP_VERBOSE(d_audio, "AUDIO: %d Hz, %d ch, %s\n",
|
||||
d_audio->decoded.rate, d_audio->decoded.channels.num,
|
||||
af_fmt_to_str(d_audio->decoded.format));
|
||||
|
@ -607,10 +607,10 @@ static struct demuxer *open_given_type(struct mpv_global *global,
|
||||
if (ret >= 0) {
|
||||
demuxer->params = NULL;
|
||||
if (demuxer->filetype)
|
||||
mp_info(log, "Detected file format: %s (%s)\n",
|
||||
demuxer->filetype, desc->desc);
|
||||
mp_verbose(log, "Detected file format: %s (%s)\n",
|
||||
demuxer->filetype, desc->desc);
|
||||
else
|
||||
mp_info(log, "Detected file format: %s\n", desc->desc);
|
||||
mp_verbose(log, "Detected file format: %s\n", desc->desc);
|
||||
if (stream_manages_timeline(demuxer->stream)) {
|
||||
// Incorrect, but fixes some behavior with DVD/BD
|
||||
demuxer->ts_resets_possible = false;
|
||||
|
@ -195,8 +195,7 @@ bool video_init_best_codec(struct dec_video *d_video, char* video_decoders)
|
||||
d_video->decoder_desc =
|
||||
talloc_asprintf(d_video, "%s [%s:%s]", decoder->desc, decoder->family,
|
||||
decoder->decoder);
|
||||
MP_INFO(d_video, "Selected video codec: %s\n",
|
||||
d_video->decoder_desc);
|
||||
MP_VERBOSE(d_video, "Selected video codec: %s\n", d_video->decoder_desc);
|
||||
} else {
|
||||
MP_ERR(d_video, "Failed to initialize a video decoder for codec '%s'.\n",
|
||||
d_video->header->codec ? d_video->header->codec : "<unknown>");
|
||||
|
Loading…
Reference in New Issue
Block a user