CN104219538A - Real-time acquiring and uploading and data processing method and system for audio and video - Google Patents

Real-time acquiring and uploading and data processing method and system for audio and video Download PDF

Info

Publication number
CN104219538A
CN104219538A CN201410468018.4A CN201410468018A CN104219538A CN 104219538 A CN104219538 A CN 104219538A CN 201410468018 A CN201410468018 A CN 201410468018A CN 104219538 A CN104219538 A CN 104219538A
Authority
CN
China
Prior art keywords
audio
module
coding
video
video document
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.)
Granted
Application number
CN201410468018.4A
Other languages
Chinese (zh)
Other versions
CN104219538B (en
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.)
SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Original Assignee
SHENZHEN YUNZHOU MULTIMEDIA 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 SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd filed Critical SHENZHEN YUNZHOU MULTIMEDIA TECHNOLOGY Co Ltd
Priority to CN201410468018.4A priority Critical patent/CN104219538B/en
Publication of CN104219538A publication Critical patent/CN104219538A/en
Application granted granted Critical
Publication of CN104219538B publication Critical patent/CN104219538B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a real-time acquiring and uploading and data processing method and method for audio and video, and relates to the technical field of audio and video data uploading and processing. The method comprises the following steps: skipping to an audio and video file header as an audio and video film is recorded in a client and the stored coded header file is changed; obtaining the changed header file; sending to a server; replacing the previous header file for storing documents by the modified header file after the server receives the last modified header file with N bits; therefore, the file stored in the server can be completely recovered and can be played normally. With the adoption of the method and system, the audio and video can be uploaded on real time, and the file of the server can be directly played normally.

Description

