CN111629214A - Transcoding method, device, equipment and medium of video file - Google Patents

Transcoding method, device, equipment and medium of video file Download PDF

Info

Publication number
CN111629214A
CN111629214A CN202010507049.1A CN202010507049A CN111629214A CN 111629214 A CN111629214 A CN 111629214A CN 202010507049 A CN202010507049 A CN 202010507049A CN 111629214 A CN111629214 A CN 111629214A
Authority
CN
China
Prior art keywords
data
video
browser
audio
transcoding
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
CN202010507049.1A
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.)
Beijing Baidu Netcom Science and Technology Co Ltd
Original Assignee
Beijing Baidu Netcom Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing Baidu Netcom Science and Technology Co Ltd filed Critical Beijing Baidu Netcom Science and Technology Co Ltd
Priority to CN202010507049.1A priority Critical patent/CN111629214A/en
Publication of CN111629214A publication Critical patent/CN111629214A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F40/00Handling natural language data
    • G06F40/10Text processing
    • G06F40/12Use of codes for handling textual entities
    • G06F40/151Transformation

Abstract

The embodiment of the application discloses a transcoding method, a transcoding device, transcoding equipment and a transcoding medium for a video file, which relate to the field of coding technology and cloud computing, and the specific implementation scheme is as follows: decoding a target video file to be transcoded by a browser in a client to obtain original data, and encoding the original data by the browser to obtain encoded data; and downloading the coded data in the browser to a client to obtain a video transcoding file. The transcoding performance and efficiency of the browser are greatly improved.

Description

