CN108366218A - Video file forming method and device, computer readable storage medium, picture pick-up device - Google Patents

Video file forming method and device, computer readable storage medium, picture pick-up device Download PDF

Info

Publication number
CN108366218A
CN108366218A CN201810337187.2A CN201810337187A CN108366218A CN 108366218 A CN108366218 A CN 108366218A CN 201810337187 A CN201810337187 A CN 201810337187A CN 108366218 A CN108366218 A CN 108366218A
Authority
CN
China
Prior art keywords
data
video file
video
video data
compressed
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
CN201810337187.2A
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.)
Shanghai Xiaoyi Technology Co Ltd
Original Assignee
Shanghai Xiaoyi Technology 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 Shanghai Xiaoyi Technology Co Ltd filed Critical Shanghai Xiaoyi Technology Co Ltd
Priority to CN201810337187.2A priority Critical patent/CN108366218A/en
Publication of CN108366218A publication Critical patent/CN108366218A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods

Abstract

A kind of video file forming method and device, computer readable storage medium, picture pick-up device, video file forming method include:When memory space shared by the obtained video data of shooting reaches predetermined threshold value, the video data is compressed;Contents extraction is carried out to compressed video data, to form new video file.Technical solution of the present invention can effectively reduce the occupied memory space of video data.

Description

