CN101621573A - Method for playing video file in mobile phone - Google Patents

Method for playing video file in mobile phone Download PDF

Info

Publication number
CN101621573A
CN101621573A CN200910056199A CN200910056199A CN101621573A CN 101621573 A CN101621573 A CN 101621573A CN 200910056199 A CN200910056199 A CN 200910056199A CN 200910056199 A CN200910056199 A CN 200910056199A CN 101621573 A CN101621573 A CN 101621573A
Authority
CN
China
Prior art keywords
video file
decoding chip
mobile phone
ccir
video
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.)
Pending
Application number
CN200910056199A
Other languages
Chinese (zh)
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 Wingtech Electronic Technology Co Ltd
Original Assignee
Shanghai Wingtech Electronic 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 Shanghai Wingtech Electronic Technology Co Ltd filed Critical Shanghai Wingtech Electronic Technology Co Ltd
Priority to CN200910056199A priority Critical patent/CN101621573A/en
Publication of CN101621573A publication Critical patent/CN101621573A/en
Pending legal-status Critical Current

Links

Images

Abstract

The invention discloses a method for playing a video file in a mobile phone, which comprises the following steps: setting a CCIR time sequence output by a digital signal processor (DSP) decoding chip; allotting a first buffer space in a storage card; reading a video file in the first buffer space of the storage card; analyzing the video file and dividing the video file into Audio and Video; respectively transmitting the Audio and the Video in an RAM in the DSP decoding chip; before Audio and Video data are transmitted to the DSP decoding chip, judging whether the buffer space in the DSP decoding chip is full or not; if the buffer space in the DSP decoding chip is full, not needing to transmit data to the DSP decoding chip and reading an extra video file in the buffer space of the storage card under such condition; and playing the video file. The invention can improve the quality of the video file played by a mobile phone and synchronize the played sound and a played image.

Description