Transcoding method, device, equipment and medium of video file
Technical Field
The embodiment of the application relates to computer technologies, in particular to an encoding technology, and in particular relates to a transcoding method, device, equipment and medium for a video file.
Background
At present, the transcoding of multimedia files by the browser is usually realized by using Javascript technology.
However, the Javascript technology has poor data and logic processing capabilities, and only can convert the encapsulation layer of the multimedia file to the maximum extent and cannot encode or decode the encoding layer of the multimedia file, so that transcoding of the multimedia file can be realized only by calling transcoding support of the server, and transcoding performance and efficiency of the browser are low.
Disclosure of Invention
The embodiment of the application discloses a transcoding method, a transcoding device, transcoding equipment and a transcoding medium of a video file, and aims to solve the problem that in the prior art, a browser needs to call transcoding support of a server side to transcode the video file, so that the transcoding performance and the transcoding efficiency of the browser are low.
In a first aspect, an embodiment of the present application discloses a transcoding method for a video file, which is executed by a client and includes:
decoding a target video file to be transcoded by a browser in a client to obtain original data, and encoding the original data by the browser to obtain encoded data;
and downloading the coded data in the browser to a client to obtain a video transcoding file.
In a second aspect, an embodiment of the present application further discloses a transcoding device for a video file, configured in a client, including:
the encoding and decoding module is used for decoding a target video file to be transcoded through a browser in a client to obtain original data, and encoding the original data through the browser to obtain encoded data;
and the coded data downloading module is used for downloading the coded data in the browser to a client to obtain a video transcoding file.
In a third aspect, an embodiment of the present application further discloses an electronic device, including:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor, the instructions being executable by the at least one processor to enable the at least one processor to perform a method of transcoding a video file as described in any of the embodiments of the present application.
In a fourth aspect, embodiments of the present application further disclose a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the method for transcoding a video file according to any of the embodiments of the present application.
According to the technical scheme of the embodiment of the application, the transcoding performance and efficiency of the browser are improved.
It should be understood that the statements in this section do not necessarily identify key or critical features of the embodiments of the present disclosure, nor do they limit the scope of the present disclosure. Other features of the present disclosure will become apparent from the following description.
Drawings
The drawings are included to provide a better understanding of the present solution and are not intended to limit the present application. Wherein:
fig. 1 is a flowchart of a method for transcoding a video file according to an embodiment of the present application;
fig. 2 is a flowchart of a transcoding method of a video file according to an embodiment of the present application;
fig. 3 is a schematic structural diagram of a transcoding device for a video file according to an embodiment of the present application;
fig. 4 is a block diagram of an electronic device disclosed according to an embodiment of the present application.
Detailed Description
The following description of the exemplary embodiments of the present application, taken in conjunction with the accompanying drawings, includes various details of the embodiments of the application for the understanding of the same, which are to be considered exemplary only. Accordingly, those of ordinary skill in the art will recognize that various changes and modifications of the embodiments described herein can be made without departing from the scope and spirit of the present application. Also, descriptions of well-known functions and constructions are omitted in the following description for clarity and conciseness.
In the research and development process of the applicant, the browser in the prior art realizes transcoding of a multimedia file by using a Javascript technology, but the Javascript technology belongs to a weak type language and is a single thread, the data and logic processing capability is poor, only the encapsulation layer of the multimedia file can be converted to the maximum extent, the encoding layer of the multimedia file cannot be encoded and decoded, and if the transcoding purpose is to be achieved, more performance is lost, and more memory and computing resources are wasted. However, this is not feasible for transcoding compression techniques, since forcing transcoding using Javascript techniques results in resources being restricted by the browser, or results in a browser crash directly. Therefore, the prior art realizes the transcoding of the video file by the browser by calling the transcoding support of the server. However, this causes a problem that the transcoding performance of the browser itself and the transcoding efficiency are low.
Fig. 1 is a flowchart of a transcoding method for a video file, which is disclosed in an embodiment of the present application, and the embodiment can be applied to a situation where a browser transcodes a video file to obtain a video transcoding file. The method of the embodiment can be executed by a transcoding device of a video file, the device is configured in a client, can be implemented by software and/or hardware, and can be integrated on any electronic device with computing capability.
As shown in fig. 1, the method for transcoding a video file disclosed in this embodiment may include:
s101, decoding a target video file to be transcoded through a browser in a client to obtain original data, and encoding the original data through the browser to obtain encoded data.
The client includes, but is not limited to, a smart phone, a tablet computer, a notebook computer, or any electronic device installed with an intelligent operating system. The browser is installed in the client in the form of software, and is used for displaying information streams such as texts, pictures, videos, audios and the like to a user. The target video file is composed of video pictures and audio information, and the formats of the target video file include, but are not limited to, mp4, avi, flv, and the like.
Specifically, a browser in a client acquires a target video file to be transcoded, where the target video file may be uploaded to the browser by a local client, or acquired from any webpage information by the browser through the internet, and the acquisition mode includes implementation by a Javascript technology, and this embodiment does not limit the source of the target video file. The browser firstly reads data information of a target video file, such as mp4 format data or avi format data, by using Javascript technology, and stores the data information of each video frame in a pre-established buffer, so that the subsequent browser can extract the data information from the buffer for processing. And after the data information is read, the browser extracts the data information of each video frame from the buffer area, and decodes the data information of each video frame through a pre-installed decoding device to obtain the original data of each frame. After the original data of each frame is obtained, the browser encodes the original data of each frame through a pre-installed encoding device to obtain encoded data of each frame. The decoding device can be a browser plug-in with a decoding function, or a decoder and the like; the encoding device may be a browser plug-in with an encoding function, or an encoder or the like.
Optionally, the original data includes video original data and audio original data, and the encoded data includes video encoded data and audio encoded data. The browser decodes each frame in the target video file through a decoding device to obtain video original data and audio original data of each frame; and coding the video original data and the audio original data of each frame by the coding device to obtain the video coded data and the audio coded data of each frame. The audio encoding data and the video encoding data are obtained by respectively encoding the audio original data and the video original data, and a foundation is laid for the subsequent client to respectively download the audio encoding data and the video encoding data.
The method comprises the steps of decoding a target video file to be transcoded by a browser in a client to obtain original data, and encoding the original data by the browser to obtain encoded data, so that the effect that the browser independently transcodes the video file is achieved.
And S102, downloading the coded data in the browser to a client to obtain a video transcoding file.
Specifically, the client monitors the encoding operation of the browser on the original data in real time, and if the client monitors that the browser completes the encoding operation on each frame, the client initiates a data downloading request to the browser so as to download encoded data obtained by encoding from the browser to the client, and obtain a video transcoding file obtained by transcoding a target video file.
Optionally, S102 includes:
and downloading the video coding data and the audio coding data in the browser to the client, and merging and packaging the downloaded video coding data and audio coding data to obtain a video transcoding file.
Specifically, the client downloads the video encoding data and the audio encoding data from the browser according to preset downloading rules, wherein the downloading rules preferably adopt a mode of respectively downloading the video encoding data and the audio encoding data to the client. After the video coding data and the audio coding data are downloaded, the client side combines and packages the video coding data and the audio coding data through the existing data packaging method to obtain a video transcoding file. For example, video encoding data and audio encoding data are converted into data segments, the data segments are converted into data packets or datagrams, the data packets or datagrams are converted into frames, and the frames are finally converted into bit streams, thereby completing the merging and encapsulating process.
By downloading the video coding data and the audio coding data to the client respectively, the situation that downloading fails due to the fact that breakpoints occur in the process of downloading the full coding data at one time is avoided, the data volume of single downloading is reduced, and the success rate of downloading the coding data by the browser is improved.
According to the technical scheme of the embodiment, the browser in the client decodes the target video file to be transcoded to obtain the original data, and the browser encodes the original data to obtain the encoded data, so that the effect that the browser independently transcodes the video file is achieved, transcoding support of the server does not need to be called, and transcoding performance and efficiency of the browser are greatly improved.
On the basis of the foregoing embodiment, optionally, "encoding the original data by the browser to obtain encoded data" in S101 includes:
according to the target parameters to be transcoded, encoding the original data through the browser to obtain encoded data; wherein the target parameters include at least one of: resolution, frame rate, and data format.
The target parameters are preset by a user, the resolution includes but is not limited to "720 p", "1080 p", and "2 k", the frame rate includes but is not limited to "30 Hz", "60 Hz", and "90 Hz", and the data format includes but is not limited to "mp 4", "avi", and "flv".
For example, assume that the target parameter is "resolution: 1080p "," frame rate: 60Hz "and" data Format: mp4 ″, the browser adjusts the encoding parameters involved in the encoding process according to the target parameters, so that the resolution of the video transcoding file corresponding to the finally obtained encoded data is 1080p, the frame rate is 60Hz, and the data format is mp 4.
The original data are coded through the browser according to the target parameters to be transcoded to obtain the coded data, so that the requirements of users on the coded data of different target parameters are met, and the coding flexibility is improved.
Fig. 2 is a flowchart of a transcoding method for a video file, which is disclosed according to an embodiment of the present application, and is further optimized and expanded based on the foregoing technical solution, and can be combined with the foregoing optional embodiments.
In this embodiment, the developer develops the decoder and the encoder in advance, and installs the decoder and the encoder in the browser.
Optionally, the browser includes a decoder in a WASM (WebAssembly, web application compilation) format, a video encoder, and an audio encoder; the WASM format is portable, small in size, fast in loading, high in running performance and compatible with a Web end format.
By arranging the decoder, the video encoder and the audio encoder in the WASM format in the browser, due to the characteristics of the WASM format, the independent transcoding of the video file by the browser can be realized without introducing a large amount of Javascript technology and calling the transcoding support of a server side, and the transcoding performance and efficiency of the browser are improved.
Optionally, the decoder in the WASM format, the video encoder, and the audio encoder are developed by using a high-level language.
Specifically, a decoder in the WASM format is developed and obtained through C + + language; the video encoder in the WASM format is developed and obtained through C + + language based on an X264 library and an X265 library; the audio encoder in WASM format is developed by including C + + language and based on Libaac library and Libmp3 library. And finally, outputting the obtained decoder, the video encoder and the audio encoder into a WASM format browser execution file, and uploading the WASM format browser execution file to a browser for the browser to use.
The decoder, the video encoder and the audio encoder in the WASM format are developed by adopting the high-level language, and due to the characteristics of the high-level language, the decoder, the video encoder and the audio encoder in the WASM format obtained by development have strong processing capacity on video files, and the browser can be ensured to smoothly complete transcoding on the video files.
As shown in fig. 2, the method may include:
s201, the browser decodes the target video file to be transcoded through a decoder in a WASM format to obtain video original data and audio original data.
Specifically, the browser first reads the data information of the target video file, and stores the data information of each video frame in a pre-established buffer area. And after the data information is read, the browser extracts the data information of each video frame from the buffer area, inputs the data information into an interface of a decoder in a WASM format, and decodes the data information of each video frame to obtain video original data and audio original data.
Optionally, S201 includes:
and decoding the encapsulation layer and the coding layer of the target video file to be transcoded by a decoder in a WASM format to obtain original video data and original audio data.
Specifically, the browser decodes the encapsulation layer of the data information of each video frame through a decoder in the WASM format, so that the encoding layer of the data information of each video frame can be exposed to the decoder, and then decodes the encoding layer of the data information of each video frame, and finally obtains the video original data and the audio original data of each video frame.
The decoding method comprises the steps of decoding a packaging layer and an encoding layer of a target video file to be transcoded by a decoder in a WASM format, and solving the problem that the Javascript technology cannot decode the encoding layer due to the superior performance of the decoder in the WASM format.
S202, the browser encodes the video original data through a video encoder in a WASM format to obtain the video encoded data.
Specifically, the browser inputs the decoded video raw data of each video frame into an interface of a video encoder in the WASM format, and encodes the video raw data of each video frame to obtain the video encoded data of each video frame. Since the WASM format video encoder in this embodiment is developed based on the X264 library and the X265 library, the finally obtained video encoding data meets the h.265 video encoding standard.
Optionally, the encoding parameters of the video encoder in the WASM format are adjusted according to the target parameters to be transcoded, so that the video transcoding file corresponding to the finally obtained encoded data meets the target parameters.
S203, the browser encodes the audio original data through an audio encoder in the WASM format to obtain the audio encoded data.
Specifically, the browser inputs the decoded audio raw data of each video frame into an interface of an audio encoder in the WASM format, and encodes the audio raw data of each video frame to obtain audio encoded data of each video frame. Since the WASM-format Audio encoder in this embodiment is developed based on Libaac library and Libmp3 library, the finally obtained Audio encoded data satisfies PCM (Pulse Code Modulation) standard and AAC (Advanced Audio Coding) standard.
Optionally, the encoding parameters of the audio encoder in the WASM format are adjusted according to the target parameters to be transcoded, so that the video transcoding file corresponding to the finally obtained encoded data meets the target parameters.
S204, downloading the video coding data and the audio coding data in the browser to the client, and merging and packaging the downloaded video coding data and audio coding data to obtain a video transcoding file.
According to the technical scheme of the embodiment, the target video file to be transcoded is decoded by the decoder in the WASM format to obtain the original video data and the original audio data, and the original video data and the original audio data are respectively encoded by the video encoder and the audio encoder in the WASM format to respectively obtain the encoded video data and the encoded audio data; and because the video coding data and the audio coding data are obtained by respectively coding, a foundation is laid for the subsequent client to respectively download the video coding data and the audio coding data.
Fig. 3 is a schematic structural diagram of a transcoding device for a video file, which is disclosed in an embodiment of the present application, and the embodiment is configured in a client, and can be applied to a situation where a browser transcodes a video file to obtain a video transcoding file. The device of the embodiment can be implemented by software and/or hardware, and can be integrated on any electronic equipment with computing capability.
As shown in fig. 3, the transcoding apparatus 30 of the video file disclosed in this embodiment may include a codec module 31 and an encoded data downloading module 32, where:
the encoding and decoding module 31 is configured to decode a target video file to be transcoded by using a browser in a client to obtain original data, and encode the original data by using the browser to obtain encoded data;
and the coded data downloading module 32 is configured to download the coded data in the browser to the client, so as to obtain a video transcoding file.
Optionally, the original data includes video original data and audio original data, and the encoded data includes video encoded data and audio encoded data;
accordingly, the encoded data downloading module 32 is specifically configured to:
and downloading the video coding data and the audio coding data in the browser to the client, and merging and packaging the downloaded video coding data and audio coding data to obtain a video transcoding file.
Optionally, the browser includes a decoder in the WASM format, a video encoder, and an audio encoder;
accordingly, the encoding/decoding module 31 is specifically configured to:
decoding a target video file to be transcoded by a decoder in a WASM format to obtain video original data and audio original data;
coding the video original data through a video coder in a WASM format to obtain the video coded data;
and coding the audio original data through an audio coder in a WASM format to obtain the audio coded data.
Optionally, the encoding/decoding module 31 is further specifically configured to:
and decoding the encapsulation layer and the coding layer of the target video file to be transcoded by a decoder in a WASM format to obtain original video data and original audio data.
Optionally, the decoder in the WASM format, the video encoder, and the audio encoder are developed by using a high-level language.
Optionally, the encoding/decoding module 31 is further specifically configured to:
according to the target parameters to be transcoded, encoding the original data through the browser to obtain encoded data; wherein the target parameters include at least one of: resolution, frame rate, and data format.
The transcoding device 30 of the video file disclosed in the embodiment of the present application can execute the transcoding method of any video file disclosed in the embodiment of the present application, and has functional modules and beneficial effects corresponding to the execution method. Reference may be made to the description of any method embodiment of the present application for details not explicitly described in this embodiment.
According to an embodiment of the present application, an electronic device and a readable storage medium are also provided.
Fig. 4 is a block diagram of an electronic device according to an embodiment of the present application. Electronic devices are intended to represent various forms of digital computers, such as laptops, desktops, workstations, personal digital assistants, servers, blade servers, mainframes, and other appropriate computers. The electronic device may also represent various forms of mobile devices, such as personal digital processing, cellular phones, smart phones, wearable devices, and other similar computing devices. The components shown herein, their connections and relationships, and their functions, are meant to be examples only, and are not meant to limit implementations of the present application that are described and/or claimed herein.
As shown in fig. 4, the electronic apparatus includes: one or more processors 401, memory 402, and interfaces for connecting the various components, including high-speed interfaces and low-speed interfaces. The various components are interconnected using different buses and may be mounted on a common motherboard or in other manners as desired. The processor may process instructions for execution within the electronic device, including instructions stored in or on the memory to display graphical information of a GUI on an external input/output apparatus (such as a display device coupled to the interface). In other embodiments, multiple processors and/or multiple buses may be used, along with multiple memories and multiple memories, as desired. Also, multiple electronic devices may be connected, with each device providing portions of the necessary operations (e.g., as a server array, a group of blade servers, or a multi-processor system). In fig. 4, one processor 401 is taken as an example.
Memory 402 is a non-transitory computer readable storage medium as provided herein. The memory stores instructions executable by at least one processor to cause the at least one processor to execute the transcoding method of the video file provided by the present application. A non-transitory computer-readable storage medium of the present application stores computer instructions for causing a computer to perform a method of transcoding video files provided herein.
The memory 402, as a non-transitory computer readable storage medium, may be used to store non-transitory software programs, non-transitory computer executable programs, and modules, such as program instructions/modules (e.g., the codec module 31 and the encoded data download module 32 shown in fig. 3) corresponding to the transcoding method of the video file in the embodiment of the present application. The processor 401 executes various functional applications of the server and data processing, namely, implements the transcoding method of the video file in the above-described method embodiment, by running the non-transitory software programs, instructions and modules stored in the memory 402.
The memory 402 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data region may store data created from use of the transcoded electronic device for the video file, and the like. Further, the memory 402 may include high speed random access memory, and may also include non-transitory memory, such as at least one magnetic disk storage device, flash memory device, or other non-transitory solid state storage device. In some embodiments, memory 402 optionally includes memory located remotely from processor 401, which may be connected to the transcoding electronic device of the video file over a network. Examples of such networks include, but are not limited to, the internet, intranets, local area networks, mobile communication networks, and combinations thereof.
The electronic device of the transcoding method of the video file may further include: an input device 403 and an output device 404. The processor 401, the memory 402, the input device 403 and the output device 404 may be connected by a bus or other means, and fig. 4 illustrates an example of a connection by a bus.
The input device 403 may receive input numeric or character information and generate key signal inputs related to user settings and function control of the electronic device of transcoding of the video file, such as a touch screen, keypad, mouse, track pad, touch pad, pointer stick, one or more mouse buttons, track ball, joystick, or other input device. The output devices 404 may include a display device, auxiliary lighting devices (e.g., LEDs), and haptic feedback devices (e.g., vibrating motors), among others. The display device may include, but is not limited to, a Liquid Crystal Display (LCD), a Light Emitting Diode (LED) display, and a plasma display. In some implementations, the display device can be a touch screen.
Various implementations of the systems and techniques described here can be realized in digital electronic circuitry, integrated circuitry, application specific ASICs (application specific integrated circuits), computer hardware, firmware, software, and/or combinations thereof. These various embodiments may include: implemented in one or more computer programs that are executable and/or interpretable on a programmable system including at least one programmable processor, which may be special or general purpose, receiving data and instructions from, and transmitting data and instructions to, a storage system, at least one input device, and at least one output device.
These computer programs (also known as programs, software applications, or code) include machine instructions for a programmable processor, and may be implemented using high-level procedural and/or object-oriented programming languages, and/or assembly/machine languages. As used herein, the terms "machine-readable medium" and "computer-readable medium" refer to any computer program product, apparatus, and/or device (e.g., magnetic discs, optical disks, memory, Programmable Logic Devices (PLDs)) used to provide machine instructions and/or data to a programmable processor, including a machine-readable medium that receives machine instructions as a machine-readable signal. The term "machine-readable signal" refers to any signal used to provide machine instructions and/or data to a programmable processor.
To provide for interaction with a user, the systems and techniques described here can be implemented on a computer having: a display device (e.g., a CRT (cathode ray tube) or LCD (liquid crystal display) monitor) for displaying information to a user; and a keyboard and a pointing device (e.g., a mouse or a trackball) by which a user can provide input to the computer. Other kinds of devices may also be used to provide for interaction with a user; for example, feedback provided to the user can be any form of sensory feedback (e.g., visual feedback, auditory feedback, or tactile feedback); and input from the user may be received in any form, including acoustic, speech, or tactile input.
The systems and techniques described here can be implemented in a computing system that includes a back-end component (e.g., as a data server), or that includes a middleware component (e.g., an application server), or that includes a front-end component (e.g., a user computer having a graphical user interface or a web browser through which a user can interact with an implementation of the systems and techniques described here), or any combination of such back-end, middleware, or front-end components. The components of the system can be interconnected by any form or medium of digital data communication (e.g., a communication network). Examples of communication networks include: local Area Networks (LANs), Wide Area Networks (WANs), and the Internet.
The computer system may include clients and servers. A client and server are generally remote from each other and typically interact through a communication network. The relationship of client and server arises by virtue of computer programs running on the respective computers and having a client-server relationship to each other.
According to the technical scheme of the embodiment of the application, the browser in the client decodes the target video file to be transcoded to obtain the original data, and the browser encodes the original data to obtain the encoded data, so that the effect that the browser independently transcodes the video file is achieved, transcoding support of a server side is not required to be called, and transcoding performance and efficiency of the browser are greatly improved.
It should be understood that various forms of the flows shown above may be used, with steps reordered, added, or deleted. For example, the steps described in the present application may be executed in parallel, sequentially, or in different orders, and the present invention is not limited thereto as long as the desired results of the technical solutions disclosed in the present application can be achieved.
The above-described embodiments should not be construed as limiting the scope of the present application. It should be understood by those skilled in the art that various modifications, combinations, sub-combinations and substitutions may be made in accordance with design requirements and other factors. Any modification, equivalent replacement, and improvement made within the spirit and principle of the present application shall be included in the protection scope of the present application.

