Video Capture Class Bypassing Java Layer for Direct Encoder Access
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
Current video communication technologies lack a standard interface for video capture devices, leading to inefficiencies in video streaming services, as video data often requires processing through multiple layers, increasing the time needed for capturing and transmitting video data.
Innovation Solution
A method and apparatus that utilize a camera activation class within a programming language framework layer to capture, encode, and send video data directly to an encoder, bypassing the Java layer, thereby simplifying the process and reducing the time required for data copying and delivery.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Loss of time
If video data is processed through multiple layers including Java layer, then comprehensive processing and control are achieved, but the time needed for capturing and transmitting video data increases
Solution Approach 1:
The patent extracts the video data processing path from the conventional multi-layer architecture (which includes Java layer) and creates a direct pathway from the video capture bottom layer library to the encoder. This extraction eliminates unnecessary intermediate processing layers while maintaining the essential capture and encoding functions, thereby reducing transmission time without compromising core functionality.
Solution Approach 2:
The patent segments the video processing system into distinct functional modules: video capture bottom layer library, video capture class, and encoder. By defining clear interfaces and data flow between these segments, the system allows selective optimization of each segment. The video capture class can independently manage the direct data transmission path to the encoder, isolating it from the Java layer processing chain and reducing overall processing time.
2Productivity
If video data is sent directly from video capture bottom layer library to encoder, then transmission efficiency is improved, but standard interface compatibility may be compromised
Solution Approach 1:
The video capture class serves as an intermediary component between the video capture bottom layer library and the encoder. It implements the necessary interface protocols and data format conversions, ensuring compatibility with standard interfaces while enabling the optimized direct transmission path. This mediator maintains adaptability and versatility by handling interface negotiations and data formatting, allowing the system to work with various encoders and capture devices without sacrificing transmission efficiency.
Data Source
Figure 1
Figure 2~3
Figure 4
AI summary
Proposed are a video acquisition method and device. The method comprises: setting a video acquisition class in a programming language framework layer, with the video acquisition class inheriting a class in a video acquisition underlying library, and registering a callback function for the video acquisition underlying library; the video acquisition class sending a video acquisition command to the video acquisition underlying library, and the video acquisition underlying library acquiring video data according to the video acquisition command; and applying the callback function to acquire the video data from the video acquisition underlying library, and sending the video data to a coder for video data coding.