A kind of method that is applied to the playing video file of mobile phone
Technical field
The present invention relates to a kind of method that is applied to the playing video file of mobile phone.
Background technology
Along with Development of Multimedia Technology, mobile phone terminal market has engendered the mobile phone that can play-over as video formats such as RMVB, AVI.The appearance of this type of mobile phone greatly facilitates the terminal use, can watch excellent film anywhere.
It is generally acknowledged that this type of mobile phone will satisfy following requirement: the hardwood rate of playing image to reach 25fps or more than, play sound shadow and picture smoothness, play sound and image synchronization.But seldom have mobile phone can really reach above-mentioned requirements on the existing market, most mobile phones can occur playing that the hardwood rate is low excessively, broadcast is not smooth, sound picture is asynchronous even some video file such as can not play at problem.These problems are to be subjected to scheme company hardware constraints a bit, some is to be subjected to DSP decoding chip capabilities limits, other is owing to the mobile phone respective elements inside is not carried out reasonable configuration, the function of having given play to the mobile phone respective elements inside that can not maximal efficiency.
Summary of the invention
The technical problem to be solved in the present invention provides a kind of method that is applied to the playing video file of mobile phone, in the time of can realizing playing on the video file mobile phone, the hardwood rate of playing image reach 25fps or more than, play sound shadow and picture smoothness, play sound and image synchronization.
For reaching above purpose, the invention provides a kind of method that is applied to the playing video file of mobile phone, may further comprise the steps:
The CCIR sequential of a, the output of setting DSP decoding chip, to adapt to the baseband chip platform, guarantee correct display image on display screen, wherein DSP decoding chip and baseband chip are realized basic communication function by SPI, realize image transmission function by the CCIR interface; Baseband chip and storage card are by the SPI communication;
B, in storage card, distribute a certain amount of space to read, analyze the video file use for the DSP decoding chip as first spatial cache;
C, read video file in first spatial cache of storage card;
D, analysis video file are divided into Audio and Video;
E, Audio and Video are sent into respectively in the DSP decoding chip internal RAM, before sending Audio and Video data toward the DSP decoding chip, whether the inner buffer space of judging the DSP decoding chip is full, if its inner buffer space is full, then do not need to send data to it again, in this case, can read extra video file in the spatial cache that stores card, for Study document use next time, operational efficiency can effectively be improved like this, the resource of avoiding waste;
F, playing video file, repeating step c, d, e before video playback finishes.
The present invention is applied to the method for the playing video file of mobile phone, it is by the reasonable disposition to the mobile phone respective elements inside, when having realized that video file is play, the hardwood rate of playing image reach 25fps or more than, play sound shadow and picture smoothness, play sound and image synchronization, the situation of having avoided influencing result of broadcast occurs.
Description of drawings
Fig. 1 is a flow chart of the present invention;
Fig. 2 is the CCIR sequential chart of MV6601G output.
Embodiment
The invention will be further elaborated below in conjunction with accompanying drawing.
As shown in Figure 1, the invention provides a kind of method that is applied to the playing video file of mobile phone, may further comprise the steps:
The CCIR sequential of a, the output of setting DSP decoding chip, to adapt to the baseband chip platform, guarantee correct display image on display screen, wherein DSP decoding chip and baseband chip are realized basic communication function by SPI, realize image transmission function by the CCIR interface; Baseband chip and storage card are by the SPI communication;
B, in storage card, distribute a certain amount of space to read, analyze the video file use for the DSP decoding chip as first spatial cache, wherein first spatial cache of storage card size is 256KB or 512KB, in order to make displaying video smooth more, 512KB is adopted in preferred embodiment of the present invention;
C, read video file in first spatial cache of storage card;
D, analysis video file are divided into Audio and Video;
E, Audio and Video are sent into respectively in the DSP decoding chip internal RAM, before sending Audio and Video data toward the DSP decoding chip, whether the inner buffer space of judging the DSP decoding chip is full, if its inner buffer space is full, just do not need to send data to it again, in this case, can read extra video file in the spatial cache that stores card, for Study document use next time, can effectively improve operational efficiency like this, the resource of avoiding waste, wherein there is the spatial cache of at least 2 32KB DSP decoding chip inside, be used for alternately receiving the Audio information that baseband chip sends, also have the spatial cache of at least 6 160KB, be used for repeating query to receive the Video information that baseband chip sends;
F, playing video file, repeating step c, d, e before video playback finishes.
Baseband chip links to each other with the DSP decoding chip by SPI_1, to baseband chip, the frequency of SPI_1 can be set at 13MHz, this frequency can normal play QVGA (240x320) resolution video file, if play the movie file that surpasses QVGA, the frequency of SPI_1 need be set at higher 24MHz.
Baseband chip links to each other with storage card by SPI_2.For baseband chip, SPI_2 and SPI_1 are ports independently, and both can concurrent working.The frequency of SPI_2 is the highest also can to reach 24MHz, can choose correspondent frequency according to the occasion that mobile phone is used.
The CCIR interface of DSP decoding chip: CCIR_CLK, CCIR_PCLK, CCIR_VS, CCIR_HS, CCIR_D00 ~ CCIR_D07 link to each other with the corresponding port of baseband chip respectively.
In mobile phone displaying video process, the DSP decoding chip is resolved the Audio and the Video of video file respectively, by relatively Audio and Video pointer position, finish both synchronously, thereby solve the stationary problem of sound and image in the video display process.If both are offset excessive, the mode that the DSP decoding chip can be taked to lose some hardwood is finished synchronously.
In storage card except read, first spatial cache of Study document, also need one second spatial cache to be used for storing Audio and Video information after the DSP decoding chip is resolved, wherein Audio needs 32KB, Video needs 160KB, second spatial cache is greater than 192KB, and preferred embodiment of the present invention is 200KBytes.But the first and second spatial cache samsaras are used, and after filling for the first time is full it are sent into the DSP decoding chip, just can be used for filling data message next time.
The preferred embodiment according to the present invention, the DSP decoding chip adopts the MV6601G of Mo Wei company; Baseband chip adopts the SC6600R of spreadtrum company.
Set the CCIR sequential that the DSP decoding chip is exported according to different platform configuration, it is effective to be set at rising edge such as CCIR_VS, and CCIR_HS is set at trailing edge to begin to fetch data.As shown in Figure 2, CCIR sequential chart with the MV6601G of Mo Wei company output is an example, Vsync represents the CCIR_VS signal, Polarity (d) expression rising edge is effective, the data area that Start lines (b) expression is invalid, Valid lines (c) expression active data zone, from this point, CCIR_HS begins action, One complete Frame (a) represents complete hardwood data, and for the output resolution ratio of 320x240, this value is 240, for the output resolution ratio of 640x480, this value is 480; Hsync represents the CCIR_HS signal, Polarity (h) expression trailing edge begins to grasp data, the data area that StartData (f) expression is invalid, real active data signal is grasped in Valid Data (g) expression from this point, One complete Line (e) represents complete line data, and for the output resolution ratio of 320x240, this value is 320, for the output resolution ratio of 640x480, this value is 640; Pixel clock represents CCIR_PCLK, and this value can be set at different frequencies such as 6MHz, 12MHz or 24MHz as required; Data[7:0] yuv data of expression output.
By the foregoing description, purpose of the present invention is by in full force and effect having reached.The personage who is familiar with this skill should be understood that the content that the present invention includes but be not limited to describe in the top embodiment.Any modification that does not depart from function of the present invention and structural principle all will be included in the scope of claims.