Video file forming method and device, computer readable storage medium, picture pick-up device
Technical field
The present invention relates to technical field of data processing more particularly to a kind of video file forming method and device, computers Readable storage medium storing program for executing, picture pick-up device.
Background technology
With the development of technique for taking, capture apparatus is more and more universal.More capture apparatus are applied in various applied fields Jing Zhong.
Existing video recording equipment can store all video datas that shooting obtains in video recording.
But the data volume of video data is larger, the memory space of occupancy is also bigger.Increase storage in picture pick-up device Capacity will greatly increase the cost of picture pick-up device.How to store more video datas and be in the case that memory capacity is limited One urgent problem to be solved.
Invention content
Present invention solves the technical problem that being how to effectively reduce the occupied memory space of video data.
In order to solve the above technical problems, the embodiment of the present invention provides a kind of video file forming method, video file is formed Method includes:
When memory space shared by the obtained video data of shooting reaches predetermined threshold value, the video data is pressed Contracting;Contents extraction is carried out to compressed video data, to form new video file.
Optionally, the video data includes main bit stream data and subcode flow data, described to be carried out to the video data Compression includes:The primary key flow data is deleted, the subcode flow data is retained.
Optionally, described to include to compressed video data progress contents extraction:Extract the compressed video counts I frame data in, to form the new video file.
Optionally, the video file forming method further includes:The new video file is stored.
In order to solve the above technical problems, the embodiment of the invention also discloses a kind of video file forming apparatus, video file Forming apparatus includes:
Compression module, when reaching predetermined threshold value suitable for the memory space shared by the obtained video data of shooting, to described Video data is compressed;Extraction module is suitable for carrying out contents extraction to compressed video data, to form new video recording text Part.
Optionally, the video data includes main bit stream data and subcode flow data, and the compression module deletes the master Bit stream data retains the subcode flow data.
Optionally, the extraction module extracts the I frame data in the compressed video data, described new to be formed Video file.
Optionally, the video file forming apparatus further includes:Memory module is suitable for carrying out the new video file Storage.
In order to solve the above technical problems, the embodiment of the invention also discloses a kind of computer readable storage medium, deposit thereon Computer instruction is contained, when the computer instruction is run described in right of execution the step of video file forming method.
In order to solve the above technical problems, the embodiment of the invention also discloses a kind of picture pick-up device, including memory and processing Device, the computer instruction that can be run on the processor is stored on the memory, and the processor runs the calculating The step of machine executes the video file forming method when instructing.
Compared with prior art, the technical solution of the embodiment of the present invention has the advantages that:
When memory space of the technical solution of the present invention shared by the obtained video data of shooting reaches predetermined threshold value, to described Video data is compressed;Contents extraction is carried out to compressed video data, to form new video file.The technology of the present invention The video data that scheme shoots picture pick-up device has carried out preliminary compression first, reduces depositing shared by video data Store up space;Contents extraction has been carried out to compressed data again, has retained the critical data of the video data, to not influence The memory space shared by new video file is further reduced on the basis of user's viewing so that picture pick-up device is deposited smaller In the case of reserves, more Video datas can be stored, improve the performance of picture pick-up device, reduce picture pick-up device at This.
Further, the video data includes main bit stream data and subcode flow data, it is described by the video data into Row compresses:The primary key flow data is deleted, the subcode flow data is retained.In technical solution of the present invention, due to video counts Primary key flow data in is high-resolution data, and the memory space of occupancy is larger, therefore by deleting primary key flow data, is only protected The mode for staying subcode flow data reduces the data volume of compressed video data, to reduce the memory space of its occupancy.
Further, described to include to compressed video data progress contents extraction:Extract the compressed video I frame data in data, to form the new video file.In technical solution of the present invention, due to the I frame numbers in video data According to being relatively independent in coding and decoding, other frame data are needed not rely on, therefore be used as newly by extracting I frame data Video file, it is ensured that the visibility of new video file is not influencing base of the user to the viewing experience of video data On plinth, the memory space shared by new video file is further reduced.
Description of the drawings
Fig. 1 is a kind of flow chart of video file forming method of the embodiment of the present invention;
Fig. 2 is the flow chart of another kind video file forming method of the embodiment of the present invention;
Fig. 3 is a kind of structural schematic diagram of video file forming apparatus of the embodiment of the present invention.
Specific implementation mode
As described in the background art, the data volume of video data is larger in the prior art, and the memory space of occupancy also compares Greatly.The cost of picture pick-up device will be greatly increased by increasing memory capacity in picture pick-up device.How in the limited feelings of memory capacity It is a urgent problem to be solved that more video datas are stored under condition.
The video data that technical solution of the present invention shoots picture pick-up device has carried out preliminary compression first, contracting Memory space shared by small video data;Contents extraction has been carried out to compressed data again, has retained the pass of the video data Key data carries to further reduce the memory space shared by new video file on the basis of not influencing user and watching The performance for having risen picture pick-up device reduces the cost of picture pick-up device.
To make the above purposes, features and advantages of the invention more obvious and understandable, below in conjunction with the accompanying drawings to the present invention Specific embodiment be described in detail.
Fig. 1 is a kind of flow chart of video file forming method of the embodiment of the present invention.
Video file forming method shown in Fig. 1 can be used for picture pick-up device, and the video file forming method may include Following steps:
Step S101:When memory space shared by the obtained video data of shooting reaches predetermined threshold value, to the video Data are compressed;
Step S102:Contents extraction is carried out to compressed video data, to form new video file.
In the present embodiment, the usual configuration storage space of picture pick-up device, to store the video data captured by picture pick-up device.For Video data, can be formed new video file and store by the sufficient memory space using picture pick-up device.
In specific implementation, the predetermined threshold value can be pre-set.Predetermined threshold value can be the absolute of memory space Value, such as 3GB, 2GB etc.;Predetermined threshold value can also be the percentage of the memory space of picture pick-up device.For example, shooting obtain regard When frequency reaches the 50% of the memory space of picture pick-up device according to shared memory space, video data is compressed.
It should be noted that predetermined threshold value can be custom-configured by user according to actual application environment, this hair Bright embodiment is without limitation.
In the specific implementation of step S101, the process compressed to video data can reduce the data of video data Amount.Compressed video data can be with normal play.
Specifically, it is more than due to having memory space shared by the video data of high-resolution and has low resolution Memory space shared by video data, therefore the process compressed to video data can will be provided with regarding for high-resolution Frequency evidence is converted to the video data for having low resolution.
The process that video data is compressed can also be the format of video data is converted, such as:By format For the video data of Audio Video Interleaved (Audio Video Interleaved, AVI), to be converted to format be windows media The video data of video (Windows Media Video, WMV), the video data of different-format according to data volume from big to small Sequence be AVI, WMV, Motion Picture Experts Group (Moving Picture Experts Group, MPEG-2), media object (Video Object, VOB), MP4, MOV, MPEG, RM variable bit rate (Real Media Variable Bitrate, RMVB), real-time media stream (Real Media, RM), fast Media Stream (Flash Video, FLV).
It is more than the video counts having compared with low bit rate due to having the memory space shared by the video data of higher bit rate According to shared memory space, therefore the process compressed to video data can also be the video counts that will be provided with higher bit rate According to being converted to the video data having compared with low bit rate.
It, can be to pressure in the specific implementation of step S102 in order to further decrease the memory space shared by video data Video data after contracting carries out contents extraction.Specifically, the process for carrying out contents extraction to compressed video data can be with It is to extract important frame in video data upon compression.The important frame can be chosen according to coding independency principle, can also It is chosen according to video content.
Relative to the compressed video data obtained by step S101, the new video recording obtained after contents extraction File has less frame data, occupies less memory space.
It is understood that the new video file can also be the data of video format.
The video data that the embodiment of the present invention shoots picture pick-up device has carried out preliminary compression first, reduces Memory space shared by video data;Contents extraction has been carried out to compressed data again, has retained the key of the video data Data are promoted to further reduce the memory space shared by new video file on the basis of not influencing user and watching The performance of picture pick-up device, reduces the cost of picture pick-up device.
In a specific embodiment of the invention, it can also include the following steps after step S102 shown in Fig. 1:It will be described new Video file stored.
Specifically, after obtaining new video file, the new video file is stored into picture pick-up device.As a result, In the limited memory space of picture pick-up device, more data, namely more new video files can be stored.
In a preferred embodiment of the invention, the video data includes main bit stream data and subcode flow data.
Specifically, the encoder of picture pick-up device can generate the data of two different coded formats simultaneously:Primary key fluxion According to subcode flow data.Dicode Flow Technique can take into account high quality graphic transmission and narrow bandwidth transmission.
Further, primary key flow data can refer to using the bit stream data using high code rate, and subcode flow data can be with Refer to using the bit stream data compared with low bit- rate.
Referring to Fig.1 and 2, step S101 shown in Fig. 1 may include step S201:The primary key flow data is deleted, is protected Stay the subcode flow data.
Since the code check of data is higher, the data volume of data is bigger, and the memory space that data occupy is bigger, therefore in order to subtract Small data quantity reduces the memory space that data occupy, can delete the primary key flow data, retain the subcode flow data.
In the embodiment of the present invention, since the primary key flow data in video data is high-resolution data, the storage of occupancy is empty Between it is larger, therefore by delete primary key flow data, only retain subcode flow data mode, reduce the number of compressed video data According to amount, to reduce the memory space of its occupancy.
In another preferred embodiment of the present invention, with continued reference to Fig. 2, step S102 shown in Fig. 1 may include step S202: The I frame data in the compressed video data are extracted, to form the new video file.
In the present embodiment, I frames (I frame) are referred to as Intra pictures (intra picture), intracoded frame.I Frame is a kind of independent frame of included all information, can be independently decoded without reference to other images.In video sequence One frame is all I frames always, and I frames are key frames, including complete picture.
As a result, by extracting the I frame data in the compressed video data, it can not only retain the pass of video data Key information can also reduce data volume.
And then in step S203, the new video file is stored.Specifically, by the new video file It stores to picture pick-up device, so as to reduce the occupancy of memory space in picture pick-up device so that the memory space of picture pick-up device More data can be stored.
In inventive embodiments, due to the I frame data in video data be in coding and decoding it is relatively independent, need not be according to Rely others frame data, therefore by extract I frame data be used as new video file, it is ensured that new video file it is considerable The property seen further reduces on the basis of not influencing viewing experience of the user to video data shared by new video file Memory space.
Fig. 3 is please referred to, the video file forming apparatus 30 can be used for picture pick-up device.Video file forming apparatus 30 can To be internally integrated or outside is coupled to picture pick-up device.
Video file forming apparatus 30 may include compression module 301 and extraction module 302.
Wherein, when compression module 301 is suitable for the memory space shared by the obtained video data of shooting and reaches predetermined threshold value, The video data is compressed;Extraction module 302 is suitable for carrying out contents extraction to compressed video data, new to be formed Video file.
In specific implementation, the predetermined threshold value can be pre-set.Predetermined threshold value can be the absolute of memory space Value, such as 3GB, 2GB etc.;Predetermined threshold value can also be the percentage of the memory space of picture pick-up device.For example, shooting obtain regard When frequency reaches the 50% of the memory space of picture pick-up device according to shared memory space, compression module 301 carries out video data Compression.
Specifically, it is more than due to having memory space shared by the video data of high-resolution and has low resolution Memory space shared by video data, therefore the process compressed to video data can will be provided with regarding for high-resolution Frequency evidence is converted to the video data for having low resolution.
The process that video data is compressed can also be the format of video data is converted, such as:By format Be converted to the video data that format is WMV for the video data of AVI, the video data of different-format according to data volume from big to small Sequence be AVI, WMV, MPEG-2, VOB, MP4, MOV, MPEG, RMVB, RM, FLV.
It is more than the video counts having compared with low bit rate due to having the memory space shared by the video data of higher bit rate According to shared memory space, therefore the process compressed to video data can also be the video counts that will be provided with higher bit rate According to being converted to the video data having compared with low bit rate.
The video data that the embodiment of the present invention shoots picture pick-up device has carried out preliminary compression first, reduces Memory space shared by video data;Contents extraction has been carried out to compressed data again, has retained the key of the video data Data are promoted to further reduce the memory space shared by new video file on the basis of not influencing user and watching The performance of picture pick-up device, reduces the cost of picture pick-up device.
In a preferred embodiment of the invention, the video data may include primary key flow data and subcode flow data, institute The primary key flow data can be deleted by stating compression module 301, retain the subcode flow data.
In the embodiment of the present invention, since the primary key flow data in video data is high-resolution data, the storage of occupancy is empty Between it is larger, therefore by delete primary key flow data, only retain subcode flow data mode, reduce the number of compressed video data According to amount, to reduce the memory space of its occupancy.
In another preferred embodiment of the present invention, the extraction module 302 extracts the I in the compressed video data Frame data, to form the new video file.
In the embodiment of the present invention, since the I frame data in video data are relatively independent in coding and decoding, do not need Rely on other frame data, therefore be used as new video file by extracting I frame data, it is ensured that new video file can Viewing property, on the basis of not influencing viewing experience of the user to video data, further reduces shared by new video file Memory space.
In a specific embodiment of the invention, as shown in figure 3, video file forming apparatus 30 may include memory module 303, suitable for the new video file is stored.
Operation principle, more contents of working method about the video file forming apparatus 30, are referred to Fig. 1 extremely Associated description in Fig. 2, which is not described herein again.
The embodiment of the invention also discloses a kind of computer readable storage mediums, are stored thereon with computer instruction, described The step of computer instruction can execute video file forming method shown in fig. 1 or fig. 2 when running.The storage medium can To include ROM, RAM, disk or CD etc..The storage medium can also include non-volatility memorizer (non-volatile) Or non-transient (non-transitory) memory etc..
The embodiment of the invention also discloses a kind of picture pick-up device, the picture pick-up device may include memory and processor, The computer instruction that can be run on the processor is stored on the memory.The processor runs the computer and refers to The step of video file forming method shown in fig. 1 or fig. 2 can be executed when enabling.The picture pick-up device includes but not limited to take the photograph The equipment such as camera, mobile phone, camera, tablet computer, computer.
Although present disclosure is as above, present invention is not limited to this.Any those skilled in the art are not departing from this It in the spirit and scope of invention, can make various changes or modifications, therefore protection scope of the present invention should be with claim institute Subject to the range of restriction.