Claims (14)

1. A method of transcoding a video file, performed by a client, the method comprising:
decoding a target video file to be transcoded by a browser in a client to obtain original data, and encoding the original data by the browser to obtain encoded data;
and downloading the coded data in the browser to a client to obtain a video transcoding file.
2. The method of claim 1, wherein the raw data comprises video raw data and audio raw data, the encoded data comprising video encoded data and audio encoded data;
correspondingly, the downloading the encoded data in the browser to the client to obtain the video transcoding file includes:
and downloading the video coding data and the audio coding data in the browser to the client, and merging and packaging the downloaded video coding data and audio coding data to obtain a video transcoding file.
3. The method of claim 2, wherein the browser includes a decoder in WASM format, a video encoder and an audio encoder;
correspondingly, the decoding, by a browser in a client, a target video file to be transcoded to obtain original data, and encoding, by the browser, the original data to obtain encoded data includes:
decoding a target video file to be transcoded by a decoder in a WASM format to obtain video original data and audio original data;
coding the video original data through a video coder in a WASM format to obtain the video coded data;
and coding the audio original data through an audio coder in a WASM format to obtain the audio coded data.
4. The method of claim 3, wherein decoding the target video file to be transcoded into the video original data and the audio original data by a decoder in the WASM format comprises:
and decoding the encapsulation layer and the coding layer of the target video file to be transcoded by a decoder in a WASM format to obtain original video data and original audio data.
5. The method of claim 3 wherein the WASM format decoder, video encoder and audio encoder are developed using a high level language.
6. The method of claim 1, wherein said encoding the raw data by the browser results in encoded data comprising:
according to the target parameters to be transcoded, encoding the original data through the browser to obtain encoded data; wherein the target parameters include at least one of: resolution, frame rate, and data format.
7. A transcoding apparatus for a video file, configured in a client, the apparatus comprising:
the encoding and decoding module is used for decoding a target video file to be transcoded through a browser in a client to obtain original data, and encoding the original data through the browser to obtain encoded data;
and the coded data downloading module is used for downloading the coded data in the browser to a client to obtain a video transcoding file.
8. The apparatus of claim 7, wherein the raw data comprises video raw data and audio raw data, the encoded data comprising video encoded data and audio encoded data;
correspondingly, the encoded data downloading module is specifically configured to:
and downloading the video coding data and the audio coding data in the browser to the client, and merging and packaging the downloaded video coding data and audio coding data to obtain a video transcoding file.
9. The apparatus of claim 8, wherein the browser includes a decoder in WASM format, a video encoder and an audio encoder;
correspondingly, the encoding and decoding module is specifically configured to:
decoding a target video file to be transcoded by a decoder in a WASM format to obtain video original data and audio original data;
coding the video original data through a video coder in a WASM format to obtain the video coded data;
and coding the audio original data through an audio coder in a WASM format to obtain the audio coded data.
10. The apparatus according to claim 9, wherein the codec module is further specifically configured to:
and decoding the encapsulation layer and the coding layer of the target video file to be transcoded by a decoder in a WASM format to obtain original video data and original audio data.
11. The apparatus of claim 9 wherein the WASM-format decoder, video encoder and audio encoder are developed in a high-level language.
12. The apparatus according to claim 7, wherein the codec module is further specifically configured to:
according to the target parameters to be transcoded, encoding the original data through the browser to obtain encoded data; wherein the target parameters include at least one of: resolution, frame rate, and data format.
13. An electronic device, comprising:
at least one processor; and
a memory communicatively coupled to the at least one processor; wherein the content of the first and second substances,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform a method of transcoding a video file as claimed in any of claims 1 to 6.
14. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of transcoding a video file of any of claims 1-6.
CN202010507049.1A 2020-06-05 2020-06-05 Transcoding method, device, equipment and medium of video file Pending CN111629214A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010507049.1A CN111629214A (en) 2020-06-05 2020-06-05 Transcoding method, device, equipment and medium of video file

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010507049.1A CN111629214A (en) 2020-06-05 2020-06-05 Transcoding method, device, equipment and medium of video file

