CN105578224A - Multimedia data acquisition method, device, smart television and set-top box - Google Patents

Multimedia data acquisition method, device, smart television and set-top box Download PDF

Info

Publication number
CN105578224A
CN105578224A CN201410643616.0A CN201410643616A CN105578224A CN 105578224 A CN105578224 A CN 105578224A CN 201410643616 A CN201410643616 A CN 201410643616A CN 105578224 A CN105578224 A CN 105578224A
Authority
CN
China
Prior art keywords
medium data
spatial cache
multimedia file
information
read
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410643616.0A
Other languages
Chinese (zh)
Inventor
徐存树
刘京生
圣少友
曹坤勇
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Alibaba Group Holding Ltd
Original Assignee
Alibaba Group Holding 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 Alibaba Group Holding Ltd filed Critical Alibaba Group Holding Ltd
Priority to CN201410643616.0A priority Critical patent/CN105578224A/en
Publication of CN105578224A publication Critical patent/CN105578224A/en
Priority to HK16112306.6A priority patent/HK1224119A1/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The application discloses a multimedia data acquisition method. The objective of the invention is to solve the problems of high consumption of hardware and lobar resources, and high-degree distortion of obtained multimedia data in an existing multimedia data acquisition mode. The method includes the following steps that: multimedia data are obtained from a first cache space of a multimedia file playing device, wherein the first cache space is used for caching multimedia data which are sent to the multimedia file playing device and are outputted by a multimedia data output device; and the obtained multimedia data are saved in a second cache space of the multimedia file playing device. The invention also discloses a multimedia data acquisition device, a smart television and a set-top box.

Description

