CN105357531B - Based on video local code fly-cutting packaging method - Google Patents
Based on video local code fly-cutting packaging method Download PDFInfo
- Publication number
- CN105357531B CN105357531B CN201510928218.8A CN201510928218A CN105357531B CN 105357531 B CN105357531 B CN 105357531B CN 201510928218 A CN201510928218 A CN 201510928218A CN 105357531 B CN105357531 B CN 105357531B
- Authority
- CN
- China
- Prior art keywords
- video
- frame
- tail
- cutting
- heads
- 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.)
- Expired - Fee Related
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/80—Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
- H04N21/85—Assembly of content; Generation of multimedia applications
- H04N21/854—Content authoring
- H04N21/8547—Content authoring involving timestamps for synchronizing content
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
One kind being based on video local code fly-cutting packaging method, includes the following steps:1)Transcoding and frame index is established while recording digital video bit stream(Frame index is established according to information such as the timestamp DTS and PTS of each video frame of video and audio frame, the position offset of frame type and the frame in video file), and cutting in and out point is set;2)Find the video heads for needing transcoding and video tail;3)The video heads and video tail are encoded respectively;4)Video heads after coding, the video tail after the intermediate video and coding that need not encode are packaged.The present invention is based on video local code fly-cutting packaging methods, due to establishing the frame index of digital video, the setting of video cut point can quickly be carried out, in such a way that the part that the local code of video heads and video tail need not be encoded with centre again merges, the time for substantially reducing video code conversion, improve transcoding efficiency.
Description
Technical field
The present invention relates to a kind of method for processing video frequency more particularly to a kind of video fly-cutting packaging methods.
Background technology
In the modern life, there is a large amount of video to be generated from various systems daily.These videos more and more by with
Family is stored using digitized forms.
In order to use computer disposal video information, need to video into edlin, one section of Video segmentation at convenient for retrieval
One group of video.By the video of coding based on gop structure, when carrying out Video segmentation, video cutting is cut according to GOP
If, it need not be recompiled.But if video to be cut according to frame if with regard to being recompiled.Cut video
When, if recompiled whole section of video than relatively time-consuming, efficiency is low, this just needs to carry out local code to save the time.In addition
Target envelope format may be different from source video, it is necessary to be Resealed in cutting process.
The Chinese patent literature of Publication No. CN 103618902A discloses a kind of code-transferring method of video file, device
And system, including:The video flowing of video file is divided at least one picture group GOP by Video segmentation server, and will be described
Each GOP saves as file;The audio stream of the video file is divided by the Video segmentation server according to fixed frame number
At least one audio pack, and each audio pack is saved as into file;The Video segmentation server joins source video information
Number and target video coding parameter write into each described GOP file;The Video segmentation server joins source audio information
Number and target audio coding parameter write into each described audio APMB package;The Video segmentation server is literary by the GOP
Part and the audio APMB package are sent to transcoding server.
The disclosed above number Chinese patent literature for CN 103618902A, technical solution needs split video
At many gop files, then these gop files are encoded according to coding parameter, this technical matters is complicated, and efficiency is low,
And when recompiling, since video and audio are the data packets handled respectively, also the problems such as video and audio synchronization, needs to solve.
Invention content
In order to solve the shortcomings of the prior art, it is fast based on video local code that the purpose of the present invention is to provide one kind
Speed cutting packaging method, realizes video fly-cutting and splicing and transcoding, improves digital video cutting and the work of transcoding is imitated
Rate.
To achieve the above object, provided by the invention to be based on video local code fly-cutting packaging method including following
Step:
1)Transcoding and frame index is established while recording digital video bit stream, and cutting in and out point is set;
2)Find the video heads for needing transcoding and video tail;
3)The video heads and video tail are encoded respectively;
4)Video heads after coding, the video tail after the intermediate video and coding that need not encode are packaged.
Wherein, in the step 1) frame index be according to the attribute of the frame of digital video bit stream (including each frame of video (depending on
Frequency frame and audio frame) timestamp (DTS and PTS), the information such as the position offset of frame type and the frame in video file)
It establishes.
Wherein, the step 2) is the cutting in and out point according to setting, finds the video heads and video for needing transcoding
Tail.
The present invention is based on video local code fly-cutting packaging methods can due to establishing the frame index of digital video
Quickly to carry out the setting of video cut point, need not be encoded with centre again by the local code of video heads and video tail
The mode that part merges, substantially reduces the time of video code conversion, improves transcoding efficiency.
Other features and advantages of the present invention will be illustrated in the following description, also, partly becomes from specification
It obtains it is clear that understand through the implementation of the invention.
Description of the drawings
Attached drawing is used to provide further understanding of the present invention, and a part for constitution instruction, and with the present invention's
Embodiment together, for explaining the present invention, is not construed as limiting the invention.In the accompanying drawings:
Fig. 1 is according to the present invention based on video local code fly-cutting packaging method work flow diagram.
Specific implementation mode
Hereinafter, preferred embodiments of the present invention will be described with reference to the accompanying drawings, it should be understood that preferred reality described herein
Apply example only for the purpose of illustrating and explaining the present invention and is not intended to limit the present invention.
Fig. 1 be according to the present invention based on video local code fly-cutting packaging method work flow diagram, below will ginseng
Fig. 1 is examined, to being described in detail based on video local code fly-cutting packaging method for the present invention.
First, in step 101, the recording of video is carried out, frame index is established while recorded video code stream;Carry out video
Editor, and cutting access point is set and is cut into a little.Frame index is that (including video is each according to the attribute of the frame of digital video bit stream
The timestamp (DTS and PTS) of frame (video frame and audio frame), the position offset etc. of frame type and the frame in video file
Information) it establishes.Editorial staff's observation video frequency program (such as:News hookup) when, it is set as in the starting frame position of video frequency program
Access point is cut, is set as being cut into a little in the end frame position of video frequency program.
In step 102, according to the cutting access point of setting and it is cut into and a little finds the video heads for needing transcoding and video tail.
Video heads are to find corresponding frame position in needing the video cut by cutting access point, will include cutting access point video frame
GOP video datas as video heads, video tail is by being cut into a little, corresponding frame being found in needing the video that cuts
Position
In step 103, the video heads of transcoding and video tail are needed to encode respectively to finding.
In step 104, by the video heads after coding, the middle section video that need not encode, and after coding
Video tail is packaged into required video format.
In step 105, judge whether there is also uncut cut point, if there is then return to step 102, does not tie then
Beam.
The present invention's is utilized based on video local code fly-cutting packaging method by establishing digital video frame index
Player can be separately encoded video heads and regarded with the principle of normal play after two sections of video-splicings of identical coding parameter coding
Frequency tail, then merge with the intermediate video that need not be encoded, improve the efficiency of entire transcoding processing procedure.
One of ordinary skill in the art will appreciate that:The foregoing is only a preferred embodiment of the present invention, and does not have to
In the limitation present invention, although the present invention is described in detail referring to the foregoing embodiments, for those skilled in the art
For, still can to foregoing embodiments record technical solution modify, or to which part technical characteristic into
Row equivalent replacement.All within the spirits and principles of the present invention, any modification, equivalent replacement, improvement and so on should all include
Within protection scope of the present invention.
Claims (3)
1. one kind being based on video local code fly-cutting packaging method, include the following steps:
1)Establish frame index while recording digital video bit stream, and the starting frame position of video frequency program be set as cutting into
Point is set as being cut into a little in the end frame position of video frequency program;
2)According to the cutting access point of setting and it is cut into and a little finds the video heads for needing transcoding and video tail;The video heads are
By cutting access point, corresponding frame position is found in needing the video cut, the GOP videos of cutting access point video frame will be included
For data as video heads, video tail is by being cut into a little, finding corresponding frame position in needing the video cut, will include
The GOP video datas of a video frame are cut into as video tail;
3)The video heads and video tail are encoded respectively;
4)Video heads after coding, the video tail after the intermediate video and coding that need not encode are packaged.
2. according to claim 1 be based on video local code fly-cutting packaging method, which is characterized in that the step
1)Middle frame index is established according to the attribute of the frame of digital video bit stream.
3. according to claim 2 be based on video local code fly-cutting packaging method, which is characterized in that the number
The attribute of the frame of video code flow, including, the position of the timestamp, frame type and the frame of each frame of video in video file is inclined
Shifting amount.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510928218.8A CN105357531B (en) | 2015-12-15 | 2015-12-15 | Based on video local code fly-cutting packaging method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201510928218.8A CN105357531B (en) | 2015-12-15 | 2015-12-15 | Based on video local code fly-cutting packaging method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105357531A CN105357531A (en) | 2016-02-24 |
CN105357531B true CN105357531B (en) | 2018-07-20 |
Family
ID=55333375
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201510928218.8A Expired - Fee Related CN105357531B (en) | 2015-12-15 | 2015-12-15 | Based on video local code fly-cutting packaging method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN105357531B (en) |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109547864B (en) * | 2017-09-21 | 2021-05-07 | 腾讯科技(深圳)有限公司 | Media data processing method and device |
CN112351308A (en) * | 2020-10-30 | 2021-02-09 | 杭州当虹科技股份有限公司 | Method for realizing rapid transcoding based on local transcoding technology |
CN115942069A (en) * | 2022-12-05 | 2023-04-07 | 阿里巴巴(中国)有限公司 | Video editing method, device, storage medium and program product |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949876A (en) * | 2006-11-21 | 2007-04-18 | 华为技术有限公司 | Method and system for supporting media data of multi-coding formats |
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video Cluster Transcoding System Using GOP Structure as Parallel Processing Unit |
CN102647584A (en) * | 2012-04-26 | 2012-08-22 | 广州盈可视电子科技有限公司 | Video file generation method and system |
CN103618902A (en) * | 2013-11-13 | 2014-03-05 | 天脉聚源(北京)传媒科技有限公司 | Transcoding method, device and system for video file |
CN104243920A (en) * | 2014-09-04 | 2014-12-24 | 浙江宇视科技有限公司 | Image stitching method and device based on basic stream video data packaging |
Family Cites Families (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100786132B1 (en) * | 2004-11-01 | 2007-12-21 | 한국전자통신연구원 | Method for encoding/decoding a video sequence based on hierarchical B-picture using adaptively-adjusted GOP structure |
-
2015
- 2015-12-15 CN CN201510928218.8A patent/CN105357531B/en not_active Expired - Fee Related
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1949876A (en) * | 2006-11-21 | 2007-04-18 | 华为技术有限公司 | Method and system for supporting media data of multi-coding formats |
CN101098483A (en) * | 2007-07-19 | 2008-01-02 | 上海交通大学 | Video Cluster Transcoding System Using GOP Structure as Parallel Processing Unit |
CN102647584A (en) * | 2012-04-26 | 2012-08-22 | 广州盈可视电子科技有限公司 | Video file generation method and system |
CN103618902A (en) * | 2013-11-13 | 2014-03-05 | 天脉聚源(北京)传媒科技有限公司 | Transcoding method, device and system for video file |
CN104243920A (en) * | 2014-09-04 | 2014-12-24 | 浙江宇视科技有限公司 | Image stitching method and device based on basic stream video data packaging |
Also Published As
Publication number | Publication date |
---|---|
CN105357531A (en) | 2016-02-24 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20090007208A1 (en) | Program, data processing method, and system of same | |
CN104284241B (en) | A kind of video clipping method and device | |
CN105357531B (en) | Based on video local code fly-cutting packaging method | |
US7907633B2 (en) | Data multiplexing/demultiplexing apparatus | |
US7228055B2 (en) | Recording apparatus, video camera and computer program | |
JP4598627B2 (en) | Content editing apparatus and playback apparatus thereof | |
CN109936715A (en) | A kind of processing method and its relevant device of MP4 file | |
CN111770360A (en) | Method and system for marking whole flow of video manuscript collection, editing and auditing | |
CN106791919A (en) | Method for processing multimedia information, device and electronic equipment | |
CN1259735A (en) | Additive information prodn. method, recording medium, and recording, edit and producing device | |
JP2005327453A5 (en) | ||
CN103152607B (en) | The supper-fast thick volume method of video | |
CN104822087A (en) | Processing method and apparatus of video segment | |
CN101448094B (en) | Method for rapidly importing media material | |
CN103024605A (en) | Cloud transcoding method and system for video files | |
CN114125469A (en) | MP4 file repair method and device, electronic equipment and storage medium | |
CN106021565B (en) | continuous writing method of MXF files in Op1a and Op1b formats | |
CN113507625B (en) | Self-adaptive video restoration method | |
US8131100B2 (en) | Representing high-resolution media content in a lower resolution system | |
CN105472407A (en) | Automatic video index and alignment method based on continuous image features | |
KR101215178B1 (en) | Material processing apparatus and material processing method | |
CN106162322A (en) | A kind of method for processing video frequency and device | |
JP2008040245A (en) | Mpeg4-aac format conversion apparatus | |
CN1855285B (en) | How to store audio-visual files and how to edit audio-visual files | |
US20060239656A1 (en) | Recording medium for storing video file and method for editing video file |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant | ||
CF01 | Termination of patent right due to non-payment of annual fee | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20180720 Termination date: 20201215 |