| 732 | } |
| 733 | |
| 734 | static void print_stream_maps(void) |
| 735 | { |
| 736 | av_log(NULL, AV_LOG_INFO, "Stream mapping:\n"); |
| 737 | for (InputStream *ist = ist_iter(NULL); ist; ist = ist_iter(ist)) { |
| 738 | for (int j = 0; j < ist->nb_filters; j++) { |
| 739 | if (!filtergraph_is_simple(ist->filters[j]->graph)) { |
| 740 | av_log(NULL, AV_LOG_INFO, " Stream #%d:%d (%s) -> %s", |
| 741 | ist->file->index, ist->index, ist->dec ? ist->dec->name : "?", |
| 742 | ist->filters[j]->name); |
| 743 | if (nb_filtergraphs > 1) |
| 744 | av_log(NULL, AV_LOG_INFO, " (graph %d)", ist->filters[j]->graph->index); |
| 745 | av_log(NULL, AV_LOG_INFO, "\n"); |
| 746 | } |
| 747 | } |
| 748 | } |
| 749 | |
| 750 | for (OutputStream *ost = ost_iter(NULL); ost; ost = ost_iter(ost)) { |
| 751 | if (ost->attachment_filename) { |
| 752 | /* an attached file */ |
| 753 | av_log(NULL, AV_LOG_INFO, " File %s -> Stream #%d:%d\n", |
| 754 | ost->attachment_filename, ost->file->index, ost->index); |
| 755 | continue; |
| 756 | } |
| 757 | |
| 758 | if (ost->filter && !filtergraph_is_simple(ost->filter->graph)) { |
| 759 | /* output from a complex graph */ |
| 760 | av_log(NULL, AV_LOG_INFO, " %s", ost->filter->name); |
| 761 | if (nb_filtergraphs > 1) |
| 762 | av_log(NULL, AV_LOG_INFO, " (graph %d)", ost->filter->graph->index); |
| 763 | |
| 764 | av_log(NULL, AV_LOG_INFO, " -> Stream #%d:%d (%s)\n", ost->file->index, |
| 765 | ost->index, ost->enc->enc_ctx->codec->name); |
| 766 | continue; |
| 767 | } |
| 768 | |
| 769 | av_log(NULL, AV_LOG_INFO, " Stream #%d:%d -> #%d:%d", |
| 770 | ost->ist->file->index, |
| 771 | ost->ist->index, |
| 772 | ost->file->index, |
| 773 | ost->index); |
| 774 | if (ost->enc) { |
| 775 | const AVCodec *in_codec = ost->ist->dec; |
| 776 | const AVCodec *out_codec = ost->enc->enc_ctx->codec; |
| 777 | const char *decoder_name = "?"; |
| 778 | const char *in_codec_name = "?"; |
| 779 | const char *encoder_name = "?"; |
| 780 | const char *out_codec_name = "?"; |
| 781 | const AVCodecDescriptor *desc; |
| 782 | |
| 783 | if (in_codec) { |
| 784 | decoder_name = in_codec->name; |
| 785 | desc = avcodec_descriptor_get(in_codec->id); |
| 786 | if (desc) |
| 787 | in_codec_name = desc->name; |
| 788 | if (!strcmp(decoder_name, in_codec_name)) |
| 789 | decoder_name = "native"; |
| 790 | } |
| 791 |
no test coverage detected