A kind of audio frequency and video Real-time Collection is uploaded and data processing method and system
Technical field
The present invention relates to audio, video data to upload and processing technology field, particularly relate to a kind of audio frequency and video Real-time Collection and upload and data processing method and system.
Background technology
Along with popularizing of the multiple mobile device such as smart mobile phone, vehicle mobile terminals, and the application of Sensor Network technology, using mobile terminal device to visit social networks becomes main flow gradually.In mobile Internet fast development process, 4G, 3G, Wi-Fi, WiMax are the collection of audio, video data, transmission and share and established physical basis.
User is after use smart mobile phone is made a video recording, to the video content produced, can pass through data connecting line (or the wireless connections such as bluetooth, WIFI) is transferred in computer (PC or notebook computer) hard disk, transcoding, compression is carried out again by the image software on computer, and then use special network upload software to upload to the Internet, so just, the video taken by mobile phone can be realized, to issue, the object shared on the Internet.
In prior art, the shooting of video and uploading, cannot accomplish instant issue, limit the intensity of user to the demand for services of mobile video Web realease.
And because client is when real-time recording shares audio frequency and video, the file header form of client write buffering area is the description to whole file, at the end of recording one section of audio frequency and video, the head form of client there occurs change, and the data now uploaded onto the server have read end of file, but the head form of file is still unaltered head form, it is temporarily impaired that the file of server is play, and cannot directly play.
Summary of the invention
The object of the embodiment of the present invention is that proposing a kind of audio frequency and video Real-time Collection uploads and data processing method, and being intended to solve the audio-video document uploading recording in real time and the file uploaded can the problem of normal play.
The embodiment of the present invention is achieved in that a kind of audio frequency and video Real-time Collection is uploaded and data processing method, and described method comprises:
Acquisition terminal gathers audio/video flow and real-time coding, and the audio-video document being first form of N number of byte by the head form after coding writes the buffering area of acquisition terminal in real time;
While the described buffering area of write, real-time buffering area of reading also detects whether arrive the rear audio-video document end of coding, if do not arrive end of file, then the audio-video document being first form by buffering area head form is uploaded to server;
When described audio/video flow gathers complete, statistics is done to the audio-video document after the coding gathered and obtains whole audio-video document descriptor as second form, first form of audio-video document after the coding stored with described second form replacement buffering area;
When acquisition terminal detect read audio-video document end after coding time, jump to the head of audio-video document after the coding of buffering area, read N number of byte second form, and described second form is sent to server;
Server receives the audio-video document after the coding that acquisition terminal sends, and whether detect be last N number of byte of described audio-video document, if not, then stores the audio-video document after described coding; If so, then the last N byte received is write the head form of the audio-video document after its coding stored, the first form before replacing it.
Another object of the embodiment of the present invention is that proposing a kind of audio frequency and video Real-time Collection uploads and data handling system, and described system comprises: acquisition terminal, acquisition terminal operating system, server,
Acquisition terminal, comprises acquisition module, coding module, writing module, buffering area, reading detection module, upper transmission module, redirect and head form acquisition module,
Acquisition module, for gathering audio/video flow;
Coding module, for the real-time audio/video flow coding to gathering;
Writing module, for real-time be the buffering area that the audio-video document of first form of N number of byte writes acquisition terminal in real time by the head form after coding;
Buffering area, for the audio-video document after interim memory encoding;
Read detection module, for while the described buffering area of write, real-time buffering area of reading also detects whether read the rear audio-video document end of coding, if not, after then reading coding, audio-video document sends to transmission module, if so, then notifies that redirect and head form acquisition module start and performs;
Redirect and head form acquisition module, for according to reading the notice of checkout gear, jumping to the head of audio-video document after the coding of buffering area, reading N number of byte second form, and described second form is sent to upper transmission module;
Upper transmission module, upload to server for the real-time audio-video document being first form by the head form receiving the transmission of reading detection module, or second form of the N number of byte redirect received and head form acquisition module sent in real time is uploaded to server;
Acquisition terminal operating system, comprises first detection module, head form statistical module, first form replacement module,
First detection module, for detecting acquisition terminal, whether to gather audio/video flow complete, performs if then notify that second form statistical module starts;
Head form statistical module, for adding up whole audio-video document descriptor as second form;
First form replacement module, for first form of audio-video document after the coding with described second form replacement acquisition terminal buffering area storage;
Server comprises receiver module, the second detection module, second form replacement module, memory module;
Receiver module, for the audio-video document after the coding that reception acquisition terminal sends;
Whether the second detection module is last N number of byte for the audio-video document detected after the coding that receives, and if not, notice memory module starts and performs, and if so, notifies that second form replacement module starts and performs;
Second form replacement module, for the notice according to the second detection module, writes the head form of the audio-video document after the coding stored in memory module, the first form before replacing it by second form of the last N byte received;
Memory module, for the audio-video document after the coding that real-time storage acquisition terminal is uploaded.
Beneficial effect of the present invention
After the inventive method is changed by complete when the recording of client audio-video document and after the coding stored header file, jump to audio-video document head, obtain the header file after changing, send to server, and after the amended header file of last N number of byte that server finally receives, replace it the header file of front storage file with amended header file, the file of server stores is reduced complete, can normal play.The inventive method solves uploads audio frequency and video in real time, and the audio-video document of server stores is temporarily impaired cannot the problem of normal play.
Accompanying drawing explanation
Fig. 1 is that a kind of audio frequency and video Real-time Collection of the preferred embodiment of the present invention is uploaded and data processing method flow chart;
Fig. 2 is that a kind of audio frequency and video Real-time Collection of the preferred embodiment of the present invention is uploaded and data handling system structure chart.
Embodiment
In order to make object of the present invention, technical scheme and advantage clearly understand, below in conjunction with drawings and Examples, the present invention being further elaborated, for convenience of explanation, illustrate only the part relevant to the embodiment of the present invention.Should be appreciated that the specific embodiment that this place is described, only for explaining the present invention, not in order to limit the present invention.
After embodiment of the present invention method is changed by complete when the recording of client audio-video document and after the coding stored header file, jump to audio-video document head, obtain the header file after changing, send to server, and after the amended header file of last N number of byte that server finally receives, replace it the header file of front storage file with amended header file, the file of server stores is reduced complete, can normal play.The inventive method solves uploads audio frequency and video and the problem of normal play in real time.
Embodiment one
Fig. 1 is that a kind of audio frequency and video Real-time Collection of the preferred embodiment of the present invention is uploaded and data processing method flow chart; Said method comprising the steps of:
S101, acquisition terminal gathers audio/video flow and real-time coding, and the audio-video document being first form of N number of byte by the head form after coding writes the buffering area of acquisition terminal in real time;
First form of described N number of byte is the descriptor to whole audio-video document, N be greater than 1 positive integer; Such as with MP4 form encapsulation audio-video document first form be 4 bytes 00000000;
Described acquisition terminal can be the audio-video collection such as mobile phone, video camera terminal;
S102, while the described buffering area of write, real-time buffering area of reading also detects whether arrive the rear audio-video document end of coding, if do not arrive end of file, then the audio-video document being first form by buffering area head form is uploaded to server;
S103, when described audio/video flow gathers complete, statistics is done to the audio-video document after the coding gathered and obtains whole audio-video document descriptor as second form, first form of audio-video document after the coding stored with described second form replacement buffering area;
The operating system that this step is run by acquisition terminal performs; Described operating system can be the operating system that Android, apple etc. can run acquisition terminal.
Described descriptor comprises the header data information of audio-video document.
(before not terminating coding after namely starting coding to one section of audio/video flow) in cataloged procedure is carried out to one section of audio/video flow, the head form of the audio-video document of encapsulation is first form, when having encoded, the operating system that acquisition terminal runs is done statistics to the audio frequency and video recorded and is obtained whole audio-video document descriptor as second form, is second form (namely the head form of N number of byte of the audio-video document after the coding that buffering area stores after acquisition terminal has gathered changes) by the head form modifying of the audio-video document of encapsulation; And the head form of audio-video document after coding on uploading onto the server, be from start to finish first form;
S104, when acquisition terminal detect read audio-video document end after coding time, jump to the head of audio-video document after the coding of buffering area, read N number of byte second form, and described second form is sent to server;
Server is sent to by described second form to adopt the Internet ICP/IP protocol to send;
S105, server receives the audio-video document after the coding that acquisition terminal sends, and whether detect be last N number of byte of described audio-video document, if not, then stores the audio-video document after described coding; If so, then the last N byte received is write the head form of the audio-video document after its coding stored, the first form before replacing it.
If be the last N byte of audio-video document, showing that this N number of byte is the head form of file, is the descriptor to whole audio-video document.
Embodiment two
Fig. 2 is that a kind of audio frequency and video Real-time Collection of the preferred embodiment of the present invention is uploaded and data handling system structure chart; Described system comprises: acquisition terminal, acquisition terminal operating system, server.
Acquisition terminal, comprises acquisition module, coding module, writing module, buffering area, reading detection module, upper transmission module, redirect and head form acquisition module;
Acquisition module, for gathering audio/video flow;
Coding module, for the real-time audio/video flow coding to gathering;
Writing module, for real-time be the buffering area that the audio-video document of first form of N number of byte writes acquisition terminal in real time by the head form after coding;
Buffering area, for the audio-video document after interim memory encoding;
Read detection module, for while the described buffering area of write, real-time buffering area of reading also detects whether read the rear audio-video document end of coding, if not, after then reading coding, audio-video document sends to transmission module, if so, then notifies that redirect and head form acquisition module start and performs;
Redirect and head form acquisition module, for according to reading the notice of checkout gear, jumping to the head of audio-video document after the coding of buffering area, reading N number of byte second form, and described second form is sent to upper transmission module;
Upper transmission module, upload to server for the real-time audio-video document being first form by the head form receiving the transmission of reading detection module, or second form of the N number of byte redirect received and head form acquisition module sent in real time is uploaded to server.
Acquisition terminal operating system, comprises first detection module, head form statistical module, first form replacement module;
First detection module, for detecting acquisition terminal, whether to gather audio/video flow complete, performs if then notify that second form statistical module starts;
Head form statistical module, for adding up whole audio-video document descriptor as second form;
First form replacement module, for first form of audio-video document after the coding with described second form replacement acquisition terminal buffering area storage.
Server comprises receiver module, the second detection module, second form replacement module, memory module;
Receiver module, for the audio-video document after the coding that reception acquisition terminal sends;
Whether the second detection module is last N number of byte for the audio-video document detected after the coding that receives, and if not, notice memory module starts and performs, and if so, notifies that second form replacement module starts and performs;
Second form replacement module, for the notice according to the second detection module, writes the head form of the audio-video document after the coding stored in memory module, the first form before replacing it by second form of the last N byte received.
Memory module, for the audio-video document (comprising second form that a form is first form audio-video document and last N byte) after the coding that real-time storage acquisition terminal is uploaded.
Those having ordinary skill in the art will appreciate that, the all or part of step realized in above-described embodiment method can have been come by program command related hardware, described program can be stored in a computer read/write memory medium, and described storage medium can be ROM, RAM, disk, CD etc.
The foregoing is only preferred embodiment of the present invention, not in order to limit the present invention, all any amendments done within the spirit and principles in the present invention, equivalent replacement and improvement etc., all should be included within protection scope of the present invention.

