CN105430312B - Based on the video recording of android system without frame losing fragmented storage method and system - Google Patents

Based on the video recording of android system without frame losing fragmented storage method and system Download PDF

Info

Publication number
CN105430312B
CN105430312B CN201510851869.1A CN201510851869A CN105430312B CN 105430312 B CN105430312 B CN 105430312B CN 201510851869 A CN201510851869 A CN 201510851869A CN 105430312 B CN105430312 B CN 105430312B
Authority
CN
China
Prior art keywords
video recording
class
section
video
frame
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
CN201510851869.1A
Other languages
Chinese (zh)
Other versions
CN105430312A (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.)
Rockchip Electronics Co Ltd
Original Assignee
Fuzhou Rockchip Electronics 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 Fuzhou Rockchip Electronics Co Ltd filed Critical Fuzhou Rockchip Electronics Co Ltd
Priority to CN201510851869.1A priority Critical patent/CN105430312B/en
Publication of CN105430312A publication Critical patent/CN105430312A/en
Application granted granted Critical
Publication of CN105430312B publication Critical patent/CN105430312B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N5/00Details of television systems
    • H04N5/76Television signal recording
    • H04N5/91Television signal processing therefor

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Television Signal Processing For Recording (AREA)

Abstract

The present invention provide it is a kind of based on the video recording of android system without frame losing fragmented storage method and system, be included in addition video recording segmentation interface function in Stagefright frames, piecewise function external interface added in Writer;The specific implementation of Writer is split into external interface class and realizes class;It listens to and has recorded one section of video recording, external interface class notifies the realization class that this section is recorded a video to stop video recording, while initializes the realization class of next section of video recording;The realization class of this section video recording requires every IDR frame to encoder, it is desirable that after every IDR frame when encountering required every IDR frame, exits this section video recording, preserves this section of Video data;The realization class of next section of video recording first extracts the every IDR frame of requirement, then extracts coded frame from encoder and continue to record a video.Advantage of the present invention:It can realize the purpose that seamless segmentation preserves of recording a video, and be not in frame loss condition, the quality of video recording can be improved, and all very low to the technology requirement of upgrading and the transplanting of later stage version.

Description

