CN102014262A - Hard disk video recorder and system and method for converting multimedia formats - Google Patents

Hard disk video recorder and system and method for converting multimedia formats Download PDF

Info

Publication number
CN102014262A
CN102014262A CN 201010531719 CN201010531719A CN102014262A CN 102014262 A CN102014262 A CN 102014262A CN 201010531719 CN201010531719 CN 201010531719 CN 201010531719 A CN201010531719 A CN 201010531719A CN 102014262 A CN102014262 A CN 102014262A
Authority
CN
China
Prior art keywords
video
data
setting
frame
coding
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
CN 201010531719
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.)
Hangzhou Hikvision Software Co Ltd
Original Assignee
Hangzhou Hikvision Software 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 Hangzhou Hikvision Software Co Ltd filed Critical Hangzhou Hikvision Software Co Ltd
Priority to CN 201010531719 priority Critical patent/CN102014262A/en
Publication of CN102014262A publication Critical patent/CN102014262A/en
Pending legal-status Critical Current

Links

Abstract

The invention provides a hard disk video recorder, which comprises head-end equipment and real-time format conversion equipment connected with the head-end equipment, wherein the real-time format conversion equipment acquires multimedia real-time stream data from the head-end equipment, decodes and separates the multimedia real-time steam data, acquires decoded audio data and video data, encodes the decoded audio data and video data according to a set encoding mode and set encoding parameters respectively, acquires the multimedia real-time stream data after format conversion according to the encoded audio data and the encoded video data, and outputs the multimedia real-time stream data. The invention also provides a system and a method for converting multimedia formats. By adopting the hard disk recorder and the system and the method for converting the multimedia formats, the using real-time and convenience can be improved.

Description

