CN102163201A - Multimedia file segmentation method, device thereof and code converter - Google Patents

Multimedia file segmentation method, device thereof and code converter Download PDF

Info

Publication number
CN102163201A
CN102163201A CN 201010115651 CN201010115651A CN102163201A CN 102163201 A CN102163201 A CN 102163201A CN 201010115651 CN201010115651 CN 201010115651 CN 201010115651 A CN201010115651 A CN 201010115651A CN 102163201 A CN102163201 A CN 102163201A
Authority
CN
China
Prior art keywords
multimedia file
file
scene
multimedia
cutting position
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN 201010115651
Other languages
Chinese (zh)
Inventor
何健
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Tencent Technology Shenzhen Co Ltd
Original Assignee
Tencent Technology Shenzhen Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Tencent Technology Shenzhen Co Ltd filed Critical Tencent Technology Shenzhen Co Ltd
Priority to CN 201010115651 priority Critical patent/CN102163201A/en
Publication of CN102163201A publication Critical patent/CN102163201A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention is suitable for the field of multimedia processing, and provides a multimedia file segmentation method, a device thereof and a code converter. The method comprises the following steps of: receiving a multimedia file provided by a user, performing scene switching detection on the multimedia file, and outputting a scene switching parameter; obtaining segmentation position information of the multimedia file according to the number of target files input by the user and the scene switching parameter; and respectively writing the multimedia file into different target files on the basis of time stamps according to the segmentation position information of the multimedia file. The multimedia file segmentation method, the device thereof and the code converter can perform the scene switching detection on the multimedia file so as to segment the multimedia file according to the scene switching conditions, can automatically segment the multimedia file into a plurality of video clips having continuous content, and can avoid a problem of discontinuity of the content caused by segmenting the multimedia file only according to the time, so that the multimedia file can be conveniently stored and flexibly used by users.

Description