A kind of acquisition methods of multi-medium data, device, intelligent television and Set Top Box
Technical field
The application relates to multimedia technology field, particularly relates to a kind of acquisition methods of multi-medium data, device, intelligent television and Set Top Box.
Background technology
At present, utilize terminal plays multimedia file, become very universal user behavior.Specifically, user usually utilizes mobile phone, panel computer, desktop computer or television for play video file or audio file in daily life.
In some scenes, all or part of multi-medium data that user has the multimedia file obtaining the current broadcasting of terminal to comprise, and it is carried out to the demand of particular procedure.Such as, take terminal as intelligent television be example, user likely expects to record the fragment of the current video file play of intelligent television, and is shared with other users by the Internet; Still for intelligent television, again such as, user also likely expects current for the intelligent television song play to be synchronized on mobile phone.
For the demand, current solution mainly user utilizes third party device, gathers, and then carry out particular procedure to the multi-medium data collected to the multimedia file of the current broadcasting of terminal.Particular procedure mentioned here such as can comprise: be published on the Internet by this multi-medium data, export this multi-medium data to the terminal equipment of specifying, or be optimized this multi-medium data, etc.
Specifically, with the terminal of play multimedia file for intelligent television, third party device is mobile phone is example, if user expects to gather the audio file of the current broadcasting of intelligent television, the microphone of mobile phone then can be utilized to record, thus reach the object gathering voice data.
There is following drawback in above-mentioned voice data processing mode:
1, need to rely on third party device (as mobile phone), and need user's manual triggers third party device to record;
2, invariably typing ambient noise can be difficult to during recording;
3, there is distortion in voice data in " play-through air transmission-recording " process.
Similarly, still with the terminal of play multimedia file for intelligent television, third party device is mobile phone is example, if user expect the video file of the current broadcasting of intelligent television is gathered, the camera of mobile phone then can be utilized to take, thus reach the object gathering video data.
Obviously, this video data processing mode also also exists above-mentioned similar drawback.
In summary, multimedia-data procession mode of the prior art also exists to be needed to expend more hardware and human resources, and gets the higher problem of the multi-medium data distortion factor.
Summary of the invention
The embodiment of the present application provides a kind of acquisition methods of multi-medium data, expends more hardware and human resources, and get the higher problem of the multi-medium data distortion factor in order to solve needing that existing multi-medium data obtain manner exists.
The embodiment of the present application also provides a kind of acquisition device of multi-medium data, expends more hardware and human resources, and get the higher problem of the multi-medium data distortion factor in order to solve needing that existing multi-medium data obtain manner exists.
The embodiment of the present application also provides a kind of intelligent television.
The embodiment of the present application also provides a kind of Set Top Box.
The embodiment of the present application adopts following technical proposals:
An acquisition methods for multi-medium data, comprising:
Multi-medium data is obtained from the first spatial cache of multimedia file playback equipment; Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data output device of described multimedia file playback equipment to carry out the multi-medium data exported; The multi-medium data of acquisition is kept in the second spatial cache of described multimedia file playback equipment.
An acquisition device for multi-medium data, comprising: data acquiring unit, for obtaining multi-medium data from the first spatial cache of multimedia file playback equipment; Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data output device of described multimedia file playback equipment to carry out the multi-medium data exported; Data saving unit, the multi-medium data for being obtained by data acquiring unit is kept in the second spatial cache of described multimedia file playback equipment.
A kind of intelligent television, comprises said apparatus.
A kind of Set Top Box, comprises said apparatus.
At least one technical scheme above-mentioned that the embodiment of the present application adopts can reach following beneficial effect:
Because multi-medium data sends to multi-medium data output device to carry out getting the first spatial cache of the multi-medium data exported from buffer memory, multi-medium data is obtained by the mode recorded without the need to adopting third party device, thus compared to existing multi-medium data obtain manner, the hardware resource that the scheme that the embodiment of the present application provides expends and human resources all less, and the multi-medium data distortion factor got is lower.
Accompanying drawing explanation
Accompanying drawing described herein is used to provide further understanding of the present application, and form a application's part, the schematic description and description of the application, for explaining the application, does not form the improper restriction to the application.In the accompanying drawings:
The specific implementation flow chart of a kind of multi-medium data acquisition methods that Fig. 1 provides for the embodiment of the present application;
Fig. 2 is the schematic diagram of AudioTrack and AudioRecorder in Android operation system bottom of the prior art;
The configuration diagram of recording system in the audio frequency of a kind of novelty that Fig. 3 provides for the embodiment of the present application 2;
The schematic diagram of a kind of voice data recording flow process that Fig. 4 provides for the embodiment of the present application 2;
Fig. 5 is the schematic diagram of Camera and SurfaceFlinger in Android operation system bottom of the prior art;
The configuration diagram of recording system in the audio frequency of a kind of novelty that Fig. 6 provides for the embodiment of the present application 3;
The schematic diagram of a kind of voice data recording flow process that Fig. 7 provides for the embodiment of the present application 3;
The concrete structure schematic diagram of the acquisition device of a kind of multi-medium data that Fig. 8 provides for the embodiment of the present application 4.
Embodiment
For making the object of the application, technical scheme and advantage clearly, below in conjunction with the application's specific embodiment and corresponding accompanying drawing, technical scheme is clearly and completely described.Obviously, described embodiment is only some embodiments of the present application, instead of whole embodiments.Based on the embodiment in the application, those of ordinary skill in the art are not making the every other embodiment obtained under creative work prerequisite, all belong to the scope of the application's protection.
Below in conjunction with accompanying drawing, describe the technical scheme that each embodiment of the application provides in detail.
Embodiment 1
In order to realize the smooth playing of multimedia file, in the process of multi-medium data output device multi-medium data being sent to multimedia file playback equipment, first multi-medium data can be sent in the first spatial cache of multimedia file playback equipment and carry out buffer memory.Based on this feature, expend more hardware and human resources to solve needing that existing multi-medium data obtain manner exists, and get the higher problem of the multi-medium data distortion factor, the embodiment of the present application provides a kind of multi-medium data acquisition methods.
The specific implementation flow chart of the method as shown in Figure 1, comprises the steps:
Step 11, obtains multi-medium data from the first spatial cache of multimedia file playback equipment;
Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data output device of multimedia file playback equipment to carry out the multi-medium data exported.
Multimedia file playback equipment can be, but not limited to comprise: the portable mobile apparatus such as intelligent television, desktop personal computer and smart mobile phone.
Multi-medium data output device can be, but not limited to comprise: loud speaker and/or display etc.
Step 12, is kept at the multi-medium data of acquisition in the second spatial cache of multimedia play equipment.
Adopt said method, because multi-medium data sends to multi-medium data output device to carry out getting the first spatial cache of the multi-medium data exported from buffer memory, multi-medium data is obtained by the mode recorded without the need to adopting third party device, thus compared to existing multi-medium data obtain manner, the hardware resource that the scheme that the embodiment of the present application provides expends and human resources all less, and the multi-medium data distortion factor got is lower.
Below the specific implementation of above-mentioned steps 11 and step 12 is specifically introduced.
In one embodiment, different multi-medium data source marks can be set, which type of multi-medium data source can obtain multi-medium data to represent.Such as, multi-medium data source mark that " AudioSourceLOOP_BACK " is such can be set, and arrange this mark and represent: multi-medium data source is the first spatial cache; In addition, multi-medium data source mark that " AudioSourceMIC " is such can be set, and arrange this mark and represent: multi-medium data source is microphone; In addition, multi-medium data source mark that " AudioSourceDIS " is such can also be set, and arrange this mark and represent: multi-medium data source is display.
Based on above-mentioned setting, in one embodiment, the specific implementation process of step 11 can comprise: obtain multi-medium data source mark; When this multi-medium data source mark judging to obtain identifies identical with specific multi-medium data, obtain multi-medium data from the first spatial cache.Wherein, particular source mark mentioned here can be above-mentioned " AudioSourceLOOP_BACK ", that is, can for representing that multi-medium data source is the data source identification of the first spatial cache.
For step 12:
In one embodiment, the implementation procedure of step 12 can comprise following sub-step:
The multi-medium data of acquisition is kept in the 3rd spatial cache of multimedia file playback equipment;
After receiving data acquisition instruction, from the 3rd spatial cache, read the multi-medium data obtained;
The multi-medium data read is kept in the second spatial cache.
Adopt above-mentioned sub-step, the multi-medium data obtained from the first spatial cache can temporarily be kept in the 3rd spatial cache, do not transfer to the second spatial cache, until when receiving data acquisition instruction, just from the 3rd spatial cache, read multi-medium data, and the multi-medium data read is saved to the second spatial cache.
The application scenarios of above-mentioned sub-step such as can be as follows:
3rd spatial cache is the public spatial cache set by different application; Second buffer memory is applied as the dedicated cache space set by single application.
Under such a scenario, when multi-medium data is called in certain application expectation, can perform: read multi-medium data from public spatial cache, and the multi-medium data read is saved to the dedicated cache space arranged for this application.
In one embodiment, in order to real-time, multi-medium data in first spatial cache is read in the second spatial cache, this operation that " obtains multi-medium data from the first spatial cache; be kept at by the multi-medium data of acquisition in the 3rd spatial cache ", this operation of " reading the multi-medium data obtained from the 3rd spatial cache; be kept in the second spatial cache by the multi-medium data read " can be synchronous execution.
Concrete synchronous executive mode can be as follows:
After receiving data acquisition instruction, first create two threads belonging to same process: the first thread and the second thread.Then, on the one hand, utilize into the first thread, from the first spatial cache, obtain multi-medium data, and the multi-medium data of acquisition is kept in the 3rd spatial cache; On the other hand, utilize the second thread, from the 3rd spatial cache, read the multi-medium data obtained, and the multi-medium data read is kept in the second spatial cache.
In above-mentioned synchronous executive mode, the meaning that exists of the 3rd spatial cache also comprises:
1, identical with the data acquisition frequency of the second thread at the first thread, but when the length of the multi-medium data that the first thread obtains at every turn from the first spatial cache is greater than the length of the multi-medium data that the second thread obtains at every turn from the second spatial cache, utilize the 3rd spatial cache, buffer memory can be carried out, so that the second thread obtains the multi-medium data got by the first thread several times to the multi-medium data that the first thread obtains.
2, identical with the length of the multi-medium data that the second thread single obtains at the first thread, but when the frequency that the first thread obtains multi-medium data from the first spatial cache obtains the frequency of multi-medium data higher than the second thread from the second spatial cache, utilize the 3rd spatial cache, buffer memory can be carried out, so that the second thread obtains the multi-medium data got by the first thread several times to the multi-medium data that the first thread obtains.
In one embodiment, specific operation can be performed based on the multi-medium data got.
Such as, after step 12 is finished, following specific operation can be performed, thus realize recommending the information relevant to the multi-medium data obtained to user:
The multi-medium data obtained is read from the second spatial cache;
According to the multi-medium data obtained read from the second spatial cache, determine the characteristic information of corresponding multimedia file;
According to characteristic information, obtain the information relevant to multimedia file;
What obtained by the displaying of multi-medium data output device is somebody's turn to do the information relevant to multimedia file.
In one embodiment, also only can obtain the information relevant to multimedia file in the manner described above, and it not shown.
In one embodiment, when characteristic information comprises the type information of content, the information relevant with multimedia file obtained according to this characteristic information can comprise: the information of other multimedia files identical with the type of this multimedia file content.
In one embodiment, when characteristic information comprises playing progress rate information, can comprise according to the information relevant to multimedia file that this characteristic information obtains: the default interactive information of the playing progress rate information match current with this multimedia file.Such as, can arrange interactive information respectively for the different playing progress rates of this multimedia file in advance, these interactive informations can be identical, also can be different.In such a manner, when the playing progress rate information obtained represents that this multimedia file is played to progress 1, the interactive information 1 of progress 1 can be corresponded to according to this playing progress rate information acquisition; Similarly, when the playing progress rate information obtained represents that this multimedia file is played to progress 2, the interactive information 2 of progress 2 can be corresponded to according to this playing progress rate information acquisition; By that analogy.
In one embodiment, when characteristic information comprises for representing that multimedia file is the advertisement and identifier of advertisement, the information relevant to multimedia file can comprise: the merchandise news matched with this advertisement and identifier.
In the embodiment of the present application, multimedia file can comprise audio file and/or video file.
When multimedia file comprises video file, corresponding characteristic information can comprise image feature information, as image texture information, image light and shade variation tendency information or image color information etc.Under such a scenario, in one embodiment, according to the default corresponding relation of image feature information and the information relevant to multimedia file, corresponding to the image feature information of the current multimedia file play, relevant with multimedia file information can be obtained.
Similarly, when multimedia file comprises audio file, corresponding characteristic information can comprise audio feature information, as energy shape information, frequency domain information or comb spectrum information etc.Under such a scenario, in one embodiment, according to the default corresponding relation of audio feature information and the information relevant to multimedia file, corresponding to the audio feature information of the current multimedia file play, relevant with multimedia file information can be obtained.
When multimedia file both comprised video file, when comprising again audio file, according to the characteristic information of this multimedia file, the information relevant to the video file that this multimedia file comprises can be obtained respectively, and the information relevant to the audio file that this multimedia file comprises.Under such a scenario, show that the information relevant to multimedia file obtained can be, but not limited to adopt one of following several implementation by multi-medium data output device:
Mode one: show the information relevant to video file by multi-medium data output device;
Mode two: show the information relevant to audio file by multi-medium data output device;
Mode three: show the information relevant to video file and the information relevant with audio file by multi-medium data output device;
Mode four: when determining the information of being correlated with video file and the packets of information of being correlated with audio file containing identical message part, show this identical message part by multi-medium data output device.
In one embodiment, in order to support that user is based on some specific operations of the information and executing relevant to multimedia file shown, can also by the specific operation entrance corresponding to the multi-media output device displaying information relevant to multimedia file.
Wherein, above-mentioned specific operation entrance can be such as message reference entrance (as URL(uniform resource locator) UniformResourceLocator, URL).Such as, when the information relevant to multimedia file comprises merchandise news, this specific operation entrance can comprise the URL of commodity details page.
In addition, when the information of being correlated with multimedia file is other multimedia files identical with this multimedia file type, this specific operation entrance can be play entrance, even receives the operation requests initiated by this specific operation entrance, then can play other multimedia files described.
Or this specific operation entrance can also be: perform the entrance to the hiding operation showing the information relevant to multimedia file.Even receive the operation requests initiated by this specific operation entrance, then can this relevant information of showing be hidden.
In one embodiment, after above-mentioned specific operation entrance is provided to terminal, all right: to obtain the operation requests initiated by specific operation entrance; Perform the operation matched with this operation requests.
Especially, when operation requests comprises information acquisition request, perform the operation matched with this operation requests and comprise: send the information matched with this information acquisition request to other terminal being different from multimedia file playback equipment.In one embodiment, when specific operation entrance comprises the access links of commodity details page, the information that corresponding and this information acquisition request matches can comprise: commodity details page.
In one embodiment, the mark of other terminal mentioned here in information acquisition request, can be comprised, to make the follow-up information that can match with this information acquisition request to the transmission of other terminal according to this mark.In the embodiment of the present application, other modes also can be adopted to obtain the mark of other terminal.
It should be noted that, the executive agent of each step of embodiment 1 supplying method can be all same equipment, or, the method also by distinct device as executive agent.Such as, the executive agent of step 11 and step 12 can be equipment 1; Again such as, the executive agent of step 11 can be equipment 1, and the executive agent of step 12 can be equipment 2; Etc..
Embodiment 2
Embodiment 2 to be provided with the intelligent television of Android (Android) operating system, recording system in the audio frequency introducing in this intelligent television a kind of novelty run in detail.In this audio frequency, recording system does not need the external equipment by intelligent television, just can get the low-down multi-medium data of the distortion factor.In addition, whole audio recording process does not need user to trigger, and greatly improves Consumer's Experience.
Introducing in this audio frequency that embodiment 2 provides before recording system, first following simple declaration is carried out to some technical backgrounds.
Android operation system bottom has two more crucial module: AudioTrack and AudioRecorder, as shown in Figure 2.
Wherein, AudioTrack is used for displaying audio file, the top layer application such as such as multimedia file player are by write () interface, the buffer (buffer) voice data being sent to AudioTrack inside modules can be realized, then AudioTrack calls bottom layer driving again, realize voice data to send to the hardware such as loud speaker, thus realize the broadcasting to audio file.
AudioRecorder module is for realizing the recording to voice data.After receiving recording sign on, audio-source microphone can gather the voice signal that intelligent television plays out, and the voice data of collection is sent to the inside buffer of AudioRecorder.The recording application of follow-up java layer can obtain by read () interface the voice data preserved in buffer.
The embodiment of the present application 2 is on the basis of prior art as shown in Figure 2, and recording system in the audio frequency proposing a kind of novelty, the configuration diagram of this system as shown in Figure 3.
Compared to having increased " LoopBack " this module in Fig. 2, Fig. 3 newly.Hereinafter record flow process by conjunction with a concrete voice data, introduce the function of LoopBack in detail.
Please refer to Figure of description 4, it is for recording the schematic diagram of flow process based on a typical voice data of recording system framework realization in the audio frequency shown in Fig. 3, and this flow process mainly comprises the steps:
Step 41, before recording application obtains voice data, creates an AudioRecorder, and source source is set to self-defining input equipment type, that is, source source is set to LOOP_BACK.
Wherein, " LOOP_BACK " is here equivalent to the specific multi-medium data source mark of the expression " multi-medium data source is the first spatial cache " described in the embodiment of the present application 1.
Step 42, AudioRecorder, after receiving recording sign on, detects source source, if detect that source source is set to LOOP_BACK, then performs step 43, otherwise, then can process ends.
Step 43, AudioRecorder creates in one and records process, and is this interior record course allocation buffer (buffer2 namely shown in Fig. 3 is equivalent to the 3rd spatial cache described in the embodiment of the present application 1); Further, two threads belonging to this interior record process are created: thread one and thread two.
Step 44, thread one is from the buffer (buffer1 namely Fig. 3 of AudioTrack, be equivalent to the first spatial cache described in the embodiment of the present application 1) middle reading voice data, and this voice data is copied to the queue head of the buffer2 of LoopBack; Thread two by the data Replica of the buffer2 queue tail of LoopBack in the buffer (buffer3 namely in Fig. 3 is equivalent to the second spatial cache described in the embodiment of the present application 1) of AudioRecorder.
Step 45, records application and read voice data from the buffer3 of AudioRecorder, and generates audio stream according to voice data and export.
Follow-up AudioRecorder, when receiving recording command for stopping, exits thread one and thread two, and discharges the memory space of buffer2.
Embodiment 3
Embodiment 3 to be provided with the intelligent television of Android operation system, recording system in the video introducing in this intelligent television a kind of novelty run in detail.In this video, recording system does not need the external equipment by intelligent television, just can get the low-down multi-medium data of the distortion factor.In addition, whole video record process does not need user to trigger, and greatly improves Consumer's Experience.
Introducing in this video that embodiment 3 provides before recording system, first following simple declaration is carried out to some technical backgrounds.
Android operation system bottom has two more crucial module: SurfaceFlinger and Camera, as shown in Figure 5.
Wherein, SurfaceFlinger is used for processing video file.The top layer application such as such as multimedia file player are by write () interface, video data can be realized to be sent to SurfaceFlinger, then SurfaceFlinger calls bottom layer driving again, realize video data to send to the hardware such as loud speaker, thus realize the broadcasting to video file.
Camera is used for after receiving image acquisition instruction, the video image that terminal screen to Android operation system place shows captures, and this module of CameraService be sent to by the video image of crawl is as shown in Figure 5 preserved, the application of follow-up java layer can obtain the video image of CameraService preservation by read () interface.
The embodiment of the present application 3 is on the basis of prior art as shown in Figure 5, and recording system in the video proposing a kind of novelty, the configuration diagram of this system as shown in Figure 6.
Compared to having increased " FrameBufferCache " this module in Fig. 5, Fig. 6 newly.Hereinafter record flow process by conjunction with a concrete video data, introduce the function of FrameBufferCache in detail.
Please refer to Figure of description 7, it is for recording the schematic diagram of flow process based on a typical video data of recording system framework realization in the video shown in Fig. 6, and this flow process mainly comprises the steps:
Step 71, before the application (Application) shown in Fig. 6 obtains video data, creates a CameraService, and source source is set to self-defining input equipment type, that is, source source is set to FrameBufferCache.
Wherein, " FrameBufferCache " is here equivalent to the specific multi-medium data source mark of the expression " multi-medium data source is the first spatial cache " described in the embodiment of the present application 1.
Step 72, CameraService, after receiving recording sign on, detects source source, if detect that source source is set to FrameBufferCache, then performs step 73, otherwise, then can process ends.
Step 73, CameraService creates in one and records process, and is this interior record course allocation buffer (FrameBufferCache namely shown in Fig. 6 is equivalent to the 3rd spatial cache described in the embodiment of the present application 1); Further, two threads belonging to this interior record process are created: thread one and thread two.
Step 74, thread one is reading video data from the buffer (being equivalent to the first spatial cache described in the embodiment of the present application 1) of SurfaceFlinger, and this video data is copied to the buffer queue head of FrameBufferCache; Thread two by the data Replica of the buffer queue tail of FrameBufferCache in the buffer (being equivalent to the second spatial cache described in the embodiment of the present application 1) of CameraService.
Step 75, Application is reading video data from the buffer of CameraService.
Follow-up CameraService, when receiving recording command for stopping, exits thread one and thread two, and discharges the memory space of FrameBufferCache.
Embodiment 4
In order to solve existing multi-medium data obtain manner exist need expend more hardware and human resources, and get the higher problem of the multi-medium data distortion factor, the embodiment of the present application 4 provides a kind of acquisition device of multi-medium data, the concrete structure schematic diagram of this device as shown in Figure 8, comprises data acquiring unit 81 and data saving unit 82.The function of each unit is as follows:
Data acquiring unit 81, for obtaining multi-medium data from the first spatial cache of multimedia file playback equipment.
Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data of the multi-medium data output device of described multimedia file playback equipment;
Data saving unit 82, the multi-medium data for being obtained by data acquiring unit 81 is kept in the second spatial cache of multimedia file playback equipment.
Because multi-medium data sends to multi-medium data output device to carry out getting the first spatial cache of the multi-medium data exported from buffer memory, multi-medium data is obtained by the mode recorded without the need to adopting third party device, thus compared to existing multi-medium data obtain manner, the hardware resource that the scheme that the embodiment of the present application provides expends and human resources all less, and the multi-medium data distortion factor got is lower.
In one embodiment, data acquiring unit 81 may be used for: obtain multi-medium data source mark; When judging that multi-medium data source mark identifies identical with specific multi-medium data source, obtain multi-medium data from the first spatial cache.Wherein, specific multi-medium data source mark represents: multi-medium data source is the first spatial cache.
In one embodiment, data saving unit 82 can comprise following subelement:
First preserves subelement, for being kept at by the multi-medium data of acquisition in the 3rd spatial cache of multimedia file playback equipment;
Read subelement, for after receiving data acquisition instruction, from the 3rd spatial cache, read the multi-medium data obtained;
Second preserves subelement, is kept in the second spatial cache for the multi-medium data read by reading subelement.
In one embodiment, data acquiring unit 81 may be used for after receiving data acquisition instruction, utilizes the first thread of process, from the first spatial cache, obtains multi-medium data;
First preserves subelement, for utilizing the first thread, the multi-medium data that data acquiring unit obtains is kept at the 3rd spatial cache;
Read subelement, for after receiving data acquisition instruction, utilize the second thread of above-mentioned process, from the 3rd spatial cache, read the multi-medium data obtained;
Second preserves subelement, for utilizing the second thread of described process, is kept in the second spatial cache by the multi-medium data that reading subelement reads.
In one embodiment, when multimedia file comprises video file, multi-medium data output device can comprise display screen.And when multimedia file comprises audio file, multi-medium data output device comprises loud speaker.
In one embodiment, this device that the embodiment of the present application 4 provides can also comprise following function unit:
Reading unit, for reading the multi-medium data obtained from the second spatial cache;
Characteristic information determining unit, for the multi-medium data read from the second spatial cache according to reading unit, determines the characteristic information of corresponding multimedia file;
Display unit, for the characteristic information determined according to characteristic information determining unit, obtains the information relevant to multimedia file, and shows this information relevant to multimedia file by multi-medium data output device.
In one embodiment, display unit can also be used for by multi-media output device, shows the specific operation entrance that the information relevant to multimedia file is corresponding.
In one embodiment, this device that the embodiment of the present application provides also comprises request and obtains unit and operation execution unit.Wherein, request obtains unit for after display unit shows by multi-media output device the specific operation entrance that the information relevant to multimedia file is corresponding, obtains the operation requests initiated by specific operation entrance; Operation execution unit, for the operation performed with ask to obtain operation requests that unit obtains and match.
In one embodiment, when aforesaid operations request comprises information acquisition request, operation execution unit may be used for: send to the other-end being different from multimedia file playback equipment the information matched with information acquisition request.
In one embodiment, when the information relevant to multimedia file comprises merchandise news, specific operation entrance can comprise: the access links of commodity details page.Accordingly, the information matched with information acquisition request can comprise: commodity details page.
The said apparatus that the embodiment of the present application provides can be, but not limited to be the terminals such as mobile phone, computer, Set Top Box or intelligent television.
Those skilled in the art should understand, embodiments of the invention can be provided as method, system or computer program.Therefore, the present invention can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the present invention can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The present invention describes with reference to according to the flow chart of the method for the embodiment of the present invention, equipment (system) and computer program and/or block diagram.Should understand can by the combination of the flow process in each flow process in computer program instructions realization flow figure and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame.These computer program instructions can being provided to the processor of all-purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device to produce a machine, making the instruction performed by the processor of computer or other programmable data processing device produce device for realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be stored in can in the computer-readable memory that works in a specific way of vectoring computer or other programmable data processing device, the instruction making to be stored in this computer-readable memory produces the manufacture comprising command device, and this command device realizes the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices is provided for the step realizing the function of specifying in flow chart flow process or multiple flow process and/or block diagram square frame or multiple square frame.
In one typically configuration, computing equipment comprises one or more processor (CPU), input/output interface, network interface and internal memory.
Internal memory may comprise the volatile memory in computer-readable medium, and the forms such as random access memory (RAM) and/or Nonvolatile memory, as read-only memory (ROM) or flash memory (flashRAM).Internal memory is the example of computer-readable medium.
Computer-readable medium comprises permanent and impermanency, removable and non-removable media can be stored to realize information by any method or technology.Information can be computer-readable instruction, data structure, the module of program or other data.The example of the storage medium of computer comprises, but be not limited to phase transition internal memory (PRAM), static RAM (SRAM), dynamic random access memory (DRAM), the random access memory (RAM) of other types, read-only memory (ROM), Electrically Erasable Read Only Memory (EEPROM), fast flash memory bank or other memory techniques, read-only optical disc read-only memory (CD-ROM), digital versatile disc (DVD) or other optical storage, magnetic cassette tape, tape magnetic rigid disk stores or other magnetic storage apparatus or any other non-transmitting medium, can be used for storing the information can accessed by computing equipment.According to defining herein, computer-readable medium does not comprise temporary computer readable media (transitorymedia), as data-signal and the carrier wave of modulation.
Also it should be noted that, term " comprises ", " comprising " or its any other variant are intended to contain comprising of nonexcludability, thus make to comprise the process of a series of key element, method, commodity or equipment and not only comprise those key elements, but also comprise other key elements clearly do not listed, or also comprise by the intrinsic key element of this process, method, commodity or equipment.When not more restrictions, the key element limited by statement " comprising ... ", and be not precluded within process, method, commodity or the equipment comprising described key element and also there is other identical element.
It will be understood by those skilled in the art that the embodiment of the application can be provided as method, system or computer program.Therefore, the application can adopt the form of complete hardware embodiment, completely software implementation or the embodiment in conjunction with software and hardware aspect.And the application can adopt in one or more form wherein including the upper computer program implemented of computer-usable storage medium (including but not limited to magnetic disc store, CD-ROM, optical memory etc.) of computer usable program code.
The foregoing is only the embodiment of the application, be not limited to the application.To those skilled in the art, the application can have various modifications and variations.Any amendment done within all spirit in the application and principle, equivalent replacement, improvement etc., within the right that all should be included in the application.