Claims (10)

1. a kind of video file forming method, which is characterized in that including:
When memory space shared by the obtained video data of shooting reaches predetermined threshold value, the video data is compressed;
Contents extraction is carried out to compressed video data, to form new video file.
2. video file forming method according to claim 1, which is characterized in that the video data includes main bit stream number According to subcode flow data, it is described to the video data carry out compression include:
The primary key flow data is deleted, the subcode flow data is retained.
3. video file forming method according to claim 1, which is characterized in that it is described to compressed video data into Row contents extraction includes:
The I frame data in the compressed video data are extracted, to form the new video file.
4. video file forming method according to any one of claims 1 to 3, which is characterized in that further include:
The new video file is stored.
5. a kind of video file forming apparatus, which is characterized in that including:
Compression module, when reaching predetermined threshold value suitable for the memory space shared by the obtained video data of shooting, to the video Data are compressed;
Extraction module is suitable for carrying out contents extraction to compressed video data, to form new video file.
6. video file forming apparatus according to claim 5, which is characterized in that the video data includes main bit stream number According to subcode flow data, the compression module deletes the primary key flow data, retains the subcode flow data.
7. video file forming apparatus according to claim 5, which is characterized in that the extraction module extracts the compression I frame data in video data afterwards, to form the new video file.
8. according to claim 5 to 7 any one of them video file forming apparatus, which is characterized in that further include:
Memory module, suitable for storing the new video file.
9. a kind of computer readable storage medium, is stored thereon with computer instruction, which is characterized in that the computer instruction fortune Perform claim requires the step of any one of 1 to 4 video file forming method when row.
10. a kind of picture pick-up device, including memory and processor, it is stored with and can runs on the processor on the memory Computer instruction, which is characterized in that perform claim is any in requiring 1 to 4 when the processor runs the computer instruction The step of item video file forming method.
CN201810337187.2A 2018-04-16 2018-04-16 Video file forming method and device, computer readable storage medium, picture pick-up device Pending CN108366218A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201810337187.2A CN108366218A (en) 2018-04-16 2018-04-16 Video file forming method and device, computer readable storage medium, picture pick-up device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810337187.2A CN108366218A (en) 2018-04-16 2018-04-16 Video file forming method and device, computer readable storage medium, picture pick-up device