Based on the video recording of android system without frame losing fragmented storage method and system
Technical field
It is more particularly to a kind of to be deposited based on the video recording of android system without frame losing segmentation the present invention relates to video recording field of storage Method for storing and system.
Background technology
Products application in the market based on monitoring class is very wide, such as automobile data recorder, monitoring camera head, although different monitoring Emphasis required by product less, if automobile data recorder requires high definition, record a video by mono-/bis-road;Monitoring camera requirement is more Road record a video, but all monitoring products be required for segmentation preserve video recording, thereby, it is ensured that segmentation video recording between can not frame losing be All monitoring product common prescriptions, and it is particularly significant.
Realize that not frame losing function mainly there are two major class on based on android system at present:First, showed using Android Some MediaRecorderAPI are above segmented in application, i.e., after the preceding paragraph video recording is kept in application, enabled next section of record at once Picture, entire handoff procedure smoothly also have the expense of 200Ms or so in system IO, in the situation that system IO is blocked Under, then it is possible that the gap of several seconds, this will seriously affect practical video recording;Second, transplant non-Android standards Video recording frame, there are following defects for this mode:Technical difficulty is big, needs to be familiar with Camera, audio input, audio/video encoding/decoding Etc. technical ability, it is and portable poor after realizing, it is impossible to be adapted to different chip platforms, core frame is not standard API, and third party can not Developed based on this frame, it is big for later maintenance difficulty, while must safeguard Camera and the relevant resource of audio how with System carry out share the problem of, it is unpredictable the problem of it is too many.
Invention content
One of the technical problem to be solved in the present invention, be to provide it is a kind of based on the video recording of android system without frame losing point Section storage method realizes the purpose of the seamless segmentation preservation of video recording by this method, improves the quality of video recording.
The present invention is realized in one of technical problem:Based on the video recording of android system without frame losing fragmented storage side Method, this method include:
The addition video recording segmentation interface function in Stagefright frames adds piecewise function to external in Writer Mouthful;
The specific implementation of Writer is split into external interface class and realizes class, which realizes class by calling Realize recording function;
Video recording is opened, listens to and has recorded one section of video recording, external interface class notifies the realization class that this section is recorded a video to stop record Picture, while initialize the realization class of next section of video recording;
The realization class of this section video recording requires every IDR frame to encoder, it is desirable that after every IDR frame when encountering required every IDR frame, moves back Go out this section video recording, preserve this section of Video data;
The realization class of next section of video recording first extracts the every IDR frame of requirement, then extracts coded frame from encoder and continue to record a video.
Further, the addition video recording segmentation interface function in Stagefright frames is specially:At Java layers Equal addition video recording segmentation interface function in MediaRecorder classes and jni interfaces corresponding to such, at Native layers Mediarecorder classes are until adding video recording segmentation interface function in StagefrightRecorder classes.
Further, the piecewise function external interface that added in Writer is specially:In Stagefright frames Piecewise function external interface is directly added in Writer and realizes piecewise function external interface function.
Further, the piecewise function external interface that added in Writer is specially:In Stagefright frames Piecewise function external interface is first added in MediaWriter interface classes, Writer divides followed by the realization of MediaWriter interfaces class is held Section function external interface function.
Further, the unlatching, which is recorded a video, is specially:APP first calls the parameter of Writer setting video recordings, external interface class The parameter value of setting is preserved, recording function is then turned on and records a video.
Further, the parameter includes at least the duration or file size of frame per second and every section of video recording.
Further, described listen to has recorded one section of video recording and is specially:The realization class of one section of video recording is listening to record When picture has reached the duration or file size of setting, just inform that APP, APP are sent again to external interface class and stop section video recording, together When start next section video recording request.
Further, the realization class of this section video recording is specially to encoder requirement every IDR frame:The realization class of this section video recording After notified, every IDR frame is required to encoder at once, and the coded frame for continuing to cache in extraction encoder is recorded a video, until Encounter the every IDR frame of requirement.
The second technical problem to be solved by the present invention, be to provide it is a kind of based on the video recording of android system without frame losing point Section storage system realizes the purpose of the seamless segmentation preservation of video recording by the system, improves the quality of video recording.
The present invention is realized in the twos' of technical problem:Based on the video recording of android system without frame losing fragmented storage system System, the system include:
Interface add module for the addition video recording segmentation interface function in Stagefright frames, adds in Writer Bonus point section function external interface;
It realizes and splits module, for the specific implementation of Writer to be split into external interface class and realizes class, this is to external Mouth class passes through calling and realizes that class realizes recording function;
Module is monitored in video recording, is recorded a video for opening, is listened to and recorded one section of video recording, and external interface class notifies this section to record The realization class of picture stops video recording, while initializes the realization class of next section of video recording;
Segmentation video recording exit module, for this section video recording realization class to encoder require every IDR frame, it is desirable that after every IDR frame When encountering required every IDR frame, this section video recording is exited, preserves this section of Video data;
Segmentation video recording handover module first extracts the every IDR frame of requirement, then take out from encoder for the realization class of next section of video recording Coded frame is taken to continue to record a video.
Further, the addition video recording segmentation interface function in Stagefright frames is specially:At Java layers Equal addition video recording segmentation interface function in MediaRecorder classes and jni interfaces corresponding to such, at Native layers Mediarecorder classes are until adding video recording segmentation interface function in StagefrightRecorder classes.
Further, the piecewise function external interface that added in Writer is specially:In Stagefright frames Piecewise function external interface is directly added in Writer and realizes piecewise function external interface function.
Further, the piecewise function external interface that added in Writer is specially:In Stagefright frames Piecewise function external interface is first added in MediaWriter interface classes, Writer divides followed by the realization of MediaWriter interfaces class is held Section function external interface function.
Further, the unlatching, which is recorded a video, is specially:APP first calls the parameter of Writer setting video recordings, external interface class The parameter value of setting is preserved, recording function is then turned on and records a video.
Further, the parameter includes at least the duration or file size of frame per second and every section of video recording.
Further, described listen to has recorded one section of video recording and is specially:The realization class of one section of video recording is listening to record When picture has reached the duration or file size of setting, just inform that APP, APP are sent again to external interface class and stop section video recording, together When start next section video recording request.
Further, the realization class of this section video recording is specially to encoder requirement every IDR frame:The realization class of this section video recording After notified, every IDR frame is required to encoder at once, and the coded frame for continuing to cache in extraction encoder is recorded a video, until Encounter the every IDR frame of requirement.
The invention has the advantages that:1st, it can realize that the seamless segmentation of video recording preserves, and be not in frame loss condition, simultaneously It does not need to each section of video recording and all reconnects Camera, reduce the influence of destabilizing factor, the quality of video recording can be improved;2、 It is very low to the technology requirement of upgrading and the transplanting of later stage version, it is only necessary to the technology of the present invention to be familiar with, without closing Note the hardware case of institute's development platform;3rd, stress-free temperature can be realized on the platform of different master control producers.
Description of the drawings
The present invention is further illustrated in conjunction with the embodiments with reference to the accompanying drawings.
Fig. 1 is the method for the present invention execution flow chart.
Fig. 2 is the structure diagram of present system.
Fig. 3 is the flow diagrams of continuous two sections of video recordings of recording in the prior art.
Fig. 4 is the flow diagram that present pre-ferred embodiments continuously record two sections of video recordings.
Specific embodiment
It please refers to shown in Fig. 1, based on the video recording of android system without frame losing fragmented storage method, the method includes such as Lower step:
Step A1, addition video recording segmentation interface function, the video recording point in the Stagefright frames of android system The parameter of segment interface function can be file path or file handle;Writer (Writer be in Stagefright it is each The packing class general name of type file, such as MPEG4Writer, WebmWriter, MPEG4TSWriter etc.) in addition segmentation Function external interface when in use, can be segmented calling of the interface function realization to piecewise function external interface by video recording.When So, video recording segmentation interface function and piecewise function external interface are carried out on the basis of original Stagefright frames Addition, that is, it needs to retain original interface function and original external interface, to realize original various functions.
The addition video recording in Stagefright frames is segmented interface function and is specially:At Java layers Equal addition video recording segmentation interface function in MediaRecorder classes and jni interfaces corresponding to such, at Native layers Mediarecorder classes are until adding video recording segmentation interface function in StagefrightRecorder classes.
It is described in Writer add piecewise function external interface be specially:In the Writer of Stagefright frames Directly addition piecewise function external interface realizes piecewise function external interface function;Or in Stagefright frames Piecewise function external interface is first added in MediaWriter interface classes, Writer divides followed by the realization of MediaWriter interfaces class is held Section function external interface function.Wherein, MediaWriter interfaces class is the interface class that Stagefright frames come with, and institute Some Writer will inherit the MediaWriter.
Step A2, the specific implementation of Writer is split into external interface class and realizes class, which passes through tune Recording function is realized with realization class;Wherein, external interface class includes original interface class and the piecewise function newly increased to external Mouth class realizes that class includes original realization class and the realization class of piecewise function external interface newly increased.
Step A3, video recording is opened, listens to and has recorded one section of video recording, external interface class notifies the realization class that this section is recorded a video Stop video recording, while initialize the realization class of next section of video recording;Step A3 is specially:
APP first calls the parameter of Writer setting video recordings, and external interface class preserves the parameter value of setting (by the tool of Writer After body realization is split, because external interface class can only be called once, and realize class when recording each segmentation video recording It calls once, and often adjusts primary realization class that will initialize primary parameter value, set so external interface class oneself must preserve The parameter value put), the parameter includes at least the duration or file size of frame per second and every section of video recording, is then turned on recording function It records a video;As soon as section video recording realizations class listen to record a video reached the duration or file size of setting when, inform APP, APP is sent again to external interface class stops section video recording, starts simultaneously at the request of next section of video recording;After being connected to request, to external The realization class that mouth class just sends out message informing this section video recording stops video recording, while initialize the realization class of next section of video recording.
Step A4, the realization class of this section video recording requires every IDR frame to encoder, it is desirable that is encountering required IDR after every IDR frame During frame, this section video recording is exited, preserves this section of Video data;Wherein, the realization class of this section video recording requires every IDR frame to encoder Specially:This section video recording realization class it is notified after, at once to encoder require every IDR frame, and continue extract encoder in delay The coded frame deposited is recorded a video, the every IDR frame until encountering requirement.
Step A5, the realization class of next section of video recording first extracts the every IDR frame of requirement, then extracts coded frame from encoder and continue to record Picture.
Above step A3 to step A5 describes to be switched to the handoff procedure of next section of video recording from any one section of video recording, In the recording process entirely recorded a video, the switching of each section of video recording is all similar with above-mentioned handoff procedure.
It please refers to shown in Fig. 2, based on the video recording of android system without frame losing fragmented storage system, the system comprises connect Mouth add module, realization split module, module is monitored in video recording, are segmented to record a video and exit module and segmentation video recording handover module;
The interface add module, for the addition video recording segmentation interface in the Stagefright frames of android system Function, the parameter of video recording segmentation interface function can be file path or file handle;In Writer, (Writer is The packing class general name of each type file in Stagefright, such as MPEG4Writer, WebmWriter, MPEG4TSWriter etc.) in addition piecewise function external interface, when in use, can passing through video recording, to be segmented interface function real Now to the calling of piecewise function external interface.Certainly, video recording segmentation interface function and piecewise function external interface are all original Stagefright frames on the basis of be added, that is, need to retain original interface function and original external interface, To realize original various functions.
The addition video recording in Stagefright frames is segmented interface function and is specially:At Java layers Equal addition video recording segmentation interface function in MediaRecorder classes and jni interfaces corresponding to such, at Native layers Mediarecorder classes are until adding video recording segmentation interface function in StagefrightRecorder classes.
It is described in Writer add piecewise function external interface be specially:In the Writer of Stagefright frames Directly addition piecewise function external interface realizes piecewise function external interface function;Or in Stagefright frames Piecewise function external interface is first added in MediaWriter interface classes, Writer divides followed by the realization of MediaWriter interfaces class is held Section function external interface function.Wherein, MediaWriter interfaces class is the interface class that Stagefright frames come with, and institute Some Writer will inherit the MediaWriter.
Described realize splits module, and for the specific implementation of Writer to be split into external interface class and realizes class, this is right External tapping class realizes that class realizes recording function by calling;Wherein, external interface class includes original interface class and newly increases Piecewise function external interface class realizes that class includes original realization class and the realization class of piecewise function external interface newly increased.
Module is monitored in the video recording, is recorded a video for opening, is listened to and recorded one section of video recording, and external interface class notice should The realization class of section video recording stops video recording, while initializes the realization class of next section of video recording;Module is monitored in the video recording:
APP first calls the parameter of Writer setting video recordings, and external interface class preserves the parameter value of setting (by the tool of Writer After body realization is split, because external interface class can only be called once, and realize class when recording each segmentation video recording It calls once, and often adjusts primary realization class that will initialize primary parameter value, set so external interface class oneself must preserve The parameter value put), the parameter includes at least the duration or file size of frame per second and every section of video recording, is then turned on recording function It records a video;As soon as section video recording realizations class listen to record a video reached the duration or file size of setting when, inform APP, APP is sent again to external interface class stops section video recording, starts simultaneously at the request of next section of video recording;After being connected to request, to external The realization class that mouth class just sends out message informing this section video recording stops video recording, while initialize the realization class of next section of video recording.
The segmentation video recording exits module, and the realization class for this section video recording requires every IDR frame to encoder, it is desirable that every IDR frame Afterwards when encountering required every IDR frame, this section video recording is exited, preserves this section of Video data;Wherein, the realization of this section video recording Class to encoder requirement every IDR frame be specially:This section video recording realization class it is notified after, at once to encoder require every IDR frame, and The coded frame for continuing to cache in extraction encoder is recorded a video, the every IDR frame until encountering requirement.
The segmentation video recording handover module first extracts the every IDR frame of requirement for the realization class of next section of video recording, then from coding Device, which extracts coded frame, to be continued to record a video.
Above video recording monitors module and describes to be switched to next section from any one section of video recording to video recording handover module is segmented The handoff procedure of video recording, in the recording process entirely recorded a video, the switching of each section of video recording is all similar with above-mentioned handoff procedure.
To be applied to MPEG4Writer, as specific embodiment, the present invention will be further described below, please refers to Fig. 1 to figure Shown in 4, specifically include:
Interface class JavaMediaRecorder and the JNI layer audio and video corresponding to such are recorded in Java layers of audio and video Addition video recording segmentation interface function SetNextRecorder in interface class JNIMediaRecorder is recorded, in local layer sound Video record interface class CppMediaRecorder, audio and video record class client MediaRecorderClient and sound regards Frequency records addition video recording segmentation interface function SetNextRecorder in control class StagefrightRecorder. Piecewise function external interface (i.e. SetNextRecorder interfaces) is directly added in the MPEG4Writer of Stagefright frames Realize piecewise function external interface function;Or the multimedia file package interface class in Stagefright frames SetNextRecorder interfaces are first added in MediaWriter, MPEG4Writer is realized followed by MediaWriter interfaces class is held Piecewise function external interface function.
The specific implementation of MPEG4Writer is split into external interface class MPEG4Writer and realizes class MPEG4WriterImp, the external interface class MPEG4Writer realize that class MPEG4WriterImp realizes video recording work(by calling Energy;Wherein, external interface class MPEG4Writer includes original interface class (such as other special common interface classes OtherPublic-api etc.) and the SetNextRecorder interface classes that newly increase, realize that class MPEG4WriterImp includes original Some realization classes (such as MediaWriter realizes class etc.) and the realization class of SetNextRecorder interfaces newly increased.
APP first calls the parameter of MPEG4Writer setting video recordings, and external interface class MPEG4Writer preserves the ginseng of setting Numerical value (is provided with a parameter value preserving module SaveParam, for preserving setting in external tapping class MPEG4Writer Parameter value), the parameter includes at least the duration or file size of frame per second and every section of video recording, is then turned on recording function progress Video recording;One section video recording realizations class MPEG4WriterImp listen to record a video reached the duration or file size of setting when, Just inform APP, APP sends the video recording of the stopping section to external interface class MPEG4Writer again, and (in the specific implementation, APP can pass through The SetNextRecorder of JavaMediaRecorder to StagefrightRecorder is called down layer by layer), together When start next section video recording request;After being connected to request, external interface class MPEG4Writer just sends out message informing this section video recording It realizes that class MPEG4WriterImp stops video recording, while initializes the realization class MPEG4WriterImp of next section of video recording.
The realization class MPEG4WriterImp of this section video recording requires every IDR frame to encoder, it is desirable that is wanted after every IDR frame encountering During the every IDR frame asked, this section video recording is exited, preserves this section of Video data;Wherein, described " the realization class of this section video recording MPEG4WriterImp requires every IDR frame to encoder " be specially:The realization class MPEG4WriterImp of this section video recording is notified Afterwards, every IDR frame is required to encoder at once, and the coded frame for continuing to cache in extraction encoder is recorded a video, until encountering requirement Every IDR frame.
The realization class MPEG4WriterImp of next section of video recording first extracts the every IDR frame of requirement, then extracts and encode from encoder Frame continues to record a video.Please emphasis with reference to shown in Fig. 3 and Fig. 4, wherein, what Fig. 3 was represented is continuously to record two sections of video recordings in the prior art Flow diagram, as soon as it is after the video recording of APP Record and Saves section, then at once enabled next section record a video, therefore can not It realizes that seamless segmentation preserves, enables to the frame losing number next section of video recording and be also unable to control, and often record one from one section of video recording Section video recording will reconnect Camera;What Fig. 4 was represented is the flow diagram that the embodiment of the present invention continuously records two sections of video recordings, It is after one section of video recording has been recorded, and APP, APP is first notified to recall piecewise function external interface and open next section of video recording, simultaneously Stop the recording of the preceding paragraph video recording.By comparison diagram 3 and Fig. 4, it is apparent that the present invention can realize seamless point of video recording Duan Baocun, and be not in frame loss condition, help to improve the quality of video recording.
In conclusion the invention has the advantages that:1st, third-party application (APP) only needs to pay close attention to what the present invention newly increased The application method of piecewise function external interface can achieve the purpose that the seamless segmentation of video recording preserves, and be not in frame losing feelings Condition, while do not need to each section of video recording and all reconnect Camera, reduce the influence of destabilizing factor, video recording can be improved Quality;2nd, it is very low to the technology requirement of upgrading and the transplanting of later stage version, it is only necessary to it is familiar with the technology of the present invention, without Need the hardware case of concern institute development platform;3rd, stress-free temperature can be realized on the platform of different master control producers.
Although specific embodiments of the present invention have been described above, those familiar with the art should manage Solution, our described specific embodiments are merely exemplary rather than for the restriction to the scope of the present invention, are familiar with this The equivalent modification and variation that the technical staff in field is made in the spirit according to the present invention, should all cover the present invention's In scope of the claimed protection.

Claims (16)

1. it is a kind of based on the video recording of android system without frame losing fragmented storage method, it is characterised in that:This method includes:
Addition video recording segmentation interface function, adds piecewise function external interface in Writer in Stagefright frames;
The specific implementation of Writer is split into external interface class and realizes class, which realizes that class is realized by calling Recording function;
Video recording is opened, listens to and has recorded one section of video recording, external interface class notifies the realization class that this section is recorded a video to stop video recording, together When initialize next section video recording realization class;
The realization class of this section video recording requires every IDR frame to encoder, it is desirable that after every IDR frame when encountering required every IDR frame, exits this Section video recording, preserves this section of Video data;
The realization class of next section of video recording first extracts the every IDR frame of requirement, then extracts coded frame from encoder and continue to record a video.
2. it is according to claim 1 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: The addition video recording in Stagefright frames is segmented interface function and is specially:Java layers of MediaRecorder classes with And in the jni interfaces corresponding to such addition video recording segmentation interface function, Native layers of Mediarecorder classes until Addition video recording is segmented interface function in StagefrightRecorder classes.
3. it is according to claim 1 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: It is described in Writer add piecewise function external interface be specially:It is directly added in the Writer of Stagefright frames Piecewise function external interface realizes piecewise function external interface function.
4. it is according to claim 1 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: It is described in Writer add piecewise function external interface be specially:In the MediaWriter interface classes of Stagefright frames Middle first to add piecewise function external interface, Writer realizes piecewise function external interface work(followed by MediaWriter interfaces class is held Energy.
5. it is according to claim 1 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: The unlatching, which is recorded a video, is specially:APP first calls the parameter of Writer setting video recordings, and external interface class preserves the parameter value of setting, Recording function is then turned on to record a video.
6. it is according to claim 5 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: The parameter includes at least the duration or file size of frame per second and every section of video recording.
7. it is according to claim 6 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: Described listen to has recorded one section of video recording and is specially:The realization class of one section of video recording has reached the duration of setting listening to video recording Or during file size, APP is just informed, APP is sent again to external interface class stops section video recording, starts simultaneously at next section of video recording Request.
8. it is according to claim 1 based on the video recording of android system without frame losing fragmented storage method, it is characterised in that: The realization class of this section video recording is specially to encoder requirement every IDR frame:This section video recording realization class it is notified after, at once to Encoder requires every IDR frame, and the coded frame for continuing to cache in extraction encoder is recorded a video, the every IDR frame until encountering requirement.
9. it is a kind of based on the video recording of android system without frame losing fragmented storage system, it is characterised in that:The system includes:
Interface add module, for the addition video recording segmentation interface function in Stagefright frames, the addition point in Writer Section function external interface;
It realizes and splits module, for the specific implementation of Writer to be split into external interface class and realizes class, the external interface class Realize that class realizes recording function by calling;
Module is monitored in video recording, is recorded a video for opening, is listened to and recorded one section of video recording, and external interface class notifies what this section was recorded a video It realizes that class stops video recording, while initializes the realization class of next section of video recording;
Segmentation video recording exits module, and the realization class of this section video recording requires every IDR frame to encoder, it is desirable that is wanted after every IDR frame encountering During the every IDR frame asked, this section video recording is exited, preserves this section of Video data;
Segmentation video recording handover module first extracts the every IDR frame of requirement, then extract and compile from encoder for the realization class of next section of video recording Code frame continues to record a video.
10. it is according to claim 9 based on the video recording of android system without frame losing fragmented storage system, it is characterised in that: The addition video recording in Stagefright frames is segmented interface function and is specially:Java layers of MediaRecorder classes with And in the jni interfaces corresponding to such addition video recording segmentation interface function, Native layers of Mediarecorder classes until Addition video recording is segmented interface function in StagefrightRecorder classes.
11. it is according to claim 9 based on the video recording of android system without frame losing fragmented storage system, it is characterised in that: It is described in Writer add piecewise function external interface be specially:It is directly added in the Writer of Stagefright frames Piecewise function external interface realizes piecewise function external interface function.
12. it is according to claim 9 based on the video recording of android system without frame losing fragmented storage system, it is characterised in that: It is described in Writer add piecewise function external interface be specially:In the MediaWriter interface classes of Stagefright frames Middle first to add piecewise function external interface, Writer realizes piecewise function external interface work(followed by MediaWriter interfaces class is held Energy.
13. it is according to claim 9 based on the video recording of android system without frame losing fragmented storage system, it is characterised in that: The unlatching, which is recorded a video, is specially:APP first calls the parameter of Writer setting video recordings, and external interface class preserves the parameter value of setting, Recording function is then turned on to record a video.
14. it is according to claim 13 based on the video recording of android system without frame losing fragmented storage system, feature exists In:The parameter includes at least the duration or file size of frame per second and every section of video recording.
15. it is according to claim 14 based on the video recording of android system without frame losing fragmented storage system, feature exists In:Described listen to has recorded one section of video recording and is specially:One section video recording realizations class listen to record a video reached setting When duration or file size, just inform that APP, APP are sent again to external interface class and stop section video recording, start simultaneously at next section of record The request of picture.
16. it is according to claim 9 based on the video recording of android system without frame losing fragmented storage system, it is characterised in that: The realization class of this section video recording is specially to encoder requirement every IDR frame:This section video recording realization class it is notified after, at once to Encoder requires every IDR frame, and the coded frame for continuing to cache in extraction encoder is recorded a video, the every IDR frame until encountering requirement.
CN201510851869.1A 2015-11-27 2015-11-27 Based on the video recording of android system without frame losing fragmented storage method and system Active CN105430312B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510851869.1A CN105430312B (en) 2015-11-27 2015-11-27 Based on the video recording of android system without frame losing fragmented storage method and system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510851869.1A CN105430312B (en) 2015-11-27 2015-11-27 Based on the video recording of android system without frame losing fragmented storage method and system

Publications (2)

Publication Number Publication Date
CN105430312A CN105430312A (en) 2016-03-23
CN105430312B true CN105430312B (en) 2018-06-29

Family

ID=55508211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510851869.1A Active CN105430312B (en) 2015-11-27 2015-11-27 Based on the video recording of android system without frame losing fragmented storage method and system

Country Status (1)

Country Link
CN (1) CN105430312B (en)

Families Citing this family (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106027935A (en) * 2016-07-13 2016-10-12 深圳市爱培科技术股份有限公司 Frame-missing-free segmental video-recording system and implementation method
CN106341636A (en) * 2016-09-29 2017-01-18 珠海全志科技股份有限公司 Android system-based continuous recording system and method
WO2018129736A1 (en) * 2017-01-16 2018-07-19 陈银芳 Video shooting method and apparatus
CN106657924A (en) * 2017-01-16 2017-05-10 陈银芳 Video shooting method and apparatus
CN107135364B (en) * 2017-04-10 2020-04-28 青岛海信移动通信技术股份有限公司 Method and device for realizing seamless video recording on native layer and terminal equipment
CN106998449B (en) * 2017-04-10 2020-02-04 青岛海信移动通信技术股份有限公司 Method and device for realizing seamless video recording in application layer and terminal equipment
CN109218644A (en) * 2017-07-04 2019-01-15 北大方正集团有限公司 Driving recording image pickup method and device
CN107800988A (en) * 2017-11-08 2018-03-13 青岛海信移动通信技术股份有限公司 A kind of method and device of video record, electronic equipment
CN108184162A (en) * 2017-12-07 2018-06-19 深圳微步信息股份有限公司 A kind of automatic segmentation kinescope method and system based on Android system
CN108566527A (en) * 2018-03-30 2018-09-21 青岛海信移动通信技术股份有限公司 A kind of kinescope method and device
CN113660417B (en) * 2021-08-11 2023-06-20 科珑诗菁生物科技(上海)有限公司 Periodic shooting method, device, equipment and medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291580A (en) * 2011-07-28 2011-12-21 南京联慧通信技术有限公司 Video transmission method based on Android system
CN103517021A (en) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 Method and terminal for Android terminal to automatically perform recording continuously
CN105049919A (en) * 2015-07-27 2015-11-11 青岛海信移动通信技术股份有限公司 Method and device for recording multimedia file

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10267643B2 (en) * 2013-09-16 2019-04-23 Verizon Connect Ireland Limited System and method for automated correction of geofences

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102291580A (en) * 2011-07-28 2011-12-21 南京联慧通信技术有限公司 Video transmission method based on Android system
CN103517021A (en) * 2013-09-13 2014-01-15 广东欧珀移动通信有限公司 Method and terminal for Android terminal to automatically perform recording continuously
CN105049919A (en) * 2015-07-27 2015-11-11 青岛海信移动通信技术股份有限公司 Method and device for recording multimedia file

Also Published As

Publication number Publication date
CN105430312A (en) 2016-03-23

Similar Documents

Publication Publication Date Title
CN105430312B (en) Based on the video recording of android system without frame losing fragmented storage method and system
WO2021008290A1 (en) Video stream decoding method and apparatus, terminal device and storage medium
US11336953B2 (en) Video processing method, electronic device, and computer-readable medium
US9478256B1 (en) Video editing processor for video cloud server
CN105049919B (en) A kind of method for recording and device of multimedia file
CN1805427B (en) Method for processing multimedia streams
US20120185570A1 (en) Method and Apparatus for Indicating Switching Points in a Streaming Session
CN105049920B (en) A kind of method for recording and device of multimedia file
US11100956B2 (en) MP4 file processing method and related device
CN105979355A (en) Method and device for playing video
KR102471088B1 (en) Method and apparatus for converting mmtp stream to mpeg-2 ts
TWI584636B (en) Method for decreasing the bit rate needed to transmit videos over a network by dropping video frames
EP4300985A3 (en) Adaptive panoramic video streaming using composite pictures
US11250863B2 (en) Frame coding for spatial audio data
CN106155625A (en) A kind of audio frequency adaptation method and system
CN109788235A (en) A kind of processing method and system of the minutes information based on view networking
CN103051941A (en) Method and system for playing local video on mobile platform
CN114095784A (en) H.265 format video stream transcoding playing method, system, device and medium
CN102802021A (en) Method and device for editing multi-media data
CN115134617B (en) Live broadcast quality inspection system, live broadcast quality inspection method, web server and storage medium
CN115604238A (en) Audio and video processing method, device, equipment and medium of Internet of things operating system
CN115103215A (en) Live broadcast quality inspection method, system, Web server and storage medium
CN109168090A (en) The method for realizing H264 video circulation HLS video flowing using GPU
CN103747203A (en) Playback video transmission method of digital video recorder in narrow-band network environment
CN113038181B (en) Start-stop audio fault tolerance method and system in RTMP audio and video plug flow under Android platform

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CP01 Change in the name or title of a patent holder
CP01 Change in the name or title of a patent holder

Address after: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee after: Ruixin Microelectronics Co., Ltd

Address before: 350000 building, No. 89, software Avenue, Gulou District, Fujian, Fuzhou 18, China

Patentee before: Fuzhou Rockchips Electronics Co.,Ltd.