The system and method for a kind of DVR, multimedia form conversion
Technical field
The present invention relates to encoding and decoding technique, the system and method for particularly a kind of DVR, multimedia form conversion.
Background technology
In the monitoring field, constantly perfect along with evolution of embedded technology and watch-dog, the speed of model change is more and more faster, DVR (Digital Video Recorder, DVR) become the major product of monitoring trade gradually, its function also is able to perfect gradually.So-called DVR is exactly the computer system that a cover carries out the image stores processor; With respect to the video tape recorder of traditional magnetic recording, DVR have to image/voice record a video for a long time, the function of recording, telemonitoring and control.
Fig. 1 is the structural representation of the existing DVR that is connected with local computer.As shown in Figure 1, the DVR 10 that is connected with local computer 11 comprises headend equipment 101 and rear end equipment 102; Local computer 11 comprises format converting module 111 and display module 112.Wherein, headend equipment 101 is in order to obtain the multimedia real-time streaming data, (Software Development Kit SDK) connects headend equipment 101 to rear end equipment 102, and the multimedia real-time streaming data of headend equipment 101 outputs is stored by the operational network SDK.Because the file format of DVR 10 storages may be incompatible with multimedia software in the local computer 11, need the format converting module 111 in the local computer 11 according to parameter of user rear end equipment 102 temporary files to be carried out format conversion, the file after the output format conversion to display module 112 is play.
In sum, existing DVR only can be kept in the multi-medium data of real-time shooting, according to parameter of user the temporary multi-medium data of DVR is carried out format conversion and broadcast by local computer, existing DVR can not be carried out format conversion to the multi-medium data of real-time shooting and plays in real time according to parameter of user, has reduced real-time and convenience that the user uses.Because the file format possibility disunity of the DVR that different manufacturers is produced storage, the user need set different format conversion parameters at different file formats, further reduce the convenience that the user uses.
Summary of the invention
In view of this, the object of the present invention is to provide a kind of DVR, this DVR can improve the real-time and the convenience of use.
The object of the present invention is to provide a kind of system of multimedia form conversion, this system can improve the real-time and the convenience of use.
The object of the present invention is to provide a kind of method of multimedia form conversion, this method can improve the real-time and the convenience of use.
For achieving the above object, technical scheme of the present invention specifically is achieved in that
A kind of DVR comprises headend equipment, and this video tape recorder also comprises the real-time format conversion equipment that is connected with described headend equipment;
Described real-time format conversion equipment obtains the multimedia real-time streaming data from described headend equipment; The decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to coded system and the coding parameter set; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion; The coded system of described setting comprises audio coding mode and video coding mode; The coding parameter of described setting comprises audio coding parameters and video coding parameter.
In the above-mentioned DVR, described real-time format conversion equipment comprises: stream is got flow module, audio, video data separation module, audio coding module, video encoding module and audio frequency and video mixing module in real time;
Described real-time stream is got flow module and is connected described headend equipment, obtains the multimedia real-time streaming data and exports described audio, video data separation module to from described headend equipment;
Described audio, video data separation module judges whether the data type of the multimedia real-time streaming data that receives is the media file head, if, then create decoding storehouse, decode otherwise the multimedia real-time streaming data that receives is sent into the decoding storehouse of having created for described media file head; After successfully obtaining decoded data, obtain frame of video information and decoded video data and export described video encoding module to, obtain audio frame information and decoded voice data and export described audio coding module to; Described frame of video information comprises frame per second and resolution at least; Described audio frame information comprises channel number and sample rate at least;
Described audio coding module judges whether the audio frame information that receives is identical with the audio coding parameters of setting, if, then decoded voice data is encoded according to audio coding mode and the audio coding parameters set, otherwise, to handle decoded voice data according to the channel number and the sample rate that comprise in the audio coding parameters of setting, the voice data after handling be encoded according to audio coding mode of setting and audio coding parameters; Voice data after described audio coding module will be encoded exports described audio frequency and video mixing module to;
Described video encoding module judges whether the frame of video information that receives is identical with the video coding parameter of setting, if, then according to the video coding mode of setting and video coding parameter to decoded coding video data, otherwise, to handle decoded video data according to the frame per second and the resolution that comprise in the video coding parameter of setting, the processed video data be encoded according to video coding mode and the video coding parameter set; Video data after described video encoding module will be encoded exports described audio frequency and video mixing module to;
Voice data behind the described audio frequency and video mixing module basis coding that obtains and the video data behind the coding are revised the markers of present frame, and according to the frame type correction present frame of setting, are exported revised present frame; Described revised present frame is the multimedia real-time streaming data after the described format conversion.
In the above-mentioned DVR, described real-time format conversion equipment also comprises the memory module of the described audio frequency and video mixing module of a connection;
Described memory module is used to store revised present frame.
A kind of system of multimedia form conversion comprises DVR and the local computer that is connected with DVR, and described DVR comprises headend equipment and the real-time format conversion equipment that is connected with described headend equipment;
Described real-time format conversion equipment obtains the multimedia real-time streaming data from described headend equipment; The decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to coded system and the coding parameter set; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion; The coded system of described setting comprises audio coding mode and video coding mode; The coding parameter of described setting comprises audio coding parameters and video coding parameter;
The multimedia real-time streaming data of described local computer after to the format conversion that receives play.
A kind of method of multimedia form conversion, this method comprises:
A, real-time format conversion equipment obtain the multimedia real-time streaming data;
B, format conversion equipment decoding multimedia real-time streaming data and separation in real time obtain decoded voice data and video data;
C, real-time format conversion equipment are encoded decoded voice data and video data respectively according to coded system and the coding parameter set; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting;
D, in real time voice data and the video data of format conversion equipment after according to coding obtains multimedia real-time streaming data and output after the format conversion.
In the said method, the described multimedia real-time streaming data of obtaining of step B comprises:
Whether the data type of the multimedia real-time streaming data that B1, judgement receive is the media file head, if, then create decoding storehouse for described media file head, otherwise being sent into the decoding storehouse of having created, the multimedia real-time streaming data that receives decodes;
B2, judge whether that success obtains decoded data, if successfully do not obtain, then the multimedia real-time streaming data that receives is sent into the decoding storehouse of having created and decode, otherwise, obtain frame of video information and decoded video data, or obtain audio frame information and decoded voice data.
In the said method, step C is described to be comprised decoded voice data according to coded system and the capable coding of coding parameter set:
C1, judge that the channel number that comprises in the audio frame information is whether identical with the channel number that comprises in the audio coding parameters of setting, if, execution in step C2, otherwise the magnitude relationship of the channel number that comprises in the channel number that comprises in the comparing audio frame information and the audio coding parameters of setting, if less than to copy mono data would be the dual track data, if greater than to peel off the dual track data would be mono data;
C2, judge that the sample rate that comprises in the audio frame information is whether identical with the sample rate that comprises in the audio coding parameters of setting, if identical then execution in step C3, otherwise, decoded voice data is resampled according to the sample rate that comprises in the audio coding parameters of setting;
C3, the data, mono data or the dual track data that resample are encoded according to audio coding mode of setting and audio coding parameters; The audio coding parameters of described setting comprises channel number, sample rate and audio coding code check at least.
In the said method, described decoded video data is encoded according to coded system of setting and coding parameter of step C comprises:
C4, judge that the frame per second that comprises in the frame of video information is whether identical with the frame per second that comprises in the video coding parameter of setting, if execution in step C6 then, otherwise execution in step C5;
The magnitude relationship of the frame per second that comprises in the frame per second that comprises in C5, the comparison frame of video information and the video coding parameter of setting, if less than with the frame per second that would comprise in the frame of video information as the frame per second that comprises in the video coding parameter of setting, if greater than would judge whether to abandon present frame, abandon then execution in step C4 of present frame if desired, otherwise execution in step C6;
C6, judge that the resolution that comprises in the frame of video information is whether identical with the resolution that comprises in the video coding parameter of setting, if execution in step C7 then, otherwise, decoded video data is stretched or down-sampling;
C7, according to the video coding mode of setting and video coding parameter to the video data after stretching or the coding video data after changing frame per second; The video coding parameter of described setting comprises frame per second, resolution and video frequency coding rate at least.
In the said method, step D is described to be comprised according to multimedia real-time streaming data and output after voice data behind the coding and the video data acquisition format conversion:
The voice data behind D1, the basis coding that obtains and the markers of the video data correction present frame behind the coding;
D2, according to frame type correction present frame of setting and output; The frame type of described setting is I frame or P frame; Described revised present frame is the multimedia real-time streaming data after the format conversion.
Preferably, also comprise after the step D: the multimedia real-time streaming data after the format conversion equipment storage format conversion in real time.
As seen from the above technical solutions, the invention provides the system and method for a kind of DVR, multimedia form conversion, the real-time format conversion equipment that DVR comprises obtains the multimedia real-time streaming data by the headend equipment that is attached thereto, and the multimedia real-time streaming data is carried out format conversion according to the coded system and the coding parameter of the setting of outside input, improved the real-time of using; Multimedia real-time streaming data to the connected local computer that comprises after the DVR output format conversion of real-time format conversion equipment is play, avoided the incompatible caused problem of data format of the data format and the local computer of DVR, improved the convenience of using the aftertreatment of data form.
Description of drawings
Fig. 1 is the structural representation of the existing DVR that is connected with local computer.
Fig. 2 is the structural representation of DVR of the present invention.
Fig. 3 is the method flow diagram of multimedia form conversion of the present invention.
Fig. 4 separates the method flow diagram that the multimedia real-time streaming data obtains voice data and video data for the present invention.
Fig. 5 carries out Methods for Coding flow chart with decoded voice data according to the audio coding mode of setting and the audio coding parameters of setting for the present invention.
Fig. 6 carries out Methods for Coding flow chart with decoded video data according to the video coding mode of setting and the video coding parameter of setting for the present invention.
Embodiment
For make purpose of the present invention, technical scheme, and advantage clearer, below with reference to the accompanying drawing embodiment that develops simultaneously, the present invention is described in more detail.
The invention provides a kind of DVR, comprise headend equipment, this video tape recorder also comprises the real-time format conversion equipment that is connected with headend equipment; Format conversion equipment obtains the multimedia real-time streaming data from headend equipment in real time; The decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to coded system and the coding parameter set; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion.The present invention also provides a kind of system of multimedia form conversion, comprises DVR and the local computer that is connected with DVR, and DVR comprises headend equipment and the real-time format conversion equipment that is connected with headend equipment; Local computer is play the multimedia real-time streaming data from after the format conversion of the real-time format conversion equipment of DVR that receives.The present invention also provides a kind of method of multimedia form conversion, and the real-time format conversion equipment in the DVR is decoded, separated and encode the multimedia real-time streaming data that receives, with the multimedia real-time streaming data after the acquisition format conversion.
Fig. 2 is the structural representation of DVR of the present invention.Now in conjunction with Fig. 2, the structure of DVR of the present invention is described, specific as follows:
DVR of the present invention comprises headend equipment 101 and real-time format conversion equipment 202.Wherein, the rear end equipment 102 among the existing DVR of format conversion equipment 202 replacements in real time directly is connected with existing headend equipment 101.
Format conversion equipment 202 obtains the multimedia real-time streaming data from headend equipment 101 in real time, and the decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to the coded system of setting and the coding parameter of setting; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion.
The coded system of described setting comprises the audio coding mode of setting and the video coding mode of setting; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting.Wherein, the audio coding parameters of described setting comprises the channel number of setting, the sample rate of setting and the audio coding code check of setting at least; The video coding parameter of described setting comprises the frame per second of setting, the resolution of setting and the video frequency coding rate of setting at least; The audio coding mode of setting can be audio frequency and video stagger scheme (Audio Video Interleaved, AVI) corresponding audio coded system, stream-type video file format (Real Media, RM) corresponding audio coded system or WMV (Windows Media Video) form corresponding audio coded system; The video coding mode of setting can be the video coding mode of AVI form correspondence, the video coding mode of RM form correspondence or the video coding mode of WMV form correspondence.The data format that can support according to the equipment of the multimedia real-time streaming data after the broadcast format conversion to above-mentioned coded system and or coding parameter set.
Wherein, in real time format conversion equipment comprises that real-time stream gets flow module 2021, audio, video data separation module 2022, audio coding module 2023, video encoding module 2024 and audio frequency and video mixing module 2025.Wherein, stream is got the input connection headend equipment 101 of flow module 2021 in real time, and its output connects the input of audio, video data separation module 2022; The output of audio, video data separation module 2022 connects the input of audio coding module 2023 and the input of video encoding module 2024 respectively; The output of audio coding module 2023 connects the input of audio frequency and video mixing module 2025; The output of video encoding module 2024 connects the input of audio frequency and video mixing module 2025.
Stream is got flow module 2021 operational network SDK in real time, connecting under headend equipment 101 case of successful, obtains the multimedia real-time streaming data from headend equipment 101, and output multimedia real-time streaming data is to audio, video data separation module 2022.Real-time stream is got flow module 2021 and can be adopted existing method operational network SDK to connect headend equipment 101 to obtain the multimedia real-time streaming data, does not repeat them here.
Audio, video data separation module 2022 judges whether the data type of the multimedia real-time streaming data that receives is the media file head, if, then create decoding storehouse for described media file head, otherwise, the multimedia real-time streaming data that receives is sent into the decoding storehouse of having created decode; After successfully obtaining decoded data, judge whether present frame is frame of video, if then obtain frame of video information and decoded video data and export video encoding module 2024 to, otherwise, obtain audio frame information and decoded voice data and export audio coding module 2023 to.Audio, video data separation module 2022 is abandoned the operation to the multimedia real-time streaming data that receives when determining not create the decoding storehouse corresponding with the multimedia real-time streaming data that receives.The method that audio, video data separation module 2022 is created the decoding storehouse according to the media file head can adopt existingly obtains the coded system of data according to the media file head, creates the decoding storehouse according to the coded system of data again, and concrete creation method does not repeat them here.Whether audio, video data separation module 2022 judgment data types are media file head, decoding and judge that the method for the type of present frame belongs to the content of prior art, does not repeat them here.If present frame is a frame of video, then decoded video data is complete yuv data, and frame of video information comprises decoded data length, resolution and frame per second information at least; If present frame is an audio frame, then decoded voice data is the PCM data, and audio frame information comprises decoded data length, audio code rate, channel number and sample rate at least.
Audio coding module 2023 judges whether the audio frame information that receives is identical with the audio coding parameters of setting, if, then decoded voice data is encoded according to the audio coding mode of setting and the audio coding parameters of setting, otherwise, to handle decoded voice data according to the audio coding parameters of setting, the voice data after handling be encoded according to the audio coding parameters of audio coding mode of setting and setting; Voice data after audio coding module 2023 will be encoded exports audio frequency and video mixing module 2025 to.Particularly, audio coding module 2023 judges whether the channel number that comprises in the audio frame information is identical with the channel number of setting, if it is identical, judge then whether the sample rate that comprises in the audio frame information is identical with the sample rate of setting, if it is different, be dual track data or to peel off the dual track data be mono data then, judge afterwards whether the sample rate that comprises in the audio frame information is identical with the sample rate of setting by the copy mono data; The sample rate that comprises in audio coding module 2023 definite audio frame information and the sample rate of setting are not simultaneously, according to the sample rate of setting decoded voice data is resampled, audio coding parameters according to audio coding mode of setting and setting is encoded to the data after resampling, otherwise directly according to the audio coding mode of setting and the audio coding parameters of setting mono data or dual track data is encoded.Audio coding module 2023 copy mono data are dual track, peel off dual track is mono data, decoded voice data is resampled and utilizes the audio coding parameters of setting and coded system to carry out the content of Methods for Coding for prior art, does not repeat them here.
Video encoding module 2024 judges whether the frame of video information that receives is identical with the video coding parameter of setting, if, then according to the video coding parameter of video coding mode of setting and setting to decoded coding video data, otherwise, to handle decoded video data according to the video coding parameter of setting, the processed video data be encoded according to the video coding mode of setting and the video coding parameter of setting; Video data after video encoding module 2024 will be encoded exports audio frequency and video mixing module 2025 to.Particularly, video encoding module 2024 judges whether the frame per second that comprises in the frame of video information is identical with the frame per second of setting, if it is identical, judge then whether the resolution that comprises in the frame of video information is identical with the resolution of setting, if it is inequality, the magnitude relationship of the frame per second of frame per second that relatively comprises in the frame of video information and setting then, when the frame per second that the frame per second of setting comprises in greater than frame of video information, with the frame per second that comprises in the frame of video information as the frame per second of setting, judge afterwards whether the resolution that comprises in the frame of video information is identical with the resolution of setting, when the frame per second that the frame per second of setting comprises in smaller or equal to frame of video information, when determining to abandon present frame, wait for frame of video information and decoded video data, when determining not need to abandon present frame, judge whether the resolution that comprises in the frame of video information is identical with the resolution of setting.The resolution that video encoding module 2024 comprises in determining frame of video information and the resolution of setting are not simultaneously, decoded video data is stretched or down-sampling, afterwards according to the video coding parameter of video coding mode of setting and setting to the coding video data after stretching; When the resolution that video encoding module 2024 comprises in determining frame of video information is identical with the resolution of setting, according to the video coding parameter of video coding mode of setting and the setting coding video data after to the change frame per second.Video encoding module 2024 judge whether to abandon present frame method, decoded video data is stretched or the method for down-sampling, carries out the content that Methods for Coding belongs to prior art according to the video coding mode of setting and the video coding parameter of setting, do not repeat them here.
Voice data behind the audio frequency and video mixing module 2025 basis codings that obtain and the video data behind the coding are revised the markers of present frame, and according to the frame type correction present frame of setting, are exported revised present frame.The frame type of setting is I frame (I frame) or P frame (P frame).Each frame video data behind each frame voice data behind the coding and the coding all comprises the markers of this frame, and audio frequency and video mixing module 2025 can adopt existing modification method correction markers, does not repeat them here.To be the multimedia real-time streaming data carried out data after the multimedia form conversion according to coding parameter of setting and coded system to described revised present frame.
The system of multimedia form conversion of the present invention also comprises the memory module 2026 of a connection audio frequency and video mixing module 2025, be used for the revised present frame of audio frequency and video mixing module 2025 outputs is stored, obtain the data of carrying out after multimedia form is changed for the user in real time.
The present invention also provides a kind of system of multimedia form conversion, this system comprises DVR shown in Figure 2 and the local computer that is connected with DVR, and the multimedia real-time streaming data of local computer after to the format conversion of DVR 20 output play.
Fig. 3 is the method flow diagram of multimedia form conversion of the present invention.Fig. 4 separates the method flow diagram that the multimedia real-time streaming data obtains voice data and video data for the present invention.Fig. 5 carries out Methods for Coding flow chart with decoded voice data according to the audio coding mode of setting and the audio coding parameters of setting for the present invention.Fig. 6 carries out Methods for Coding flow chart with decoded video data according to the video coding mode of setting and the video coding parameter of setting for the present invention.Now in conjunction with Fig. 3, Fig. 4, Fig. 5 and Fig. 6, the method that multimedia form of the present invention is changed describes, and is specific as follows:
In the method for multimedia form conversion of the present invention, data are all stored according to frame, and each present frame all comprises audio frame and frame of video, just comprises voice data and video data; In the specifying of following method, only the form of presentation with voice data and video data describes.The method of multimedia form conversion of the present invention can realize by the real-time format conversion equipment that DVR comprises.
Step 31: obtain the multimedia real-time streaming data;
This step comprises: step 311, and operational network SDK obtains the multimedia real-time streaming data; Step 312 judges whether to finish, if, end operation then, otherwise execution in step 32.
In the method for multimedia form of the present invention conversion, the method that operational network SDK obtains the multimedia real-time streaming data is identical with the existing method of obtaining the multimedia real-time streaming data, does not repeat them here.
Step 32: the decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data;
The concrete grammar of step 32 specifically comprises as shown in Figure 4:
Step 321 judges whether the data type of the multimedia real-time streaming data that receives is the media file head, if, execution in step 322, otherwise execution in step 323; Step 322 is created the decoding storehouse for described media file head, and execution in step 321 afterwards; Step 323 is sent the multimedia real-time streaming data that receives into the decoding storehouse of having created and is decoded; Step 324 judges whether that success obtains decoded data, if, execution in step 325, otherwise execution in step 323; Step 325 judges whether present frame is frame of video, if then execution in step 326, otherwise execution in step 327; Step 326 is obtained frame of video information and decoded video data and output; Step 327 is obtained audio frame information and decoded voice data and output.
In this step,, then the multimedia real-time streaming data that receives is not operated as if the decoding storehouse of not creating for the multimedia real-time streaming data that receives.
Described frame of video information comprises frame per second and resolution at least; Described audio frame information comprises channel number and sample rate at least.
This step can adopt existing method to judge the data type of multimedia real-time streaming data, creates the decoding storehouse, decodes, judges whether to frame of video, obtain frame of video information, obtains decoded video data, obtains audio frame information and obtain decoded voice data, does not repeat them here.
Step 33: decoded voice data and video data are encoded respectively according to coded system and the coding parameter set;
The coded system of described setting comprises the audio coding mode of setting and the video coding mode of setting; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting.Wherein, the audio coding parameters of described setting comprises the channel number of setting, the sample rate of setting and the audio coding code check of setting at least; The video coding parameter of described setting comprises the frame per second of setting, the resolution of setting and the video frequency coding rate of setting at least; The audio coding mode of setting can be AVI form corresponding audio coded system, RM form corresponding audio coded system or WMV form corresponding audio coded system; The video coding mode of setting can be the video coding mode of AVI form correspondence, the video coding of RM form correspondence protects the video coding mode of formula or WMV form correspondence.
This step comprises:
Step 331, decoded voice data is encoded according to the audio coding mode of setting and the audio coding parameters of setting, particularly, judge whether the audio frame information that receives is identical with the audio coding parameters of setting, if, then decoded voice data is encoded according to the audio coding mode of setting and the audio coding parameters of setting, otherwise, to handle decoded voice data according to the audio coding parameters of setting, the voice data after handling be encoded according to the audio coding parameters of audio coding mode of setting and setting.
Step 332 is encoded decoded video data according to the video coding mode of setting and the video coding parameter of setting; Judge whether the frame of video information that receives is identical with the video coding parameter of setting, if, then according to the video coding parameter of video coding mode of setting and setting to decoded coding video data, otherwise, to handle decoded video data according to the video coding parameter of setting, the processed video data be encoded according to the video coding mode of setting and the video coding parameter of setting.
The asynchronous execution of step 331 and step 332 can first execution in step 331 or first execution in step 332.
The concrete grammar of step 331 specifically comprises as shown in Figure 5:
Step 3311 judges whether the channel number that comprises in the audio frame information is identical with the channel number of setting, if, execution in step 3315, otherwise execution in step 3312; Step 3312, the magnitude relationship of the channel number that comprises in the comparing audio frame information and the channel number of setting, if less than, execution in step 3313, if greater than, execution in step 3314; Step 3313, the copy mono data is the dual track data, execution in step 3315 afterwards; Step 3314, peeling off the dual track data is mono data; Step 3315 judges whether the sample rate that comprises in the audio frame information is identical with the sample rate of setting, if then execution in step 3317, otherwise execution in step 3316; Step 3316 resamples to decoded voice data according to the sample rate of setting, and step 3317 is encoded to the data, mono data or the dual track data that resample according to the audio coding parameters of audio coding mode of setting and setting.
In the said method, the copy mono data is dual track, peel off dual track is mono data, decoded voice data is resampled and Methods for Coding is the content of prior art, does not repeat them here.
The concrete grammar of step 332 specifically comprises as shown in Figure 6:
Step 3321 judges whether the frame per second that comprises in the frame of video information is identical with the frame per second of setting, if, execution in step 3325, otherwise execution in step 3322; Step 3322, the magnitude relationship of the frame per second that comprises in the comparison frame of video information and the frame per second of setting, if less than, execution in step 3323, if greater than, execution in step 3324; Step 3323, as the frame per second of setting, execution in step 3325 afterwards with the frame per second that comprises in the frame of video information; Step 3324 judges whether to abandon present frame, if, execution in step 3321, otherwise execution in step 3325; Step 3325 judges whether the resolution that comprises in the frame of video information is identical with the resolution of setting, if, execution in step 3327, otherwise execution in step 3326; Step 3326 stretches or down-sampling to decoded video data; Step 3327, according to the video coding parameter of video coding mode of setting and setting to the video data after stretching or the coding video data after changing frame per second.
In the said method, judge whether to abandon present frame method, decoded video data is stretched or the method for down-sampling, carries out the content that Methods for Coding belongs to prior art according to video encoding rate, do not repeat them here.
Step 34: according to multimedia real-time streaming data and the output after voice data behind the coding and the video data acquisition format conversion;
Multimedia real-time streaming data after the described format conversion is revised present frame.
This step comprises: step 341, and according to the markers of the video data correction present frame behind voice data behind the coding that obtains and the coding, calibration method can adopt existing markers modification method when specifically revising; Step 342, according to the frame type correction present frame of setting, the frame type of described setting is I frame or P frame; Step 343 is exported revised present frame.
Step 35: finish.
In the method for multimedia form conversion of the present invention, also can after the revised present frame of output, further revised present frame be stored.
In the above-mentioned preferred embodiment of the present invention, by built-in real-time format conversion equipment of the present invention in DVR, realized the multimedia form conversion of DVR to the multimedia real-time streaming data obtained, solve the problem of using DVR to obtain complicated operation in multimedia real-time streaming data and the multimedia form transfer process, improved real-time and the convenience of using DVR.In addition, the system and method for DVR of the present invention, multimedia form conversion, can set the coding parameter and the coded system of format conversion according to the file format of playback equipment, so that the multimedia real-time streaming data that obtains is carried out corresponding format conversion, avoid the problem of form and the local computer incompatible aftertreatment data format that causes of playing above-mentioned data of the multi-medium data of DVR output, made the multimedia form conversion more flexible accurately.
The above only is preferred embodiment of the present invention, and is in order to restriction the present invention, within the spirit and principles in the present invention not all, any modification of being made, is equal to replacement, improvement etc., all should be included within the scope of protection of the invention.