Claims (26)

1. an acquisition methods for multi-medium data, is characterized in that, comprising:
Multi-medium data is obtained from the first spatial cache of multimedia file playback equipment; Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data output device of described multimedia file playback equipment to carry out the multi-medium data exported;
The multi-medium data of acquisition is kept in the second spatial cache of described multimedia file playback equipment.
2. the method for claim 1, is characterized in that, obtains multi-medium data, comprising from the first spatial cache:
Obtain multi-medium data source mark;
When judging that described multi-medium data source mark identifies identical with specific multi-medium data source, obtain multi-medium data from the first spatial cache;
Wherein, described specific multi-medium data source mark represents: multi-medium data source is the first spatial cache.
3. the method for claim 1, is characterized in that, is kept in the second spatial cache by the multi-medium data of acquisition, comprises:
The multi-medium data of acquisition is kept in the 3rd spatial cache of described multimedia file playback equipment;
After receiving data acquisition instruction, from the 3rd spatial cache, read the multi-medium data obtained;
The multi-medium data read is kept in the second spatial cache.
4. method as claimed in claim 3, is characterized in that:
From the first spatial cache, obtain multi-medium data, the multi-medium data of acquisition be kept in the 3rd spatial cache, comprise:
After receiving data acquisition instruction, utilize the first thread of process, from the first spatial cache, obtain multi-medium data, and the multi-medium data of acquisition is kept in the 3rd spatial cache;
From the 3rd spatial cache, read the multi-medium data obtained, the multi-medium data read be kept in the second spatial cache, comprise:
After receiving data acquisition instruction, utilize the second thread of described process, from the 3rd spatial cache, read the multi-medium data obtained, and the multi-medium data read is kept in the second spatial cache.
5. the method for claim 1, is characterized in that, described multimedia file is video file, and described multi-medium data output device comprises display screen; Or
Described multimedia file is audio file, and described multi-medium data output device comprises loud speaker.
6. the method for claim 1, is characterized in that, described multimedia file is audio file, and described first spatial cache is the spatial cache of AudioTrack, and described second spatial cache is the spatial cache of AudioRecorder.
7. the method for claim 1, is characterized in that, described multimedia file is video file, and described first spatial cache is the spatial cache of SurfaceFlinger, and described second spatial cache is the spatial cache of CameraService.
8. the method as described in any one of claim 1 to 7, is characterized in that, be kept at by the multi-medium data of acquisition after in the second spatial cache, described method also comprises:
The multi-medium data obtained is read from the second spatial cache;
According to the multi-medium data read from the second spatial cache, determine the characteristic information of corresponding multimedia file;
According to described characteristic information, obtain the information relevant to described multimedia file, and show described relevant information by described multi-medium data output device.
9. method as claimed in claim 8, it is characterized in that, described method also comprises:
The specific operation entrance corresponding to described relevant information is shown by described multi-media output device.
10. method as claimed in claim 9, is characterized in that, after showing the specific operation entrance corresponding to described relevant information by described multi-media output device, described method also comprises:
Obtain the operation requests initiated by described specific operation entrance;
Perform the operation matched with described operation requests.
11. methods as claimed in claim 10, is characterized in that, when described operation requests comprises information acquisition request, perform the operation matched with described operation requests and comprise:
The information matched with described information acquisition request is sent to the other-end being different from described multimedia file playback equipment.
12. methods as claimed in claim 9, is characterized in that, when described relevant information comprises merchandise news, described specific operation entrance comprises:
The access links of commodity details page;
The information matched with described information acquisition request comprises:
Commodity details page.
The acquisition device of 13. 1 kinds of multi-medium datas, is characterized in that, comprising:
Data acquiring unit, for obtaining multi-medium data from the first spatial cache of multimedia file playback equipment; Wherein, the first spatial cache is used for: buffer memory sends to the multi-medium data output device of described multimedia file playback equipment to carry out the multi-medium data exported;
Data saving unit, the multi-medium data for being obtained by data acquiring unit is kept in the second spatial cache of described multimedia file playback equipment.
14. devices as claimed in claim 13, it is characterized in that, data acquiring unit is used for:
Obtain multi-medium data source mark;
When judging that described multi-medium data source mark identifies identical with specific multi-medium data source, obtain multi-medium data from the first spatial cache;
Wherein, described specific multi-medium data source mark represents: multi-medium data source is the first spatial cache.
15. devices as claimed in claim 13, it is characterized in that, data saving unit comprises:
First preserves subelement, for being kept at by the multi-medium data of acquisition in the 3rd spatial cache of described multimedia file playback equipment;
Read subelement, for after receiving data acquisition instruction, from the 3rd spatial cache, read the multi-medium data obtained;
Second preserves subelement, is kept in the second spatial cache for the multi-medium data read by reading subelement.
16. devices as claimed in claim 15, is characterized in that:
Data acquiring unit, for after receiving data acquisition instruction, utilizes the first thread of process, from the first spatial cache, obtains multi-medium data;
First preserves subelement, for utilizing the first thread, the multi-medium data that data acquiring unit obtains is kept at the 3rd spatial cache;
Read subelement, for after receiving data acquisition instruction, utilize the second thread of described process, from the 3rd spatial cache, read the multi-medium data obtained;
Second preserves subelement, for utilizing the second thread of described process, is kept in the second spatial cache by the multi-medium data that reading subelement reads.
17. devices as claimed in claim 13, it is characterized in that, described multimedia file is video file, and described multi-medium data output device comprises display screen; Or
Described multimedia file is audio file, and described multi-medium data output device comprises loud speaker.
18. devices as claimed in claim 13, it is characterized in that, described multimedia file is audio file, and described first spatial cache is the spatial cache of AudioTrack, and described second spatial cache is the spatial cache of AudioRecorder.
19. devices as claimed in claim 1, it is characterized in that, described multimedia file is video file, and described first spatial cache is the spatial cache of SurfaceFlinger, and described second spatial cache is the spatial cache of CameraService.
20. devices as described in any one of claim 13 ~ 19, it is characterized in that, described device also comprises:
Reading unit, for reading the multi-medium data obtained from the second spatial cache;
Characteristic information determining unit, for the multi-medium data read from the second spatial cache according to reading unit, determines the characteristic information of corresponding multimedia file;
Display unit, for the described characteristic information determined according to characteristic information determining unit, obtains the information relevant to described multimedia file, and shows described relevant information by described multi-medium data output device.
21. devices as claimed in claim 20, is characterized in that, described display unit also for:
The specific operation entrance corresponding to described relevant information is shown by described multi-media output device.
22. devices as claimed in claim 21, it is characterized in that, described device also comprises:
Request obtains unit, for after display unit shows the specific operation entrance corresponding to described relevant information by described multi-media output device, obtains the operation requests initiated by described specific operation entrance;
Operation execution unit, for the operation performed with ask to obtain described operation requests that unit obtains and match.
23. devices as claimed in claim 22, it is characterized in that, when described operation requests comprises information acquisition request, operation execution unit is used for:
The information matched with described information acquisition request is sent to the other-end being different from described multimedia file playback equipment.
24. devices as claimed in claim 21, is characterized in that, when described relevant information comprises merchandise news, described specific operation entrance comprises:
The access links of commodity details page;
The information matched with described information acquisition request comprises:
Commodity details page.
25. 1 kinds of intelligent televisions, is characterized in that, comprise the device as described in claim as arbitrary in claim 13 ~ 24.
26. 1 kinds of Set Top Box, is characterized in that, comprise the device as described in claim as arbitrary in claim 13 ~ 24.
CN201410643616.0A 2014-11-10 2014-11-10 Multimedia data acquisition method, device, smart television and set-top box Pending CN105578224A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201410643616.0A CN105578224A (en) 2014-11-10 2014-11-10 Multimedia data acquisition method, device, smart television and set-top box
HK16112306.6A HK1224119A1 (en) 2014-11-10 2016-10-26 Method and device for obtaining multimedia data, smart television and set-top box

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410643616.0A CN105578224A (en) 2014-11-10 2014-11-10 Multimedia data acquisition method, device, smart television and set-top box