A kind of multimedia file cutting method, device and transcoder
Technical field
The invention belongs to the multimedia process field, relate in particular to a kind of multimedia file cutting method, device and transcoder.
Background technology
Along with development of computer, various multimedia resources are more and more abundanter.Media resource comprises video resources such as figure, animation, image and literal, and audio resources such as language, sound and music etc.The user can learn by multimedia resource, amusement, communication etc.Simultaneously, along with enriching constantly of multimedia resource content, multimedia file is increasing, because the storage space of the hardware device of storing multimedia is often limited, is difficult to preserve down the whole multimedia file sometimes.In addition, if the reproduction time of multimedia file is oversize, also inconvenient user utilizes limited free time to use flexibly, therefore need cut multimedia file.Prior art is generally carried out according to the time when multimedia file is cut, and causes problems such as the content of multimedia file is discontinuous easily, thereby has influenced the use of user to multimedia file.
Summary of the invention
The purpose of the embodiment of the invention is to provide a kind of multimedia file cutting method, is intended to solve existing multimedia file and cuts according to the time, causes problems such as the content of multimedia file is discontinuous easily, influence the problem of user's use.
The embodiment of the invention is achieved in that a kind of multimedia file cutting method, and described method comprises the steps:
Receive the multimedia file that the user provides, multimedia file is carried out scene change detection, output scene handoff parameter;
According to the file destination quantity of user input, and described scene handoff parameter, obtain the cutting position information of multimedia file;
Cutting position information according to described multimedia file writes to different file destinations with multimedia file respectively according to timestamp.
Another purpose of the embodiment of the invention is to provide a kind of multimedia file cutter sweep, and described device comprises:
The scene change detection module is used to receive the multimedia file that the user provides, and multimedia file is carried out scene change detection, output scene handoff parameter;
The cutting position computing module is used for the file destination quantity according to user's input, and described scene handoff parameter, obtains the cutting position information of multimedia file; And
The file cutting module is used for the cutting position information according to described multimedia file, and multimedia file is write to different file destinations respectively according to timestamp.
Another purpose of the embodiment of the invention is to provide a kind of multimedia application system that comprises above-mentioned multimedia file cutter sweep.
Another purpose of the embodiment of the invention is to provide a kind of multimedia equipment that comprises above-mentioned multimedia file cutter sweep.
Another purpose of the embodiment of the invention is to provide a kind of transcoder, comprises the audio/video flow synthesis module, is used for according to user configured parameter, the audio and video streams behind the transcoding is merged, and the multimedia file behind the output transcoding, described transcoder also comprises:
The scene change detection module is used to receive the multimedia source files that the user provides, and multimedia source files is carried out scene change detection, output scene handoff parameter;
The cutting position computing module is used for the file destination quantity according to user input, and described scene handoff parameter, obtains the cutting position information of the multimedia file behind the described transcoding; And
The file cutting module is used for according to described cutting position information the multimedia file behind the described transcoding being write to different file destinations respectively according to timestamp.
The embodiment of the invention is by carrying out scene change detection to multimedia file, according to the scene switch instances multimedia file is cut, multimedia file can be cut into automatically the continuous a plurality of video small fragments of content, can avoid merely problems such as the content that multimedia file cutting caused according to the time is discontinuous, both be convenient to the storage of multimedia file, user friendly flexible use simultaneously.
Description of drawings
Fig. 1 is the realization flow figure of the multimedia file cutting method that provides of the embodiment of the invention;
Fig. 2 is the structural drawing of the multimedia file cutter sweep that provides of the embodiment of the invention;
Fig. 3 is the structural drawing of the transcoder that provides of the embodiment of the invention.
Embodiment
In order to make purpose of the present invention, technical scheme and advantage clearer,, the present invention is further elaborated below in conjunction with drawings and Examples.Should be appreciated that specific embodiment described herein only in order to explanation the present invention, and be not used in qualification the present invention.
In embodiments of the present invention, multimedia file is carried out scene change detection, file destination quantity and scene according to user's needs are switched the time of taking place, and self-adaptation is determined the cutting position of multimedia file, and multimedia file is cut into a plurality of file destinations that the user needs.
Fig. 1 shows the realization flow of the multimedia file cutting method that the embodiment of the invention provides, and details are as follows:
In step S101, receive the multimedia file that the user provides, multimedia file is carried out scene change detection, output scene handoff parameter;
In embodiments of the present invention, can use the algorithm of any effective scene change detection algorithm, for example detect, detect, perhaps the algorithm that detects based on edge contour etc. based on motion search based on gray-scale value as scene change detection.
As one embodiment of the present of invention, the scene handoff parameter mainly is that scene is switched the time of taking place, and can also dispose other parameter certainly according to concrete cutting demand.
In step S102, according to the file destination quantity of user input, and the scene handoff parameter, obtain the cutting position information of multimedia file.
As one embodiment of the present of invention,, calculate the time of the every section multi-media objects file in cutting back according to the quantity of the file destination of the cutting of user input; Then, switch the time of taking place, select the scene of the time of the most approaching every section multi-media objects file to switch the time of taking place, as the cutting position information of multimedia file according to the scene that scene change detection is obtained.
In step S103, the cutting position information according to multimedia file writes to different file destinations with multimedia file respectively according to timestamp.
Fig. 2 shows the structure of the multimedia file cutter sweep that the embodiment of the invention provides, and for convenience of explanation, only shows the part relevant with the embodiment of the invention.
This device can be applied in various multimedia processing apparatus or the playback equipment, for example MP4, computing machine (Personal Computer, PC), pocket computing machine (Pocket Personal Computer, PPC), personal digital assistant (Personal Digital Assistant, PDA), and terminals such as mobile phone with multi-media player function, it can be the software unit that runs in these equipment, also can be used as independently, suspension member is integrated in these equipment, perhaps be integrated in the multimedia application system of these equipment, wherein:
Scene change detection module 21 receives the multimedia file that the user provides, and multimedia file is carried out scene change detection, output scene handoff parameter.
In embodiments of the present invention, can use the algorithm of any effective scene change detection algorithm, for example detect, detect, perhaps the algorithm that detects based on edge contour etc. based on motion search based on gray-scale value as scene change detection.
As one embodiment of the present of invention, the scene handoff parameter mainly is that scene is switched the time of taking place, and can also dispose other parameter certainly according to concrete cutting demand.
Cutting position computing module 22 is according to the file destination quantity of user's input, and the scene handoff parameter of scene change detection module 21 outputs, obtains the cutting position information of multimedia file.
As one embodiment of the present of invention, cutting position computing module 22 is according to the quantity of the file destination of the cutting of user's input, calculate the time of the every section multi-media objects file in cutting back, switch the time of taking place according to the scene of scene change detection module 21 outputs then, select the scene of the time of the most approaching every section multi-media objects file to switch the time of taking place, as the cutting position information of multimedia file.
The cutting position information of the multimedia file that file cutting module 23 obtains according to cutting position computing module 22 writes to different file destinations with multimedia file respectively according to timestamp.
The embodiment of the invention can be widely used in the multimedia process field, below is example with the transcoder, and the application of the embodiment of the invention is specifically described:
There is multiple audio/video encoding standard in the multimedia field, for example at the H.263 standard of visual telephone and video conference business, at the Mpeg2 standard of DVB, HDTV and DVD, at the mpeg 4 standard of streaming media service exploitation in the network, and the H.264 standard etc. that high video compression performance is provided.
Because multiple coding standard exists simultaneously, and the different requirements of the target device that in the multimedia application compression efficiency, decompress(ion) speed, code stream is used etc., have diversified multimedia file, the employed each other file layout of these multimedia files, video format, compressed format have nothing in common with each other.In order to effectively utilize existing multimedia resource, the switch technology between the different coding standard, promptly transcoding technology just has been subjected to people's extensive concern, constantly obtains further research and development.
Provide the instrument of standard room conversion to be called transcoder, its structure as shown in Figure 3, wherein:
The user is provided with the various parameters that module 31 configuration multimedia file transcodings need by customer parameter.Customer parameter is provided with module 15 and judges whether the user is provided with parameter legal, legally then user configured parameter is delivered to audio frequency transcoding module 33, video code conversion module 34, and audio/video flow synthesis module 35.
Audio/video flow separation module 32 is realized the parsing of multimedia file and the separation of audio and video streams.
Audio frequency transcoding module 33 is provided with in the module 31 parameters such as audio format, audio code rate, audio sample rate, audio track number of configuration according to customer parameter, be the target audio stream of the audio format of customer requirements with the audio stream transcoding.
Video code conversion module 34 is provided with in the module 31 parameters such as video format, video size, video frame rate, video code rate of configuration according to customer parameter, be the target video stream of the video format of customer requirements with video stream transcoding.
Audio/video flow synthesis module 35 is provided with the parameters such as file container format that dispose in the module 31 according to customer parameter, the audio and video streams behind the transcoding is merged the multimedia file behind the output transcoding.
As a preferred embodiment of the present invention, in existing transcoder, increase and switch the function that the multimedia file behind the transcoding is cut according to scene, make that the multimedia file behind the transcoding is convenient to storage and user friendly flexible use.
Referring to Fig. 3, the multimedia file cutter sweep 3 that the integrated embodiment of the invention provides in transcoder is realized the cutting to the multimedia file behind the transcoding, wherein:
Scene change detection module 36 receives the multimedia source files that the user provides, and multimedia source files is carried out scene change detection, and the output scene is switched the scene handoff parameters such as time that take place.
Cutting position computing module 37 is according to the file destination quantity of user input, and the scene handoff parameter of scene change detection module 21 outputs, obtains the cutting position information of the multimedia file behind the transcoding.
The cutting position information that file cutting module 38 obtains according to cutting position computing module 22 writes to different file destinations with the multimedia file behind audio/video flow synthesis module 35 transcodings respectively according to timestamp.
The embodiment of the invention is by carrying out scene change detection to multimedia file, according to the scene switch instances multimedia file is cut, multimedia file can be cut into automatically the continuous a plurality of video small fragments of content, can avoid merely problems such as the content that multimedia file cutting caused according to the time is discontinuous, both be convenient to the storage of multimedia file, user friendly flexible use simultaneously.
The above only is preferred embodiment of the present invention, not in order to restriction the present invention, all any modifications of being done within the spirit and principles in the present invention, is equal to and replaces and improvement etc., all should be included within protection scope of the present invention.