Publications (1)

Publication Number Publication Date
CN111629214A true CN111629214A (en) 2020-09-04

Family

ID=72259325

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010507049.1A Pending CN111629214A (en) 2020-06-05 2020-06-05 Transcoding method, device, equipment and medium of video file

Country Status (1)

Country Link
CN (1) CN111629214A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182617A (en) * 2020-09-29 2021-01-05 京东数字科技控股股份有限公司 Processing method, device and system for interface request
CN113727112A (en) * 2021-09-23 2021-11-30 北京车和家信息技术有限公司 Video transcoding method, device, electronic equipment and medium
CN113840173A (en) * 2021-09-18 2021-12-24 北京百度网讯科技有限公司 Webpage video playing method, device, equipment, storage medium and program product
CN114040245A (en) * 2021-11-04 2022-02-11 广州博冠信息科技有限公司 Video playing method and device, computer storage medium and electronic equipment
CN114401445A (en) * 2021-12-31 2022-04-26 深圳云天励飞技术股份有限公司 Video processing control method and device, monitoring equipment, client and storage medium
CN115086717A (en) * 2022-06-01 2022-09-20 北京元意科技有限公司 Method and system for real-time editing, rendering and synthesizing of audio and video works

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130044260A1 (en) * 2011-08-16 2013-02-21 Steven Erik VESTERGAARD Script-based video rendering
US20160119399A1 (en) * 2014-10-24 2016-04-28 Kevin J. Glass Extending browser support of real time media to any available codec
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN110868625A (en) * 2019-11-22 2020-03-06 北京金山云网络技术有限公司 Video playing method and device, electronic equipment and storage medium
CN111083167A (en) * 2019-12-31 2020-04-28 深圳市思博慧数据科技有限公司 Cross-browser H.265 video playing method

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20130044260A1 (en) * 2011-08-16 2013-02-21 Steven Erik VESTERGAARD Script-based video rendering
US20160119399A1 (en) * 2014-10-24 2016-04-28 Kevin J. Glass Extending browser support of real time media to any available codec
CN107995519A (en) * 2017-11-30 2018-05-04 广州酷狗计算机科技有限公司 The method, apparatus and storage medium that multimedia file plays
CN110868625A (en) * 2019-11-22 2020-03-06 北京金山云网络技术有限公司 Video playing method and device, electronic equipment and storage medium
CN111083167A (en) * 2019-12-31 2020-04-28 深圳市思博慧数据科技有限公司 Cross-browser H.265 video playing method