Publications (1)

Publication Number Publication Date
CN105578224A true CN105578224A (en) 2016-05-11

Family

ID=55887819

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410643616.0A Pending CN105578224A (en) 2014-11-10 2014-11-10 Multimedia data acquisition method, device, smart television and set-top box

Country Status (2)

Country Link
CN (1) CN105578224A (en)
HK (1) HK1224119A1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107957908A (en) * 2017-11-20 2018-04-24 深圳创维数字技术有限公司 A kind of microphone sharing method, device, computer equipment and storage medium
CN109508230A (en) * 2018-09-29 2019-03-22 百度在线网络技术(北京)有限公司 Acquisition method, device and the storage medium of audio data
CN109600677A (en) * 2018-12-11 2019-04-09 网易(杭州)网络有限公司 Data transmission method and device, storage medium, electronic equipment
CN111402933A (en) * 2020-03-04 2020-07-10 Oppo广东移动通信有限公司 Audio recording method, device, storage medium and related equipment
CN112351299A (en) * 2020-11-05 2021-02-09 山东亚华电子股份有限公司 Propaganda and education broadcasting method and device

Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102466A (en) * 2006-07-03 2008-01-09 长江计算机(集团)公司 A channel order method for broadband digital TV
CN101472154A (en) * 2007-12-27 2009-07-01 深圳华为通信技术有限公司 Method for switching digital channel and device for processing digital video
CN101600087A (en) * 2008-06-02 2009-12-09 鸿富锦精密工业(深圳)有限公司 Network TV program rebroadcasting system
CN201450545U (en) * 2008-12-16 2010-05-05 深圳市同洲电子股份有限公司 Digital television receiving terminal and time division demultiplexing/descrambling device
CN101808187A (en) * 2010-03-26 2010-08-18 深圳创维数字技术股份有限公司 Method for establishing local video library and set top box
CN201690514U (en) * 2010-03-30 2010-12-29 福建新大陆通信科技股份有限公司 Time-shifted digital TV set top box based on SD card
CN101950261A (en) * 2010-09-09 2011-01-19 中兴通讯股份有限公司 Data storage/authentication parallel processing method and terminal
CN102428696A (en) * 2009-06-11 2012-04-25 维里逊专利及许可公司 Enhanced simultaneous recording in multi-room digital video recorder
CN202261669U (en) * 2011-09-09 2012-05-30 �田�浩 Video recording and playing-back STB (Set Top Box)
CN202475686U (en) * 2012-01-04 2012-10-03 深圳市宽宏科技有限公司 Set top box capable of recording digital television program
CN103106609A (en) * 2012-12-03 2013-05-15 安徽广行通信科技股份有限公司 Online shopping system
CN103747317A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 A smooth playing control method of a play database in an instable network