Claims (10)

1. a DVR comprises headend equipment, it is characterized in that, this video tape recorder also comprises the real-time format conversion equipment that is connected with described headend equipment;
Described real-time format conversion equipment obtains the multimedia real-time streaming data from described headend equipment; The decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to coded system and the coding parameter set; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion; The coded system of described setting comprises audio coding mode and video coding mode; The coding parameter of described setting comprises audio coding parameters and video coding parameter.
2. DVR according to claim 1 is characterized in that, described real-time format conversion equipment comprises: stream is got flow module, audio, video data separation module, audio coding module, video encoding module and audio frequency and video mixing module in real time;
Described real-time stream is got flow module and is connected described headend equipment, obtains the multimedia real-time streaming data and exports described audio, video data separation module to from described headend equipment;
Described audio, video data separation module judges whether the data type of the multimedia real-time streaming data that receives is the media file head, if, then create decoding storehouse, decode otherwise the multimedia real-time streaming data that receives is sent into the decoding storehouse of having created for described media file head; After successfully obtaining decoded data, obtain frame of video information and decoded video data and export described video encoding module to, obtain audio frame information and decoded voice data and export described audio coding module to; Described frame of video information comprises frame per second and resolution at least; Described audio frame information comprises channel number and sample rate at least;
Described audio coding module judges whether the audio frame information that receives is identical with the audio coding parameters of setting, if, then decoded voice data is encoded according to audio coding mode and the audio coding parameters set, otherwise, to handle decoded voice data according to the channel number and the sample rate that comprise in the audio coding parameters of setting, the voice data after handling be encoded according to audio coding mode of setting and audio coding parameters; Voice data after described audio coding module will be encoded exports described audio frequency and video mixing module to;
Described video encoding module judges whether the frame of video information that receives is identical with the video coding parameter of setting, if, then according to the video coding mode of setting and video coding parameter to decoded coding video data, otherwise, to handle decoded video data according to the frame per second and the resolution that comprise in the video coding parameter of setting, the processed video data be encoded according to video coding mode and the video coding parameter set; Video data after described video encoding module will be encoded exports described audio frequency and video mixing module to;
Voice data behind the described audio frequency and video mixing module basis coding that obtains and the video data behind the coding are revised the markers of present frame, and according to the frame type correction present frame of setting, are exported revised present frame; Described revised present frame is the multimedia real-time streaming data after the described format conversion.
3. DVR according to claim 2 is characterized in that, described real-time format conversion equipment also comprises the memory module of the described audio frequency and video mixing module of a connection;
Described memory module is used to store revised present frame.
4. the system of a multimedia form conversion comprises DVR and the local computer that is connected with DVR, it is characterized in that described DVR comprises headend equipment and the real-time format conversion equipment that is connected with described headend equipment;
Described real-time format conversion equipment obtains the multimedia real-time streaming data from described headend equipment; The decoding multimedia real-time streaming data is also separated, and obtains decoded voice data and video data; Decoded voice data and video data are encoded respectively according to coded system and the coding parameter set; According to the multimedia real-time streaming data after the video data acquisition format conversion behind voice data behind the coding and the coding, the multimedia real-time streaming data after the output format conversion; The coded system of described setting comprises audio coding mode and video coding mode; The coding parameter of described setting comprises audio coding parameters and video coding parameter;
The multimedia real-time streaming data of described local computer after to the format conversion that receives play.
5. the method for multimedia form conversion is characterized in that this method comprises:
A, real-time format conversion equipment obtain the multimedia real-time streaming data;
B, format conversion equipment decoding multimedia real-time streaming data and separation in real time obtain decoded voice data and video data;
C, real-time format conversion equipment are encoded decoded voice data and video data respectively according to coded system and the coding parameter set; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting; The coding parameter of described setting comprises the audio coding parameters of setting and the video coding parameter of setting;
D, in real time voice data and the video data of format conversion equipment after according to coding obtains multimedia real-time streaming data and output after the format conversion.
6. method according to claim 5 is characterized in that, the described multimedia real-time streaming data of obtaining of step B comprises:
Whether the data type of the multimedia real-time streaming data that B1, judgement receive is the media file head, if, then create decoding storehouse for described media file head, otherwise being sent into the decoding storehouse of having created, the multimedia real-time streaming data that receives decodes;
B2, judge whether that success obtains decoded data, if successfully do not obtain, then the multimedia real-time streaming data that receives is sent into the decoding storehouse of having created and decode, otherwise, obtain frame of video information and decoded video data, or obtain audio frame information and decoded voice data.
7. method according to claim 5 is characterized in that, step C is described to be comprised decoded voice data according to coded system and the capable coding of coding parameter set:
C1, judge that the channel number that comprises in the audio frame information is whether identical with the channel number that comprises in the audio coding parameters of setting, if, execution in step C2, otherwise the magnitude relationship of the channel number that comprises in the channel number that comprises in the comparing audio frame information and the audio coding parameters of setting, if less than to copy mono data would be the dual track data, if greater than to peel off the dual track data would be mono data;
C2, judge that the sample rate that comprises in the audio frame information is whether identical with the sample rate that comprises in the audio coding parameters of setting, if identical then execution in step C3, otherwise, decoded voice data is resampled according to the sample rate that comprises in the audio coding parameters of setting;
C3, the data, mono data or the dual track data that resample are encoded according to audio coding mode of setting and audio coding parameters; The audio coding parameters of described setting comprises channel number, sample rate and audio coding code check at least.
8. method according to claim 5 is characterized in that, described decoded video data is encoded according to coded system of setting and coding parameter of step C comprises:
C4, judge that the frame per second that comprises in the frame of video information is whether identical with the frame per second that comprises in the video coding parameter of setting, if execution in step C6 then, otherwise execution in step C5;
The magnitude relationship of the frame per second that comprises in the frame per second that comprises in C5, the comparison frame of video information and the video coding parameter of setting, if less than with the frame per second that would comprise in the frame of video information as the frame per second that comprises in the video coding parameter of setting, if greater than would judge whether to abandon present frame, abandon then execution in step C4 of present frame if desired, otherwise execution in step C6;
C6, judge that the resolution that comprises in the frame of video information is whether identical with the resolution that comprises in the video coding parameter of setting, if execution in step C7 then, otherwise, decoded video data is stretched or down-sampling;
C7, according to the video coding mode of setting and video coding parameter to the video data after stretching or the coding video data after changing frame per second; The video coding parameter of described setting comprises frame per second, resolution and video frequency coding rate at least.
9. method according to claim 5 is characterized in that, step D is described to be comprised according to multimedia real-time streaming data and output after voice data behind the coding and the video data acquisition format conversion:
The voice data behind D1, the basis coding that obtains and the markers of the video data correction present frame behind the coding;
D2, according to frame type correction present frame of setting and output; The frame type of described setting is I frame or P frame; Described revised present frame is the multimedia real-time streaming data after the format conversion.
10. method according to claim 5 is characterized in that, also comprises after the step D: the multimedia real-time streaming data after the format conversion equipment storage format conversion in real time.
CN 201010531719 2010-10-27 2010-10-27 Hard disk video recorder and system and method for converting multimedia formats Pending CN102014262A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN 201010531719 CN102014262A (en) 2010-10-27 2010-10-27 Hard disk video recorder and system and method for converting multimedia formats

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN 201010531719 CN102014262A (en) 2010-10-27 2010-10-27 Hard disk video recorder and system and method for converting multimedia formats
CN2011102094616A CN102457715A (en) 2010-10-27 2011-07-18 Video monitoring equipment, real-time format conversion apparatus and multimedia format conversion method