Claims (8)

1. method that is applied to the playing video file of mobile phone may further comprise the steps:
The CCIR sequential of a, the output of setting DSP decoding chip to adapt to the baseband chip platform, makes it correct display image on display screen, and wherein DSP decoding chip and baseband chip are realized communication function by SPI, realize image transmission function by the CCIR interface; Baseband chip and storage card are by the SPI communication;
B, in storage card, distribute a certain amount of space to read, analyze the video file use for the DSP decoding chip as first spatial cache;
C, read video file in first spatial cache of storage card;
D, analysis video file are divided into Audio and Video;
E, Audio and Video are sent into respectively in the DSP decoding chip internal RAM, wherein, before sending Audio and Video data toward the DSP decoding chip, whether the inner buffer space of judging the DSP decoding chip is full, if its inner buffer space is full, then do not need to send data to it again, in this case, can read extra video file in the spatial cache that stores card, for Study document use next time;
F, playing video file, repeating step c, d, e before video playback finishes.
2. the method that is applied to the playing video file of mobile phone as claimed in claim 1 is characterized in that, baseband chip links to each other with the DSP decoding chip by SPI_1, and baseband chip links to each other with storage card by SPI_2.
3. the method that is applied to the playing video file of mobile phone as claimed in claim 1 or 2, it is characterized in that the CCIR interface of DSP decoding chip: CCIR_CLK, CCIR_PCLK, CCIR_VS, CCIR_HS, CCIR_D00 ~ CCIR_D07 link to each other with the corresponding port of baseband chip respectively.
4. the method that is applied to the playing video file of mobile phone as claimed in claim 3 is characterized in that, the DSP decoding chip is resolved the Audio and the Video of video file respectively, by comparing Audio and Video pointer position, finishes both synchronous.
5. the method that is applied to the playing video file of mobile phone as claimed in claim 4 is characterized in that, first spatial cache of storage card is 512KB.
6. the method that is applied to the playing video file of mobile phone as claimed in claim 5, it is characterized in that, there is the spatial cache of 2 32KB DSP decoding chip inside, be used for alternately receiving the spatial cache of 6 160KB of Audio information that baseband chip sends, be used for repeating query to receive the Video information that baseband chip sends.
7. the method that is applied to the playing video file of mobile phone as claimed in claim 6, it is characterized in that, in storage card except reading, first spatial cache of Study document, also needing one second spatial cache to be used for storing Audio and Video information after the DSP decoding chip is resolved.
8. the method that is applied to the playing video file of mobile phone as claimed in claim 7 is characterized in that second spatial cache is at least 192KB.
CN200910056199A 2009-08-10 2009-08-10 Method for playing video file in mobile phone Pending CN101621573A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910056199A CN101621573A (en) 2009-08-10 2009-08-10 Method for playing video file in mobile phone

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910056199A CN101621573A (en) 2009-08-10 2009-08-10 Method for playing video file in mobile phone

Publications (1)

Publication Number Publication Date
CN101621573A true CN101621573A (en) 2010-01-06

Family

