Looking for breakthrough ideas for innovation challenges? Try Patsnap Eureka!

A method for embedding video playback in games

A technology that embeds video and games. It is applied in the fields of digital video signal modification, electrical components, program control devices, etc. It can solve problems such as the drop of game frame rate and the inability to play video smoothly, and achieve the effect of smooth playback.

Active Publication Date: 2015-09-23
FUJIAN TQ DIGITAL
View PDF3 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005] 2) When using the ActiveX control to play video, it will seize resources with the main thread of the current game, resulting in a drop in the frame rate of the game or the inability to play the video smoothly

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

Image

Smart Image Click on the blue labels to locate them in the text.
Viewing Examples
Smart Image
  • A method for embedding video playback in games

Examples

Experimental program
Comparison scheme
Effect test

Embodiment Construction

[0017] see figure 1 As shown, a method for playing video embedded in a game of the present invention includes the following steps:

[0018] Step 10, add the dynamic link library of FFmpeg in game program, this dynamic link library is used for providing the decoding of video file;

[0019] Step 20, when the game program starts, the dynamic link library of FFmpeg is loaded, and when the video needs to be played in the game program, the video file to be played is read in from the computer hard disk, and the video file is read by the dynamic link library of the FFmpeg. The file is decoded into a video stream;

[0020] Step 30, read the color information of the image data of each frame in the video stream and generate a static picture corresponding to each frame; specifically: read the color information of the image data of each frame in the video stream (that is, The color value (RGB) of each image pixel point under the actual resolution of the video), the resolution of the vide...

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 provides a method for playing embedded videos in a game. The method comprises the following steps: step one, an FFmpeg dynamic linking library is added in a game program; step two, when the game program is started, the FFmpeg dynamic linking library is loaded, and when videos are required to be played in the game program, a video file needing to be played is read from a computer hard disk, and is decoded into a video streaming through the FFmpeg dynamic linking library; step three, color information of image data in all frames in the video streaming are read to generate static pictures corresponding to the frames; and step four, the static pictures corresponding to the frames are rendered in a game window of the game program frame by frame according to a preset playing speed. Through the invention, the embedded videos in the game are played, a decoder is not required to be mounted in the game program, and the video file can be smoothly played while the player game is not affected.

Description

【Technical field】 [0001] The invention relates to the technical field of multimedia applications, in particular to a method for playing video embedded in a game. 【Background technique】 [0002] Many broadcast softwares in the prior art are integrated with FFmpeg computer programs, such as Baofeng Video, QQ Video, etc.; its FFmpeg is a set of open source computer programs that can be used to record and convert digital audio and video, and can be converted into streams. It includes the current leading audio / video encoding library libavcodec. [0003] With the development of computer image processing technology, in order to enrich the user experience in the computer game process, there is a demand for embedded video playback in the game process. The so-called embedded video playback is to play the video in a certain part of the game window at the same time during the game rendering process. The current common technology is to build a corresponding ActiveX control inside the g...

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
Patent Type & Authority Patents(China)
IPC IPC(8): G06F9/445H04N19/20
Inventor 刘德建陈宏展王明巍陈任杨健
Owner FUJIAN TQ DIGITAL
Who we serve
  • R&D Engineer
  • R&D Manager
  • IP Professional
Why Patsnap Eureka
  • Industry Leading Data Capabilities
  • Powerful AI technology
  • Patent DNA Extraction
Social media
Patsnap Eureka Blog
Learn More
PatSnap group products