CN109451154B - Method for setting multimedia file and terminal equipment - Google Patents

Method for setting multimedia file and terminal equipment Download PDF

Info

Publication number
CN109451154B
CN109451154B CN201811289489.3A CN201811289489A CN109451154B CN 109451154 B CN109451154 B CN 109451154B CN 201811289489 A CN201811289489 A CN 201811289489A CN 109451154 B CN109451154 B CN 109451154B
Authority
CN
China
Prior art keywords
information
multimedia file
vibration
terminal device
characteristic information
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
Application number
CN201811289489.3A
Other languages
Chinese (zh)
Other versions
CN109451154A (en
Inventor
黄业伟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201811289489.3A priority Critical patent/CN109451154B/en
Publication of CN109451154A publication Critical patent/CN109451154A/en
Application granted granted Critical
Publication of CN109451154B publication Critical patent/CN109451154B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/016Input arrangements with force or tactile feedback as computer generated output to the user
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72448User interfaces specially adapted for cordless or mobile telephones with means for adapting the functionality of the device according to specific conditions

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Theoretical Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Telephone Function (AREA)
  • User Interface Of Digital Computer (AREA)

Abstract

The embodiment of the invention discloses a method for setting a multimedia file and terminal equipment, which are applied to the technical field of communication and can solve the problem that the type of information presented by a video is single in the prior art. The method comprises the following steps: acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. The method is applied to setting the scene of the multimedia file.

Description

Method for setting multimedia file and terminal equipment
Technical Field
The embodiment of the invention relates to the technical field of communication, in particular to a method for setting a multimedia file and a terminal device.
Background
With the popularization of terminal technology, the application of terminal equipment is more and more extensive.
At present, because the information presented to the user when the mobile terminal plays the video is limited to visual information and auditory information, the type of information presented by the video is relatively single.
Disclosure of Invention
The embodiment of the invention provides a method for setting a multimedia file and terminal equipment, which are used for solving the problem that the type of information presented by a video is single in the prior art.
In order to solve the above technical problem, the embodiment of the present invention is implemented as follows:
in a first aspect, a method for setting a multimedia file is provided, and is applied to a terminal device, and the method includes: acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file.
In a second aspect, a terminal device is provided, which includes: the device comprises an acquisition module and a generation module; the system comprises an acquisition module, a storage module and a processing module, wherein the acquisition module is used for acquiring characteristic information in a multimedia file, and the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; the generating module is used for generating first vibration information corresponding to the first preset characteristic information under the condition that the characteristic information acquired by the acquiring module accords with the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file.
In a third aspect, a terminal device is provided, the terminal device comprising a processor, a memory and a computer program stored on the memory and operable on the processor, the computer program, when executed by the processor, implementing the steps of the method of setting a multimedia file according to the first aspect.
In a fourth aspect, a computer-readable storage medium is provided, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method of setting a multimedia file according to the first aspect.
In the embodiment of the invention, the characteristic information in the multimedia file is acquired, and the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. According to the scheme, the characteristic information in the multimedia file can be acquired, and the first vibration information corresponding to the first preset characteristic information is generated under the condition that the characteristic information accords with the first preset characteristic information, so that when the mobile terminal plays the multimedia file, the motor in the terminal equipment can be driven to vibrate according to the generated first vibration information, and therefore visual information and auditory information can be presented to a user when the multimedia file is played, and vibration information can also exist.
Drawings
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention;
fig. 2 is a first schematic diagram illustrating a method for setting a multimedia file according to an embodiment of the present invention;
fig. 3 is a first schematic interface diagram of a terminal device according to an embodiment of the present invention;
fig. 4 is a second schematic interface diagram of a terminal device according to an embodiment of the present invention;
fig. 5 is a schematic diagram illustrating a method for setting a multimedia file according to an embodiment of the present invention;
fig. 6 is a third schematic diagram illustrating a method for setting a multimedia file according to an embodiment of the present invention;
fig. 7 is a fourth schematic diagram illustrating a method for setting a multimedia file according to an embodiment of the present invention;
fig. 8 is a first schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 9 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 10 is a schematic structural diagram of a terminal device according to an embodiment of the present invention;
fig. 11 is a hardware schematic diagram of a terminal device according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
It should be noted that, in the embodiments of the present invention, words such as "exemplary" or "for example" are used to indicate examples, illustrations or explanations. Any embodiment or design described as "exemplary" or "e.g.," an embodiment of the present invention is not necessarily to be construed as preferred or advantageous over other embodiments or designs. Rather, use of the word "exemplary" or "such as" is intended to present concepts related in a concrete fashion.
The terminal device in the embodiment of the present invention may be a terminal device having an operating system. The operating system may be an Android (Android) operating system, an ios operating system, or other possible operating systems, and embodiments of the present invention are not limited in particular.
The following describes a software environment applied by the method for setting a multimedia file according to the embodiment of the present invention, by taking an android operating system as an example.
Fig. 1 is a schematic diagram of an architecture of a possible android operating system according to an embodiment of the present invention. In fig. 1, the architecture of the android operating system includes 4 layers, which are respectively: an application layer, an application framework layer, a system runtime layer, and a kernel layer (specifically, a Linux kernel layer).
The application program layer comprises various application programs (including system application programs and third-party application programs) in an android operating system.
The application framework layer is a framework of the application, and a developer can develop some applications based on the application framework layer under the condition of complying with the development principle of the framework of the application.
The system runtime layer includes libraries (also called system libraries) and android operating system runtime environments. The library mainly provides various resources required by the android operating system. The android operating system running environment is used for providing a software environment for the android operating system.
The kernel layer is an operating system layer of an android operating system and belongs to the bottommost layer of an android operating system software layer. The kernel layer provides kernel system services and hardware-related drivers for the android operating system based on the Linux kernel.
Taking an android operating system as an example, in the embodiment of the present invention, a developer may develop a software program for implementing the method for setting a multimedia file provided in the embodiment of the present invention based on the system architecture of the android operating system shown in fig. 1, so that the method for setting a multimedia file may run based on the android operating system shown in fig. 1. Namely, the processor or the terminal device can implement the method for setting the multimedia file provided by the embodiment of the invention by running the software program in the android operating system.
The embodiment of the invention provides a method and terminal equipment for setting a multimedia file, which are used for acquiring characteristic information in the multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. According to the scheme, the characteristic information in the multimedia file can be acquired, and the first vibration information corresponding to the first preset characteristic information is generated under the condition that the characteristic information accords with the first preset characteristic information, so that when the mobile terminal plays the multimedia file, the motor in the terminal equipment can be driven to vibrate according to the generated first vibration information, and therefore visual information and auditory information can be presented to a user when the multimedia file is played, and vibration information can also exist.
The terminal device in the embodiment of the invention can be a mobile terminal device and can also be a non-mobile terminal device. The mobile terminal device may be a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, an ultra-mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), etc.; the non-mobile terminal device may be a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, or the like; the embodiments of the present invention are not particularly limited.
The execution main body of the method for setting a multimedia file provided in the embodiment of the present invention may be the terminal device (including a mobile terminal device and a non-mobile terminal device), or may also be a functional module and/or a functional entity capable of implementing the method for setting a multimedia file in the terminal device, which may be determined specifically according to actual use requirements, and the embodiment of the present invention is not limited. The following takes a terminal device as an example to exemplarily describe the method for setting a multimedia file provided by the embodiment of the present invention.
As shown in fig. 2, the method of setting a multimedia file according to an embodiment of the present invention includes the following S11 and S12.
And S11, the terminal equipment acquires the characteristic information in the multimedia file.
Wherein, the multimedia file is audio or video; the characteristic information is at least one of sound information and image information.
Optionally, the multimedia file may be a multimedia file being recorded or a multimedia file being played.
In the embodiment of the present invention, in a case that the multimedia file is an audio, the characteristic information is sound information; when the multimedia file is a video, the feature information is image information, or audio information and image information.
In the embodiment of the invention, the feature information is acquired to determine whether a vibration effect needs to be added to a current video or audio scene, so as to generate vibration information. Optionally, in a scene where the image information indicates that the object a impacts the object B, an impact scene may be added, or in a scene where the sound information indicates that there is a gunshot or an explosion sound, a vibration effect may also be added to generate vibration information.
For example, as shown in fig. 3 or 4, in the case where a lightning occurs in the image information or a lightning sound is output from the horn shown in fig. 3 or 4, it may be determined as a scene in which the vibration effect needs to be increased, and at this time, the vibration information may be generated.
Optionally, when the multimedia file is a video and the feature information includes an image feature, the obtaining of the feature information in the multimedia file may include: acquiring continuous multi-frame images from the video, and extracting image features from the multi-frame images.
For example, taking a scene in which lightning appears in a video as an example, multiple frames of images are required to indicate the process of existence of the lightning, and two consecutive frames of images acquired from the video by taking the interface of the terminal device shown in fig. 3 and 4 as an example can determine the process of existence of the lightning from the two frames of images, extract the lightning as characteristic information, and generate vibration information corresponding to the lightning. (corresponding vibration effect can be generated when the motor is driven to vibrate according to the vibration information).
And S12, the terminal equipment generates first vibration information corresponding to the first preset characteristic information under the condition that the characteristic information conforms to the first preset characteristic information.
The first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file.
The preset feature information of the terminal device in the embodiment of the present invention may include at least one of sound information and image information. The terminal device in the embodiment of the present invention may include a plurality of preset feature information, and the first preset feature information may be one of the plurality of preset feature information.
Optionally, the terminal device in the embodiment of the present invention may store a corresponding relationship between the preset feature information and the driving signal. The terminal device may determine a corresponding driving signal according to the first preset feature information and the correspondence when the feature information conforms to the first preset feature information, and then generate first vibration information including the driving signal and vibration time information.
Optionally, when the feature information acquired by the terminal device is image information, the first preset feature information is image information; when the feature information acquired by the terminal device is voice information, the first preset feature information is voice information; and when the characteristic information acquired by the terminal equipment is sound information and image information, the first preset characteristic information is the sound information and the image information.
Optionally, the feature information meets the first preset feature information, and the similarity between the feature information and the first preset feature information is greater than a preset threshold.
The embodiment of the invention does not limit the specific value of the preset threshold, and the preset threshold can be set according to the actual situation.
For example, the preset threshold may be 50%, or the preset threshold may be 80%.
The embodiment of the invention provides a method for setting a multimedia file, which comprises the steps of obtaining characteristic information in the multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. According to the scheme, the characteristic information in the multimedia file can be acquired, and the first vibration information corresponding to the first preset characteristic information is generated under the condition that the characteristic information accords with the first preset characteristic information, so that when the mobile terminal plays the multimedia file, the motor in the terminal equipment can be driven to vibrate according to the generated first vibration information, and therefore visual information and auditory information can be presented to a user when the multimedia file is played, and vibration information can also exist.
Optionally, with reference to fig. 2, as shown in fig. 5, the method for setting a multimedia file according to the embodiment of the present invention may further include the following step S13 after the step S12.
And S13, the terminal equipment stores the first vibration information to the multimedia file.
Optionally, the first vibration information in the embodiment of the present invention may be saved in a multimedia file in a file form.
Referring to fig. 5, as shown in fig. 6, the method for setting a multimedia file according to the embodiment of the present invention may further include the following S14 after the above-mentioned S13.
And S14, driving the motor in the terminal equipment to vibrate according to the first vibration information when the terminal equipment plays the multimedia file.
Optionally, the terminal device may drive the motor in the terminal device to vibrate through the driving signal when the multimedia file is played to the time indicated by the vibration time information in the time axis of the multimedia file.
Alternatively, in conjunction with fig. 6, as shown in fig. 7, the above S12 may be replaced with S12a and S12b described below.
S12a, the terminal device determines that the image feature is located in the target area of the display screen of the terminal device under the condition that the feature information conforms to the first preset feature information.
S12b, the terminal device generates first vibration information corresponding to the first preset characteristic information.
Wherein, the first vibration information also comprises the information of the target area.
Illustratively, as shown in fig. 3 and 4, it may be determined that the lightning picture appears on the right side of the screen, so that the de-vertex image feature may be located on the right side in the display screen of the terminal device (the terminal display screen may be divided into two areas, the left side and the right side). The first vibration information may further include information indicating a right side in the display screen of the terminal device, and when the motor (indicated as a vibrator in fig. 3 and 4) in the terminal device is driven to vibrate according to the first vibration information, the motor on the right side in the terminal device may be driven to vibrate (referred to as a right vibrator in tables 3 and 4).
Alternatively, as shown in fig. 7, S14 in fig. 6 described above may be replaced with S14a described below.
And S14a, driving the first target motor corresponding to the target area in the terminal equipment to vibrate according to the first vibration information when the terminal equipment plays the multimedia file.
Optionally, the terminal device may include a correspondence between different areas in the terminal display screen and a motor in the terminal device. Thus, in the case where the information of the target area is included in the first vibration information, the first target motor corresponding to the target area in the terminal device can be driven to vibrate in accordance with the first vibration information.
As shown in fig. 8, an embodiment of the present invention provides a terminal device 130, where the terminal device 130 includes an obtaining module 131 and a generating module 132.
The acquiring module 131 is configured to acquire feature information in a multimedia file, where the multimedia file is an audio or a video; the characteristic information is at least one of sound information and image information; a generating module 132, configured to generate first vibration information corresponding to the first preset feature information when the feature information acquired by the acquiring module 131 conforms to the first preset feature information, where the first vibration information includes a driving signal and vibration time information, and the vibration time information is a time when the driving signal is output in a time axis of the multimedia file.
Optionally, with reference to fig. 8, as shown in fig. 9, the terminal device 130 further includes a saving module 133.
The saving module 133 is configured to save the first vibration information to the multimedia file after the generating module 132 generates the first vibration information corresponding to the first preset feature information.
Optionally, in conjunction with fig. 9, as shown in fig. 10, the terminal device 130 further includes a driving module 134.
The driving module 134 is configured to drive the motor in the terminal device to vibrate according to the first vibration information when the multimedia file is played after the storage module 133 stores the first vibration information in the multimedia file.
Optionally, the multimedia file is a video, and the feature information includes image features; the terminal equipment also comprises a determining module; the determining module is used for determining a target area of the image feature in a display screen of the terminal equipment before the generating module generates first vibration information corresponding to the first preset feature information, wherein the first vibration information also comprises information of the target area; and the driving module is specifically used for driving a first target motor corresponding to the target area in the terminal device to vibrate according to the first vibration information.
Optionally, the multimedia file is a video, and the feature information includes image features; the acquisition module is specifically used for acquiring continuous multi-frame images from a video; image features are extracted from a plurality of frame images.
The terminal device provided by the embodiment of the present invention can implement each process shown in the above method embodiments, and is not described herein again to avoid repetition.
The embodiment of the invention provides a terminal device, which is used for acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. According to the scheme, the characteristic information in the multimedia file can be acquired, and the first vibration information corresponding to the first preset characteristic information is generated under the condition that the characteristic information accords with the first preset characteristic information, so that when the mobile terminal plays the multimedia file, the motor in the terminal equipment can be driven to vibrate according to the generated first vibration information, and therefore visual information and auditory information can be presented to a user when the multimedia file is played, and vibration information can also exist.
Fig. 11 is a hardware schematic diagram of a terminal device for implementing various embodiments of the present invention, where the terminal device 100 includes but is not limited to: radio frequency unit 101, network module 102, audio output unit 103, input unit 104, sensor 105, display unit 106, user input unit 107, interface unit 108, memory 109, processor 110, and power supply 111. Those skilled in the art will appreciate that the terminal device configuration shown in fig. 11 does not constitute a limitation of the terminal device, and that the terminal device may include more or fewer components than shown, or combine certain components, or a different arrangement of components. In the embodiment of the present invention, the terminal device includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal device, a wearable device, a pedometer, and the like.
The processor 110 is configured to obtain feature information in a multimedia file, where the multimedia file is an audio or a video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file.
The embodiment of the invention provides a terminal device, which is used for acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information; and under the condition that the characteristic information accords with first preset characteristic information, generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal and vibration time information, and the vibration time information is the time when the driving signal is output in the time axis of the multimedia file. According to the scheme, the characteristic information in the multimedia file can be acquired, and the first vibration information corresponding to the first preset characteristic information is generated under the condition that the characteristic information accords with the first preset characteristic information, so that when the mobile terminal plays the multimedia file, the motor in the terminal equipment can be driven to vibrate according to the generated first vibration information, and therefore visual information and auditory information can be presented to a user when the multimedia file is played, and vibration information can also exist.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 101 may be used for receiving and sending signals during a message transmission or call process, and specifically, after receiving downlink data from a base station, the downlink data is processed by the processor 110; in addition, the uplink data is transmitted to the base station. Typically, radio frequency unit 101 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like. In addition, the radio frequency unit 101 can also communicate with a network and other devices through a wireless communication system.
The terminal device provides wireless broadband internet access to the user through the network module 102, such as helping the user send and receive e-mails, browse webpages, access streaming media, and the like.
The audio output unit 103 may convert audio data received by the radio frequency unit 101 or the network module 102 or stored in the memory 109 into an audio signal and output as sound. Also, the audio output unit 103 may also provide audio output related to a specific function performed by the terminal device 100 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 103 includes a speaker, a buzzer, a receiver, and the like.
The input unit 104 is used to receive an audio or video signal. The input Unit 104 may include a Graphics Processing Unit (GPU) 1041 and a microphone 1042, and the Graphics processor 1041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 106. The image frames processed by the graphic processor 1041 may be stored in the memory 109 (or other storage medium) or transmitted via the radio frequency unit 101 or the network module 102. The microphone 1042 may receive sound and may be capable of processing such sound into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 101 in case of a phone call mode.
The terminal device 100 also includes at least one sensor 105, such as a light sensor, a motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 1061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 1061 and/or the backlight when the terminal device 100 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the terminal device posture (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration identification related functions (such as pedometer, tapping), and the like; the sensors 105 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 106 is used to display information input by a user or information provided to the user. The Display unit 106 may include a Display panel 1061, and the Display panel 1061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 107 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the terminal device. Specifically, the user input unit 107 includes a touch panel 1071 and other input devices 1072. Touch panel 1071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 1071 (e.g., operations by a user on or near touch panel 1071 using a finger, stylus, or any suitable object or attachment). The touch panel 1071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 110, and receives and executes commands sent by the processor 110. In addition, the touch panel 1071 may be implemented in various types, such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. In addition to the touch panel 1071, the user input unit 107 may include other input devices 1072. Specifically, other input devices 1072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
Further, the touch panel 1071 may be overlaid on the display panel 1061, and when the touch panel 1071 detects a touch operation thereon or nearby, the touch panel 1071 transmits the touch operation to the processor 110 to determine the type of the touch event, and then the processor 110 provides a corresponding visual output on the display panel 1061 according to the type of the touch event. Although in fig. 11, the touch panel 1071 and the display panel 1061 are two independent components to implement the input and output functions of the terminal device, in some embodiments, the touch panel 1071 and the display panel 1061 may be integrated to implement the input and output functions of the terminal device, and is not limited herein.
The interface unit 108 is an interface for connecting an external device to the terminal apparatus 100. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 108 may be used to receive input (e.g., data information, power, etc.) from an external device and transmit the received input to one or more elements within the terminal apparatus 100 or may be used to transmit data between the terminal apparatus 100 and the external device.
The memory 109 may be used to store software programs as well as various data. The memory 109 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 109 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 110 is a control center of the terminal device, connects various parts of the entire terminal device by using various interfaces and lines, and performs various functions of the terminal device and processes data by running or executing software programs and/or modules stored in the memory 109 and calling data stored in the memory 109, thereby performing overall monitoring of the terminal device. Processor 110 may include one or more processing units; alternatively, the processor 110 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into the processor 110.
The terminal device 100 may further include a power supply 111 (such as a battery) for supplying power to each component, and optionally, the power supply 111 may be logically connected to the processor 110 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. In addition, the terminal device 100 includes some functional modules that are not shown, and are not described in detail here.
The embodiment of the present invention further provides a terminal device, where the terminal device may include a processor, a memory, and a computer program stored in the memory and capable of running on the processor, and when the computer program is executed by the processor, each process executed by the terminal device in the foregoing method embodiments may be implemented, and the same technical effect may be achieved, and details are not repeated here to avoid repetition.
The computer-readable storage medium according to an embodiment of the present invention is characterized in that a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process executed by the terminal device in the foregoing method embodiments, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal device (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (7)

1. A method for setting a multimedia file is applied to a terminal device, and is characterized in that the method comprises the following steps:
acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information;
under the condition that the characteristic information accords with first preset characteristic information, determining a target area of an image characteristic in a display screen of the terminal equipment, and generating first vibration information corresponding to the first preset characteristic information, wherein the first vibration information comprises a driving signal, vibration time information and information of the target area; the vibration time information is the time when the driving signal is output in the time axis of the multimedia file, and the characteristic information comprises image characteristics;
under the condition of playing the multimedia file, driving a first target motor corresponding to the target area in the terminal equipment to vibrate according to the first vibration information;
the feature information is used for determining whether the current scene of the multimedia file needs to generate vibration information.
2. The method according to claim 1, wherein after generating first vibration information corresponding to the first preset feature information, the method further comprises:
and saving the first vibration information to the multimedia file.
3. The method according to claim 1 or 2, wherein the multimedia file is a video, and the feature information includes image features; the acquiring the feature information in the multimedia file comprises:
acquiring continuous multi-frame images from the video;
and extracting the image features from the multi-frame images.
4. A terminal device, comprising: the device comprises an acquisition module and a generation module;
the acquisition module is used for acquiring characteristic information in a multimedia file, wherein the multimedia file is audio or video; the characteristic information is at least one of sound information and image information;
the generating module is configured to determine a target area where the image feature is located in a display screen of the terminal device and generate first vibration information corresponding to first preset feature information when the feature information acquired by the acquiring module conforms to the first preset feature information, where the first vibration information includes a driving signal, vibration time information, and information of the target area; the vibration time information is the time when the driving signal is output in the time axis of the multimedia file, and the characteristic information comprises image characteristics;
under the condition of playing the multimedia file, driving a first target motor corresponding to the target area in the terminal equipment to vibrate according to the first vibration information;
the feature information is used for determining whether the current scene of the multimedia file needs to generate vibration information.
5. The terminal device of claim 4, wherein the terminal device further comprises a save module;
the storage module is configured to store the first vibration information to the multimedia file after the generation module generates the first vibration information corresponding to the first preset feature information.
6. The terminal device according to claim 4 or 5, wherein the multimedia file is a video, and the feature information includes image features;
the acquiring module is specifically configured to acquire continuous multi-frame images from the video; and extracting the image features from the multi-frame images.
7. A terminal device, characterized in that it comprises a processor, a memory and a computer program stored on said memory and executable on said processor, said computer program, when executed by said processor, implementing the steps of the method of setting multimedia files according to any one of claims 1 to 3.
CN201811289489.3A 2018-10-31 2018-10-31 Method for setting multimedia file and terminal equipment Active CN109451154B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201811289489.3A CN109451154B (en) 2018-10-31 2018-10-31 Method for setting multimedia file and terminal equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201811289489.3A CN109451154B (en) 2018-10-31 2018-10-31 Method for setting multimedia file and terminal equipment

Publications (2)

Publication Number Publication Date
CN109451154A CN109451154A (en) 2019-03-08
CN109451154B true CN109451154B (en) 2021-04-23

Family

ID=65549240

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201811289489.3A Active CN109451154B (en) 2018-10-31 2018-10-31 Method for setting multimedia file and terminal equipment

Country Status (1)

Country Link
CN (1) CN109451154B (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112416116B (en) * 2020-06-01 2022-11-11 上海哔哩哔哩科技有限公司 Vibration control method and system for computer equipment
CN117270982A (en) * 2022-06-13 2023-12-22 中兴通讯股份有限公司 Data processing method, control device, electronic apparatus, and computer-readable medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458092A (en) * 2012-05-29 2013-12-18 中国电信股份有限公司 Mobile terminal touch player and touch play method
CN104049889A (en) * 2013-03-15 2014-09-17 英默森公司 Method and apparatus for encoding and decoding haptic information in multi-media files
CN104093078A (en) * 2013-11-29 2014-10-08 腾讯科技(北京)有限公司 Video file playing method and device
CN104683781A (en) * 2013-11-26 2015-06-03 深圳市快播科技有限公司 Video play processing method and video play processing device
CN105306982A (en) * 2015-05-22 2016-02-03 维沃移动通信有限公司 Sensory feedback method for mobile terminal interface image and mobile terminal thereof
CN106657975A (en) * 2016-10-10 2017-05-10 乐视控股(北京)有限公司 Video playing method and device
CN108235099A (en) * 2018-01-12 2018-06-29 瑞声科技(新加坡)有限公司 A kind of media and the synchronous broadcast method and its device of vibration

Family Cites Families (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1960518B (en) * 2005-11-02 2012-03-14 乐金电子(中国)研究开发中心有限公司 Apparatus and method for controlling hardware of mobile communication terminal serving with multimedia message
CN102024481B (en) * 2009-09-14 2013-01-09 展讯通信(上海)有限公司 Method and device for extracting vibration information from audio file and vibrating device
US8140570B2 (en) * 2010-03-11 2012-03-20 Apple Inc. Automatic discovery of metadata
CN103823549A (en) * 2012-11-19 2014-05-28 大连天地伟业数码科技有限公司 Somatosensory movie playing system
CN104661101A (en) * 2013-11-22 2015-05-27 胜华科技股份有限公司 System and method for providing augmented reality effect for multimedia data
CN105929941B (en) * 2016-04-13 2021-02-05 Oppo广东移动通信有限公司 Information processing method and device and terminal equipment

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103458092A (en) * 2012-05-29 2013-12-18 中国电信股份有限公司 Mobile terminal touch player and touch play method
CN104049889A (en) * 2013-03-15 2014-09-17 英默森公司 Method and apparatus for encoding and decoding haptic information in multi-media files
CN104683781A (en) * 2013-11-26 2015-06-03 深圳市快播科技有限公司 Video play processing method and video play processing device
CN104093078A (en) * 2013-11-29 2014-10-08 腾讯科技(北京)有限公司 Video file playing method and device
CN105306982A (en) * 2015-05-22 2016-02-03 维沃移动通信有限公司 Sensory feedback method for mobile terminal interface image and mobile terminal thereof
CN106657975A (en) * 2016-10-10 2017-05-10 乐视控股(北京)有限公司 Video playing method and device
CN108235099A (en) * 2018-01-12 2018-06-29 瑞声科技(新加坡)有限公司 A kind of media and the synchronous broadcast method and its device of vibration

Also Published As

Publication number Publication date
CN109451154A (en) 2019-03-08

Similar Documents

Publication Publication Date Title
CN110062105B (en) Interface display method and terminal equipment
CN110058836B (en) Audio signal output method and terminal equipment
CN110109593B (en) Screen capturing method and terminal equipment
CN109857494B (en) Message prompting method and terminal equipment
CN109828705B (en) Icon display method and terminal equipment
CN109710349B (en) Screen capturing method and mobile terminal
CN109085968B (en) Screen capturing method and terminal equipment
CN110752981B (en) Information control method and electronic equipment
CN109523253B (en) Payment method and device
CN107734172B (en) Information display method and mobile terminal
CN110930410B (en) Image processing method, server and terminal equipment
CN109257505B (en) Screen control method and mobile terminal
CN111401463B (en) Method for outputting detection result, electronic equipment and medium
CN109639887B (en) Control method and terminal equipment
CN108804151B (en) Method and terminal for restarting application program
CN110012151B (en) Information display method and terminal equipment
CN109992192B (en) Interface display method and terminal equipment
CN109451154B (en) Method for setting multimedia file and terminal equipment
CN111163227B (en) Sharing method and electronic equipment
CN111026263B (en) Audio playing method and electronic equipment
CN110187934B (en) Application control method, terminal and computer readable storage medium
CN109922256B (en) Shooting method and terminal equipment
CN109067429B (en) Control method and terminal equipment
CN108965701B (en) Jitter correction method and terminal equipment
CN111443968A (en) Screenshot method and electronic equipment

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant