CN112099926A - Information processing method and device and electronic equipment - Google Patents

Information processing method and device and electronic equipment Download PDF

Info

Publication number
CN112099926A
CN112099926A CN202010779458.7A CN202010779458A CN112099926A CN 112099926 A CN112099926 A CN 112099926A CN 202010779458 A CN202010779458 A CN 202010779458A CN 112099926 A CN112099926 A CN 112099926A
Authority
CN
China
Prior art keywords
file
determining
type
mode
video
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
CN202010779458.7A
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.)
Lenovo Beijing Ltd
Original Assignee
Lenovo Beijing 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 Lenovo Beijing Ltd filed Critical Lenovo Beijing Ltd
Priority to CN202010779458.7A priority Critical patent/CN112099926A/en
Publication of CN112099926A publication Critical patent/CN112099926A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/48Program initiating; Program switching, e.g. by interrupt
    • G06F9/4806Task transfer initiation or dispatching
    • G06F9/4843Task transfer initiation or dispatching by program, e.g. task dispatcher, supervisor, operating system
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/445Program loading or initiating
    • G06F9/44568Immediately runnable code
    • G06F9/44578Preparing or optimising for loading

Abstract

The invention discloses an information processing method, which comprises the following steps: determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment; determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process; determining the type of the first file according to the suffix name of the first file; and optimizing the operation of the first file according to the type of the first file. The invention also discloses an information processing device and electronic equipment.

Description

Information processing method and device and electronic equipment
Technical Field
The present invention relates to electronic technologies, and in particular, to an information processing method and apparatus, and an electronic device.
Background
Electronic devices such as mobile phones, tablet computers, desktop computers, notebook computers, etc. have become important components of people's lives. People can work, study, entertain and live at any time and any place by using the electronic equipment. The enjoyment of multimedia resources such as watching videos and enjoying music at any time and any place is an important reason for people to use electronic equipment, for example, people can watch local videos and online videos on buses, and can also listen to music on the roads or at home at any time and any place, and the music listened can be local music or online music. Generally, online videos and online music are implemented by using a web page or some application program (APP) installed on an electronic device, and local music and local videos are implemented by using a playing application program (generally called playing software or a player) installed on the electronic device after being downloaded, wherein the player mostly also has the function of playing audio or video online. In the prior art, although watching video and listening to music are very common, the optimization of different types of multimedia resources (such as audio and video) by a system program of an electronic device or an application program of a third party is somewhat elusive.
Disclosure of Invention
In view of this, embodiments of the present invention provide an information processing method and apparatus, and an electronic device, for solving at least one problem in the prior art, so as to optimize a multimedia resource according to a type of the multimedia resource being played.
The technical scheme of the embodiment of the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides an information processing method, where the method includes:
determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
determining the type of the first file according to the suffix name of the first file;
and optimizing the operation of the first file according to the type of the first file.
In a second aspect, an embodiment of the present invention provides an information processing apparatus, including a first determining unit, a second determining unit, a third determining unit, and an optimizing unit, wherein:
the first determining unit is configured to determine identification information of a first process, where the first process is a set of processes using a sound channel of an electronic device;
the second determining unit is configured to determine, according to the identification information of the first process, a suffix name of a name of the first file, where the first file is an audio or video file being played by the first process;
the third determining unit is used for determining the type of the first file according to the suffix name of the first file;
the optimization unit is used for optimizing the operation of the first file according to the type of the first file.
In a third aspect, an embodiment of the present invention provides an electronic device, which includes a sound channel and a processor, where the processor is configured to:
determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
determining the type of the first file according to the suffix name of the first file;
and optimizing the operation of the first file according to the type of the first file.
The embodiment of the invention provides an information processing method and device and electronic equipment, wherein the information processing method comprises the following steps: determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment; determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process; determining the type of the first file according to the suffix name of the first file; optimizing the operation of the first file according to the type of the first file; in this way, the multimedia asset can be optimized according to the type of the multimedia asset being played.
Drawings
FIG. 1 is a schematic flow chart illustrating an implementation of an information processing method according to an embodiment of the present invention;
FIG. 2 is a schematic diagram of a second information processing apparatus according to an embodiment of the present invention;
FIG. 3 is a schematic diagram of a structure of an information processing apparatus according to a third embodiment of the present invention;
FIG. 4 is a schematic diagram of a structure of a fourth information processing apparatus according to an embodiment of the present invention;
FIG. 5 is a schematic diagram of a fifth exemplary embodiment of an information processing apparatus;
fig. 6 is a schematic diagram of a composition structure of a sixth information processing apparatus according to an embodiment of the present invention.
Detailed Description
The technical solution of the present invention is further elaborated below with reference to the drawings and the specific embodiments.
Example one
In order to solve the technical problems in the prior art, embodiments of the present invention provide an information processing method, which is applied to an electronic device, and functions implemented by the information processing method may be implemented by a processor in the electronic device calling a program code, where of course, the program code may be stored in a computer storage medium, and the electronic device at least includes the processor and the storage medium.
Fig. 1 is a schematic flow chart of an implementation of an information processing method according to an embodiment of the present invention, and as shown in fig. 1, the information processing method includes:
step S101, determining identification information of a first process, wherein the first process is a set of processes using a sound channel of electronic equipment;
here, the electronic device may be various types of devices having information processing capability in the process of the specific embodiment, and for example, the electronic device may include a mobile phone, a tablet computer, a desktop computer, a personal digital assistant, and the like.
Here, in general, the first process may be an application installed on the electronic device, or any online application, and if the user uses a web page to play Audio or video, the first process may also be referred to as a first process, and any process that can play Audio or video and uses an Audio (Audio) channel may be referred to as a first process.
Here, the first process can play a multimedia resource, the multimedia resource includes at least an audio resource and a video resource, generally, a player capable of playing audio can also play video, and similarly, a player capable of playing video can also play audio, so that a player can generally play both video and audio. Whether the audio resource or the video resource is played, the sound channel is needed to be used in the playing process.
It should be noted that sometimes there may be multiple first processes, for example, a user may play a video when playing music, or a user may open two or more videos simultaneously, or a user may open two or more audios simultaneously, and at this time, the user may hear multiple sounds at the same time, for example, the user may hear the sound of playing music and playing a video simultaneously, or the user may hear the sound of two or more videos simultaneously, or the user may hear the sound of two or more audios simultaneously. In such a case, there may be more than one first process in step S101, but a plurality.
Step S102, determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
here, Audio files (Audio files) are generally classified into two categories: sound files and Musical Instrument Digital Interface (MIDI) files, the sound files worth being original sounds recorded by sound recording equipment, directly recording binary sample data of true sounds; a MIDI file is a musical performance instruction sequence that can be performed using a sound output device or an electronic musical instrument connected to a computer. Generally, Audio files generally include Wave files, Audio files, AIFF files, MPEG Audio files, real Audio files, MIDI files, wherein: the Wave files have suffix names WAV, Audio files have suffix names AU, AIFF files have suffix names AIF/. AIFF, MPEG Audio files have suffix names MP1/. MP2/. MP3, RealAudio files have suffix names RA/. RM/. RAM and MIDI files have suffix names MID/. RMI.
As can be seen from the above, a general audio file has a one-to-one correspondence or a one-to-many correspondence with its suffix, and therefore, in the embodiment of the present invention, it may be determined whether the audio file belongs to the audio file according to the correspondence and then according to the suffix of the audio file.
Here, a Video file (Video file) is one of internet multimedia important contents. It mainly refers to multimedia files containing real-time audio and video information, which usually originates from a video input device. Video files generally include AVI files, QuickTime files, advanced stream Format files, RealVideo files, MPEG files, where the suffix name of the AVI file is AVI, the suffix name of the QuickTime file is MOV/. QT, the suffix name of the advanced stream Format file is ASF, the suffix name of the RealVideo file is RM, the suffix name of the MPEG file is MPEG/. MPG/. DAT
As can be seen from the above, a general video file has a one-to-one correspondence relationship or a one-to-many correspondence relationship with a suffix name thereof, and therefore, in the embodiment of the present invention, it may be determined whether the file belongs to a video file according to the correspondence relationship and then according to the suffix name of the video file.
Step S103, determining the type of the first file according to the suffix name of the first file;
here, the type of the first file includes at least two major types, an audio type and a video type.
Here, the determining the type of the first file from the suffix name of the first file includes: and searching a preset association relation according to the suffix name of the first file to obtain the type of the first file, wherein the association relation is used for indicating the corresponding relation between the suffix name of the file name and the file type. In a specific implementation process, the association relationship may be implemented by using a mapping table.
And step S104, optimizing the operation of the first file according to the type of the first file.
Here, in a specific implementation process, the step S104 may include: and optimizing the first process according to the type of the first file, for example, setting a full screen, a movie sound effect, a dim light enhancement technology and the like when the movie is played, and setting a music playing effect when the music is played. For another example, if the first file is a video, the first process is displayed in a full screen mode, if the first file is an audio, the tone quality of the audio is optimized, and audio tone quality optimization (Sound Normalizer) can help a user to improve the tone quality of music in various formats, so that song music which the user wants to listen to can reach the optimal level through various debugging and setting. How to optimize the audio quality can be realized by adopting the related technology, and details are not described here.
Two implementations of implementing step S104 are provided below:
in a first manner, S104, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, switching the sound of the electronic equipment into a first mode, wherein the first mode is a sound mode for playing the video; and if the type of the first file indicates that the first file is the audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio.
In the process of specific implementation, the sound mode of playing the audio can include an audio enhancement mode or a tone quality optimization processing mode, wherein the audio enhancement mode can enhance the audio, and the tone quality optimization processing mode can optimize the tone quality, so that the user can be helped to promote the music tone quality of various formats, and the song music that the user wants to listen to can reach the best level through various debugging and setting.
In a specific implementation process, the video mode for playing the audio may include an audio enhancement mode or a full screen mode or a sound quality optimization processing mode, where the audio enhancement mode can enhance the audio in the video, the sound quality optimization processing mode can optimize the sound quality, and the full screen mode can enable the video to be played in a full screen.
In a second mode, S104, the optimizing the operation of the first file according to the type of the first file includes: step S1041, if the type of the first file indicates that the first file is a video, acquiring a presentation mode of the electronic device; step S1042, judging whether the presentation mode of the electronic equipment meets a preset first condition; and S1043, if the first condition is met, setting the video to be full screen.
Here, for the electronic device having different presentation modes, taking a certain electronic device as an example, the electronic device has a tablet mode and a notebook mode, where the tablet mode means that the electronic device can be used by a user as if the user uses a tablet computer in the tablet mode, and the notebook mode means that the electronic device can be used by the user as if the user uses a notebook computer in the notebook mode.
Here, the first condition may be a tablet mode, and if the presentation mode of the electronic device is the tablet mode, the video is set to a full screen.
In the embodiment of the invention: determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment; determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process; determining the type of the first file according to the suffix name of the first file; optimizing the operation of the first file according to the type of the first file; in this way, the multimedia asset can be optimized according to the type of the multimedia asset being played.
Example two
The enjoyment of multimedia resources such as watching videos and enjoying music at any time and any place is an important reason for people to use electronic equipment, for example, people can watch local videos and online videos on buses, and can also listen to music on the roads or at home at any time and any place, and the music listened can be local music or online music. Generally, online videos and online music are implemented by using a web page or some application program (APP) installed on an electronic device, and local music and local videos are implemented by using a playing application program (generally called playing software or a player) installed on the electronic device after being downloaded. The embodiment of the invention provides an information processing method based on the first embodiment, and the method is actually an optimization scheme aiming at the video or audio on the webpage. Specifically, the method comprises the following steps:
step S201, determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
step S202, network card data is monitored;
step S203, acquiring a download link address of an audio or video file from the network card data;
and step S204, determining the suffix name of the first file according to the download connecting address.
Here, the first file is an audio or video file being played by the first process;
step S205, determining the type of the first file according to the suffix name of the first file;
step S206, optimizing the operation of the first file according to the type of the first file.
In the embodiment of the present invention, the steps S202 to S204 actually provide an implementation manner for implementing the step S102 "determining the suffix name of the first file according to the identification information of the first process" in the first embodiment.
In other embodiments of the present invention, the determining the type of the first file according to the suffix name of the first file in step S205 includes: and searching a preset association relation according to the suffix name of the first file to obtain the type of the first file, wherein the association relation is used for indicating the corresponding relation between the suffix name of the file name and the file type.
In other embodiments of the present invention, step S206, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, switching the sound of the electronic equipment into a first mode, wherein the first mode is a sound mode for playing the video; if the type of the first file indicates that the first file is an audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio;
in other embodiments of the present invention, step S206, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, acquiring a presentation mode of the electronic equipment; judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and if the first condition is met, setting the video to be full screen.
The Web playing audio and Video (Web Music/Video) in the embodiment of the present invention is different from the local playing (see the third embodiment) because the Web playing cannot monitor the reading of the file system to obtain the type. Therefore, in the embodiment of the present invention, the video sniffing technology is used to obtain the download address of the media file so as to obtain the type of the media file. The following describes a video sniffing technique (Sniffer technique) in an embodiment of the present invention: the system works at the bottom layer of the network environment, intercepts all data transmitted on the network, and can analyze the content of the data in real time through corresponding software processing; and finding a Video reference page by sniffing the data stream of the background page of the Video webpage, wherein the Video reference page has a corresponding Video reference website, and then capturing and displaying the Video reference page.
The following provides a schematic diagram of a composition structure of an information processing apparatus in implementation, as shown in fig. 2, the apparatus includes a Web page sniffing (Web sniffing) module and a voice channel monitoring (Audio Session Info) module, where: the webpage sniffing module: the method is used for monitoring the data of the network card and sniffing the download link address of the audio and video so as to acquire the audio and video type. The voice channel monitoring module is configured to monitor information of a voice channel of the current electronic device, such as identification information (Audio PID) of a host of each voice, and a State (State) of the voice, where the PID of each voice is a process using the voice channel, and the State of the voice includes an active State, a stop State, and a complete State. The operation principle of the information processing apparatus shown in fig. 2 includes: 1) acquiring voice software through Audio Session; 2) acquiring a data stream in a network card by a sniffing technology so as to acquire file types (video and audio); 3) and performing optimized setting on Music and Video scenes, and the like.
EXAMPLE III
The enjoyment of multimedia resources such as watching videos and enjoying music at any time and any place is an important reason for people to use electronic equipment, for example, people can watch local videos and online videos on buses, and can also listen to music on the roads or at home at any time and any place, and the music listened can be local music or online music. Generally, online videos and online music are implemented by using a web page or some application program (APP) installed on an electronic device, and local music and local videos are implemented by using a playing application program (generally called playing software or a player) installed on the electronic device after being downloaded. The embodiment of the invention provides an information processing method based on the first embodiment, and the method is actually an optimization scheme aiming at local video or local audio. Specifically, the method comprises the following steps:
step S301, determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
step S302, determining identification information of each second process in a second process set, wherein the second process set is a set of second processes reading files;
here, the determining the identification information of the second process set includes: and acquiring the identification information of each second process in the second process set through Fast IO Read of the file system.
Step S303, acquiring the name of the read file of each second process;
step S304, matching the identification information of the first process in the second process set;
step S305, determining a suffix name of the first file from the second process set according to the identification information of the first process;
here, the first file is an audio or video file being played by the first process;
step S306, determining the type of the first file according to the suffix name of the first file;
step S307, optimizing the operation of the first file according to the type of the first file.
In the embodiment of the present invention, the steps S302 to S305 actually provide an implementation manner of implementing the step S102 "determining the suffix name of the first file according to the identification information of the first process" in the first embodiment.
In the embodiment of the present invention, the method further includes:
step S308, acquiring a process list set by a user;
step S309, judging whether the process in the process list appears in the second process set;
step S310, if the process in the process list appears in the second process set, determining a name of the first file from the second process set according to the identification information of the first process.
Step S311, if the process in the process list does not appear in the second process set, the process ends.
In the embodiment of the present invention, as one of the characteristics of the embodiment of the present invention, files need to be read when a local audio/video file is played, and in the embodiment, whether audio or video is currently played is distinguished by using a name suffix of the read file of the first process. The following provides a schematic diagram of a composition structure of an information processing apparatus when implemented, as shown in fig. 3, the apparatus includes:
a Fast IO Read (Fast IO Read) module for monitoring Fast IO Read events of the file system, that is, for monitoring which processes in the system are reading files, and then determining information such as paths and names of the files according to identification information (such as process names) of the processes;
a voice channel monitoring (Audio Session Info) module, configured to monitor information of a voice channel of the current electronic device, such as identification information (Audio PID) of a owner of each voice, and a State (State) of the voice, where the PID of each voice is a process using the voice channel, and the State of the voice includes an active State, a stop State, and a completion State.
An application filtering module: and the white list is used for providing the play software (which can be set by the system default of the electronic equipment or set by the user) so as to filter the non-play video software.
The operation principle of the information processing apparatus shown in fig. 3 includes: 1) and acquiring the identification information of the sounding process through the input and output monitoring module. 2) And acquiring the path name of the local multimedia file (Media Files) Read by the software through Fast IO Read of the file system. 3) And acquiring the type (Music/Video) of the currently played multimedia file according to the type of the Media Files. 4) And performing optimized setting on Music and Video scenes, and the like.
In other embodiments of the present invention, the determining the type of the first file according to the suffix name of the first file in step S306 includes: and searching a preset association relation according to the suffix name of the first file to obtain the type of the first file, wherein the association relation is used for indicating the corresponding relation between the suffix name of the file name and the file type.
In another embodiment of the present invention, step S307, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, switching the sound of the electronic equipment into a first mode, wherein the first mode is a sound mode for playing the video; if the type of the first file indicates that the first file is an audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio;
in another embodiment of the present invention, step S307, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, acquiring a presentation mode of the electronic equipment; judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and if the first condition is met, setting the video to be full screen.
Example four
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing apparatus, where each unit included in the apparatus and each mode included in each unit can be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in the course of a particular embodiment, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 4 is a schematic diagram of a composition structure of a fourth apparatus according to an embodiment of the present invention, and as shown in fig. 4, the apparatus 400 includes a first determining unit 401, a second determining unit 402, a third determining unit 403, and an optimizing unit 404, where:
the first determining unit 401 is configured to determine identification information of a first process, where the first process is a set of processes using a sound channel of an electronic device;
the second determining unit 402 is configured to determine, according to the identification information of the first process, a suffix name of a name of the first file, where the first file is an audio or video file being played by the first process;
the third determining unit 403 is configured to determine the type of the first file according to a suffix name of the first file;
the optimizing unit 404 is configured to optimize the operation of the first file according to the type of the first file.
In an embodiment of the present invention, the third determining unit is configured to find a preset association relationship according to a suffix name of the first file, so as to obtain the type of the first file, where the association relationship is used to indicate a correspondence between the suffix name of the file name and the file type.
In an embodiment of the present invention, the optimization unit includes a first switching module and a second switching module, wherein: the first switching module is configured to switch the sound of the electronic device to a first mode if the type of the first file indicates that the first file is a video, where the first mode is a sound mode for playing a video; the second switching module is configured to switch the sound of the electronic device to a second mode if the type of the first file indicates that the first file is an audio, where the second mode is a sound mode for playing the audio;
in an embodiment of the present invention, the optimization unit includes a third obtaining module, a determining module, and a setting module, where: the third obtaining module is configured to obtain a presentation mode of the electronic device if the type of the first file indicates that the first file is a video; the judging module is used for judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and the setting module is used for setting the video to be full screen if the first condition is met.
Here, it should be noted that: the above description of the embodiment of the apparatus is similar to the above description of the embodiment of the method, and has similar beneficial effects to the embodiment of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
EXAMPLE five
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing apparatus, where each unit included in the apparatus and each mode included in each unit can be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in the course of a particular embodiment, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 5 is a schematic diagram of a composition structure of a fifth information processing apparatus according to an embodiment of the present invention, and as shown in fig. 5, the apparatus 400 includes a first determining unit 401, a second determining unit 402, a third determining unit 403, and an optimizing unit 404, where the second determining unit 402 includes a monitoring module 421, a first obtaining module 422, and a first determining module 423, where:
the first determining unit 401 is configured to determine identification information of a first process, where the first process is a set of processes using a sound channel of an electronic device;
the monitoring module 421 is configured to monitor network card data;
the first obtaining module 422 is configured to obtain a download link address of an audio or video file from the network card data;
the first determining module 423 is configured to determine a suffix name of the first file according to the download connection address.
Here, the first file is an audio or video file being played by the first process;
the third determining unit 403 is configured to determine the type of the first file according to a suffix name of the first file;
the optimizing unit 404 is configured to optimize the operation of the first file according to the type of the first file.
In an embodiment of the present invention, the third determining unit is configured to find a preset association relationship according to a suffix name of the first file, so as to obtain the type of the first file, where the association relationship is used to indicate a correspondence between the suffix name of the file name and the file type.
In an embodiment of the present invention, the optimization unit includes a first switching module and a second switching module, wherein: the first switching module is configured to switch the sound of the electronic device to a first mode if the type of the first file indicates that the first file is a video, where the first mode is a sound mode for playing a video; the second switching module is configured to switch the sound of the electronic device to a second mode if the type of the first file indicates that the first file is an audio, where the second mode is a sound mode for playing the audio;
in an embodiment of the present invention, the optimization unit includes a third obtaining module, a determining module, and a setting module, where: the third obtaining module is configured to obtain a presentation mode of the electronic device if the type of the first file indicates that the first file is a video; the judging module is used for judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and the setting module is used for setting the video to be full screen if the first condition is met.
Here, it should be noted that: the above description of the embodiment of the apparatus is similar to the above description of the embodiment of the method, and has similar beneficial effects to the embodiment of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
EXAMPLE six
Based on the foregoing embodiments, an embodiment of the present invention provides an information processing apparatus, where each unit included in the apparatus and each mode included in each unit can be implemented by a processor in an electronic device; of course, the implementation can also be realized through a specific logic circuit; in the course of a particular embodiment, the processor may be a Central Processing Unit (CPU), a Microprocessor (MPU), a Digital Signal Processor (DSP), a Field Programmable Gate Array (FPGA), or the like.
Fig. 6 is a schematic diagram of a composition structure of a sixth information processing apparatus according to an embodiment of the present invention, as shown in fig. 6, the apparatus 400 includes a first determining unit 401, a second determining unit 402, a third determining unit 403, and an optimizing unit 404, where the second determining unit 402 includes a second determining module 424, a second obtaining module 425, a matching module 426, and a third determining module 427, where:
the first determining unit 401 is configured to determine identification information of a first process, where the first process is a set of processes using a sound channel of an electronic device;
the second determining module 424 is configured to determine identification information of each second process in a second process set, where the second process set is a set of second processes that are reading a file;
the second obtaining module 425 is configured to obtain a name of the read file of each second process;
the matching module 426, configured to match the identification information of the first process in the second process set;
the third determining module 427 is configured to determine a suffix name of the first file from the second process set according to the identification information of the first process.
Here, the first file is an audio or video file being played by the first process;
the third determining unit 403 is configured to determine the type of the first file according to a suffix name of the first file;
the optimizing unit 404 is configured to optimize the operation of the first file according to the type of the first file.
Here, the second determining module is configured to obtain, through Fast IO Read of the file system, identification information of each second process in the second process set.
In an embodiment of the present invention, the third determining unit is configured to find a preset association relationship according to a suffix name of the first file, so as to obtain the type of the first file, where the association relationship is used to indicate a correspondence between the suffix name of the file name and the file type.
In an embodiment of the present invention, the optimization unit includes a first switching module and a second switching module, wherein: the first switching module is configured to switch the sound of the electronic device to a first mode if the type of the first file indicates that the first file is a video, where the first mode is a sound mode for playing a video; the second switching module is configured to switch the sound of the electronic device to a second mode if the type of the first file indicates that the first file is an audio, where the second mode is a sound mode for playing the audio;
in an embodiment of the present invention, the optimization unit includes a third obtaining module, a determining module, and a setting module, where: the third obtaining module is configured to obtain a presentation mode of the electronic device if the type of the first file indicates that the first file is a video; the judging module is used for judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and the setting module is used for setting the video to be full screen if the first condition is met.
In an embodiment of the present invention, the apparatus further includes an obtaining unit, a judging unit, a fourth determining unit, and an ending unit, where: the acquiring unit is used for acquiring a process list set by a user; the judging unit is configured to judge whether a process in the process list appears in the second process set; the fourth determining unit is configured to determine, if a process in the process list appears in the second process set, a name of the first file from the second process set according to the identification information of the first process. And the ending unit is used for ending the process if the process in the process list does not appear in the second process set.
Here, it should be noted that: the above description of the embodiment of the apparatus is similar to the above description of the embodiment of the method, and has similar beneficial effects to the embodiment of the method, and therefore, the description thereof is omitted. For technical details that are not disclosed in the embodiments of the apparatus of the present invention, please refer to the description of the embodiments of the method of the present invention for understanding, and therefore, for brevity, will not be described again.
EXAMPLE seven
Based on the foregoing embodiments, an embodiment of the present invention provides an electronic device, which includes a sound channel and a processor, where the processor is configured to:
determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
determining the type of the first file according to the suffix name of the first file;
and optimizing the operation of the first file according to the type of the first file.
In other embodiments of the present invention, the determining a suffix name of the first file according to the identification information of the first process includes: monitoring network card data; acquiring a downloading link address of an audio or video file from the network card data; and determining the suffix name of the first file according to the download connecting address.
In other embodiments of the present invention, the determining a suffix name of the first file according to the identification information of the first process includes: determining identification information of each second process in a second process set, wherein the second process set is a set of second processes reading files; acquiring the name of the read file of each second process; matching identification information of the first process in the second process set; and determining the name of the first file from the second process set according to the identification information of the first process.
Here, the determining the identification information of the second process set includes: and acquiring the identification information of each second process in the second process set through Fast IO Read of the file system.
In other embodiments of the present invention, the determining the type of the first file according to the suffix name of the first file includes: and searching a preset association relation according to the suffix name of the first file to obtain the type of the first file, wherein the association relation is used for indicating the corresponding relation between the suffix name of the file name and the file type.
In other embodiments of the present invention, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, switching the sound of the electronic equipment into a first mode, wherein the first mode is a sound mode for playing the video; if the type of the first file indicates that the first file is an audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio;
in other embodiments of the present invention, the optimizing the operation of the first file according to the type of the first file includes: if the type of the first file indicates that the first file is a video, acquiring a presentation mode of the electronic equipment; judging whether the presentation mode of the electronic equipment meets a preset first condition or not; and if the first condition is met, setting the video to be full screen.
In other embodiments of the present invention, the processor is further configured to obtain a process list set by a user; judging whether the process in the process list appears in the second process set or not; and if the process in the process list appears in the second process set, determining the name of the first file from the second process set according to the identification information of the first process.
Here, the processor is further configured to terminate the process if the process in the process list is not present in the second process set.
Here, it should be noted that: the description of the embodiment of the electronic device is similar to the description of the method, and has the same beneficial effects as the embodiment of the method, and therefore, the description is omitted. For technical details that are not disclosed in the embodiment of the electronic device of the present invention, those skilled in the art should refer to the description of the embodiment of the method of the present invention to understand that, for the sake of brevity, detailed description is not repeated here.
It should be appreciated that reference throughout this specification to "one embodiment" or "an embodiment" means that a particular feature, structure or characteristic described in connection with the embodiment is included in at least one embodiment of the present invention. Thus, the appearances of the phrases "in one embodiment" or "in an embodiment" in various places throughout this specification are not necessarily all referring to the same embodiment. Furthermore, the particular features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. It should be understood that, in various embodiments of the present invention, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation on the implementation process of the embodiments of the present invention. The above-mentioned serial numbers of the embodiments of the present invention are merely for description and do not represent the merits of the embodiments.
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.
In the several embodiments provided in the present application, it should be understood that the disclosed apparatus and method may be implemented in other ways. The above-described device embodiments are merely illustrative, for example, the division of the unit is only a logical functional division, and there may be other division ways in actual implementation, such as: multiple units or components may be combined, or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the coupling, direct coupling or communication connection between the components shown or discussed may be through some interfaces, and the indirect coupling or communication connection between the devices or units may be electrical, mechanical or other forms.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units; can be located in one place or distributed on a plurality of network units; some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, all the functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be separately regarded as one unit, or two or more units may be integrated into one unit; the integrated unit can be realized in a form of hardware, or in a form of hardware plus a software functional unit.
Those of ordinary skill in the art will understand that: all or part of the steps for realizing the method embodiments can be completed by hardware related to program instructions, the program can be stored in a computer readable storage medium, and the program executes the steps comprising the method embodiments when executed; and the aforementioned storage medium includes: various media that can store program codes, such as a removable Memory device, a Read Only Memory (ROM), a magnetic disk, or an optical disk.
Alternatively, the integrated unit of the present invention may be stored in a computer-readable storage medium if it is implemented in the form of a software functional module and sold or used as a separate product. Based on such understanding, the technical solutions of the embodiments of the present invention may be essentially implemented or a part contributing to the prior art may be embodied in the form of a software product, which is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute all or part of the methods described in the embodiments of the present invention. And the aforementioned storage medium includes: a removable storage device, a ROM, a magnetic or optical disk, or other various media that can store program code.
The above description is only for the specific embodiments of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present invention, and all the changes or substitutions should be covered within the scope of the present invention. Therefore, the protection scope of the present invention shall be subject to the protection scope of the appended claims.

Claims (10)

1. An information processing method, characterized in that the method comprises:
determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
determining the type of the first file according to the suffix name of the first file;
optimizing the operation of the first file according to the type of the first file;
wherein: the optimizing the operation of the first file according to the type of the first file comprises:
if the type of the first file indicates that the first file is a video, switching the sound of the electronic equipment into a first mode, wherein the first mode is a sound mode for playing the video;
and if the type of the first file indicates that the first file is the audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio.
2. The method of claim 1, wherein the determining a suffix name of the first file according to the identification information of the first process comprises:
monitoring network card data;
acquiring a downloading link address of an audio or video file from the network card data;
and determining the suffix name of the first file according to the download connecting address.
3. The method of claim 1, wherein the determining a suffix name of the first file according to the identification information of the first process comprises:
determining identification information of each second process in a second process set, wherein the second process set is a set of second processes reading files;
acquiring the name of the read file of each second process;
matching identification information of the first process in the second process set;
and determining the name of the first file from the second process set according to the identification information of the first process.
4. The method of claim 3, wherein determining identification information for the second set of processes comprises:
and acquiring the identification information of each second process in the second process set through Fast IO Read of the file system.
5. The method according to any one of claims 1 to 4, wherein the determining the type of the first file according to a suffix name of the first file comprises:
and searching a preset association relation according to the suffix name of the first file to obtain the type of the first file, wherein the association relation is used for indicating the corresponding relation between the suffix name of the file name and the file type.
6. The method according to any one of claims 1 to 4, wherein the optimizing the operation of the first file according to the type of the first file further comprises:
if the type of the first file indicates that the first file is a video, acquiring a presentation mode of the electronic equipment;
judging whether the presentation mode of the electronic equipment meets a preset first condition or not;
and if the first condition is met, setting the video to be full screen.
7. The method of claim 3, further comprising:
acquiring a process list set by a user;
judging whether the process in the process list appears in the second process set or not;
and if the process in the process list appears in the second process set, determining the name of the first file from the second process set according to the identification information of the first process.
8. An information processing apparatus characterized in that the apparatus includes a first determining unit, a second determining unit, a third determining unit, and an optimizing unit, wherein:
the first determining unit is configured to determine identification information of a first process, where the first process is a set of processes using a sound channel of an electronic device;
the second determining unit is configured to determine, according to the identification information of the first process, a suffix name of a name of the first file, where the first file is an audio or video file being played by the first process;
the third determining unit is used for determining the type of the first file according to the suffix name of the first file;
the optimizing unit is configured to switch the sound of the electronic device to a first mode if the type of the first file indicates that the first file is a video, where the first mode is a sound mode for playing a video; and if the type of the first file indicates that the first file is the audio, switching the sound of the electronic equipment into a second mode, wherein the second mode is a sound mode for playing the audio.
9. An electronic device, comprising a sound channel and a processor, wherein the processor is configured to:
determining identification information of a first process, wherein the first process is a set of processes using a sound channel of the electronic equipment;
determining a suffix name of the first file according to the identification information of the first process, wherein the first file is an audio or video file being played by the first process;
determining the type of the first file according to the suffix name of the first file;
and optimizing the operation of the first file according to the type of the first file.
10. A computer-readable storage medium, on which a computer program is stored, which, when being executed by a processor, carries out the steps in the information processing method according to any one of claims 1 to 7.
CN202010779458.7A 2016-03-29 2016-03-29 Information processing method and device and electronic equipment Pending CN112099926A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010779458.7A CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010779458.7A CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment
CN201610189127.1A CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
CN201610189127.1A Division CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Publications (1)

Publication Number Publication Date
CN112099926A true CN112099926A (en) 2020-12-18

Family

ID=57014542

Family Applications (2)

Application Number Title Priority Date Filing Date
CN201610189127.1A Active CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment
CN202010779458.7A Pending CN112099926A (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Family Applications Before (1)

Application Number Title Priority Date Filing Date
CN201610189127.1A Active CN105893496B (en) 2016-03-29 2016-03-29 Information processing method and device and electronic equipment

Country Status (1)

Country Link
CN (2) CN105893496B (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190404A (en) * 2021-04-23 2021-07-30 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112162869A (en) * 2020-09-09 2021-01-01 北京如影智能科技有限公司 Message prompting method and device

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device
CN105245938A (en) * 2015-09-30 2016-01-13 努比亚技术有限公司 Device and method for playing multimedia files

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101771869B (en) * 2008-12-30 2011-09-28 深圳市万兴软件有限公司 AV (audio/video) encoding and decoding device and method
CN104199897B (en) * 2014-08-27 2018-12-28 宁波高智创新科技开发有限公司 To the method and device for downloading file identification, saving and quickly searching

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103927146A (en) * 2014-04-30 2014-07-16 深圳市中兴移动通信有限公司 Sound effect self-adapting method and device
CN104934048A (en) * 2015-06-24 2015-09-23 小米科技有限责任公司 Sound effect regulation method and device
CN105245938A (en) * 2015-09-30 2016-01-13 努比亚技术有限公司 Device and method for playing multimedia files

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
武伟: "《操作系统教程》", 机械工业出版社, pages: 25 - 27 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113190404A (en) * 2021-04-23 2021-07-30 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium
CN113190404B (en) * 2021-04-23 2023-01-03 Oppo广东移动通信有限公司 Scene recognition method and device, electronic equipment and computer-readable storage medium

Also Published As

Publication number Publication date
CN105893496B (en) 2020-07-24
CN105893496A (en) 2016-08-24

Similar Documents

Publication Publication Date Title
US10019999B2 (en) Data processing method and system
CN103827912A (en) Web-based music partner systems and methods
US11848030B2 (en) Audio encoding for functional interactivity
JP6665200B2 (en) Multimedia information processing method, apparatus and system, and computer storage medium
JP2012231548A (en) Method and apparatus for transferring digital contents from personal computer to mobile handset
KR101991188B1 (en) Promotion information processing method, device, and apparatus, and non-volatile computer storage medium
WO2018157743A1 (en) Media data processing method, device, system and storage medium
JP6850321B2 (en) Methods and devices for generating information
WO2023051293A1 (en) Audio processing method and apparatus, and electronic device and storage medium
CN105893496B (en) Information processing method and device and electronic equipment
CN104038774A (en) Ring tone file generating method and device
WO2020147522A1 (en) Method and device for processing audio
WO2022160603A1 (en) Song recommendation method and apparatus, electronic device, and storage medium
CN104038772B (en) Generate the method and device of ring signal file
JP2023525091A (en) Image special effect setting method, image identification method, device and electronic equipment
CN105005612A (en) Music file acquisition method and mobile terminal
JP2014192870A (en) Multilingual simultaneous reproduction system
TW201426729A (en) Automatic emotion classification system with gamut-type sound effects
CN109815408B (en) Method and device for pushing information
US9736204B2 (en) Media content delivery over telephone networks
CN114301887A (en) Audio content playing method and audio content playing device
CN104038773A (en) Ring tone file generation method and device
McCullough Sound mobility: Smartphones and tablets as ubiquitous polymedia music production studios
CN115134615A (en) Voice comment information processing method and device, electronic equipment and storage medium
CN117711437A (en) Audio evaluation method, device, equipment and medium

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