MultimediaObject inputFile = new MultimediaObjectnew FileinputFilePath; AudioAttributes audio = new AudioAttributes; audiosetCodecinputFilegetAudiogetCodec; audiosetBitRateinputFi
This code creates a new MultimediaObject using an input file path. It then gets the audio and video attributes from this object and sets them to new audio and video attributes objects. The new audio and video attributes objects use the same codec, bit rate, channels, sampling rate, frame rate, and size as the original multimedia object. This code is useful when you want to extract the audio or video from a multimedia file and save it separately, or when you want to modify the audio or video attributes of a multimedia file
原文地址: https://www.cveoy.top/t/topic/hb0y 著作权归作者所有。请勿转载和采集!