Claims (10)

1. a multimedia file cutting method is characterized in that, described method comprises the steps:
Receive the multimedia file that the user provides, multimedia file is carried out scene change detection, output scene handoff parameter;
According to the file destination quantity of user input, and described scene handoff parameter, obtain the cutting position information of multimedia file;
Cutting position information according to described multimedia file writes to different file destinations with multimedia file respectively according to timestamp.
2. the method for claim 1 is characterized in that, described scene handoff parameter comprises the time that the scene switching takes place.
3. method as claimed in claim 3 is characterized in that, described file destination quantity, and described scene handoff parameter according to user's input, and the step of obtaining the cutting position information of multimedia file is specially:
According to the quantity of the file destination of the cutting of user input, calculate the time of the every section multi-media objects file in cutting back;
Switch the time of taking place according to described scene, select the scene of the time of the most approaching every section multi-media objects file to switch the time of taking place, as the cutting position information of multimedia file.
4. a multimedia file cutter sweep is characterized in that, described device comprises:
The scene change detection module is used to receive the multimedia file that the user provides, and multimedia file is carried out scene change detection, output scene handoff parameter;
The cutting position computing module is used for the file destination quantity according to user's input, and described scene handoff parameter, obtains the cutting position information of multimedia file; And
The file cutting module is used for the cutting position information according to described multimedia file, and multimedia file is write to different file destinations respectively according to timestamp.
5. device as claimed in claim 4 is characterized in that, described scene handoff parameter comprises the time that the scene switching takes place.
6. method as claimed in claim 5 is characterized in that, the cutting position information of described multimedia file is that the scene of the time of the most approaching every section multi-media objects file is switched the time of taking place.
7. multimedia application system that comprises the multimedia file cutter sweep of claim 4.
8. multimedia equipment that comprises the multimedia file cutter sweep of claim 4.
9. a transcoder comprises the audio/video flow synthesis module, is used for according to user configured parameter, and the audio and video streams behind the transcoding is merged, and the multimedia file behind the output transcoding is characterized in that described transcoder also comprises:
The scene change detection module is used to receive the multimedia source files that the user provides, and multimedia source files is carried out scene change detection, output scene handoff parameter;
The cutting position computing module is used for the file destination quantity according to user input, and described scene handoff parameter, obtains the cutting position information of the multimedia file behind the described transcoding; And
The file cutting module is used for according to described cutting position information the multimedia file behind the described transcoding being write to different file destinations respectively according to timestamp.
10. transcoder as claimed in claim 9 is characterized in that, described scene handoff parameter comprises the time that the scene switching takes place.
CN 201010115651 2010-02-24 2010-02-24 Multimedia file segmentation method, device thereof and code converter Pending CN102163201A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010115651 CN102163201A (en) 2010-02-24 2010-02-24 Multimedia file segmentation method, device thereof and code converter

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN 201010115651 CN102163201A (en) 2010-02-24 2010-02-24 Multimedia file segmentation method, device thereof and code converter