Publications (1)

Publication Number Publication Date
CN108366218A true CN108366218A (en) 2018-08-03

Family

ID=63008452

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810337187.2A Pending CN108366218A (en) 2018-04-16 2018-04-16 Video file forming method and device, computer readable storage medium, picture pick-up device

Country Status (1)

Country Link
CN (1) CN108366218A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463039A (en) * 2020-11-17 2021-03-09 浙江大华技术股份有限公司 Data storage method, device and storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921629A (en) * 2006-09-22 2007-02-28 杭州华为三康技术有限公司 Frequency-video monitoring system and data compression dump device
CN103902721A (en) * 2014-04-10 2014-07-02 中央电视台 Data frontcourt processing method, data frontcourt processing system, data backcourt publishing method and data backcourt publishing system
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal
CN105227991A (en) * 2014-07-03 2016-01-06 深圳中兴力维技术有限公司 Reliable video storage means and device thereof
CN105517674A (en) * 2015-07-14 2016-04-20 深圳市锐明技术股份有限公司 A processing method and a system for monitoring data
CN106993014A (en) * 2016-01-20 2017-07-28 中兴通讯股份有限公司 The method of adjustment of cache contents, apparatus and system
CN107734336A (en) * 2016-08-10 2018-02-23 杭州海康威视数字技术股份有限公司 A kind of compression method and device of video memory space

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1921629A (en) * 2006-09-22 2007-02-28 杭州华为三康技术有限公司 Frequency-video monitoring system and data compression dump device
CN103902721A (en) * 2014-04-10 2014-07-02 中央电视台 Data frontcourt processing method, data frontcourt processing system, data backcourt publishing method and data backcourt publishing system
CN105227991A (en) * 2014-07-03 2016-01-06 深圳中兴力维技术有限公司 Reliable video storage means and device thereof
CN104572113A (en) * 2015-01-21 2015-04-29 深圳市中兴移动通信有限公司 Automatic storage space arranging method and mobile terminal
CN105517674A (en) * 2015-07-14 2016-04-20 深圳市锐明技术股份有限公司 A processing method and a system for monitoring data
CN106993014A (en) * 2016-01-20 2017-07-28 中兴通讯股份有限公司 The method of adjustment of cache contents, apparatus and system
CN107734336A (en) * 2016-08-10 2018-02-23 杭州海康威视数字技术股份有限公司 A kind of compression method and device of video memory space

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112463039A (en) * 2020-11-17 2021-03-09 浙江大华技术股份有限公司 Data storage method, device and storage medium