Cited By (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112182617A (en) * 2020-09-29 2021-01-05 京东数字科技控股股份有限公司 Processing method, device and system for interface request
CN113840173A (en) * 2021-09-18 2021-12-24 北京百度网讯科技有限公司 Webpage video playing method, device, equipment, storage medium and program product
CN113727112A (en) * 2021-09-23 2021-11-30 北京车和家信息技术有限公司 Video transcoding method, device, electronic equipment and medium
CN113727112B (en) * 2021-09-23 2024-04-16 北京车和家信息技术有限公司 Video transcoding method, device, electronic equipment and medium
CN114040245A (en) * 2021-11-04 2022-02-11 广州博冠信息科技有限公司 Video playing method and device, computer storage medium and electronic equipment
CN114040245B (en) * 2021-11-04 2023-12-29 广州博冠信息科技有限公司 Video playing method and device, computer storage medium and electronic equipment
CN114401445A (en) * 2021-12-31 2022-04-26 深圳云天励飞技术股份有限公司 Video processing control method and device, monitoring equipment, client and storage medium
CN114401445B (en) * 2021-12-31 2024-03-22 深圳云天励飞技术股份有限公司 Video processing control method, device, monitoring equipment, client and storage medium
CN115086717A (en) * 2022-06-01 2022-09-20 北京元意科技有限公司 Method and system for real-time editing, rendering and synthesizing of audio and video works

Similar Documents

Publication Publication Date Title
CN111629214A (en) Transcoding method, device, equipment and medium of video file
CN108337545B (en) Media playback apparatus and media service apparatus for synchronously reproducing video and audio
CN107645491B (en) Media stream transmission apparatus and media service apparatus
CN107209693B (en) Buffer optimization
CN104796767A (en) Method and system for editing cloud video
KR101780782B1 (en) Method and apparatus for cloud streaming service
EP2804143A1 (en) System and method for forwarding a graphics command stream
US8719437B1 (en) Enabling streaming to a media player without native streaming support
CN102263942A (en) Scalable video transcoding device and method
CN108337248B (en) Media playback apparatus and media service apparatus
KR102346747B1 (en) System for cloud streaming service, method of cloud streaming service of providing multi-view screen based on resize and apparatus for the same
US20140333640A1 (en) System and method for forwarding a graphics command stream
KR20210095846A (en) System for cloud streaming service, method of image cloud streaming service using simultaneous encoding and apparatus for the same
US20140333639A1 (en) System and method for forwarding a graphics command stream
US10547878B2 (en) Hybrid transmission protocol
KR102271721B1 (en) System for cloud streaming service, method of image cloud streaming service considering terminal performance and apparatus for the same
KR102247892B1 (en) System for cloud streaming service, method of image cloud streaming service using application code and apparatus for the same
CN113825016A (en) Video rendering method, device, equipment, storage medium and computer program product
CN113938705A (en) Method, device, server, terminal equipment and system for video coding and decoding
EP2804094A1 (en) A system and method for forwarding a graphics command stream
EP2804095A1 (en) A system and method for forwarding a graphics command stream
KR102063093B1 (en) System for cloud streaming service, method of compressing data for preventing memory bottleneck and apparatus for the same
US11785281B2 (en) System and method for decimation of image data for multiviewer display
CN111491182B (en) Method and device for video cover storage and analysis
Li et al. iScreen: A Merged Screen of Local System with Remote Applications in a Mobile Cloud Environment

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
RJ01 Rejection of invention patent application after publication

Application publication date: 20200904

RJ01 Rejection of invention patent application after publication