Publications (1)

Publication Number Publication Date
CN102163201A true CN102163201A (en) 2011-08-24

Family

ID=44464434

Family Applications (1)

Application Number Title Priority Date Filing Date
CN 201010115651 Pending CN102163201A (en) 2010-02-24 2010-02-24 Multimedia file segmentation method, device thereof and code converter

Country Status (1)

Country Link
CN (1) CN102163201A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313122A (en) * 2012-03-09 2013-09-18 联想(北京)有限公司 Data processing method and electronic device
CN103841451A (en) * 2012-11-28 2014-06-04 腾讯科技(深圳)有限公司 Multimedia playing method, device and terminal
CN104581380A (en) * 2014-12-30 2015-04-29 联想(北京)有限公司 Information processing method and mobile terminal
CN105847787A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Media playing list slice time duration detection method and media playing list slice time duration detection device
CN105874813A (en) * 2013-12-30 2016-08-17 谷歌公司 Content-adaptive chunking for distributed transcoding
CN106686452A (en) * 2016-12-29 2017-05-17 北京奇艺世纪科技有限公司 Dynamic picture generation method and device
CN106792152A (en) * 2017-01-17 2017-05-31 腾讯科技(深圳)有限公司 A kind of image synthesizing method and terminal
WO2017107442A1 (en) * 2015-12-22 2017-06-29 乐视控股(北京)有限公司 Video transcoding method and device
CN107105342A (en) * 2017-04-27 2017-08-29 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107948729A (en) * 2017-12-13 2018-04-20 广东欧珀移动通信有限公司 Rich Media's processing method, device, storage medium and electronic equipment
CN107959884A (en) * 2017-12-07 2018-04-24 上海网达软件股份有限公司 A kind of trans-coding treatment method of monophonic Multi-audio-frequency files in stream media

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136755A1 (en) * 2005-11-28 2007-06-14 Tetsuya Sakai Video content viewing support system and method
CN101635854A (en) * 2009-08-26 2010-01-27 腾讯科技(深圳)有限公司 Method and device for realizing transcoding merging
CN101650958A (en) * 2009-07-23 2010-02-17 中国科学院声学研究所 Extraction method and index establishment method of movie video scene clip

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070136755A1 (en) * 2005-11-28 2007-06-14 Tetsuya Sakai Video content viewing support system and method
CN101650958A (en) * 2009-07-23 2010-02-17 中国科学院声学研究所 Extraction method and index establishment method of movie video scene clip
CN101635854A (en) * 2009-08-26 2010-01-27 腾讯科技(深圳)有限公司 Method and device for realizing transcoding merging

