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
- Summary
- Abstract
- Description
- Claims
- Application Information
AI Technical Summary
Problems solved by technology
Method used
Examples
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...
PUM
Abstract
Description
Claims
Application Information
- R&D Engineer
- R&D Manager
- IP Professional
- Industry Leading Data Capabilities
- Powerful AI technology
- Patent DNA Extraction
Browse by: Latest US Patents, China's latest patents, Technical Efficacy Thesaurus, Application Domain, Technology Topic, Popular Technical Reports.
© 2024 PatSnap. All rights reserved.Legal|Privacy policy|Modern Slavery Act Transparency Statement|Sitemap|About US| Contact US: help@patsnap.com