CN103095752B - Method for recording, the apparatus and system of voice and video - Google Patents
Method for recording, the apparatus and system of voice and video Download PDFInfo
- Publication number
- CN103095752B CN103095752B CN201110336537.1A CN201110336537A CN103095752B CN 103095752 B CN103095752 B CN 103095752B CN 201110336537 A CN201110336537 A CN 201110336537A CN 103095752 B CN103095752 B CN 103095752B
- Authority
- CN
- China
- Prior art keywords
- recording
- video
- voice
- file
- request message
- 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.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 83
- 230000008569 process Effects 0.000 claims description 27
- 238000006243 chemical reaction Methods 0.000 claims description 6
- 230000000977 initiatory effect Effects 0.000 claims description 5
- 230000006854 communication Effects 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 9
- 238000005516 engineering process Methods 0.000 description 9
- 238000012790 confirmation Methods 0.000 description 8
- 239000000284 extract Substances 0.000 description 6
- 230000011664 signaling Effects 0.000 description 5
- 238000012545 processing Methods 0.000 description 4
- 230000007547 defect Effects 0.000 description 3
- 238000011161 development Methods 0.000 description 3
- 238000004891 communication Methods 0.000 description 2
- 238000012986 modification Methods 0.000 description 2
- 230000004048 modification Effects 0.000 description 2
- 238000013515 script Methods 0.000 description 2
- 230000000694 effects Effects 0.000 description 1
- 230000006872 improvement Effects 0.000 description 1
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/14—Systems for two-way working
- H04N7/15—Conference systems
- H04N7/155—Conference systems involving storage of or access to video conference sessions
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Telephonic Communication Services (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
The invention discloses a kind of method for recording of voice and video, apparatus and system.Wherein, this method includes:In the communication process of network video telephone client, the voice and video recording request message sent in network video telephone client is received, wherein, network video telephone client is realized by carrier of browser by video player;According to voice and video recording request message recording network video telephone client send voice and video Media Stream and generate recorded file.By present invention, avoiding installing voice and video in correlation technique to need to install the inconvenience that control is brought, with very strong convenience, improving Consumer's Experience.
Description
Technical Field
The invention relates to the field of communication, in particular to a method, a device and a system for recording voice and video.
Background
There are many defects in the existing voice and video recording technology. On one hand, people can record images through DV, mobile phones and other ways, but the equipment price is expensive, a large amount of hardware and software support is needed, and the cheapness is not achieved. On the other hand, the development of internet technology enables video equipment such as a camera to be installed on a Personal Computer (PC) to make up for the unicity of people in communication, but the development of internet technology also has a lot of inconvenience, and when a voice video is recorded, some professional software needs to be installed and set, and the voice video cannot be shared with other people in time after being recorded, so that the development of internet technology is not convenient. In addition, although the existing media server has video recording and playback functions, a terminal user cannot actively acquire recording information and has no practicability; meanwhile, the existing information receiving is always passive at will, potential safety hazards exist, and the safety is not achieved.
Aiming at the problem that users need to install corresponding controls when recording voice and video in the related technology, so that the voice and video recording is inconvenient, an effective solution is not provided at present.
Disclosure of Invention
The invention provides a voice and video recording scheme, aiming at solving the problem of inconvenience in voice and video recording caused by the fact that corresponding controls need to be installed when voice and video recording is carried out.
According to an aspect of the present invention, there is provided a method for recording a voice video, including: receiving a voice video recording request message sent by a network video telephone client in the call process of the network video telephone client, wherein the network video telephone client is realized by a video player by taking a browser as a carrier; and recording the voice video media stream sent by the network video telephone client according to the voice video recording request message and generating a recording file.
Preferably, the recording a voice video media stream sent by a network video call client according to the voice video recording request message and generating a recording file includes: distributing and recording resources required by the voice video media stream; and generating a recording file of the voice video media stream sent by the network video telephone client according to the voice video recording request message.
Preferably, the generating a recording file of the voice video media stream sent by the network video telephone client according to the voice video recording request message includes: judging that the voice and video recording request message requests to record voice and/or images; acquiring media data corresponding to the content requested to be recorded by the voice and video recording request message in the voice and video media stream sent by the network video telephone client; and storing the acquired media data as a recording file.
Preferably, before storing the acquired media data as a recording file, the method further comprises: and decoding and encoding the acquired media data to generate media data consistent with a preset format.
Preferably, after recording the audio video media stream sent by the network video telephone client according to the audio video recording request message and generating the recording file, the method further includes: uploading the recording file to a WEB page WEB server; after uploading the recording file to the WEB page WEB server, the method further comprises: and the client plays the recording file stored by the WEB server.
Preferably, before recording the audio video media stream sent by the network video telephone client according to the audio video recording request message and generating the recording file, the method further includes: and authenticating the recording authority of the network video telephone client.
Preferably, the information carried in the voice video recording request message includes at least one of: the type of the media to be recorded, the format of the recorded file, the name of the recorded file, the information of the network video call client initiating the voice and video recording request message, the Internet Protocol (IP) address of the WEB server and the media stream to be recorded.
According to another aspect of the present invention, there is provided an apparatus for recording a voice video, comprising: the receiving module is used for receiving a voice video recording request message sent by the network video telephone client in the call process of the network video telephone client; and the recording module is used for recording the voice video media stream sent by the network video telephone client according to the voice video recording request message and generating a recording file.
Preferably, the recording module includes: the distribution unit is used for distributing and recording resources required by the voice video media stream; the judging unit is used for judging that the voice and video recording request message requests to record voice and/or images; the acquiring unit is used for acquiring media data corresponding to the content requested to be recorded by the voice and video recording request message in the voice and video media stream sent by the network video telephone client; and the storage unit is used for storing the acquired media data into a recording file.
Preferably, the recording module further comprises: and the conversion unit is used for decoding and encoding the acquired media data to generate the media data consistent with the preset format.
Preferably, the above apparatus further comprises: and the uploading module is used for uploading the recording file to a webpage WEB server.
Preferably, the above apparatus further comprises: and the authentication module is used for authenticating the recording authority of the network video telephone client.
According to another aspect of the present invention, there is provided a recording system of a voice video, comprising: the system comprises a network video telephone server, a WEB server and a network video telephone client, wherein the network video telephone server comprises the voice and video recording device; the WEB server is used for storing the recording file uploaded by the network video telephone server; and the network video telephone client is realized by a video player by taking a browser as a carrier and is used for sending a voice video recording request message to a network video telephone server and playing the recording file stored by the WEB server.
According to the invention, the network video telephone client side which is realized by taking the browser as a carrier and a video player (FlashPlayer) in the network video telephone system is adopted to record the voice and video in the call process, and the recording can be implemented by opening a webpage without downloading any control, so that the inconvenience caused by the need of installing the control in the related technology for installing the voice and video is avoided, the convenience is very high, and the user experience is improved.
Drawings
The accompanying drawings, which are included to provide a further understanding of the invention and are incorporated in and constitute a part of this application, illustrate embodiment(s) of the invention and together with the description serve to explain the invention without limiting the invention. In the drawings:
fig. 1 is a block diagram of a configuration of a system for recording a voice video according to an embodiment of the present invention;
fig. 2 is a block diagram of a structure of a recording system for voice and video according to a first embodiment of the present invention;
fig. 3 is a block diagram of a structure of a voice and video recording apparatus according to an embodiment of the present invention;
fig. 4 is a block diagram of a recording module of the apparatus for recording a voice video according to an embodiment of the present invention;
fig. 5 is a block diagram of a preferred embodiment of an apparatus for recording a voice and video according to an embodiment of the present invention;
fig. 6 is a block diagram of a second preferred embodiment of an apparatus for recording audio and video according to an embodiment of the present invention;
fig. 7 is a flowchart of a recording method of a voice video according to an embodiment of the present invention;
fig. 8 is a flowchart of a method for recording a voice and video according to a third embodiment of the present invention.
Detailed Description
The invention will be described in detail hereinafter with reference to the accompanying drawings in conjunction with embodiments. It should be noted that the embodiments and features of the embodiments in the present application may be combined with each other without conflict.
Fig. 1 is a block diagram of a structure of a recording system for audio and video according to an embodiment of the present invention, as shown in fig. 1, the system includes: a network video telephony client 10, a network video telephony server 20, and a WEB page (WEB) server 30. Wherein,
the network video telephone client 10, which is implemented by a video player with a browser as a carrier, is used for sending a voice video recording request message to the network video telephone server 20 and playing a recording file stored in the WEB server 30.
The network video telephone server 20 is configured to receive a voice and video recording request message sent by the network video telephone client 10, record a voice and video media stream sent by the network video telephone client 10 according to the voice and video recording request message, generate a recording file, and upload the recording file to the WEB server 30 after the recording is completed.
And the WEB server 30 is used for storing the recording file uploaded by the network video telephone server 20, and additionally, can be used for registering and managing the information of the network video telephone client 10 and authenticating the identity authority of the network video telephone client 10.
In view of the above-mentioned recording system of the voice and video, the network video phone client 10 uses the web page as a carrier, and is implemented by a video Player (Flash Player) with powerful functions and wide distribution, and the voice and video call can be performed by opening the web page without downloading any control, so that the network video phone client can be easily deployed on each device and platform. The WEB server 30 may perform authentication for the network video phone client 10, and after the authentication is passed, the network video phone client 10 establishes a voice video call connection.
During the voice video call, the network video phone client 10 may send a voice video recording request message to the network video phone server 20, and the network video phone server 20 records the media stream according to the voice video recording request message. To enhance security, before the network video telephony server 20 performs recording, the network video telephony server 20 may perform an authentication process on the network video telephony client 10 to authenticate the recording authority of the network video telephony client 10. Preferably, the network video phone client 10 may request to record the voice or video media stream of the local terminal, and may also request to record the voice or video media stream of the voice and video call counterpart.
The network video phone client 10 may send a voice and video recording stop message to end the recording process, after receiving the voice and video recording stop message, the network video phone server 20 ends the recording process and generates a recording file, uploads the generated recording file to the WEB server 30, and the network video phone client 10 may play the recording file stored on the WEB server 30 as needed. Preferably, in the above-mentioned audio/video recording process, a voice video call failure or interruption may occur, or the network video phone client 10 ends the voice video call without sending a voice video recording end message, in which case the network video phone server 20 may actively end the recording process and generate the recording file.
When the recording file needs to be played, the network video telephone client 10 obtains the available recording file list of the network video telephone client 10 from the WEB server 30, displays the recording file list on the network video telephone client 10, and clicks to play the required recording file as required.
The embodiment of the invention provides a voice and video recording system based on network video call, which is realized by a video Player Flash Player through a network video telephone client by taking a browser as a carrier, does not need to download any control during recording, can be implemented by opening a webpage, avoids the defect that the control needs to be installed when the voice and video are installed in the related technology, and has strong convenience; moreover, the recording needs the authentication of the identity authority of the network video telephone server, so that the method has good safety; meanwhile, the recorded file is stored in the WEB server, the local storage space of the client is not occupied, a user can acquire and play the recorded file in real time according to needs, and the method has good practicability.
The following is described by way of specific examples.
Example one
Fig. 2 is a block diagram of a structure of a voice and video recording system according to an embodiment of the present invention, and as shown in fig. 2, the system includes: a web video telephony client (FlashPhoneClient)40, a web Server (WebServer)50, a web video telephony Server (flashphoneclerver) 60, an SIP protocol stack 70, and an SIP signaling gateway (SIP Server) 80.
Flashphone client 40: the FlashPhone client and the human-computer interface of the user are SWF files embedded with as scripts, and the Flash Player is responsible for displaying the SWF files. Interface display for calling, answering, hanging up, recording, playing, issuing video, and digital key-press; the transceiving of the media stream is performed by standard (ActionScript) by informing the flashserver 60 to perform (RPC) actions using a remote procedure call.
WebServer 50: the method is used for registering and managing user information, authenticating user identity authority and storing audio and video recording files of users.
FlashPhoneServer 60: the system is used for executing RPC calls from the FlashPhoneClient40, sending the RPC calls to the FlashPhoneClient40, and taking charge of signaling conversion between the FlashPhoneClient and an SIP protocol stack and media conversion between the FlashPhoneClient and other SIP telephones. The flashhomeserver 60 may include: a code stream analysis (rtmpnanalyzer) module 602; the device is mainly used for separating a signaling stream and an audio/video media stream and sending the signaling stream and the audio/video media stream to a corresponding control module for processing; and an audio/video recording (Recorder) module 604, configured to receive an audio/video media stream at the RTMP analyst 602 end, perform coding and decoding on the media stream, and generate a recording file in a related file format.
The SIP protocol stack 70: the system comprises a network element, a service module and a service module, wherein the network element is used for receiving indication messages of an upper layer service module, analyzing, sorting and storing the messages and finally sending the messages to an external network element; and receiving the state messages sent by the external network element, analyzing, sorting and storing the messages, and then feeding the messages back to the upper-layer service module.
SIP Server 80: for forwarding of SIP signaling and conversion between SIP protocol and other protocols.
In the embodiment of the invention, the WebServer50 authenticates the identity of the flashserver 40, after the identity authentication is passed, the flashserver 40 sends a registration request message to the flashserver 60, the flashserver 60 receives the registration request message and sends a registration event to the SIP protocol stack 70, the SIP protocol stack 70 responds to the registration event and sends a SIP message with the type of registration (Register) to the SIP server 80, and the SIP server 80 finishes registration and returns an acknowledgement message after receiving the registration message.
The FlashPhone client40 sends a call message to initiate a voice video call, the FlashPhone Server60 sends a call event to the SIP protocol stack 70 after receiving the call message, the SIP protocol stack 70 further sends an Invite message to the SIP Server 80, the SIP Server 80 receives the call message and then continues the called FlashPhone client, and sends a call arrival event to the FlashPhone Server60, and the FlashPhone Server60 establishes a call connection between the FlashPhone client40 and the called FlashPhone client.
The flashphone client40 can perform a voice video call through the established call connection, during the call, the flashphone client40 can send a video recording request to the RTMP analyst module 602, the RTMP analyst 602 can authenticate whether the flashphone client40 has a recording right after receiving the video recording request, if so, the RTMP analyst module 602 sends the received voice video media stream to the Recorder module 604, the Recorder module 604 allocates resources required for voice video recording, analyzes each parameter in the voice video recording request message, if recording voice, extracts an audio stream, if recording an image, extracts a video stream, further, can judge whether the encoding format of the obtained code stream is consistent with the file format to be stored, if not, sequentially performs related decoding and encoding, records the processed voice video media stream, and generates a recording file.
When the recording needs to be finished, the FlashPhone client40 sends a voice video recording end message to the FlashPhone Server60, and after the FlashPhone Server60 receives the voice video recording end message, the recording of the voice video file is stopped, the FlashPhone client40 is informed that the recording process is finished, and the recorded file is uploaded to the WebServer 50. When needed, the flashphone client40 can acquire an available recording file list from the WebServer50 according to the requirement, and the flashphone client40 can play the recording files in the available recording file list in real time.
According to the embodiment of the present invention, there is further provided a device for recording a voice and a video, which can be located in the network video telephony server (i.e. the network video telephony server 20 in fig. 1 or the flashserver 60 in fig. 2) of the system for recording a voice and a video provided by the above embodiment, and is used for recording a voice and a video.
Fig. 3 is a block diagram of a structure of an apparatus for recording a voice and video according to an embodiment of the present invention, as shown in fig. 3, the apparatus includes: a receiving module 90 and a recording module 100. The receiving module 90 is configured to receive a voice video recording request message sent by a network video telephone client during a call of the network video telephone client; and the recording module 100 is connected to the receiving module 90, and is configured to record the voice video media stream sent by the network video telephone client according to the voice video recording request message received by the receiving module 90, and generate a recording file.
By the embodiment of the invention, the network video telephone FlashPhone service system is utilized, a voice video recording request can be initiated at the network video telephone client in the call process, the network video telephone client is realized by a video Player Flash Player by taking a browser as a carrier, and the webpage can be opened without installing any control. After the receiving module receives a voice and video recording request sent by the network video telephone client, the recording module realizes the recording process, solves the problem of inconvenient voice and video recording in the related technology, and achieves the effect of convenient and quick voice and video recording.
In a preferred implementation manner of the embodiment of the present invention, as shown in fig. 4, the recording module 100 may include: an allocating unit 1002, configured to allocate resources required for recording a voice video media stream; a judging unit 1004, configured to judge that the voice and video recording request message requests to record voice and/or images; an obtaining unit 1006, connected to the judging unit 1004, configured to obtain, according to a judgment result of the judging unit 1004, media data corresponding to a content requested to be recorded by the voice and video recording request message in a voice and video media stream sent by the network video telephone client; and a storage unit 1008 connected to the obtaining unit 1006, for storing the obtained media data as a recording file. Through the preferred embodiment, the recording process of the voice and the video is realized.
In the process of a call, the network video telephone client can request to record the voice video media stream of the local terminal and/or the opposite call terminal and request to generate a recording file with a preset format. In practical application, it can be determined whether the format of the recording file requested to be recorded and generated by the network video phone client is consistent with the format of the acquired media stream, if so, the recording module 100 directly records and generates the recording file in the format, if not, the media stream can be decoded and encoded to make the format of the media stream consistent with the format requested to be recorded, and the recording module 100 records and generates the recording file consistent with the predetermined format. In a preferred implementation manner of the embodiment of the present invention, in order to implement encoding and decoding of a media stream, the recording module 100 may further include: a conversion unit 10010, configured to perform decoding and encoding processing on the acquired media data to generate media data in accordance with a predetermined format. Through the preferred embodiment, the recording file format can be set as required, and the flexibility of recording the voice and video is improved.
In order to acquire and play the recording file in real time as required by the network video telephone client, after the recording module 100 finishes recording and generates the recording file, the device can upload the recording file to the WEB server, and the network video telephone client can acquire an available recording file list from the WEB server and play the recording file stored on the WEB server as required. In a preferred implementation manner of the embodiment of the present invention, in order to upload a recording file, as shown in fig. 5, the apparatus may further include: and an uploading module 110, configured to upload the recording file to a WEB page WEB server. Through the preferred embodiment, the recorded file is stored in the WEB server, and a user can acquire and play the recorded file in real time according to needs, so that the method has good practicability.
In consideration of the security of the voice and video recording process, the receiving module 90 may authenticate whether the network video phone client has the recording right after receiving the voice and video recording request message sent by the network video phone client, and if so, the recording module 100 records the media stream and generates a recording file. In a preferred implementation manner of the embodiment of the present invention, in order to authenticate the network video phone client, as shown in fig. 6, the apparatus further includes: and the authentication module 120 is connected with the receiving module 90 and is used for authenticating the recording authority of the network video telephone client. By the preferred embodiment, the safety of voice and video recording is enhanced.
It should be understood by those skilled in the art that, in this embodiment, the apparatus for recording voice and video may be implemented as a logic functional entity on a network video telephone server, or may be implemented as an independent entity in combination with a network video telephone service system, and the embodiment of the present invention is not limited thereto.
According to the embodiment of the invention, the invention further provides a voice video recording method, and the method can be realized by the system and the device provided by the embodiment of the invention.
Fig. 7 is a flowchart of a method for recording a voice video according to an embodiment of the present invention, as shown in fig. 7, the method includes the following steps (step S702-step S704):
step S702, in the conversation process of the network video telephone client, receiving a voice video recording request message sent by the network video telephone client, wherein the network video telephone client is realized by a video player by taking a browser as a carrier;
in a preferred implementation manner of the embodiment of the present invention, the voice video recording request message sent by the network video telephony client includes, but is not limited to: the method comprises the following steps of recording the type of media to be recorded, the format of a recording file, the name of the recording file, information of a network video call client initiating a voice and video recording request message, an Internet Protocol (IP) address of a WEB server, media streams needing to be recorded and the like. It can be determined by the type of media to be recorded, whether speech, images, or both are to be recorded. The recording of the media stream of the home terminal, the call opposite terminal or the home terminal and the call opposite terminal can be confirmed through the media stream information required to be recorded, so that the corresponding media stream is recorded and a recording file is generated. Whether the format of the media stream needs to be converted can be judged through the format of the recording file, so that the media stream can be generated to be consistent with the format of the requested recording file. Through the preferred embodiment, the information such as the content of the recorded voice video and the format of the recorded file can be flexibly selected, and the flexibility of the recorded voice video is enhanced.
Step S704, recording the audio video media stream sent by the network video phone client according to the audio video recording request message, and generating a recording file.
In a preferred implementation manner of the embodiment of the present invention, the recording a voice video media stream sent by a network video telephony client according to the voice video recording request message and generating a recording file includes, but is not limited to: allocating resources required for recording the voice video media stream, such as space for temporarily storing a recording file; and generating a recording file of the voice video media stream sent by the network video telephone client according to the voice video recording request message. The allocated resources may be used to store the generated recording file, and in practical applications, may also be used as a buffer for the media stream. Through the preferred embodiment, the generated recording file can be stored in the allocated resources, does not occupy the local space of the network video telephone client, and has good practicability.
According to the type of the media to be recorded carried in the voice and video recording request message, the type of the media to be recorded can be judged, and only the media stream requested to be recorded needs to be recorded in the recording process, for example, the voice can be recorded in a video call, so that only the media stream corresponding to the voice can be recorded in the recording process. In a preferred implementation manner of the embodiment of the present invention, it may be determined that the voice video recording request message requests to record voice and/or images; acquiring media data corresponding to the content requested to be recorded by the voice and video recording request message in the voice and video media stream sent by the network video telephone client; and storing the acquired media data as the recording file. By the preferred embodiment, the required content can be flexibly recorded.
In view of the method of the above preferred embodiment, in practical applications, the format of the file requested to be recorded may not be consistent with the format of the media stream, and in this case, the media stream may be decoded and encoded to make the format of the processed media stream consistent with the format of the file requested to be recorded, so as to generate a recording file in the file format requested to be recorded. In a preferred implementation manner of the embodiment of the present invention, before storing the acquired media data as a recording file, decoding and encoding the acquired media data may be further included to generate media data in accordance with a predetermined format. The predetermined format may be set by a user through a network video client, for example, a format in which a recording file is carried in the above-mentioned audio/video recording request message, or may also be set by a network side and set as a format supported by the network side. By the preferred embodiment, the format of the recording file can be flexibly selected, and better compatibility is achieved.
In order to acquire and play the recording file in real time as required by the network video telephone client, the recording file can be uploaded to a WEB server after recording is completed, and the network video telephone client acquires an available recording file list from the WEB server and selects to play the recording file as required. The present invention is not limited to the above-mentioned scheme, and may also send the received recording file segment to the WEB server in real time during the recording process, which is not specifically limited herein. In a preferred implementation manner of the embodiment of the present invention, after recording the audio video media stream sent by the network video phone client according to the audio video recording request message and generating the recording file, the method may further include: and uploading the recording file to a webpage WEB server. After uploading the recording file to the WEB page WEB server, the network video telephone client can play the recording file stored in the WEB server. Through the preferred embodiment, the recording file can be acquired and played in real time as required, and the method has good practicability.
After receiving a voice and video recording request message sent by a network video telephone client, the security is an important problem of voice and video recording, and the network video telephone client can be authenticated whether to have the recording authority or not, and if so, the media stream is recorded and a recording file is generated. In a preferred implementation manner of the embodiment of the present invention, in order to authenticate the network video phone client, before recording the voice video media stream sent by the network video phone client according to the voice video recording request message and generating the recording file, the method may further include: and authenticating the recording authority of the network video telephone client. By the preferred embodiment, the safety of voice and video recording is enhanced.
According to the embodiment of the invention, the network video telephone client side which is realized by taking the browser as a carrier and the video player FlashPlayer in the network video telephone system is utilized to record the voice and video in the call process, and the recording can be implemented by opening the webpage without downloading any control, so that the inconvenience caused by the need of installing the control in the related technology for installing the voice and video is avoided, the convenience is very high, and the user experience is improved.
The following is described by way of specific examples.
Example two
The embodiment of the invention provides a voice and video recording method in a network video telephone FlashPhone system, which comprises the following steps:
step 1, opening a webpage and logging in a FlashPhone client. The client acquires user information from the WebServer for matching, enters a FlashPhone client interface after passing identity authentication, activates an audio/video recording button on the interface if the user has recording authority, and otherwise, sets grey to disallow recording.
And 2, registering the user information. The FlashPhoneClient calls a remote method Register at the service side to send a registration request message, wherein the message comprises a user name id, a password, operation authority information and an IP address of an SIP Server. The service side sends registration event to the protocol stack after receiving the registration request message, the protocol stack further sends SIP message to the SIP Server: and the Register, after receiving the message, the SIP Server returns a confirmation message to the protocol stack, the protocol stack returns a registration confirmation event to the service side in sequence, and the service side notifies the FlashPhone client that the registration is successful through the callback RegOk.
And step 3, establishing a call event. The FlashPhone client of the user A calls a remote method Call to initiate a Call, the message comprises a user name id and an opposite terminal number, after receiving the Call, the service side sends a Call event to a protocol stack, the protocol stack further sends an Invite message to a SIP Server, the SIP Server continues the user B after receiving the Call event, the service side sends an event that the Call arrives, the service side further calls an income event of the user B to inform that the Call arrives, the user B presses an answering key on an interface and calls a remote process accept of the service side to inform that the service side receives the Call, the service side sends a state value of the current Call to the protocol stack and waits for a confirmation message of the protocol stack, after receiving the confirmation message, the service side informs the user B that the Call is established by calling an establish command, at the moment, the service side issues a home terminal audio and calls a publish command to play the opposite terminal audio and video command.
And 4, the call is in a hold state, and the recording event occurs. The method mainly comprises the following steps:
(1) the FlashPhone client of the user A calls a remote method record to send an audio and video recording request message to an RTMP analyzer module of the service side, wherein the message comprises media types (voice, images, voice and images) to be recorded, code stream names (required by a local terminal, an opposite terminal or the opposite terminal of the local terminal), a recording file format, a file name and an Internet protocol address of terminal user information WebServer initiating a recording request.
(2) After receiving the message, the RTMP Analyser module judges whether the recording operation is required, firstly authenticates whether the user has the recording authority, and if so, sends the received audio/video media stream to the Recorder module for processing.
(3) Further, after receiving the code stream, the Recorder module starts to allocate resources required by audio and video recording, analyzes each parameter in the recording request message, extracts an audio stream if a voice is recorded, extracts a video stream if an image is recorded, further judges whether the coding format of the obtained code stream is consistent with the format of a file to be stored, and sequentially performs related decoding and coding if the coding format of the obtained code stream is inconsistent with the format of the file to be stored, and stores the obtained media data as a recording file with a related file name; if the file names are consistent with the file names, the obtained media data are directly saved as recording files in the related file names and formats.
And 5, recording stop events. The method mainly comprises the following steps:
(1) the FlashPhone client of the user A calls the remote method nonredirect to send a request message for stopping audio and video recording to the service side.
(2) And after receiving the message, the service side stops recording the file, informs the FlashPhoneClient of completing the recording process through calling back RecOK, and uploads the recorded file to the WebServer.
And 6, the client acquires the available recording file list of the user from the WebServer, and displays the available recording file list on a client interface, and the user clicks to play the available recording file list as required.
EXAMPLE III
Fig. 8 is a flowchart of a voice and video recording method according to a third embodiment of the present invention, as shown in fig. 8, the method includes the following steps (step S802-step S812):
and step S802, opening a webpage and logging in the FlashPhone client.
In the step S802, the user opens the web page to generate a login page of the FlashPhone, and after inputting a valid user name and password, the client obtains user information from the WebServer to perform matching, where the user information includes a user name id, a password, and some operation authority information, such as audio/video recording authority, and enters the FlashPhone client interface after passing identity authentication, and if the user has the recording authority, an audio/video recording button on the interface is activated, otherwise, the user is grayed out, and recording is not allowed.
Step S804, clicking the Reg button to register the user information in the SIP Server.
The step S804 may include: the FlashPhoneClient calls the remote method Register at the service side to send a registration request message, wherein the message comprises a user name id, a password, operation authority information and an IP address of the SIP Server. The service side sends registration event to the protocol stack after receiving the registration request message, the protocol stack further sends SIP message to the SIP Server: and the Register, after receiving the message, the SIP Server returns a confirmation message to the protocol stack, the protocol stack returns a registration confirmation event to the service side in sequence, and the service side notifies the FlashPhone client that the registration is successful through the callback RegOk.
Step S806, user a dials to call user B, and the call connection is established.
The step S806 may include: the FlashPhone client of the user A calls a remote method Call to initiate a Call message, the Call message comprises a user name id and an opposite terminal number, after the Call message is received, a service side sends a Call event to a protocol stack, the protocol stack further sends an Invite message to an SIP Server, the SIP Server receives the Invite message and then continues a user B, the service side sends an event that the Call arrives, the service side further calls the income event of the user B to inform that the Call arrives, the user B presses an answering key on an interface to Call a remote process accept of the service side to inform that the service side user answers the Call, the service side sends a state value of the current Call to the protocol stack at the moment, waits for a confirmation message of the protocol stack, after the confirmation message is received, the user B is informed that the Call is established by calling an estabilish instruction, at the moment, the two sides issue a local terminal audio and video through an as script instruction, and Call an opposite terminal audio and video instruction.
Step S808, the user A and the user B are in a conversation state, the user A clicks a Record button of a client interface, an audio and video recording request is initiated to the service side, and the service side responds to the recording request message and starts to generate a recording file.
The step S808 may include:
the FlashPhone client of the user A calls a remote method record to send an audio and video recording request message to an RTMP analyzer module of the service side, wherein the message comprises media types (voice, images, voice and images) to be recorded, code stream names (required by a local terminal, an opposite terminal or the opposite terminal of the local terminal), a recording file format, a file name, terminal user information initiating a recording request and an Internet protocol address of WebServer.
After receiving the message, the RTMPAnalyzer module judges whether the recording operation is required, firstly authenticates whether the user has the recording authority, and if so, sends the received audio/video media stream to the Recorder module for processing.
After receiving the code stream, the Recorder module starts to allocate resources required by audio and video recording, analyzes each parameter in the recording request message, extracts an audio stream if a voice is recorded, extracts a video stream if an image is recorded, further judges whether the coding format of the obtained code stream is consistent with the format of a file to be stored, and sequentially performs related decoding and coding if the coding format of the obtained code stream is inconsistent with the format of the file to be stored, and stores the obtained media data as a recording file by using a related file name; if the file names are consistent with the file names, the obtained media data are directly saved as recording files in the related file names and formats.
Step S810, the user A clicks an unrecordid button on the interface to request the recording process to stop, the service side responds to the recording stopping request to stop recording the audio and video, and the generated recording file is uploaded to the WebServer.
The step S810 may include: the FlashPhone client of the user A calls the remote method nonredirect to send a request message for stopping audio and video recording to the service side. And after receiving the message, the service side stops recording the file, informs the FlashPhoneClient of completing the recording process through calling back RecOK, and uploads the recorded file to the WebServer.
In step S812, the user a clicks the Play button on the interface to request to Play the recorded file in the above process.
In step S812, the client obtains the list of available recording files of the user from the WebServer, and displays the list on the client interface, and the user clicks to play the list as needed.
By the embodiment of the invention, the method for recording the voice and the video at the FlashPhone client is provided by utilizing the video function of the FlashPhone Server, and the method can be implemented by opening a webpage without downloading any control, so that the method is convenient; moreover, the recording needs identity authority authentication, and the security is realized; meanwhile, the recorded file is stored in the WebServer, the user can call the recorded file at the client for playback by the authentication user, and the user can obtain the recorded file in real time without occupying the local space of the user, so that the method has practicability.
From the above description, it can be seen that, in the embodiment of the present invention, the network video phone client uses the browser as a carrier, and is implemented by the video Player Flash Player, and the recording can be implemented by opening the web page without downloading any control, so that the defect that the control needs to be installed when installing the voice video in the related art is avoided, and the present invention has strong convenience; moreover, the recording needs the authentication of the identity authority of the network video telephone server, so that the method has good safety; meanwhile, the recorded file is stored in the WEB server, the local storage space of the client is not occupied, and a user can acquire and play the recorded file in real time according to needs, so that the method has good practicability.
It will be apparent to those skilled in the art that the modules or steps of the present invention described above may be implemented by a general purpose computing device, they may be centralized on a single computing device or distributed across a network of multiple computing devices, and alternatively, they may be implemented by program code executable by a computing device, such that they may be stored in a storage device and executed by a computing device, and in some cases, the steps shown or described may be performed in an order different than that described herein, or they may be separately fabricated into individual integrated circuit modules, or multiple ones of them may be fabricated into a single integrated circuit module. Thus, the present invention is not limited to any specific combination of hardware and software.
The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention, and various modifications and changes may be made by those skilled in the art. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.
Claims (12)
1. A method for recording voice and video is characterized by comprising the following steps:
receiving a voice video recording request message sent by a network video telephone client in the call process of the network video telephone client, wherein the network video telephone client is realized by a video player by taking a browser as a carrier;
recording the voice video media stream sent by the network video telephone client according to the voice video recording request message and generating a recording file;
recording the voice video media stream sent by the network video call client according to the voice video recording request message and generating a recording file, wherein the recording method comprises the following steps: distributing and recording resources required by the voice video media stream; and generating the recording file of the voice video media stream sent by the network video telephone client according to the voice video recording request message.
2. The method of claim 1, wherein generating the recording file of the audio video media stream sent by the network video telephony client according to the audio video recording request message comprises:
judging that the voice and video recording request message requests to record voice and/or images;
acquiring media data corresponding to the content requested to be recorded by the voice and video recording request message in the voice and video media stream sent by the network video telephone client;
and storing the acquired media data as the recording file.
3. The method of claim 2, further comprising, before storing the acquired media data as the recording file:
and decoding and encoding the acquired media data to generate media data consistent with a preset format.
4. The method according to any one of claims 1 to 3,
after recording the voice video media stream sent by the network video telephone client according to the voice video recording request message and generating a recording file, the method further comprises the following steps: uploading the recording file to a webpage WEB server;
after the recording file is uploaded to a WEB page WEB server, the method further comprises: and the client plays the recording file stored by the WEB server.
5. The method of claim 4, wherein before recording the audio video media stream sent by the network video telephony client according to the audio video recording request message and generating a recording file, the method further comprises:
and authenticating the recording authority of the network video telephone client.
6. The method of claim 4, wherein the information carried in the voice video recording request message comprises at least one of:
the type of the media to be recorded, the format of the recorded file, the name of the recorded file, the information of the network video call client initiating the voice and video recording request message, the Internet Protocol (IP) address of the WEB server and the media stream to be recorded.
7. An apparatus for recording audio and video, comprising:
the receiving module is used for receiving a voice video recording request message sent by a network video telephone client in the call process of the network video telephone client;
the recording module is used for recording the voice video media stream sent by the network video telephone client according to the voice video recording request message and generating a recording file;
the recording module comprises a distribution unit used for distributing and recording the resources required by the voice video media stream.
8. The apparatus of claim 7, wherein the recording module comprises:
the judging unit is used for judging that the voice and video recording request message requests to record voice and/or images;
an obtaining unit, configured to obtain media data corresponding to a content requested to be recorded by the voice and video recording request message in a voice and video media stream sent by the network video telephone client;
and the storage unit is used for storing the acquired media data into the recording file.
9. The apparatus of claim 8, wherein the recording module further comprises:
and the conversion unit is used for decoding and coding the acquired media data to generate media data consistent with a preset format.
10. The apparatus of any one of claims 7-9, further comprising:
and the uploading module is used for uploading the recording file to a webpage WEB server.
11. The apparatus of claim 10, further comprising:
and the authentication module is used for authenticating the recording authority of the network video telephone client.
12. A system for recording audio and video, comprising: a network video telephone server, a WEB server and a network video telephone client, wherein,
the network video telephone server comprises a voice and video recording device of any one of claims 7 to 11;
the WEB server is used for storing the recording file uploaded by the network video telephone server;
the network video telephone client is realized by a video player by taking a browser as a carrier and is used for sending a voice video recording request message to the network video telephone server and playing the recording file stored by the WEB server.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110336537.1A CN103095752B (en) | 2011-10-31 | 2011-10-31 | Method for recording, the apparatus and system of voice and video |
PCT/CN2012/077635 WO2013063945A1 (en) | 2011-10-31 | 2012-06-27 | Voice and video recording method, device and system |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201110336537.1A CN103095752B (en) | 2011-10-31 | 2011-10-31 | Method for recording, the apparatus and system of voice and video |
Publications (2)
Publication Number | Publication Date |
---|---|
CN103095752A CN103095752A (en) | 2013-05-08 |
CN103095752B true CN103095752B (en) | 2017-10-10 |
Family
ID=48191271
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201110336537.1A Active CN103095752B (en) | 2011-10-31 | 2011-10-31 | Method for recording, the apparatus and system of voice and video |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN103095752B (en) |
WO (1) | WO2013063945A1 (en) |
Families Citing this family (11)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105808231B (en) * | 2014-12-31 | 2021-02-05 | 深圳富泰宏精密工业有限公司 | System and method for recording and playing script |
CN106034214A (en) * | 2015-03-17 | 2016-10-19 | 小米科技有限责任公司 | Video data recording method and apparatus thereof |
CN105554431A (en) * | 2016-02-17 | 2016-05-04 | 努比亚技术有限公司 | Video call recording method, device and system |
CN105721492B (en) * | 2016-03-25 | 2019-10-11 | 宇龙计算机通信科技(深圳)有限公司 | A kind of method, apparatus and terminal of speech processes |
CN106161218A (en) * | 2016-09-28 | 2016-11-23 | 乐视控股(北京)有限公司 | Method of speech processing in real time phone call and device |
CN108124165A (en) * | 2016-11-30 | 2018-06-05 | 北京视联动力国际信息技术有限公司 | A kind of code stream recording method and its system based on regarding networking |
CN108235107A (en) * | 2016-12-15 | 2018-06-29 | 广州市动景计算机科技有限公司 | Video recording method, device and electric terminal |
CN107396198B (en) * | 2017-07-24 | 2019-10-15 | 维沃移动通信有限公司 | A kind of video call method and mobile terminal |
CN109905627B (en) * | 2019-02-13 | 2021-02-09 | 视联动力信息技术股份有限公司 | Method and device for recording audio and video stream data |
CN113938565A (en) * | 2021-10-18 | 2022-01-14 | 北京博瑞彤芸科技股份有限公司 | Data processing method and equipment based on telephone call |
CN118042063A (en) * | 2022-11-04 | 2024-05-14 | 北京字跳网络技术有限公司 | Video generation method, device, equipment and storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101076135A (en) * | 2007-06-09 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method for recording and replaying multimedium and processing system |
WO2010073074A2 (en) * | 2008-12-24 | 2010-07-01 | Nortel Networks Limited | Web based access to video associated with calls |
CN102137098A (en) * | 2011-01-25 | 2011-07-27 | 北京天纵网联科技有限公司 | Method for on-line real-time recording and forwarding of audio/ video streams by mobile internet terminal |
KR20110087444A (en) * | 2010-01-26 | 2011-08-03 | 주식회사 엘지유플러스 | Method and mobile phone for supporting play moving picture in webpage |
CN102143348A (en) * | 2011-01-18 | 2011-08-03 | 中国联合网络通信集团有限公司 | Video uploading system and video uploading method for mobile terminal |
CN102185968A (en) * | 2011-04-19 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Mobile terminal and automatic answering method for video telephone |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101299709A (en) * | 2007-04-30 | 2008-11-05 | 深圳华飚科技有限公司 | Flow type medium server system based on internet |
CN101562790B (en) * | 2009-05-04 | 2011-09-14 | 腾讯科技(北京)有限公司 | Method and system for realizing audio and video sharing by mobile terminal instant messaging software users |
-
2011
- 2011-10-31 CN CN201110336537.1A patent/CN103095752B/en active Active
-
2012
- 2012-06-27 WO PCT/CN2012/077635 patent/WO2013063945A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101076135A (en) * | 2007-06-09 | 2007-11-21 | 腾讯科技(深圳)有限公司 | Method for recording and replaying multimedium and processing system |
WO2010073074A2 (en) * | 2008-12-24 | 2010-07-01 | Nortel Networks Limited | Web based access to video associated with calls |
KR20110087444A (en) * | 2010-01-26 | 2011-08-03 | 주식회사 엘지유플러스 | Method and mobile phone for supporting play moving picture in webpage |
CN102143348A (en) * | 2011-01-18 | 2011-08-03 | 中国联合网络通信集团有限公司 | Video uploading system and video uploading method for mobile terminal |
CN102137098A (en) * | 2011-01-25 | 2011-07-27 | 北京天纵网联科技有限公司 | Method for on-line real-time recording and forwarding of audio/ video streams by mobile internet terminal |
CN102185968A (en) * | 2011-04-19 | 2011-09-14 | 惠州Tcl移动通信有限公司 | Mobile terminal and automatic answering method for video telephone |
Also Published As
Publication number | Publication date |
---|---|
CN103095752A (en) | 2013-05-08 |
WO2013063945A1 (en) | 2013-05-10 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN103095752B (en) | Method for recording, the apparatus and system of voice and video | |
US9888046B2 (en) | Systems, methods and media for identifying and associating user devices with media cues | |
US8248446B2 (en) | Rich media communication client device, method and computer program product | |
US20160234262A1 (en) | System and method for data transfer between terminals in voice communication under voice over internet protocol (voip) | |
US20130019297A1 (en) | System and Method for Communicating with a Client Application | |
US8903905B2 (en) | Method and system for automatically storing a communication session | |
CN107634934B (en) | Visual communication management method and device | |
EP2884750A1 (en) | Monitoring method and internet protocol television set top box | |
WO2007074959A1 (en) | System for providing share of contents based on packet network in voice comunication based on circuit network | |
TWI377829B (en) | Controlling alternative communication pathway utilization in a mobile communication device | |
WO2013127163A1 (en) | Call terminal enrollment method and device | |
CN112565185B (en) | SIP voice communication method based on browser | |
CN112291514A (en) | Remote audio and video call method and device and OTT platform | |
US20070165800A1 (en) | Connection control apparatus, method, and program | |
JP5227885B2 (en) | Cooperation method for linking Web system and VoIP system, VoIP system, and cooperation program | |
CN102948184A (en) | A system for verifying a video call number entry in a directory service | |
US8842683B2 (en) | Audio/video communication system | |
US12088637B2 (en) | System and method for sharing media resources for network based communication | |
JP6295522B2 (en) | Transmission system, transmission terminal and transmission terminal program | |
CN107277426B (en) | Cloud video system | |
CN110012175B (en) | Device and system for debugging IVR service and application method thereof | |
KR101531198B1 (en) | Call connecting process apparatus and method providing for authentication process using push message | |
CN115250371A (en) | Video-on-demand method, terminal and network equipment | |
CN117596231B (en) | Communication method, terminal device, system and medium | |
KR100596003B1 (en) | Method for providing barge-in service and IP switch using the method |
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 |