ID=41514602

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910056199A Pending CN101621573A (en) 2009-08-10 2009-08-10 Method for playing video file in mobile phone

Country Status (1)

Country Link
CN (1) CN101621573A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486554A (en) * 2015-01-09 2015-04-01 苏州科达科技股份有限公司 Capturing control method, capturing control system and capturing device
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television
CN105868024A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Method and device for distributing space of externally-arranged card of mobile terminal for caching pictures

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060227245A1 (en) * 2005-04-11 2006-10-12 Silicon Graphics, Inc. System and method for synchronizing multiple media devices
CN1893661A (en) * 2005-06-30 2007-01-10 马平 Audio-video signal processing method of low speed-multiplying CPU
CN101118776A (en) * 2007-08-21 2008-02-06 中国科学院计算技术研究所 Method, system and device for realizing audio and video data synchronizing
CN101222433A (en) * 2008-01-23 2008-07-16 华为技术有限公司 Method, system and device for controlling data flux

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060227245A1 (en) * 2005-04-11 2006-10-12 Silicon Graphics, Inc. System and method for synchronizing multiple media devices
CN1893661A (en) * 2005-06-30 2007-01-10 马平 Audio-video signal processing method of low speed-multiplying CPU
CN101118776A (en) * 2007-08-21 2008-02-06 中国科学院计算技术研究所 Method, system and device for realizing audio and video data synchronizing
CN101222433A (en) * 2008-01-23 2008-07-16 华为技术有限公司 Method, system and device for controlling data flux

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张燕,贾钊,张伟: "采用FPGA和DSP直接控制硬盘实现存储控制的方法", 《计算机与信息技术》 *

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104486554A (en) * 2015-01-09 2015-04-01 苏州科达科技股份有限公司 Capturing control method, capturing control system and capturing device
CN104486554B (en) * 2015-01-09 2018-02-13 苏州科达科技股份有限公司 Method for snap control, system and grasp shoot device
CN105430478A (en) * 2015-11-27 2016-03-23 青岛海信电器股份有限公司 Network video buffer play method and device, and television
CN105430478B (en) * 2015-11-27 2019-05-07 青岛海信电器股份有限公司 A kind of network video buffered play method, apparatus and television set
CN105868024A (en) * 2016-03-29 2016-08-17 乐视控股(北京)有限公司 Method and device for distributing space of externally-arranged card of mobile terminal for caching pictures

Similar Documents

Publication Publication Date Title
TWI501673B (en) Method of synchronized playing video and audio data and system thereof
CN105892976B (en) Realize the method and device of multi-screen interactive
US8345681B2 (en) Method and system for wireless communication of audio in wireless networks
US8072443B2 (en) Techniques to switch between video display modes
CN102497591B (en) Terminal and method for realizing wireless screen transmission between terminal and TV
US8872982B2 (en) Transmission device and reception device for baseband video data, and transmission/reception system
EP4187907A1 (en) Screen projection data processing method and apparatus
CN109379619A (en) Sound draws synchronous method and device
WO2019080846A1 (en) Video data processing method and video data processing device
CN108345559B (en) Virtual reality data input device and virtual reality equipment
CN101695090B (en) Method for realizing real-time sharing of audio and video of mobile terminal and mobile terminal
CN101621573A (en) Method for playing video file in mobile phone
CN106162228B (en) Signal transmitting apparatus
CN1825957B (en) Wireless display
CN102377977B (en) Method, device and system for processing video in video call process
US7839307B2 (en) Video serializer and deserializer with mapping conversion
CN201985887U (en) Router for high-definition video communication
JP2008028599A (en) Reproduction method of multimedia data, and main communication apparatus, sub-communication apparatus, and program for execution of the method
KR100518125B1 (en) Business method for monitoring multi-media playback by television and the mobile terminal therefor
CN102098468B (en) Simulated television display device and image data transfer method thereof
US20100254618A1 (en) Method for Accessing Image Data and Related Apparatus
CN213426310U (en) Intelligent near-to-eye display device and system
US11818490B2 (en) Video transmitting device and video receiving device
CN111355914B (en) Video system signal generating device and method
CN101202868B (en) Image and sound data synchronization method for multimedia interface and related device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication

Application publication date: 20100106