Publications (1)

Publication Number Publication Date
CN102014262A true CN102014262A (en) 2011-04-13

Family

ID=43844252

Family Applications (2)

Application Number Title Priority Date Filing Date
CN 201010531719 Pending CN102014262A (en) 2010-10-27 2010-10-27 Hard disk video recorder and system and method for converting multimedia formats
CN2011102094616A Pending CN102457715A (en) 2010-10-27 2011-07-18 Video monitoring equipment, real-time format conversion apparatus and multimedia format conversion method

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN2011102094616A Pending CN102457715A (en) 2010-10-27 2011-07-18 Video monitoring equipment, real-time format conversion apparatus and multimedia format conversion method

Country Status (1)

Country Link
CN (2) CN102014262A (en)

Cited By (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347947A (en) * 2011-09-21 2012-02-08 杭州海康威视软件有限公司 Streaming media adaptor, streaming media network interaction system and method
CN103200371A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 System and method for video volume custom adjustment
CN103200380A (en) * 2012-01-10 2013-07-10 北京世纪高蓝科技有限公司 Multimedia data format conversion method
CN104104897A (en) * 2014-06-27 2014-10-15 北京奇艺世纪科技有限公司 Mobile terminal video editing method and device
CN105872745A (en) * 2015-12-21 2016-08-17 乐视致新电子科技(天津)有限公司 Extension method and device of input data sources
CN106657090A (en) * 2016-12-28 2017-05-10 深圳市共进电子股份有限公司 Multimedia stream processing method and device as well as embedded device
CN108965914A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of video data handling procedure and device based on view networking
CN110166808A (en) * 2019-06-13 2019-08-23 深圳市拔超科技有限公司 A kind of solution Crystal Oscillator Errors lead to the nonsynchronous method, apparatus of video and decoding device
WO2019169682A1 (en) * 2018-03-05 2019-09-12 网宿科技股份有限公司 Audio-video synthesis method and system
CN110858829A (en) * 2018-08-22 2020-03-03 杭州海康威视数字技术股份有限公司 Video processing method, device and system, analysis server and transcoding server
CN107800989B (en) * 2017-10-16 2021-01-05 深圳市天视通电子科技有限公司 Video display method and system based on dynamic frame rate detection and network video recorder

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103702078A (en) * 2013-12-23 2014-04-02 北京汉邦高科数字技术股份有限公司 Method for realizing monitoring on audios and videos
CN108989831A (en) * 2017-05-31 2018-12-11 北京视联动力国际信息技术有限公司 A kind of network REC method and apparatus of multi-code stream
CN107578783A (en) * 2017-08-14 2018-01-12 上海定菱网络科技有限公司 Audio defeat method and system, memory and electronic equipment during audio frequency and video are live
CN108881819A (en) * 2017-11-02 2018-11-23 北京视联动力国际信息技术有限公司 A kind of transmission method and device of audio data
CN108282656A (en) * 2018-02-13 2018-07-13 山东顺国电子科技有限公司 Visualization Platform data processing method and device

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100574430C (en) * 2007-01-31 2009-12-23 浙江大学 Multichannel real-time audio and video data transmission method for uplink and device based on embedded system
US20090016246A1 (en) * 2007-07-12 2009-01-15 Motorola, Inc. Method and apparatus for data transmission in an unlicensed mobile access network
CN101808233A (en) * 2009-02-18 2010-08-18 杭州海康威视数字技术股份有限公司 Universal system for realizing video monitoring of mobile phone and method thereof
CN101699857A (en) * 2009-10-21 2010-04-28 南京邮电大学 Implementation method for cross-platform videophone system between set-top box and computer

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102347947A (en) * 2011-09-21 2012-02-08 杭州海康威视软件有限公司 Streaming media adaptor, streaming media network interaction system and method
CN102347947B (en) * 2011-09-21 2015-01-21 杭州海康威视数字技术股份有限公司 Streaming media adaptor, streaming media network interaction system and method
CN103200380A (en) * 2012-01-10 2013-07-10 北京世纪高蓝科技有限公司 Multimedia data format conversion method
CN103200371A (en) * 2013-03-29 2013-07-10 天脉聚源(北京)传媒科技有限公司 System and method for video volume custom adjustment
CN104104897A (en) * 2014-06-27 2014-10-15 北京奇艺世纪科技有限公司 Mobile terminal video editing method and device
CN105872745A (en) * 2015-12-21 2016-08-17 乐视致新电子科技(天津)有限公司 Extension method and device of input data sources
CN106657090A (en) * 2016-12-28 2017-05-10 深圳市共进电子股份有限公司 Multimedia stream processing method and device as well as embedded device
CN107800989B (en) * 2017-10-16 2021-01-05 深圳市天视通电子科技有限公司 Video display method and system based on dynamic frame rate detection and network video recorder
CN108965914A (en) * 2017-12-20 2018-12-07 北京视联动力国际信息技术有限公司 A kind of video data handling procedure and device based on view networking
WO2019169682A1 (en) * 2018-03-05 2019-09-12 网宿科技股份有限公司 Audio-video synthesis method and system
CN110858829A (en) * 2018-08-22 2020-03-03 杭州海康威视数字技术股份有限公司 Video processing method, device and system, analysis server and transcoding server
CN110166808A (en) * 2019-06-13 2019-08-23 深圳市拔超科技有限公司 A kind of solution Crystal Oscillator Errors lead to the nonsynchronous method, apparatus of video and decoding device

Also Published As

Publication number Publication date
CN102457715A (en) 2012-05-16

Similar Documents

Publication Publication Date Title
CN102014262A (en) Hard disk video recorder and system and method for converting multimedia formats
US8204919B2 (en) File generation apparatus, method, program, and recording medium
JP3871210B2 (en) CONVERTING APPARATUS, CONVERTING METHOD, PROGRAM, AND DATA STRUCTURE
CN101203907B (en) Audio encoding apparatus, audio decoding apparatus and audio encoding information transmitting apparatus
CN101656099B (en) Audio and video production and play method used for MP3 player
CA2578190C (en) Device and method for generating a coded multi-channel signal and device and method for decoding a coded multi-channel signal
CN102595114B (en) Method and terminal for playing video on low-side embedded product
JP2007235570A5 (en)
CN106060628A (en) DirectShow-based method and system supporting variable coding
CN101312460A (en) Method for converting media file of multiple formats into target device supported media file
CN101178921A (en) Method and system for a flexible multiplexer and mixer
JP2003032617A (en) Data record reproducing device and method therefor
WO2004112023A1 (en) Recording control device and method, program, and recording medium
CN102196268B (en) Method, device and system for processing multimedia data
CN103414949B (en) A kind of multimedia edit system based on intelligent television and method
US7664373B2 (en) Program, data processing method, and system of same
CN101668206B (en) Multichannel video decoding display method and system based on H.264
CN102955809A (en) Method and system for editing and playing media files
JP4265438B2 (en) Conversion device, conversion auxiliary method, and program
CN101296346B (en) Image data recording/playback device, system, and method
CN202102715U (en) Multi-carrier real-time play controlling system for audio media
CN1668099A (en) A/V recording and reproducing system
CN102262880A (en) Audio extraction apparatus and method thereof
CN201131015Y (en) Television set with recording and time-shifting function
CN106060656A (en) Method and system for generating BHD file based on DirectShow

Legal Events

Date Code Title Description
PB01 Publication
C06 Publication
SE01 Entry into force of request for substantive examination
C10 Entry into substantive examination
WD01 Invention patent application deemed withdrawn after publication

Open date: 20110413

C02 Deemed withdrawal of patent application after publication (patent law 2001)