Patent Citations (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101102466A (en) * 2006-07-03 2008-01-09 长江计算机(集团)公司 A channel order method for broadband digital TV
CN101472154A (en) * 2007-12-27 2009-07-01 深圳华为通信技术有限公司 Method for switching digital channel and device for processing digital video
CN101600087A (en) * 2008-06-02 2009-12-09 鸿富锦精密工业(深圳)有限公司 Network TV program rebroadcasting system
CN201450545U (en) * 2008-12-16 2010-05-05 深圳市同洲电子股份有限公司 Digital television receiving terminal and time division demultiplexing/descrambling device
CN102428696A (en) * 2009-06-11 2012-04-25 维里逊专利及许可公司 Enhanced simultaneous recording in multi-room digital video recorder
CN101808187A (en) * 2010-03-26 2010-08-18 深圳创维数字技术股份有限公司 Method for establishing local video library and set top box
CN201690514U (en) * 2010-03-30 2010-12-29 福建新大陆通信科技股份有限公司 Time-shifted digital TV set top box based on SD card
CN101950261A (en) * 2010-09-09 2011-01-19 中兴通讯股份有限公司 Data storage/authentication parallel processing method and terminal
CN202261669U (en) * 2011-09-09 2012-05-30 �田�浩 Video recording and playing-back STB (Set Top Box)
CN202475686U (en) * 2012-01-04 2012-10-03 深圳市宽宏科技有限公司 Set top box capable of recording digital television program
CN103106609A (en) * 2012-12-03 2013-05-15 安徽广行通信科技股份有限公司 Online shopping system
CN103747317A (en) * 2013-12-27 2014-04-23 高新兴科技集团股份有限公司 A smooth playing control method of a play database in an instable network

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107957908A (en) * 2017-11-20 2018-04-24 深圳创维数字技术有限公司 A kind of microphone sharing method, device, computer equipment and storage medium
CN109508230A (en) * 2018-09-29 2019-03-22 百度在线网络技术(北京)有限公司 Acquisition method, device and the storage medium of audio data
CN109600677A (en) * 2018-12-11 2019-04-09 网易(杭州)网络有限公司 Data transmission method and device, storage medium, electronic equipment
CN111402933A (en) * 2020-03-04 2020-07-10 Oppo广东移动通信有限公司 Audio recording method, device, storage medium and related equipment
CN111402933B (en) * 2020-03-04 2022-01-21 Oppo广东移动通信有限公司 Audio recording method, device, storage medium and related equipment
CN112351299A (en) * 2020-11-05 2021-02-09 山东亚华电子股份有限公司 Propaganda and education broadcasting method and device
CN112351299B (en) * 2020-11-05 2022-11-04 山东亚华电子股份有限公司 Propaganda and education broadcasting method and device

Also Published As

Publication number Publication date
HK1224119A1 (en) 2017-08-11

Similar Documents

Publication Publication Date Title
CN105578224A (en) Multimedia data acquisition method, device, smart television and set-top box
CN104394324A (en) Special-effect video generation method and device
US20210350545A1 (en) Image processing method and apparatus, and hardware apparatus
US11250863B2 (en) Frame coding for spatial audio data
CN109672902A (en) A kind of video takes out frame method, device, electronic equipment and storage medium
WO2022037011A1 (en) Method and device for providing video information
CN103702180A (en) Media file playing method and device
CN111131848A (en) Video live broadcast data processing method, client and server
WO2021052130A1 (en) Video processing method, apparatus and device, and computer-readable storage medium
CN104902145B (en) A kind of player method and device of live stream video
CN103095994A (en) High-definition medium non-linear editing method used in digital home and device thereof
CN106331876A (en) Method and device for playing web video
CN103677979A (en) Interactive method and device for application software and plugin
CN105898320A (en) Panorama video decoding method and device and terminal equipment based on Android platform
CN104581360A (en) Television terminal and method for playing television programs
CN109640019B (en) Method for recording and editing long video through mobile terminal
JP2016072858A (en) Media data generation method, media data reproduction method, media data generation device, media data reproduction device, computer readable recording medium and program
EP3547698A1 (en) Method and device for determining inter-cut time bucket in audio/video
CN104185085B (en) A kind of VOD method and device
CN107087231A (en) Video data player method and device
CN104125492B (en) Video broadcasting method and device
CN106792219B (en) It is a kind of that the method and device reviewed is broadcast live
CN114339289B (en) Video playing processing method
KR100597669B1 (en) Mobile telecommunication terminal for playing multimedia contents and method thereof
US20200286120A1 (en) Advertising monitoring method, system, apparatus, and electronic equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
REG Reference to a national code

Ref country code: HK

Ref legal event code: DE

Ref document number: 1224119

Country of ref document: HK

RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20160511

REG Reference to a national code

Ref country code: HK

Ref legal event code: WD

Ref document number: 1224119

Country of ref document: HK