Claims (5)

1. audio frequency and video Real-time Collection is uploaded and a data processing method, it is characterized in that, described method comprises:
Acquisition terminal gathers audio/video flow and real-time coding, and the audio-video document being first form of N number of byte by the head form after coding writes the buffering area of acquisition terminal in real time;
While the described buffering area of write, real-time buffering area of reading also detects whether arrive the rear audio-video document end of coding, if do not arrive end of file, then the audio-video document being first form by buffering area head form is uploaded to server;
When described audio/video flow gathers complete, statistics is done to the audio-video document after the coding gathered and obtains whole audio-video document descriptor as second form, first form of audio-video document after the coding stored with described second form replacement buffering area;
When acquisition terminal detect read audio-video document end after coding time, jump to the head of audio-video document after the coding of buffering area, read N number of byte second form, and described second form is sent to server;
Server receives the audio-video document after the coding that acquisition terminal sends, and whether detect be last N number of byte of described audio-video document, if not, then stores the audio-video document after described coding; If so, then the last N byte received is write the head form of the audio-video document after its coding stored, the first form before replacing it.
2. audio frequency and video Real-time Collection as claimed in claim 1 is uploaded and data processing method, and it is characterized in that, first form of described N number of byte is the descriptor to whole audio-video document, N be greater than 1 positive integer; Described descriptor comprises the header data information of audio-video document.
3. audio frequency and video Real-time Collection as claimed in claim 1 is uploaded and data processing method, it is characterized in that, described " do statistics to the audio-video document after the coding gathered and obtain whole audio-video document descriptor as second form; first form of audio-video document after the coding stored with described second form replacement buffering area ", the operating system run by acquisition terminal performs.
4. audio frequency and video Real-time Collection as claimed in claim 1 is uploaded and data processing method, it is characterized in that, is sent to by described second form server to adopt the Internet ICP/IP protocol to send.
5. audio frequency and video Real-time Collection is uploaded and a data handling system, it is characterized in that, described system comprises: acquisition terminal, acquisition terminal operating system, server,
Acquisition terminal, comprises acquisition module, coding module, writing module, buffering area, reading detection module, upper transmission module, redirect and head form acquisition module,
Acquisition module, for gathering audio/video flow;
Coding module, for the real-time audio/video flow coding to gathering;
Writing module, for real-time be the buffering area that the audio-video document of first form of N number of byte writes acquisition terminal in real time by the head form after coding;
Buffering area, for the audio-video document after interim memory encoding;
Read detection module, for while the described buffering area of write, real-time buffering area of reading also detects whether read the rear audio-video document end of coding, if not, after then reading coding, audio-video document sends to transmission module, if so, then notifies that redirect and head form acquisition module start and performs;
Redirect and head form acquisition module, for according to reading the notice of checkout gear, jumping to the head of audio-video document after the coding of buffering area, reading N number of byte second form, and described second form is sent to upper transmission module;
Upper transmission module, upload to server for the real-time audio-video document being first form by the head form receiving the transmission of reading detection module, or second form of the N number of byte redirect received and head form acquisition module sent in real time is uploaded to server;
Acquisition terminal operating system, comprises first detection module, head form statistical module, first form replacement module,
First detection module, for detecting acquisition terminal, whether to gather audio/video flow complete, performs if then notify that second form statistical module starts;
Head form statistical module, for adding up whole audio-video document descriptor as second form;
First form replacement module, for first form of audio-video document after the coding with described second form replacement acquisition terminal buffering area storage;
Server comprises receiver module, the second detection module, second form replacement module, memory module;
Receiver module, for the audio-video document after the coding that reception acquisition terminal sends;
Whether the second detection module is last N number of byte for the audio-video document detected after the coding that receives, and if not, notice memory module starts and performs, and if so, notifies that second form replacement module starts and performs;
Second form replacement module, for the notice according to the second detection module, writes the head form of the audio-video document after the coding stored in memory module, the first form before replacing it by second form of the last N byte received;
Memory module, for the audio-video document after the coding that real-time storage acquisition terminal is uploaded.
CN201410468018.4A 2014-09-15 2014-09-15 A kind of audio frequency and video gather upload and data processing method and system in real time Expired - Fee Related CN104219538B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410468018.4A CN104219538B (en) 2014-09-15 2014-09-15 A kind of audio frequency and video gather upload and data processing method and system in real time

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410468018.4A CN104219538B (en) 2014-09-15 2014-09-15 A kind of audio frequency and video gather upload and data processing method and system in real time

