| 1809 | } |
| 1810 | |
| 1811 | static void show_help_muxer(const char *name) |
| 1812 | { |
| 1813 | const AVCodecDescriptor *desc; |
| 1814 | const AVOutputFormat *fmt = av_guess_format(name, NULL, NULL); |
| 1815 | |
| 1816 | if (!fmt) { |
| 1817 | av_log(NULL, AV_LOG_ERROR, "Unknown format '%s'.\n", name); |
| 1818 | return; |
| 1819 | } |
| 1820 | |
| 1821 | printf("Muxer %s [%s]:\n", fmt->name, fmt->long_name); |
| 1822 | |
| 1823 | if (fmt->extensions) |
| 1824 | printf(" Common extensions: %s.\n", fmt->extensions); |
| 1825 | if (fmt->mime_type) |
| 1826 | printf(" Mime type: %s.\n", fmt->mime_type); |
| 1827 | if (fmt->video_codec != AV_CODEC_ID_NONE && |
| 1828 | (desc = avcodec_descriptor_get(fmt->video_codec))) { |
| 1829 | printf(" Default video codec: %s.\n", desc->name); |
| 1830 | } |
| 1831 | if (fmt->audio_codec != AV_CODEC_ID_NONE && |
| 1832 | (desc = avcodec_descriptor_get(fmt->audio_codec))) { |
| 1833 | printf(" Default audio codec: %s.\n", desc->name); |
| 1834 | } |
| 1835 | if (fmt->subtitle_codec != AV_CODEC_ID_NONE && |
| 1836 | (desc = avcodec_descriptor_get(fmt->subtitle_codec))) { |
| 1837 | printf(" Default subtitle codec: %s.\n", desc->name); |
| 1838 | } |
| 1839 | |
| 1840 | if (fmt->priv_class) |
| 1841 | show_help_children(fmt->priv_class, AV_OPT_FLAG_ENCODING_PARAM); |
| 1842 | } |
| 1843 | |
| 1844 | #if CONFIG_AVFILTER |
| 1845 | static void show_help_filter(const char *name) |
no test coverage detected