Ffmpeg transcoding method based on java multi-thread concurrence

A multi-threaded, transcoding technology, applied in the field of ffmpeg transcoding, can solve problems such as fast response, slow transcoding speed of audio and video files, and inability to meet business needs, etc., to achieve the effect of increasing the transcoding rate

Pending Publication Date: 2021-05-11
中电万维信息技术有限责任公司
View PDF5 Cites 1 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0003] The purpose of the present invention is to provide a ffmpeg transcoding method based on JAVA multi-thread concurrency, to solve the problem of using ffmpeg transcoding technology in the prior art back-end program to transcode audio and video files at a slow speed, unable to respond quickly, and unable to meet business needs question

Method used

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
View more

Examples

Experimental program
Comparison scheme
Effect test

Embodiment 1

[0022] The present invention is used by taking the database as an example of an Oracle database, wherein the Oracle data source provides and distributes scheduling tasks to be transcoded for the upper layer service.

[0023] S1. Connect the Oracle database to the data application layer through the JDBC data source connection method, so that the web application can connect to the database;

[0024] S2. Write the JAVA thread pool into the web application, and test the call;

[0025] S3. Store the ffmpeg transcoding task in the database, and the integrated web application reads the ffmpeg transcoding task existing in the database;

[0026] S4. The web application schedules ffmpeg transcoding tasks stored in the database, and the thread pool dispatches threads to the tasks and starts them;

[0027] S5. Execute the ffmpeg command to perform the transcoding task, and finally save the transcoding result.

Embodiment 2

[0029] Take the Mysql database as an example to use the present invention, wherein the Mysql data source provides and dispatches scheduling tasks to be transcoded for upper-layer services.

[0030] S1. Connect the Mysql database to the data application layer through the JDBC data source connection method, so that the web application can connect to the database;

[0031] S2. Write the JAVA thread pool into the web application, and test the call;

[0032] S3. Store the ffmpeg transcoding task in the database, and the integrated web application reads the ffmpeg transcoding task existing in the database;

[0033] S4. The web application schedules ffmpeg transcoding tasks stored in the database, and the thread pool dispatches threads to the tasks and starts them;

[0034] S5. Execute the ffmpeg command to perform the transcoding task, and finally save the transcoding result.

[0035] The invention solves the problem of low transcoding speed and efficiency of audio and video files...

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

PUM

No PUM Login to view more

Abstract

The invention relates to the technical field of ffmpeg transcoding based on thread pool concurrence, in particular to an ffmpeg transcoding method based on JAVA multi-thread concurrence; the method comprises a database and a data application layer, the database is connected with the data application layer in a JDBC data source connection mode, the data application layer adopts JAVA thread pool multi-thread processing, and the data application layer is a Web application program; and the database is an Oracle database or a Mysql database. The problem of low audio and video file transcoding speed and efficiency in the prior art is solved. A thread pool technical scheme is introduced into a back-end Java program, a database carries out task scheduling of ffmpeg transcoding, a Java thread pool distributes threads and starts the ffmpeg transcoding task, and thread concurrent operation is carried out, so that the transcoding rate of audio and video files is improved.

Description

technical field [0001] The invention relates to the technical field of ffmpeg transcoding based on thread pool concurrency, in particular to a JAVA multi-thread concurrency ffmpeg transcoding method. Background technique [0002] In the existing back-end technology development, most of the recording and conversion of digital audio and video are based on ffmpeg single-thread operation. The transcoding of audio and video conversion files is relatively slow and cannot be converted quickly, which seriously affects the rapid response. Due to business requirements, data transcoding for large audio and video data files is even slower. The user experience is poor. In the environment of the Internet of Everything and the development of an artificial intelligence society, visualization and intelligence are the overall trend of social development, which depends to a certain extent on the speed and quality of information transmission. Higher requirements are required for the response ...

Claims

the structure of the environmentally friendly knitted fabric provided by the present invention; figure 2 Flow chart of the yarn wrapping machine for environmentally friendly knitted fabrics and storage devices; image 3 Is the parameter map of the yarn covering machine
Login to view more

Application Information

Patent Timeline
no application Login to view more
IPC IPC(8): G06F8/30G06F8/40G06F16/25
CPCG06F8/315G06F8/40G06F16/252
Inventor 吕伟牛宝童陆飞王海龙王祝荣
Owner 中电万维信息技术有限责任公司
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Try Eureka
PatSnap group products