Publications (2)

Publication Number Publication Date
CN104219538A true CN104219538A (en) 2014-12-17
CN104219538B CN104219538B (en) 2018-01-16

Family

ID=52100615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410468018.4A Expired - Fee Related CN104219538B (en) 2014-09-15 2014-09-15 A kind of audio frequency and video gather upload and data processing method and system in real time

Country Status (1)

Country Link
CN (1) CN104219538B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254806A (en) * 2016-07-28 2016-12-21 福州瑞芯微电子股份有限公司 A kind of Video data guard method and device
CN114173074A (en) * 2021-10-22 2022-03-11 广州市奥威亚电子科技有限公司 Recording and storing method and format conversion method for video format conversion

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777265A (en) * 2005-08-19 2006-05-24 上海晨兴电子科技有限公司 Image-sound synchronous recording and playing method
CN101399999A (en) * 2007-09-28 2009-04-01 大唐移动通信设备有限公司 3gp file generating method and device, 3gp file processing method and device
CN102098304A (en) * 2011-01-25 2011-06-15 北京天纵网联科技有限公司 Method for simultaneously recording and uploading audio/video of mobile phone
US20120284765A1 (en) * 2011-05-04 2012-11-08 Cisco Technology, Inc. Sharing of Subscriber-Recorded Digital Video Recorder Content

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1777265A (en) * 2005-08-19 2006-05-24 上海晨兴电子科技有限公司 Image-sound synchronous recording and playing method
CN101399999A (en) * 2007-09-28 2009-04-01 大唐移动通信设备有限公司 3gp file generating method and device, 3gp file processing method and device
CN102098304A (en) * 2011-01-25 2011-06-15 北京天纵网联科技有限公司 Method for simultaneously recording and uploading audio/video of mobile phone
US20120284765A1 (en) * 2011-05-04 2012-11-08 Cisco Technology, Inc. Sharing of Subscriber-Recorded Digital Video Recorder Content

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106254806A (en) * 2016-07-28 2016-12-21 福州瑞芯微电子股份有限公司 A kind of Video data guard method and device
CN106254806B (en) * 2016-07-28 2019-05-21 福州瑞芯微电子股份有限公司 A kind of Video data guard method and device
CN114173074A (en) * 2021-10-22 2022-03-11 广州市奥威亚电子科技有限公司 Recording and storing method and format conversion method for video format conversion
CN114173074B (en) * 2021-10-22 2023-11-03 广州市奥威亚电子科技有限公司 Recording and storing method for video format conversion and format conversion method

