发明名称 Method and system for media file compression
摘要 The present invention discloses a method for media file compression, which includes: extracting the encoding parameters from an input media file, separating and decoding the audio and video stream from the input media file, and extracting an original audio stream and an original video stream; computing the transcoding parameters required for compression according to the encoding parameters; encoding the original audio stream to output a new compressed audio stream, and encoding the original video stream to output a new compressed video stream according to the transcoding parameters; synthesizing the new compressed audio stream and the new compressed video stream to create a new media file. The present invention also provides a system for media file compression. By means of the method and system of the present invention, users can realize simple and rapid compression for media files of various formats without understanding media expertise, and the storage space can be saved, so that it is convenient to carry, transfer and share the media files.
申请公布号 US8989259(B2) 申请公布日期 2015.03.24
申请号 US201414167784 申请日期 2014.01.29
申请人 Tencent Technology (Shenzhen) Company Limited 发明人 Liu Jun;Chen Jingchang;Wang Xinliang
分类号 H04N7/12;H04N19/61;H04N21/854;H04N19/40;H04N19/176;H04N19/172;H04N19/00 主分类号 H04N7/12
代理机构 McDermott Will & Emery LLP 代理人 McDermott Will & Emery LLP
主权项 1. A method for media file compression, comprising: extracting encoding parameters from an input media file, separating and decoding audio and video streams from the input media file, and extracting an original audio stream and an original video stream; computing transcoding parameters required for a compression according to the encoding parameters; encoding the original audio stream to output a new compressed audio stream, and encoding the original video stream to output a new compressed video stream, according to the transcoding parameters; and synthesizing the new compressed audio stream and the new compressed video stream to create a new media file; wherein the encoding parameter comprises video encoding parameter and audio encoding parameter, wherein the video encoding parameter comprises original video encoder type, original video encoding bit rate, original video encoding frame rate, and original video resolution; and the audio encoding parameter comprises original audio encoder type, original audio encoding bit rate, original audio channel number, and original audio sample rate; the transcoding parameter comprises video transcoding parameter and audio transcoding parameter, wherein the video transcoding parameter comprises target video encoder type, target video encoding bit rate, target video encoding frame rate, and target video resolution; and the audio transcoding parameter comprises target audio encoder type, target audio encoding bit rate, target audio channel number, and target audio sample rate; the method further comprises computing the target video resolution required for the compression; computing the target video resolution required for the compression is: comparing the original video resolution with a predetermined threshold value of the video resolution; if the original video resolution is not higher than the threshold value, determining the target video resolution to be the same as the original video resolution; and if the original video resolution is higher than the threshold value, decreasing the resolution, and zooming toward the threshold value while maintaining an original picture aspect ratio, so as to obtain the target video resolution.
地址 Shenzhen City CN