Similar Documents

Publication Publication Date Title
KR102406887B1 (en) Method, device, and computer program for generating timed media data
CN108683826B (en) Video data processing method, video data processing device, computer equipment and storage medium
AU2014373838B2 (en) Content-adaptive chunking for distributed transcoding
WO2020010997A1 (en) Video frame extraction method and apparatus, computer readable medium, and electronic device
US20130339362A1 (en) Methods and systems for automatically and efficiently categorizing, transmitting, and managing multimedia contents
US10491937B2 (en) Information processing system
CN111787398A (en) Video compression method, device, equipment and storage device
KR20160095058A (en) Handling video frames compromised by camera motion
Huamán et al. Authentication and integrity of smartphone videos through multimedia container structure analysis
CN107948715A (en) Live network broadcast method and device
KR101551915B1 (en) Device and method for video compression
CN108366218A (en) Video file forming method and device, computer readable storage medium, picture pick-up device
CN111193928B (en) Method and apparatus for delivering region of interest information in video
US20160127679A1 (en) Computed information for metadata extraction applied to transcoding
US11095901B2 (en) Object manipulation video conference compression
US20150063435A1 (en) Techniques for reference based transcoding
WO2023130896A1 (en) Media data processing method and apparatus, computer device and storage medium
US9105299B2 (en) Media data encoding apparatus and method
CN104219537B (en) The method, apparatus and system of video data processing
CN107623852B (en) Method and device for coding and frame reduction of digital video signal
US10136146B1 (en) Metadata optimizations for encoding of media content
KR102430177B1 (en) System for rapid management of large scale moving pictures and method thereof
US20150271492A1 (en) Systems and Methods for Group of Pictures Encoding
CN111147954A (en) Thumbnail extraction method and device
CN109905715A (en) It is inserted into the code stream conversion method and system of SEI data

Legal Events

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

Application publication date: 20180803

RJ01 Rejection of invention patent application after publication