Also Published As

Publication number Publication date
CN104219538B (en) 2018-01-16

Similar Documents

Publication Publication Date Title
TWI465113B (en) Content reproduction system, content reproduction apparatus, program, content reproduction method, and providing content server
US8875208B1 (en) High quality multimedia transmission from a mobile device for live and on-demand viewing
US9538183B2 (en) Audio-visual content delivery with partial encoding of content chunks
CN102694831B (en) Mobile terminal streaming compensation data method and system, content distributing network
CN108965883A (en) The system and method that video content is encoded using virtual intra frame
CN102811373A (en) Method for carrying out video broadcast on Internet and mobile Internet by mobile terminal
US11381816B2 (en) Method and system for real-time content-adaptive transcoding of video content on mobile devices to save network bandwidth during video sharing
CN108881931B (en) Data buffering method and network equipment
JP6352931B2 (en) Apparatus and method for transmitting and receiving multimedia data in a hybrid network
CN104581406A (en) Network video recording and playback system and method
CN102547444A (en) Method for optimizing play of real-time video monitoring record
TWI762465B (en) Method and system to share a snapshot extracted from a video transmission
KR20150106351A (en) Method and system for playback of motion video
CN101902524A (en) Mobile phone capable of being taken as video source of live video system and audio-video transmission method
CN102378001A (en) Mobile terminal supporting picture live broadcast mode, video live broadcast method thereof and system thereof
CN104639900A (en) RTMP-to-M3U8 video slicing system and method
CN110225399B (en) Streaming media processing method and device, computer equipment and storage medium
US10033930B2 (en) Method of reducing a video file size for surveillance
CN109040818B (en) Audio and video synchronization method, storage medium, electronic equipment and system during live broadcasting
CN106385627B (en) video encoding method and apparatus
US9571790B2 (en) Reception apparatus, reception method, and program thereof, image capturing apparatus, image capturing method, and program thereof, and transmission apparatus, transmission method, and program thereof
CN110996122A (en) Video frame transmission method and device, computer equipment and storage medium
CN104219538A (en) Real-time acquiring and uploading and data processing method and system for audio and video
JP2010011287A (en) Image transmission method and terminal device
US11336902B1 (en) Systems and methods for optimizing video encoding

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C53 Correction of patent of invention or patent application
CB02 Change of applicant information

Address after: The central Shenzhen city of Guangdong Province, 518057 Keyuan Road, Nanshan District science and Technology Park No. 15 Science Park Sinovac A Building 1 unit 403, No. 405 unit

Applicant after: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

Address before: Unit B4 9 building 518057 Guangdong city of Shenzhen province Nanshan District high in the four EVOC Technology Building No. 31

Applicant before: Shenzhen Yunzhou Multimedia Technology Co., Ltd.

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: 20180116

Termination date: 20190915