Audio and video media file packaging implementation method

A technology of media files and implementation methods, applied in electrical components, image communication, selective content distribution, etc., can solve the problems of audio and video cannot be played, loss of key description information, loss of key header information, etc., to achieve high reliability and reliability. The effect of transmission stability

Active Publication Date: 2021-05-25
SICHUAN CHANGHONG NETWORK TECH CO LTD
View PDF8 Cites 0 Cited by
  • Summary
  • Abstract
  • Description
  • Claims
  • Application Information

AI Technical Summary

Problems solved by technology

[0005]Technical problem solved by the present invention: Provide audio and video media file encapsulation implementation method to solve the problem of loss or damage of key information in the head of the media file due to abnormal power failure and network transmission The problem that audio and video cannot be played due to the loss of key description information

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
  • Audio and video media file packaging implementation method
  • Audio and video media file packaging implementation method

Examples

Experimental program
Comparison scheme
Effect test

Embodiment

[0028] A kind of embodiment of the present invention is provided below, and data packet is fixed 320 bytes, and Baotou is fixed 16 bytes, specifically as attached figure 1 Shown:

[0029] Step 1: Split the audio and video frames into 320-byte data packets, and number them sequentially; specifically, divide the number of data bytes in the frame by 320, if the remainder is 0, then the quotient is the total number of packets in this frame , otherwise the quotient plus 1 is the total number of packets in this frame, and the remainder is the effective data length of the last packet in this frame, and the packets are numbered sequentially, starting from 0.

[0030] The second step: add a header with numbered fixed bytes to the data packet to form a packet; specifically, the packet contains sync_byte, version, encryption_type, sync_byte, reserve_1, payload_type, audio_type, video_type, smaple_rate, channels, bits, pack_length, reserve_2, key_frame_flag, last_key_frame_offset, last_k...

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 field of multimedia playing, in particular to an audio and video media file encapsulation implementation method, which comprises the following steps of: splitting an audio and video ES frame into data packets with fixed bytes, numbering the data packets in sequence, and adding headers of the fixed bytes to form new packets, so that each data packet contains necessary audio and video information; the problems that key information of a head is lost or damaged due to abnormal power failure of a media file and audio and video cannot be played due to key description information loss during network transmission are solved through the file formed by the packet, and the method and the device are suitable for audio and video recording and transmission.

Description

technical field [0001] The invention relates to the field of multimedia playing, in particular to a method for realizing encapsulation of audio and video media files. Background technique [0002] In recent years, a large number of network cameras have risen, and real-time images and recordings need to be stored in the cameras, and there are higher and higher requirements for storing images and recordings. Because of economic benefits, most IPCs run on CPU, memory speed Both are relatively limited, and the response is not very immediate when dealing with complex packaging formats. [0003] Traditional media packaging formats, such as existing MP4, TS, AVI, RA, RM, RMVB, MPEG, DixX, 3GP, FLV and other media formats, some occupy too much CPU, and some cannot Quickly locate the time point specified by the user, some cannot meet the requirements of network streaming, and some reasons such as abnormal power failure during recording and storage may cause the key information in th...

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): H04N21/2343H04N21/4402H04N21/647
CPCH04N21/2343H04N21/4402H04N21/64792
Inventor 张雷鸣姚亮常吕伦
Owner SICHUAN CHANGHONG NETWORK TECH CO LTD
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