[FFmpeg-devel] [PATCH] New API usage example (it converts, encodes, muxes a raw audio file and shows how to use a custom callback for muxing, with an allocated I/O context)

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Apr 19 03:36:40 EEST 2019


2019-04-19 2:34 GMT+02:00, Paolo Prete <paolopre976 at yandex.com>:

> diff --git a/doc/examples/Makefile b/doc/examples/Makefile
> index 2935424e54..7b7855fa27 100644
> --- a/doc/examples/Makefile
> +++ b/doc/examples/Makefile
> @@ -1,26 +1,27 @@
> -EXAMPLES-$(CONFIG_AVIO_DIR_CMD_EXAMPLE)      += avio_dir_cmd
> -EXAMPLES-$(CONFIG_AVIO_READING_EXAMPLE)      += avio_reading
> -EXAMPLES-$(CONFIG_DECODE_AUDIO_EXAMPLE)      += decode_audio
> -EXAMPLES-$(CONFIG_DECODE_VIDEO_EXAMPLE)      += decode_video
> -EXAMPLES-$(CONFIG_DEMUXING_DECODING_EXAMPLE) += demuxing_decoding
> -EXAMPLES-$(CONFIG_ENCODE_AUDIO_EXAMPLE)      += encode_audio
> -EXAMPLES-$(CONFIG_ENCODE_VIDEO_EXAMPLE)      += encode_video
> -EXAMPLES-$(CONFIG_EXTRACT_MVS_EXAMPLE)       += extract_mvs
> -EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE)      += filter_audio
> -EXAMPLES-$(CONFIG_FILTERING_AUDIO_EXAMPLE)   += filtering_audio
> -EXAMPLES-$(CONFIG_FILTERING_VIDEO_EXAMPLE)   += filtering_video
> -EXAMPLES-$(CONFIG_HTTP_MULTICLIENT_EXAMPLE)  += http_multiclient
> -EXAMPLES-$(CONFIG_HW_DECODE_EXAMPLE)         += hw_decode
> -EXAMPLES-$(CONFIG_METADATA_EXAMPLE)          += metadata
> -EXAMPLES-$(CONFIG_MUXING_EXAMPLE)            += muxing
> -EXAMPLES-$(CONFIG_QSVDEC_EXAMPLE)            += qsvdec
> -EXAMPLES-$(CONFIG_REMUXING_EXAMPLE)          += remuxing
> -EXAMPLES-$(CONFIG_RESAMPLING_AUDIO_EXAMPLE)  += resampling_audio
> -EXAMPLES-$(CONFIG_SCALING_VIDEO_EXAMPLE)     += scaling_video
> -EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE)     += transcode_aac
> -EXAMPLES-$(CONFIG_TRANSCODING_EXAMPLE)       += transcoding
> -EXAMPLES-$(CONFIG_VAAPI_ENCODE_EXAMPLE)      += vaapi_encode
> -EXAMPLES-$(CONFIG_VAAPI_TRANSCODE_EXAMPLE)   += vaapi_transcode
> +EXAMPLES-$(CONFIG_AVIO_DIR_CMD_EXAMPLE)             += avio_dir_cmd
> +EXAMPLES-$(CONFIG_AVIO_READING_EXAMPLE)             += avio_reading
> +EXAMPLES-$(CONFIG_CONVERT_ENCODE_MUX_AUDIO_EXAMPLE) +=
> convert_encode_mux_audio
> +EXAMPLES-$(CONFIG_DECODE_AUDIO_EXAMPLE)             += decode_audio
> +EXAMPLES-$(CONFIG_DECODE_VIDEO_EXAMPLE)             += decode_video
> +EXAMPLES-$(CONFIG_DEMUXING_DECODING_EXAMPLE)        += demuxing_decoding
> +EXAMPLES-$(CONFIG_ENCODE_AUDIO_EXAMPLE)             += encode_audio
> +EXAMPLES-$(CONFIG_ENCODE_VIDEO_EXAMPLE)             += encode_video
> +EXAMPLES-$(CONFIG_EXTRACT_MVS_EXAMPLE)              += extract_mvs
> +EXAMPLES-$(CONFIG_FILTER_AUDIO_EXAMPLE)             += filter_audio
> +EXAMPLES-$(CONFIG_FILTERING_AUDIO_EXAMPLE)          += filtering_audio
> +EXAMPLES-$(CONFIG_FILTERING_VIDEO_EXAMPLE)          += filtering_video
> +EXAMPLES-$(CONFIG_HTTP_MULTICLIENT_EXAMPLE)         += http_multiclient
> +EXAMPLES-$(CONFIG_HW_DECODE_EXAMPLE)                += hw_decode
> +EXAMPLES-$(CONFIG_METADATA_EXAMPLE)                 += metadata
> +EXAMPLES-$(CONFIG_MUXING_EXAMPLE)                   += muxing
> +EXAMPLES-$(CONFIG_QSVDEC_EXAMPLE)                   += qsvdec
> +EXAMPLES-$(CONFIG_REMUXING_EXAMPLE)                 += remuxing
> +EXAMPLES-$(CONFIG_RESAMPLING_AUDIO_EXAMPLE)         += resampling_audio
> +EXAMPLES-$(CONFIG_SCALING_VIDEO_EXAMPLE)            += scaling_video
> +EXAMPLES-$(CONFIG_TRANSCODE_AAC_EXAMPLE)            += transcode_aac
> +EXAMPLES-$(CONFIG_TRANSCODING_EXAMPLE)              += transcoding
> +EXAMPLES-$(CONFIG_VAAPI_ENCODE_EXAMPLE)             += vaapi_encode
> +EXAMPLES-$(CONFIG_VAAPI_TRANSCODE_EXAMPLE)          += vaapi_transcode

Please do not mix functional and cosmetic changes of this size
in a patch.

Carl Eugen


More information about the ffmpeg-devel mailing list