CN103020297B - Video file decoding method and the system of compatible kinds of platform - Google Patents

Video file decoding method and the system of compatible kinds of platform Download PDF

Info

Publication number
CN103020297B
CN103020297B CN201210591019.9A CN201210591019A CN103020297B CN 103020297 B CN103020297 B CN 103020297B CN 201210591019 A CN201210591019 A CN 201210591019A CN 103020297 B CN103020297 B CN 103020297B
Authority
CN
China
Prior art keywords
file
video file
video
head
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201210591019.9A
Other languages
Chinese (zh)
Other versions
CN103020297A (en
Inventor
易念华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shanghai Zhongyuan Network Co Ltd
Original Assignee
Beijing QIYI Century Science and Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Beijing QIYI Century Science and Technology Co Ltd filed Critical Beijing QIYI Century Science and Technology Co Ltd
Priority to CN201210591019.9A priority Critical patent/CN103020297B/en
Publication of CN103020297A publication Critical patent/CN103020297A/en
Application granted granted Critical
Publication of CN103020297B publication Critical patent/CN103020297B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02WCLIMATE CHANGE MITIGATION TECHNOLOGIES RELATED TO WASTEWATER TREATMENT OR WASTE MANAGEMENT
    • Y02W30/00Technologies for solid waste management
    • Y02W30/50Reuse, recycling or recovery technologies
    • Y02W30/82Recycling of waste of electrical or electronic equipment [WEEE]

Landscapes

  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

The invention discloses a kind of video file decoding method and system of compatible kinds of platform, can adapt to by a kind of file format the needs of kinds of platform. Its technical scheme is: after traditional flv files in stream media, increase a MP4 head, become a kind of new file format (for example can called after .pfv file), this new file format can be play after treatment in the Android Android system of intelligent terminal or apple IOS system.

Description

Video file decoding method and the system of compatible kinds of platform
Technical field
The present invention relates to a kind of encoding and decoding technique of video file, relate in particular to the compatible well video of kinds of platformThe decoding method of file and system.
Background technology
Along with the develop rapidly of mobile terminal, intelligent mobile terminal becomes the amusement and recreation instrument that a lot of people are indispensable,A lot of software services provide commercial city to develop the software operating on intelligent mobile terminal, wherein carrying of a lot of video trafficsExceed traditional PC end for business in the accounting of the portfolio of mobile terminal.
The operating system of intelligent mobile terminal is with the operating system (the normally Windows of Microsoft windows system) of conventional P CDifference, and the operating system of main flow intelligent mobile terminal on the market also has polytype, for example Android and IOSSystem. The video file format that on the platform of different operating system, acquiescence is supported is also different, for example Android intelligenceCan mobile terminal acquiescence support mp4 file, IOS mobile terminal acquiescence is supported ts file.
In prior art, it is to provide respectively not apposition in service end that the provider of video traffic provides Video service to userThe video file of formula is realized. So, need to safeguard in service end the video file of multiple file format, becomeThis is higher.
Summary of the invention
The object of the invention is to address the above problem, a kind of video file encoding and decoding side of compatible kinds of platform is providedMethod and system, can adapt to by a kind of file format the needs of kinds of platform.
Technical scheme of the present invention is: the present invention has disclosed a kind of video file decoding method of compatible kinds of platform,It is characterized in that, comprising:
After original video file, increase MP4 head to form the video file upgrading;
When the video file upgrading when play in Microsoft's Window system, by directly abandoning the MP4 head of increaseMode is play after being decoded as original video file.
According to an embodiment of the video file decoding method of compatible kinds of platform of the present invention, also comprise:
In the time that the video file upgrading is play in Android system, the video file upgrading is processed, willMP4 head forms MP4 file and plays before being positioned over original video file.
According to an embodiment of the video file decoding method of compatible kinds of platform of the present invention, forming MP4 fileProcess in, change by the description document in the MP4 head to being prepended to original video file, so that videoMulti-frame video in file and audio frequency are added the one section of video and the section audio that equal MP4 file.
According to an embodiment of the video file decoding method of compatible kinds of platform of the present invention, forming MP4 fileProcess in, by the compression of MP4 head is processed to compress MP4 file.
According to an embodiment of the video file decoding method of compatible kinds of platform of the present invention, also comprise:
When the video file upgrading when play in apple IOS system, in the video file upgrading, abandon increaseThe MP4 head adding, and each frame of original video file is changed into ts bag play.
According to an embodiment of the video file decoding method of compatible kinds of platform of the present invention, video file is flvThe file of stream media format.
The present invention has also disclosed a kind of video file encoding and decoding of compatible kinds of platform, comprising:
Video file updating device increases MP4 head to form the video file upgrading after original video file;
Windows system coding and decoding device, the mode of the MP4 head by directly abandoning increase is decoded as original video literary compositionPart is play original video file in Microsoft's Window system.
According to an embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention, system also comprises:
Android system coding and decoding device, processes the video file upgrading, and MP4 head is positioned over to original videoBefore file, form MP4 file, and in Android system, play MP4 file, in the process of formation MP4 file,Change by the description document in the MP4 head to being prepended to original video file, so that many in video fileFrame Audio and Video is added the one section of video and the section audio that equal MP4 file.
According to an embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention, Android system encoding and decodingDevice comprises compression unit, by the compression of MP4 head is processed to compress MP4 file.
According to an embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention, system also comprises:
IOS system coding and decoding device abandons increased MP4 head in the video file upgrading, and by original lookingEach frame of frequency file changes into ts bag, in apple IOS system, plays.
The present invention contrasts prior art following beneficial effect: the solution of the present invention is at traditional flv Streaming Media literary compositionAfter part, increase a MP4 head, become a kind of new file format (for example can called after .pfv file), this newFile format can be play after treatment in the Android Android system of intelligent terminal or apple IOS system,Compared to prior art, the invention enables video traffic provider to provide corresponding video literary composition for different platformsPart form, thus the operation cost of video traffic provider reduced.
Brief description of the drawings
The first embodiment of what Fig. 1 was exemplary the show video file decoding method of compatible kinds of platform of the present inventionFlow chart.
The second embodiment of what Fig. 2 was exemplary the show video file decoding method of compatible kinds of platform of the present inventionFlow chart.
The 3rd embodiment of what Fig. 3 was exemplary the show video file decoding method of compatible kinds of platform of the present inventionFlow chart.
The first embodiment of what Fig. 4 was exemplary the show video file coding/decoding system of compatible kinds of platform of the present inventionSchematic diagram.
The second embodiment of what Fig. 5 was exemplary the show video file coding/decoding system of compatible kinds of platform of the present inventionSchematic diagram.
The 3rd embodiment of what Fig. 6 was exemplary the show video file coding/decoding system of compatible kinds of platform of the present inventionSchematic diagram.
Fig. 7 A shows the video file coding schematic diagram that is applied to the Windows of Microsoft windows system platform.
Fig. 7 B shows the video file coding schematic diagram that is applied to Android Android system platform.
Fig. 7 C shows the schematic diagram that flv file on Android platform and mp4 file transform.
Detailed description of the invention
Below in conjunction with drawings and Examples, the invention will be further described.
Fig. 1 shows the flow process of the first embodiment of the video file decoding method of compatible kinds of platform of the present invention.Referring to Fig. 1, is the detailed description of the implementation step of the video file decoding method to the present embodiment below.
Step S10: increase MP4 head to form the video file upgrading after original video file.
Video file in the present embodiment is for example flv files in stream media, the video file in all embodiment of the applicationAll describe as an example of flv files in stream media example. After flv file, increase a mp4 head, refer to shown in Fig. 7 A,After flv file, increase mp4 head, become a kind of new file format, for example can called after pfv file.
Step S12: in the time that the video file upgrading is play in Microsoft's Window system, by directly abandoning increaseThe mode of MP4 head play after being decoded as original video file.
While broadcasting, directly mp4 head is given up to the flv file before becoming in the Windows system of PC end.
Fig. 2 shows the flow process of the second embodiment of the video file decoding method of compatible kinds of platform of the present invention.Refer to Fig. 2, details are as follows for the implementation step of the video file decoding method of the present embodiment.
Step S20: increase MP4 head to form the video file upgrading after original video file.
Video file in the present embodiment is for example flv files in stream media, increases a mp4 head after flv file, pleaseShown in Fig. 7 A, after flv file, increase mp4 head, become a kind of new file format, for example can nameFor pfv file.
Step S22: in the time that the video file upgrading is play in Microsoft's Window system, by directly abandoning increaseThe mode of MP4 head play after being decoded as original video file.
While broadcasting, directly mp4 head is given up to the flv file before becoming in the Windows system of PC end.
Step S24: in the time that the video file upgrading is play in Android system, the video file upgrading is carried outProcess, MP4 head is positioned over to original video file and forms MP4 file and play before.
Refer to Fig. 7 B, under Android system, play, preposition by mp. Because flv file is a frame video oneFrame audio frequency, mp4 file is one section of video one section audio, conventional mode is just can become mp4 file through transcoding.Therefore, in the process of formation MP4 file, by the description in the MP4 head to being prepended to original video fileFile is changed, so that the multi-frame video in video file and audio frequency are added the one section of video and that equals MP4 fileSection audio, mp4 file after treatment is as shown in Fig. 7 C. Processing can be saved transcoding process like this. Certainly process,Above-mentioned processing can make mp4 head increase, can be by the compression of MP4 head is processed to compress MP4 file.
Fig. 3 shows the flow process of the 3rd embodiment of the video file decoding method of compatible kinds of platform of the present invention.Refer to Fig. 3, details are as follows for the implementation step of the video file decoding method of the present embodiment.
Step S30: increase MP4 head to form the video file upgrading after original video file.
Video file in the present embodiment is for example flv files in stream media, increases a mp4 head after flv file, pleaseShown in Fig. 7 A, after flv file, increase mp4 head, become a kind of new file format, for example can nameFor pfv file.
Step S32: in the time that the video file upgrading is play in Microsoft's Window system, by directly abandoning increaseThe mode of MP4 head play after being decoded as original video file.
While broadcasting, directly mp4 head is given up to the flv file before becoming in the Windows system of PC end.
Step S34: in the time that the video file upgrading is play in apple IOS system, the video file upgradingIn abandon increased MP4 head, and each frame of original video file changed into ts bag play.
Fig. 4 shows the principle of the first embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention.Refer to Fig. 4, the video file coding/decoding system of the compatible kinds of platform of the present embodiment comprises: video file is new clothes morePut 10 and windows system coding and decoding device 12.
Video file updating device 10 is after original video file, to increase MP4 head to form the video file upgrading.Video file in the present embodiment is for example flv files in stream media, the video file in all embodiment of the application all withFlv files in stream media is that example describes. After flv file, increase a mp4 head, refer to shown in Fig. 7 A,After flv file, increase mp4 head, become a kind of new file format, for example can called after pfv file.
Windows system coding and decoding device 12 is that the mode of the MP4 head by directly abandoning increase is decoded as original videoFile is play original video file in Microsoft's Window system. While broadcasting in the Windows system of PC end,Directly mp4 head is given up to the flv file before becoming.
Fig. 5 shows the principle of the second embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention.Refer to Fig. 5, the video file coding/decoding system of the compatible kinds of platform of the present embodiment comprises: video file is new clothes morePut 20, windows system coding and decoding device 22 and Android system coding and decoding device 24.
Video file updating device 20 is after original video file, to increase MP4 head to form the video file upgrading.Video file in the present embodiment is for example flv files in stream media, the video file in all embodiment of the application all withFlv files in stream media is that example describes. After flv file, increase a mp4 head, refer to shown in Fig. 7 A,After flv file, increase mp4 head, become a kind of new file format, for example can called after pfv file.
Windows system coding and decoding device 22 is that the mode of the MP4 head by directly abandoning increase is decoded as original videoFile is play original video file in Microsoft's Window system. While broadcasting in the Windows system of PC end,Directly mp4 head is given up to the flv file before becoming.
Android system coding and decoding device 24 is processed the video file upgrading, and MP4 head is positioned over to original lookingBefore frequency file, form MP4 file, and in Android system, play MP4 file, in the process that forms MP4 fileIn, change by the description document in the MP4 head to being prepended to original video file, so that in video fileMulti-frame video and audio frequency be added the one section of video and the section audio that equal MP4 file. Refer to Fig. 7 B, at androidUnder system, play, preposition by mp. Because flv file is a frame video one frame audio frequency, mp4 file is one section of videoOne section audio, conventional mode is just can become mp4 file through transcoding. Therefore, forming MP4 fileIn process, change by the description document in the MP4 head to being prepended to original video file, so that video literary compositionMulti-frame video in part and audio frequency are added the one section of video and the section audio that equal MP4 file, mp4 literary composition after treatmentPart is as shown in Fig. 7 C. Processing can be saved transcoding process like this. Certainly, can make mp4 head increase through above-mentioned processingAdd, preferably processing is to comprise compression unit 240 at Android system coding and decoding device 24, by MP4 headCompression is processed and is compressed MP4 file.
Fig. 6 shows the principle of the 3rd embodiment of the video file coding/decoding system of compatible kinds of platform of the present invention.Refer to Fig. 6, the video file coding/decoding system of the compatible kinds of platform of the present embodiment comprises: video file is new clothes morePut 30, windows system coding and decoding device 32 and IOS system coding and decoding device 34.
Video file updating device 30 is after original video file, to increase MP4 head to form the video file upgrading.Video file in the present embodiment is for example flv files in stream media, the video file in all embodiment of the application all withFlv files in stream media is that example describes. After flv file, increase a mp4 head, refer to shown in Fig. 7 A,After flv file, increase mp4 head, become a kind of new file format, for example can called after pfv file.
Windows system coding and decoding device 32 is that the mode of the MP4 head by directly abandoning increase is decoded as original videoFile is play original video file in Microsoft's Window system. While broadcasting in the Windows system of PC end,Directly mp4 head is given up to the flv file before becoming.
IOS system coding and decoding device 34 is to abandon increased MP4 head in the video file upgrading, and will be originalEach frame of video file change into ts bag, in apple IOS system, play.
Above-described embodiment be available to those of ordinary skill in the art realize and use of the present invention, the common skill in this areaArt personnel can without departing from the present invention in the case of the inventive idea, make various modifications or variation to above-described embodiment,Thereby protection scope of the present invention do not limit by above-described embodiment, and should be to meet the wound that claims are mentionedThe maximum magnitude of new property feature.

Claims (7)

1. a video file decoding method for compatible kinds of platform, is characterized in that, comprising:
After original video file, increase MP4 head to form the video file upgrading, so that the video file after upgradingCan in kinds of platform, play, in the time using Android system playing video file, in the mistake that forms MP4 fileCheng Zhong, changes by the description document in the MP4 head to being prepended to original video file, so that video fileIn multi-frame video and audio frequency be added the one section of video and the section audio that equal MP4 file;
When the video file upgrading when play in Microsoft's Window system, by directly abandoning the MP4 head of increaseMode is play after being decoded as original video file, in the time that the video file upgrading is play in Android system,The video file upgrading is processed, MP4 head is positioned over to original video file and forms MP4 file also beforePlay.
2. the video file decoding method of compatible kinds of platform according to claim 1, is characterized in that,Form in the process of MP4 file, by the compression of MP4 head is processed to compress MP4 file.
3. the video file decoding method of compatible kinds of platform according to claim 1, is characterized in that, alsoComprise:
When the video file upgrading when play in apple IOS system, in the video file upgrading, abandon increaseThe MP4 head adding, and each frame of original video file is changed into ts bag play.
4. according to the video file decoding method of the compatible kinds of platform described in any one in claim 1-3, itsBe characterised in that, video file is the file of flv stream media format.
5. a video file coding/decoding system for compatible kinds of platform, comprising:
Video file updating device increases MP4 head to form the video file upgrading after original video file, withVideo file after upgrading can be play in kinds of platform;
Windows system coding and decoding device, the mode of the MP4 head by directly abandoning increase is decoded as original video literary compositionPart is play original video file in Microsoft's Window system;
Android system coding and decoding device, processes the video file upgrading, and MP4 head is positioned over to original videoBefore file, form MP4 file, and in Android system, play MP4 file, in the process of formation MP4 file,Change by the description document in the MP4 head to being prepended to original video file, so that many in video fileFrame Audio and Video is added the one section of video and the section audio that equal MP4 file.
6. the video file coding/decoding system of compatible kinds of platform according to claim 5, is characterized in that, peaceTall and erect system coding and decoding device comprises compression unit, by the compression of MP4 head is processed to compress MP4 file.
7. the video file coding/decoding system of compatible kinds of platform according to claim 5, is characterized in that, isSystem also comprises:
IOS system coding and decoding device abandons increased MP4 head in the video file upgrading, and by original lookingEach frame of frequency file changes into ts bag, in apple IOS system, plays.
CN201210591019.9A 2012-12-31 2012-12-31 Video file decoding method and the system of compatible kinds of platform Active CN103020297B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210591019.9A CN103020297B (en) 2012-12-31 2012-12-31 Video file decoding method and the system of compatible kinds of platform

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210591019.9A CN103020297B (en) 2012-12-31 2012-12-31 Video file decoding method and the system of compatible kinds of platform

Publications (2)

Publication Number Publication Date
CN103020297A CN103020297A (en) 2013-04-03
CN103020297B true CN103020297B (en) 2016-05-18

Family

ID=47968900

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210591019.9A Active CN103020297B (en) 2012-12-31 2012-12-31 Video file decoding method and the system of compatible kinds of platform

Country Status (1)

Country Link
CN (1) CN103020297B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105554593B (en) * 2015-12-10 2019-04-02 杭州当虹科技有限公司 A kind of document container conversion method of FLV to MP4

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101312460A (en) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 Method for converting media file of multiple formats into target device supported media file
CN101611395A (en) * 2006-11-06 2009-12-23 创新科技有限公司 The method and system that is used for the media file conversion
CN102098572A (en) * 2011-01-26 2011-06-15 上海交通大学 Customized streaming media embedding and playing system based on flash and realization method thereof

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101611395A (en) * 2006-11-06 2009-12-23 创新科技有限公司 The method and system that is used for the media file conversion
CN101312460A (en) * 2007-05-25 2008-11-26 上海美通无线网络信息有限公司 Method for converting media file of multiple formats into target device supported media file
CN102098572A (en) * 2011-01-26 2011-06-15 上海交通大学 Customized streaming media embedding and playing system based on flash and realization method thereof

Also Published As

Publication number Publication date
CN103020297A (en) 2013-04-03

Similar Documents

Publication Publication Date Title
CN106664458B (en) Method for transmitting video data, source device and storage medium
TWI642283B (en) Method and apparatus for packet header compression
CN103024491B (en) The video broadcasting method of mobile terminal and system
CN104244028B (en) A kind of content distribution method based on code stream adaptive technique, apparatus and system
WO2007072211A3 (en) Method and apparatus for using the host-pod interface of a digital television or other digital audio/video receiver for new services
CN104270595B (en) A kind of video calling client video speech switching system and its switching method
CN102656857B (en) Method and apparatus for acquiring and transmitting streaming media data in the process of initiation
CN102695094A (en) Method for carrying out software and hardware integrated audio/video redirection in VDI (Virtual Device Interface) environment
CN105407361A (en) Audio and video live broadcast data processing method and device
JP7100052B2 (en) Electronic device and its control method
EP2953132B1 (en) Method and apparatus for processing audio/video file
CN105208406A (en) Video data providing method and apparatus, video playing method and apparatuses, and video playing system
CN103517135A (en) Method, system and television capable of playing MP4-format video files continuously
CN112312221B (en) Audio and video playing method, storage medium and device
CN112995730A (en) Sound and picture synchronous adjustment method and device, electronic equipment and medium
CN102811235A (en) Media file off-line downloading method and device and off-line downloading server
CN103841451A (en) Multimedia playing method, device and terminal
CN103020297B (en) Video file decoding method and the system of compatible kinds of platform
CN103929682A (en) Method and device for setting key frames in video live broadcast system
CN104602046A (en) HLS protocol based information publishing method, device and system
WO2014029311A1 (en) Multimedia quality monitoring method and device
CN103856810A (en) Multi-media information terminal with screen transmission function
CN201957067U (en) Gateway providing device and video cloud computing system
CN102572364A (en) Decoding method and device for video communication data
CN105075190A (en) Using smart tv capabilities to enhance audio/video call

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
ASS Succession or assignment of patent right

Owner name: BEIJING QIYI CENTURY TECHNOLOGY CO., LTD.

Free format text: FORMER OWNER: CHUANJU INTERACTIVE (BEIJING) TECHNOLOGY CO., LTD.

Effective date: 20130823

C41 Transfer of patent application or patent right or utility model
COR Change of bibliographic data

Free format text: CORRECT: ADDRESS; FROM: 100026 CHAOYANG, BEIJING TO: 100080 HAIDIAN, BEIJING

TA01 Transfer of patent application right

Effective date of registration: 20130823

Address after: A city of Beijing Haidian District Haidian North Street 100080 No. 2 building 11 layer Goldtron expansion

Applicant after: Beijing Qiyi Century Technology Co., Ltd.

Address before: 100026 Beijing city Chaoyang District West Road No. 3 Building No. 3 hospital 3002

Applicant before: Transfer Interaction Together (Beijing) Technology Co., Ltd.

C14 Grant of patent or utility model
GR01 Patent grant
C41 Transfer of patent application or patent right or utility model
TR01 Transfer of patent right

Effective date of registration: 20160805

Address after: 201103 room 3, building 33, No. 701, Leshan Road, Shanghai

Patentee after: Shanghai Zhongyuan Network Co., Ltd.

Address before: A city of Beijing Haidian District Haidian North Street 100080 No. 2 building 11 layer Goldtron expansion

Patentee before: Beijing Qiyi Century Technology Co., Ltd.