Cited By (21)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103313122A (en) * 2012-03-09 2013-09-18 联想(北京)有限公司 Data processing method and electronic device
CN103841451A (en) * 2012-11-28 2014-06-04 腾讯科技(深圳)有限公司 Multimedia playing method, device and terminal
WO2014082553A1 (en) * 2012-11-28 2014-06-05 腾讯科技(深圳)有限公司 Multimedia playing method, device and terminal
US9781380B2 (en) 2012-11-28 2017-10-03 Tencent Technology (Shenzhen) Company Limited Method, apparatus and terminal for playing multimedia content
CN103841451B (en) * 2012-11-28 2017-09-29 腾讯科技(深圳)有限公司 Multi-medium play method, device and terminal
CN105874813A (en) * 2013-12-30 2016-08-17 谷歌公司 Content-adaptive chunking for distributed transcoding
CN104581380B (en) * 2014-12-30 2018-08-31 联想(北京)有限公司 A kind of method and mobile terminal of information processing
CN104581380A (en) * 2014-12-30 2015-04-29 联想(北京)有限公司 Information processing method and mobile terminal
WO2017107442A1 (en) * 2015-12-22 2017-06-29 乐视控股(北京)有限公司 Video transcoding method and device
CN105847787A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Media playing list slice time duration detection method and media playing list slice time duration detection device
CN106686452A (en) * 2016-12-29 2017-05-17 北京奇艺世纪科技有限公司 Dynamic picture generation method and device
CN106686452B (en) * 2016-12-29 2020-03-27 北京奇艺世纪科技有限公司 Method and device for generating dynamic picture
CN106792152A (en) * 2017-01-17 2017-05-31 腾讯科技(深圳)有限公司 A kind of image synthesizing method and terminal
CN106792152B (en) * 2017-01-17 2020-02-11 腾讯科技(深圳)有限公司 Video synthesis method and terminal
WO2018133797A1 (en) * 2017-01-17 2018-07-26 腾讯科技(深圳)有限公司 Video synthesis method and terminal
CN107105342A (en) * 2017-04-27 2017-08-29 维沃移动通信有限公司 A kind of video playing control method and mobile terminal
CN107105342B (en) * 2017-04-27 2020-04-17 维沃移动通信有限公司 Video playing control method and mobile terminal
CN107959884A (en) * 2017-12-07 2018-04-24 上海网达软件股份有限公司 A kind of trans-coding treatment method of monophonic Multi-audio-frequency files in stream media
CN107959884B (en) * 2017-12-07 2020-10-16 上海网达软件股份有限公司 Transcoding processing method of single track multi-audio streaming media file
CN107948729A (en) * 2017-12-13 2018-04-20 广东欧珀移动通信有限公司 Rich Media's processing method, device, storage medium and electronic equipment
CN107948729B (en) * 2017-12-13 2020-03-27 Oppo广东移动通信有限公司 Rich media processing method and device, storage medium and electronic equipment

Similar Documents

Publication Publication Date Title
CN102163201A (en) Multimedia file segmentation method, device thereof and code converter
KR101927016B1 (en) Multimedia file live broadcasting method, system and server
CN101635854B (en) Method and device for realizing transcoding merging
WO2017096882A1 (en) Video playing method and device
WO2022170836A1 (en) Method and apparatus for processing track data of multimedia file, and medium and device
CN102595114B (en) Method and terminal for playing video on low-side embedded product
KR20110053204A (en) Method and apparatus for managing of data
CN102347042B (en) Audio track switching method, system thereof and audio and video file playing device
US11178377B2 (en) Methods and apparatus for spherical region presentation
CN107223334B (en) Method and apparatus for converting an MMTP stream to MPEG-2TS
KR101320395B1 (en) SVC File Data Sharing Method and SVC File thereof
US11205456B2 (en) Methods and apparatus for using edit operations to perform temporal track derivations
US11183220B2 (en) Methods and apparatus for temporal track derivations
CN101312460A (en) Method for converting media file of multiple formats into target device supported media file
CN102904857A (en) Client video playing system and method thereof
CN102231826B (en) Indexing method and system supporting frame accurate positioning of transport stream media file
EP4013042A1 (en) Information processing device, reproduction processing device, and information processing method
CN102780728A (en) Media file transcoding and downloading method and client
CN103841451A (en) Multimedia playing method, device and terminal
US20090234886A1 (en) Apparatus and Method for Arranging Metadata
US9729919B2 (en) Remultiplexing bitstreams of encoded video for video playback
KR100917844B1 (en) Apparatus and method for transmitting or replaying multi-channel audio signal
CN102780878A (en) Method and system for acquiring media files
KR101295377B1 (en) Method for constructing of file format and apparatus and method for processing broadcast signal with file which has file format
CN104090898B (en) The method that local music mates with music in storehouse and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C12 Rejection of a patent application after its publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20110824