WO2017041547A1 - 终端检测录制音视频丢失的方法及装置 - Google Patents

终端检测录制音视频丢失的方法及装置 Download PDF

Info

Publication number
WO2017041547A1
WO2017041547A1 PCT/CN2016/084535 CN2016084535W WO2017041547A1 WO 2017041547 A1 WO2017041547 A1 WO 2017041547A1 CN 2016084535 W CN2016084535 W CN 2016084535W WO 2017041547 A1 WO2017041547 A1 WO 2017041547A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
audio
lost
total length
time
Prior art date
Application number
PCT/CN2016/084535
Other languages
English (en)
French (fr)
Inventor
汪斯涛
王云华
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017041547A1 publication Critical patent/WO2017041547A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • H04N21/44008Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving operations for analysing video streams, e.g. detecting features or characteristics in the video stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/433Content storage operation, e.g. storage operation in response to a pause request, caching operations
    • H04N21/4334Recording operations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/439Processing of audio elementary streams
    • H04N21/4394Processing of audio elementary streams involving operations for analysing the audio stream, e.g. detecting features or characteristics in audio streams

Definitions

  • the present invention relates to the field of terminal equipment technologies, and in particular, to a method and apparatus for detecting loss of recorded audio and video by a terminal.
  • the terminal does not detect the integrity of the audio or video of the audio and video, so when uploading the audio and video to the cloud for sharing, there is no guarantee that the uploaded audio and video is normal.
  • Taking smart TV as an example with the advent of android system, the application of karaoke on TV is becoming more and more popular. Users can upload their own songs to the cloud and share them with friends.
  • Xiao Li sings a song through a smart TV at home and uploads it to the cloud to share with friends, but the KTV video uploaded to the cloud has no sound, and the smart TV system does not automatically remind the currently recorded K song to be lost. For the audio, Xiao Li needs to re-record and upload.
  • the main purpose of the present invention is to provide a method and a device for detecting loss of recorded audio and video, and aiming at detecting audio and video recorded by the terminal, and automatically reminding the audio video whether the audio video is lost after the terminal records the audio and video, and ensuring uploading.
  • the recorded audio and video is normal.
  • the present invention provides a method for detecting loss of recorded audio and video by a terminal, including:
  • the valid digital audio data is compared with the total length of time
  • the audio loss information is displayed on the terminal interface to remind the user.
  • the method further includes:
  • the video is lost, and video loss information is displayed on the terminal interface to remind the user.
  • acquiring the total number of video images and the valid video image data includes:
  • the present invention also provides a method for detecting loss of recorded audio and video by a terminal, including:
  • the audio loss information is displayed on the terminal interface to remind the user.
  • the obtaining the total length of time and the valid digital audio data corresponding to the completed audio and video recording include:
  • the number of non-zero digits is taken as valid digital audio data according to the storage area in which the recorded audio and video is completed.
  • the determining whether the audio is lost according to the total length of time and the valid digital audio data comprises:
  • the method further includes:
  • the video is lost, and video loss information is displayed on the terminal interface to remind the user.
  • acquiring the total number of video images and the valid video image data includes:
  • the present invention further provides an apparatus for detecting loss of recorded audio and video by a terminal, including:
  • a first acquiring module configured to acquire a total length of time and valid digital audio data corresponding to the completed audio and video recording
  • a first determining module configured to determine whether the audio is lost according to the total length of time and the valid digital audio data
  • the display module is configured to display audio loss information on the terminal interface to remind the user when the audio is lost.
  • the first obtaining module is further configured to: when the total length of the time is greater than the preset time value, use the number of non-zero digits as the valid digital audio data according to the storage area where the recorded audio and video is completed.
  • the first determining module is further configured to compare the valid digital audio data with the total length of time when the obtained valid digital audio data is greater than a preset number; if the valid digital audio If the data is greater than the total length of the time, the audio is not lost.
  • the device for detecting that the recorded audio and video is lost by the terminal further includes:
  • a second acquiring module configured to acquire a total number of video images and valid video image data when the audio is not lost
  • a second determining module configured to determine, according to the total number of video images and the valid video image data, whether the video is lost
  • the processing module is configured to: when the valid video image data is less than or equal to the total number of the video images, the video is lost, and the video loss information is displayed on the terminal interface to remind the user.
  • the second obtaining module is further configured to acquire a product of the total length of time and a first video frame rate as a total number of video images, and obtain between the valid digital audio data and the second video frame rate.
  • the product of the product is valid video image data.
  • the terminal determines whether the audio is lost through the total length of time and the valid digital audio data, and displays the recording condition of the audio. It realizes the detection of the audio and video recorded by the terminal, and automatically reminds the audio video whether the audio video is lost after the terminal records the audio and video, and ensures that the recorded audio and video is normal.
  • FIG. 1 is a schematic flowchart of a first embodiment of a method for detecting loss of recorded audio and video by a terminal according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a method for detecting loss of recorded audio and video by a terminal according to the present invention
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a device for detecting loss of recorded audio and video according to the present invention
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of a device for detecting loss of recorded audio and video according to the present invention.
  • FIG. 1 a first embodiment of a method for detecting loss of recorded audio and video by a terminal according to the present invention is shown.
  • the method for detecting the loss of recorded audio and video by the terminal of this embodiment includes:
  • Step S10 Obtain a total length of time and valid digital audio data corresponding to the completed audio and video recording
  • the type of the terminal may be set according to a specific situation.
  • the terminal may include a mobile phone, a smart TV, an iPad, and the like.
  • the content of the recorded audio and video can be set according to actual needs, for example, it can be recorded songs, speeches, interviews, and the like. The following will be explained in detail by taking a song recorded on a smart TV as an example.
  • the user turns on the K song application of the smart TV, and starts recording the song through the preset button of the smart TV.
  • the smart television system After receiving the command to record the song, the smart television system performs the recording operation. After the song is recorded, the recorded songs are saved in the memory area. Assume that the user has recorded the two songs of Andy Lau's "Love You for Ten Thousand Years" and Jacky Cheung's "Heart is Wrong".
  • the smart television system will acquire the song names recorded by the user, and sequentially save the song names and the corresponding audio files and video files to the storage area 11 according to the time sequence recorded by the user.
  • the unique identifier of each song may be separately set, and the audio file and the video file corresponding to the song are respectively saved to the storage area 11 according to the unique identifier, and each of the subsequent identifiers may be acquired by the unique identifier.
  • the parameter information corresponding to the first song It can be understood that the user can also record a plurality of songs as needed, and does not limit the present invention.
  • the smart television system then acquires the total length of time for each song in the storage area 11, and transfers the total length of time obtained to the storage area 22 for storage.
  • the total length of the time of "love you for ten thousand years" is 300 seconds
  • the total length of time of "heart-like” is 400 seconds, and is correspondingly stored in the storage area 22 according to the name of the song.
  • the above step S1 may include: when the total length of time is greater than the preset time value, according to the completion of the recording.
  • the storage area where the audio and video are located, and the number of non-zero digits is used as valid digital audio data.
  • the smart television system determines whether the total length of time of each song in the storage area 22 is greater than a preset time value.
  • the preset time value can be flexibly set according to a specific situation, for example, can be set to one-half or one-third of the total length of the song, etc., or can be set to a fixed value, since normal songs generally have 200 seconds. Left and right, one-half of the time of a typical song is 100 seconds, so the fixed value can be set to 100 seconds.
  • the total length of the song is less than or equal to the preset time value, it indicates that the recording process has a fault and the system does not perform subsequent processing.
  • the total time length of the obtained song is greater than the preset time value, the number of non-zero digits in the storage area 11 where the recorded song is completed is obtained as valid digital audio data, and the obtained valid digital audio data is saved in the storage area. 33.
  • effective digital audio can be defined as digital audio that exists at a certain point in time. It is assumed that in the obtained audio data, the digital audio is valid by a number greater than 1, and the digital audio is invalidated by "0", and valid digital audio data can be obtained by calculating the number of digital audios greater than one in the song.
  • the calculation method of the effective digital audio data can also be flexibly set according to the specific situation, and does not limit the present invention.
  • the smart TV system sets the preset time value to 100 seconds according to the total length of the song. "Love you 10,000. The total length of the year is 300 seconds, and the total length of the "heart is like a knife” is 400 seconds. The total length of the two songs is greater than 100 seconds, and the effective digital audio data of the two songs will be obtained separately. For example, “I love you for ten thousand years” has 350 effective digital audio data, and “heart-to-heart” effective digital audio data is 380, and are stored in the storage area 33, respectively.
  • Step S20 determining whether the audio is lost according to the total length of time and the valid digital audio data
  • step S20 may include:
  • the setting of the preset number is related to the number of data that the digital-to-analog conversion module can process in one second, and can be flexible according to specific conditions. Settings. For example, it can be set to 100 or 1000 or the like.
  • the effective digital audio data is less than or equal to the preset number, the audio file is lost, and the flag for setting the audio file loss is stored in the storage area 44. For example, "0" is used to indicate that the audio file is lost, and "1" is used to indicate that the audio file is not lost, and subsequent video detection processing is not performed.
  • the logo In order to complete the detection of all the songs, according to the logo, information about the loss of the audio is displayed, thereby reminding the user.
  • the effective digital audio data is greater than the preset number
  • the valid digital audio data is compared with the total length of time, that is, logical judgment is performed.
  • the audio file lost state is identified by "0" and stored in the storage area 55, and the subsequent video detection processing is not performed.
  • the valid digital audio data is greater than the total length of time, it indicates that the audio file is not lost, and the "1" is used to identify that the audio file is not lost and stored in the storage area 55, and the video file may be further detected for loss. It can be understood that the state in which the audio file is lost can be flexibly set according to the specific situation, and does not limit the present invention.
  • the total length, the audio file of the song is not lost, and can continue to detect whether its video file is lost.
  • the case where the audio files corresponding to "I love you for ten thousand years” and “hearts like a knife” are lost with "1" and "0", respectively, are stored in the storage area 55.
  • Step S30 When the audio is lost, the audio loss information is displayed on the terminal interface to remind the user.
  • the system will be based on the audio loss state storage area 44 or the storage area 55, the information will be on the smart TV
  • the recording of the audio in the recorded audio and video is displayed on the screen. That is, the song name and the corresponding "missing audio data" information will be displayed on the screen of the smart TV to remind the user that the recorded song has audio loss. Or broadcast the song audio recording by voice to remind the user.
  • the smart TV determines whether the audio is lost through the total length of time and the valid digital audio data, and displays the recording of the audio and video. It realizes the detection of the audio and video recorded by the smart TV, and automatically reminds the audio video whether it is lost after the audio TV records the audio and video, and ensures that the recorded audio and video is normal. The smart TV automatically reminds the audio video whether it is lost after recording audio and video, which improves the user experience.
  • the second embodiment of the method for detecting the loss of the recorded audio and video by the terminal of the present invention is proposed.
  • the step S10 Can include:
  • Step S20 determining whether the audio is lost according to the total length of time and the number of valid digital audio; if yes, executing step S30; if not, performing step S40, step S50, and step S60 in sequence.
  • Step S40 obtaining a total number of video images and valid video image data
  • the video is detected, specifically, the product of the total length of time and the first video frame rate is taken as the total number of video images, and between the effective digital audio data and the second video frame rate is obtained.
  • the product of the product is valid video image data.
  • the first video frame rate is a reference standard frame
  • the second video frame rate is a dynamic frame rate read from the storage area 11 held by the video file, and can be flexibly set according to a specific situation.
  • the second video frame rate may include 1 second 60 frames, 1 second 30 frames, 1 second 24 frames, 1 second 50 frames, 1 second 120 frames, and the like.
  • the total length of time is 300 seconds, and the effective digital audio data is 350.
  • Step S50 determining, according to the total number of video images and valid video image data, whether the video is lost;
  • Step S60 When the effective video image data is less than or equal to the total number of video images, the video is lost, and the video loss information is displayed on the terminal interface to remind the user.
  • the video is lost, and is stored in the storage area 66 with "0" as the identifier.
  • the effective video image data is larger than the total number of video images, the video is not lost. It is stored in the storage area 66 with "1" as an identifier.
  • the logo can be flexibly set according to specific circumstances, and does not limit the present invention.
  • the smart TV system automatically reminds the current recording of the song, and does not require human intervention and control to ensure that the user uploads the recorded audio and video without losing audio or video.
  • the audio in order to reduce the processing of the data, it is preferable to detect the audio first and then detect the video.
  • the video may be detected first and then the audio may be detected, and the present invention is not limited.
  • the video loss information is displayed on the terminal interface to remind the user.
  • the recording of the video in the recorded audio and video will be displayed on the screen of the smart TV.
  • the screen of the smart TV For example, after the video detection of the recorded "Love You for Ten Thousand Years” mentioned above, since the recorded "Love You for Ten Thousand Years” audio and video are not lost, it is displayed on the screen of the smart TV: "Love you 10,000 "Annual" audio files and video files are complete.
  • the information can be displayed in the form of a list, displayed in other ways, or broadcasted by voice to visually alert the user.
  • the device for detecting loss of recorded audio and video in the terminal of this embodiment includes:
  • the first obtaining module 100 is configured to acquire a total length of time and valid digital audio data corresponding to the completed audio and video recording;
  • the type of the terminal may be set according to a specific situation.
  • the terminal may include a mobile phone, a smart TV, an iPad, and the like.
  • the content of the recorded audio and video can be set according to actual needs, for example, it can be recorded songs, speeches, interviews, and the like. The following will be explained in detail by taking a song recorded on a smart TV as an example.
  • the user turns on the K song application of the smart TV, and starts recording the song through the preset button of the smart TV.
  • the smart television system After receiving the command to record the song, the smart television system performs the recording operation. After the song is recorded, the recorded songs are saved in the memory area. Assume that the user has recorded the two songs of Andy Lau's "Love You for Ten Thousand Years" and Jacky Cheung's "Heart is Wrong".
  • the smart television system will acquire the song names recorded by the user, and sequentially save the song names and the corresponding audio files and video files to the storage area 11 according to the time sequence recorded by the user.
  • the unique identifier of each song may be separately set, and the audio file and the video file corresponding to the song are respectively saved to the storage area 11 according to the unique identifier, and each of the subsequent identifiers may be acquired by the unique identifier.
  • the parameter information corresponding to the first song It can be understood that the user can also record a plurality of songs as needed, and does not limit the present invention.
  • the smart television system then calls the first acquisition module 100 to obtain the total length of time for each song in the storage area 11, and transfers the total length of time obtained to the storage area 22 for storage.
  • the total length of the time of "love you for ten thousand years" is 300 seconds
  • the total length of time of "heart-like” is 400 seconds, and is correspondingly stored in the storage area 22 according to the name of the song.
  • the first acquisition module 100 is further configured to: when the total length of time is greater than the preset time value, in order to filter out the songs whose total length is significantly different, and then determine whether the audio is lost. According to the storage area where the recorded audio and video is located, the number of non-zero digits is taken as valid digital audio data.
  • the smart television system calls the first obtaining module 100 to determine whether the total time length of each song in the storage area 22 is greater than a preset time value.
  • the preset time value can be flexibly set according to a specific situation, for example, can be set to one-half or one-third of the total length of the song, etc., or can be set to a fixed value, since normal songs generally have 200 seconds. Left and right, one-half of the time of a typical song is 100 seconds, so the fixed value can be set to 100 seconds.
  • the first acquisition module 100 acquires the number of non-zero digits in the storage area 11 where the recorded song is located as valid digital audio data, and obtains the valid digits.
  • the audio data is saved in the storage area 33.
  • effective digital audio can be defined as digital audio that exists at a certain point in time. It is assumed that in the obtained audio data, the digital audio is valid by a number greater than 1, and the digital audio is invalidated by "0", the first obtaining module 100 can obtain the number of digital audios greater than 1 in the song. Effective digital audio data. Of course, the calculation method of the effective digital audio data can also be flexibly set according to the specific situation, and does not limit the present invention.
  • the smart TV system sets the preset time value to 100 seconds according to the total length of the song. "Love you 10,000. The total length of the year is 300 seconds, and the total length of the "heart is like a knife” is 400 seconds. The total length of the two songs is greater than 100 seconds, and the effective digital audio data of the two songs will be obtained separately. For example, “I love you for ten thousand years” has 350 effective digital audio data, and “heart-to-heart” effective digital audio data is 380, and are stored in the storage area 33, respectively.
  • the first determining module 200 is configured to determine, according to the total length of time and the valid digital audio data, whether the audio is lost;
  • the first determining module 200 determines whether the audio is lost according to the total length of time and the valid digital audio data. Further, the first determining module 200 is further configured to: When the obtained valid digital audio data is greater than a preset number, the valid digital audio data is compared with the total length of time; if the valid digital audio data is greater than the total length of time, the audio is not lost.
  • the setting of the preset number is related to the number of data that the digital-to-analog conversion module can process in one second. Flexible settings based on specific conditions. For example, it can be set to 100 or 1000 or the like.
  • the effective digital audio data is less than or equal to the preset number, the audio file is lost, and the flag for setting the audio file loss is stored in the storage area 44. For example, "0" is used to indicate that the audio file is lost, and "1" is used to indicate that the audio file is not lost, and subsequent video detection processing is not performed.
  • the first determining module 200 compares the valid digital audio data with the total length of time, that is, performs a logical determination.
  • the audio file lost state is identified by "0" and stored in the storage area 55, and the subsequent video detection processing is not performed.
  • the valid digital audio data is greater than the total length of time, it indicates that the audio file is not lost, and the "1" is used to identify that the audio file is not lost and stored in the storage area 55, and the video file may be further detected for loss. It can be understood that the state in which the audio file is lost can be flexibly set according to the specific situation, and does not limit the present invention.
  • the total length, the audio file of the song is not lost, and can continue to detect whether its video file is lost.
  • the case where the audio files corresponding to "I love you for ten thousand years” and “hearts like a knife” are lost with "1" and "0", respectively, are stored in the storage area 55.
  • the display module 300 is configured to display audio loss information on the terminal interface to remind the user when the audio is lost.
  • the system will be based on the information in the audio loss state storage area 44 or the storage area 55, by the display module 300.
  • the recording of the audio in the recorded audio and video is displayed on the screen of the smart TV. That is, the song name and the corresponding "missing audio data" information will be displayed on the screen of the smart TV to remind the user that the recorded song has audio loss. Or broadcast the song audio recording by voice to remind the user.
  • the smart TV determines whether the audio is lost through the total length of time and the valid digital audio data, and displays the recording of the audio and video. It realizes the detection of the audio and video recorded by the smart TV, and automatically reminds the audio video whether it is lost after the audio TV records the audio and video, and ensures that the recorded audio and video is normal. The smart TV automatically reminds the audio video whether it is lost after recording audio and video, which improves the user experience.
  • the terminal detects recording.
  • the device for losing audio and video also includes:
  • a second obtaining module 400 configured to acquire a total number of video images and valid video image data when the audio is not lost;
  • the second acquiring module 400 is further configured to obtain a product of a total length of time and a first video frame rate as a total number of video images, and obtain valid digital audio.
  • the product between the data and the second video frame rate is taken as valid video image data.
  • the first video frame rate is a reference standard frame
  • the second video frame rate is a dynamic frame rate read from the storage area 11 held by the video file, and can be flexibly set according to a specific situation.
  • the first video frame rate may include 1 second 60 frames, 1 second 30 frames, 1 second 24 frames, 1 second 50 frames, 1 second 120 frames, etc.
  • the second video frame rate may include 1 second 60 frames, 1 second 30. Frame, 24 frames per second, 50 frames per second, 120 frames per second, etc.
  • the total length of time is 300 seconds, and the effective digital audio data is 350.
  • the second determining module 500 is configured to determine, according to the total number of video images and the valid video image data, whether the video is lost;
  • the processing module 600 is configured to: when the effective video image data is less than or equal to the total number of video images, the video is lost, and the video loss information is displayed on the terminal interface to remind the user.
  • the second determining module 500 compares the total number of video images obtained above with the valid video image data. If the effective video image data is less than or equal to the total number of video images, the video is lost, and is stored in the storage area 66 with "0" as the identifier. . When the effective video image data is larger than the total number of video images, the video is not lost. It is stored in the storage area 66 with "1" as an identifier. It can be understood that the logo can be flexibly set according to specific circumstances, and does not limit the present invention.
  • the smart TV system automatically reminds the current recording of the song, and does not require human intervention and control to ensure that the user uploads the recorded audio and video without losing audio or video.
  • the audio in order to reduce the processing of the data, it is preferable to detect the audio first and then detect the video.
  • the video may be detected first and then the audio may be detected, and the present invention is not limited.
  • the processing module 600 will display the recording of the video in the recorded audio and video on the screen of the smart television according to the information in the video loss state storage area 66. For example, after the video detection of the recorded "Love You for Ten Thousand Years” mentioned above, since the recorded "Love You for Ten Thousand Years” audio and video are not lost, it is displayed on the screen of the smart TV: "Love you 10,000 "Annual" audio files and video files are complete. It can be understood that the information can be displayed in the form of a list, displayed in other ways, or broadcasted by voice to visually remind the user.

Abstract

本发明公开了一种终端检测录制音视频丢失的方法,包括:获取完成录制的音视频对应的时间总长度及有效数字音频数据;根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;当音频丢失时,在终端界面显示音频丢失信息以提醒用户。本发明还公开了一种终端检测录制音视频丢失的装置。本发明实现了对终端所录制的音视频进行检测,并在终端录制音视频后自动提醒音频视频是否丢失,保证上传所录制的音视频是正常的。

Description

终端检测录制音视频丢失的方法及装置
技术领域
本发明涉及终端设备技术领域,尤其涉及一种终端检测录制音视频丢失的方法及装置。
背景技术
目前,终端在录制完成的音视频后,并没有对该音视频进行检测其音频或视频的完整性,从而在将音视频上传到云端进行分享时,无法保证上传所录制的音视频是正常的,可能会存在上传到云端的音视频有图像而没有声音,或者有声音而没有图像,需要用户重新录制与上传,非常麻烦。以智能电视为例,智能电视的随着android系统的出现,K歌在TV上的应用越来越流行,用户可以将自己唱的歌曲上传到云端与朋友分享。假设小李在家通过智能电视唱了一首歌,并进行录制后上传到云端与朋友分享,但是上传到云端的KTV视频没有声音的,而智能电视系统并没有自动的提醒当前录制的K歌曲丢失了音频,小李需要重新录制与上传。
发明内容
本发明的主要目的在于提供一种终端检测录制音视频丢失的方法及装置,旨在实现了对终端所录制的音视频进行检测,并在终端录制音视频后自动提醒音频视频是否丢失,保证上传所录制的音视频是正常的。
为实现上述目的,本发明提供了一种终端检测录制音视频丢失的方法,包括:
获取完成录制的音视频对应的时间总长度,当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据;
根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
其中,当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;
若所述有效数字音频数据大于所述时间总长度,则音频未丢失;
当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
优选地,所述根据所述时间总长度与所述有效数字音频数据判断音频是否丢失之后还包括:
当音频未丢失时,获取视频图像总数及有效视频图像数据;
根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
优选地,所述当音频未丢失时,获取视频图像总数及有效视频图像数据包括:
获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
本发明还提供了一种终端检测录制音视频丢失的方法,包括:
获取完成录制的音视频对应的时间总长度及有效数字音频数据;
根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
优选地,所述获取完成录制的音视频对应的时间总长度及有效数字音频数据包括:
当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
优选地,所述根据时间总长度与有效数字音频数据判断音频是否丢失包括:
当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;
若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
优选地,所述根据所述时间总长度与所述有效数字音频数据判断音频是否丢失之后还包括:
当音频未丢失时,获取视频图像总数及有效视频图像数据;
根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
优选地,所述当音频未丢失时,获取视频图像总数及有效视频图像数据包括:
获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
此外,为实现上述目的,本发明还提供了一种终端检测录制音视频丢失的装置,包括:
第一获取模块,用于获取完成录制的音视频对应的时间总长度及有效数字音频数据;
第一判断模块,用于根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
显示模块,用于当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
优选地,所述第一获取模块还用于,当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
优选地,所述第一判断模块还用于,当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
优选地,所述终端检测录制音视频丢失的装置还包括:
第二获取模块,用于当音频未丢失时,获取视频图像总数及有效视频图像数据;
第二判断模块,用于根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
处理模块,用于当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
优选地,所述第二获取模块还用于,获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
本发明实施例终端在完成音视频的录制后,通过时间总长度及有效数字音频数据判断音频是否丢失,并显示音频的录制情况。实现了对终端所录制的音视频进行检测,并在终端录制音视频后自动提醒音频视频是否丢失,保证上传所录制的音视频是正常的。
附图说明
图1为本发明终端检测录制音视频丢失的方法第一实施例的流程示意图;
图2为本发明终端检测录制音视频丢失的方法第二实施例的流程示意图;
图3为本发明终端检测录制音视频丢失的装置第一实施例的功能模块示意图;
图4为本发明终端检测录制音视频丢失的装置第二实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
如图1所示,示出了本发明一种终端检测录制音视频丢失的方法第一实施例。该实施例的终端检测录制音视频丢失的方法包括:
步骤S10、获取完成录制的音视频对应的时间总长度及有效数字音频数据;
本实施例中,终端的类型类型可根据具体情况进行设置,例如,该终端可包括手机、智能电视、iPad等。录制的音视频的内容可以根据实际需要进行设置,例如,可以是录制歌曲、演讲、访谈等。以下将以智能电视录制歌曲为例进行详细说明。
首先用户打开智能电视的K歌应用,并通过智能电视预置的按键开始对歌曲进行录制,智能电视系统接收到录制歌曲的命令后,执行录制操作。在完成歌曲录制后,将所录制的歌曲保存在存储区中。假设用户已经录制完成刘德华的“爱你一万年”和张学友的“心如刀绞”这两首歌曲。智能电视系统将获取用户录制的歌曲名称,并根据用户录制的时间先后顺序,依次将歌曲名称与对应的音频文件和视频文件分别保存到存储区11。需要说明的是,在完成歌曲录制后,也可以是分别设置每首歌曲的唯一标识,根据该唯一标识将歌曲对应的音频文件和视频文件分别保存到存储区11,后续可通过唯一标识获取每首歌曲对应的参数信息。可以理解的是,用户也可以根据需要录制多首歌曲,并不限定本发明。
然后智能电视系统获取存储区11中每首歌曲的时间总长度,将得到的时间总长度传送到存储区22中进行存储。例如,得到“爱你一万年”的时间总长度为300秒,“心如刀绞”的时间总长度为400秒,根据歌曲的名称分别对应保存到存储区22中。
得到歌曲的时间总长度后,为了将时间总长度明显不对的歌曲过滤掉,再判断音频是否丢失,进一步地,上述步骤S1可包括:当时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
具体地,智能电视系统判断存储区22中每首歌曲的总时间长度是否大于预设时间值。该预设时间值可根据具体情况而灵活设置,例如,可设置为歌曲的总时间长度的二分之一或三分之一等;也可设置为固定值,由于正常歌曲一般都有200秒左右,一般歌曲的二分之一时间是100秒,因此该固定值可设置为100秒。
当歌曲的总时间长度小于或等于预设时间值时,说明录制过程出现断层,系统不做后续的处理。当得到歌曲的总时间长度大于预设时间值时,则获取完成录制的歌曲所在存储区11中的非零数字的个数作为有效数字音频数据,并将得到的有效数字音频数据保存在存储区33中。
需要说明的是,有效数字音频可定义为在某个时间点存在的数字音频。假设在得到的音频数据中,以大于1的数字标识该数字音频有效,以“0”标识该数字音频无效,则通过计算歌曲中大于1的数字音频的个数即可得到有效数字音频数据。当然,有效数字音频数据的计算方法也可以根据具体情况而灵活设置,并不限定本发明。
以下进行举例说明,针对上述“爱你一万年”及“心如刀绞”这两首歌,智能电视系统根据歌曲的时间总长度将预设时间值设置为100秒,“爱你一万年”的时间总长度为300秒,“心如刀绞”的时间总长度为400秒,这两首歌的时间总长度都大于100秒,则将分别获取这两首歌曲的有效数字音频数据,例如,“爱你一万年”的有效数字音频数据为350个,“心如刀绞”的有效数字音频数据为380个,并分别存储在存储区33中。
步骤S20、根据时间总长度与有效数字音频数据判断音频是否丢失;
在上述得到时间总长度及有效数字音频数据后,根据时间总长度及有效数字音频数据判断音频是否丢失,进一步地,上述步骤S20可包括:
当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;
若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
具体地,分别判断每首歌曲的有效数字音频数据是否大于预设个数时,该预设个数的设置与数模转换模块1秒内能够处理的数据个数有关,可根据具体情况而灵活设置。例如,可设置为100个或者1000个等。当有效数字音频数据小于或等于预设个数时,说明音频文件丢失,将设定音频文件丢失的标志保存在存储区44中。例如,用“0”表示音频文件丢失,用“1”表示音频文件未丢失,且不进行后续视频检测的处理。以便在完成所有歌曲的检测后,根据该标志显示有关音频丢失的信息,从而提醒用户。当有效数字音频数据大于预设个数时,将有效数字音频数据与时间总长度进行比较,即进行逻辑判断。
当有效数字音频数据小于或等于时间总长度时,说明音频文件丢失,用“0”标识音频文件丢失状态并保存在存储区55中,且不进行后续视频检测的处理。当有效数字音频数据大于时间总长度时,说明音频文件未丢失,用“1”标识音频文件未丢失状态并保存在存储区55中,可进一步对视频文件是否丢失进行检测。可以理解的是,音频文件是否丢失的状态可根据具体情况而灵活设置,并不限定本发明。
由于视频和音频有一一对应的关系,例如,1秒看到60帧率视频,可听到1秒有效音频,因此本实施例中利用有效数字音频数据进行判断音频是否丢失,当音频丢失时,视频也会被判断丢失,即音频丢失后将不再对视频进行判断。
针对上述“爱你一万年”及“心如刀绞”这两首歌,将预设个数设置为100个。上述存储在存储区33中“爱你一万年”和“心如刀绞”的有效数字音频数据分别为为350个及380个,都大于100个,则此时将这两首歌的音频文件丢失的标志设定为“1”并保存在存储区44中。
由于上述“爱你一万年”的有效数字音频数据为350及时间总长度为300,则将有效数字音频数据与时间总长度作差比较:350-300=50,即有效数字音频数据大于时间总长度,该首歌的音频文件未丢失,可继续检测其视频文件是否丢失。“心如刀绞”的有效数字音频数据为380及时间总长度为400,则380-400=-20,即有效数字音频数据小于时间总长度,该首歌的音频文件丢失,停止对其检测。分别用“1”和“0”标识“爱你一万年”和“心如刀绞”对应的音频文件是否丢失的情况保存在存储区55中。
步骤S30、当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
在上述完成对所录制的音视频中的音频文件进行检测后,为了直观地提醒用户是否需要重新录制,系统将根据音频丢失状态存储区44或存储区55,中的信息,将在智能电视的荧幕上显示所录制的音视频中,音频的录制情况。即在智能电视的屏幕将显示歌曲名称及对应“丢失音频数据”的信息,以提醒用户所录制的歌曲存在音频丢失。或者通过语音对歌曲音频的录制情况进行播报,以提醒用户。
以上述录制的“爱你一万年”和“心如刀绞”这两首歌为例进行说明,经过检测,由于录制的“爱你一万年”音频不丢失,而录制的“心如刀绞”音频丢失,因此在智能电视的荧屏上显示:“爱你一万年”音频完整,“心如刀绞”音频丢失的信息。可以理解的是,该信息可通过列表的形式进行显示,还可通过其他方式进行显示,并不限定本发明。
本发明实施例中智能电视在完成音视频的录制后,通过时间总长度及有效数字音频数据判断音频是否丢失,并显示音频及视频的录制情况。实现了对智能电视所录制的音视频进行检测,并在智能电视录制音视频后自动提醒音频视频是否丢失,保证上传所录制的音视频是正常的。智能电视录制音视频后自动提醒音频视频是否丢失,提高了用户体验。
进一步地,如图2所示,基于上述终端检测录制音视频丢失的方法第一实施例,提出了本发明终端检测录制音视频丢失的方法第二实施例,本实施例中,上述步骤S10之后可包括:
步骤S20、根据所述时间总长度与有效数字音频的个数判断音频是否丢失;若是,则执行上述步骤S30;若否,则依次执行步骤S40、步骤S50及步骤S60。
步骤S40、获取视频图像总数及有效视频图像数据;
当上述歌曲的音频未丢失时,对视频进行检测,具体地,获取时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。该第一视频帧率为参考的标准帧,该第二视频帧率为从视频文件所保存的存储区11读取得到的动态帧率,可根据具体情况而灵活设置。例如,第二视频帧率可包括1秒60帧、1秒30帧、1秒24帧、1秒50帧、1秒120帧等。
上述歌曲“爱你一万年”中,时间总长度为300秒,有效数字音频数据为350个,假设第一视频帧率为1秒60帧,则得到的视频图像总数为300×60=18000帧。假设第二视频帧率为1秒100帧,有效视频图像数据为350×100=35000帧。
步骤S50、根据视频图像总数及有效视频图像数据判断视频是否丢失;
步骤S60、当有效视频图像数据小于或等于视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
将上述得到的视频图像总数与有效视频图像数据进行比较,若有效视频图像数据小于或等于视频图像总数,则说明视频丢失,并以“0”作为标识保存在存储区66中。当有效视频图像数据大于视频图像总数,则视频未丢失。并以“1”作为标识保存在存储区66中。可以理解的是,该标识可根据具体情况而灵活设置,并不限定本发明。智能电视系统自动的提醒目前歌曲的录制情况,而且不需要人为的干预和控制,保证用户上传所录制的音视频没有丢失音频或者视频。
上述歌曲“爱你一万年”中,得到的视频图像总数为18000帧,有效视频图像数据为35000帧,则将有效视频图像数据与视频图像总数进行作差比较:35000-18000=17000帧,即有效视频图像数据大于视频图像总数,说明该歌曲的视频未丢失,并以“1”作为标识保存在存储区66中。
需要说明的是,本实施例中,为了减少对数据的处理,优选地先对音频进行检测再对视频进行检测,当然也可以先对视频进行检测再对音频进行检测,并不限定本发明。
当视频丢失时,在终端界面显示视频丢失信息以提醒用户。具体地,根据视频丢失状态存储区66中的信息,将在智能电视的荧幕上显示所录制的音视频中视频的录制情况。例如,在上述对录制的“爱你一万年”进行视频检测后,由于录制的“爱你一万年”音频及视频都不丢失,因此在智能电视的荧屏上显示:“爱你一万年”音频文件及视频文件完整,可以理解的是,该信息可通过列表的形式进行显示,也可通过其他方式进行显示,或者是通过语音进行播报,以便直观地提醒用户。
对应地,如图3所示,提出本发明一种终端检测录制音视频丢失的装置第一实施例。该实施例的终端检测录制音视频丢失的装置包括:
第一获取模块100,用于获取完成录制的音视频对应的时间总长度及有效数字音频数据;
本实施例中,终端的类型类型可根据具体情况进行设置,例如,该终端可包括手机、智能电视、iPad等。录制的音视频的内容可以根据实际需要进行设置,例如,可以是录制歌曲、演讲、访谈等。以下将以智能电视录制歌曲为例进行详细说明。
首先用户打开智能电视的K歌应用,并通过智能电视预置的按键开始对歌曲进行录制,智能电视系统接收到录制歌曲的命令后,执行录制操作。在完成歌曲录制后,将所录制的歌曲保存在存储区中。假设用户已经录制完成刘德华的“爱你一万年”和张学友的“心如刀绞”这两首歌曲。智能电视系统将获取用户录制的歌曲名称,并根据用户录制的时间先后顺序,依次将歌曲名称与对应的音频文件和视频文件分别保存到存储区11。需要说明的是,在完成歌曲录制后,也可以是分别设置每首歌曲的唯一标识,根据该唯一标识将歌曲对应的音频文件和视频文件分别保存到存储区11,后续可通过唯一标识获取每首歌曲对应的参数信息。可以理解的是,用户也可以根据需要录制多首歌曲,并不限定本发明。
然后智能电视系统调用第一获取模块100获取存储区11中每首歌曲的时间总长度,将得到的时间总长度传送到存储区22中进行存储。例如,得到“爱你一万年”的时间总长度为300秒,“心如刀绞”的时间总长度为400秒,根据歌曲的名称分别对应保存到存储区22中。
得到每首歌曲的时间总长度后,为了将时间总长度明显不对的歌曲过滤掉,再判断音频是否丢失,进一步地,第一获取模块100还用于,当时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
具体地,智能电视系统调用第一获取模块100判断存储区22中每首歌曲的总时间长度是否大于预设时间值。该预设时间值可根据具体情况而灵活设置,例如,可设置为歌曲的总时间长度的二分之一或三分之一等;也可设置为固定值,由于正常歌曲一般都有200秒左右,一般歌曲的二分之一时间是100秒,因此该固定值可设置为100秒。
当歌曲的总时间长度小于或等于预设时间值时,说明录制过程出现断层,系统不做后续的处理。当得到歌曲的总时间长度大于预设时间值时,则由第一获取模块100获取完成录制的歌曲所在存储区11中的非零数字的个数作为有效数字音频数据,并将得到的有效数字音频数据保存在存储区33中。
需要说明的是,有效数字音频可定义为在某个时间点存在的数字音频。假设在得到的音频数据中,以大于1的数字标识该数字音频有效,以“0”标识该数字音频无效,则第一获取模块100通过计算歌曲中大于1的数字音频的个数即可得到有效数字音频数据。当然,有效数字音频数据的计算方法也可以根据具体情况而灵活设置,并不限定本发明。
以下进行举例说明,针对上述“爱你一万年”及“心如刀绞”这两首歌,智能电视系统根据歌曲的时间总长度将预设时间值设置为100秒,“爱你一万年”的时间总长度为300秒,“心如刀绞”的时间总长度为400秒,这两首歌的时间总长度都大于100秒,则将分别获取这两首歌曲的有效数字音频数据,例如,“爱你一万年”的有效数字音频数据为350个,“心如刀绞”的有效数字音频数据为380个,并分别存储在存储区33中。
第一判断模块200,用于根据时间总长度与有效数字音频数据判断音频是否丢失;
在上述第一获取模块100得到时间总长度及有效数字音频数据后,由第一判断模块200根据时间总长度及有效数字音频数据判断音频是否丢失,进一步地,第一判断模块200还用于,当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
具体地,第一判断模块200分别判断每首歌曲的有效数字音频数据是否大于预设个数时,该预设个数的设置与数模转换模块1秒内能够处理的数据个数有关,可根据具体情况而灵活设置。例如,可设置为100个或者1000个等。当有效数字音频数据小于或等于预设个数时,说明音频文件丢失,将设定音频文件丢失的标志保存在存储区44中。例如,用“0”表示音频文件丢失,用“1”表示音频文件未丢失,且不进行后续视频检测的处理。以便在完成所有歌曲的检测后,根据该标志显示有关音频丢失的信息,从而提醒用户。当有效数字音频数据大于预设个数时,第一判断模块200将有效数字音频数据与时间总长度进行比较,即进行逻辑判断。
当有效数字音频数据小于或等于时间总长度时,说明音频文件丢失,用“0”标识音频文件丢失状态并保存在存储区55中,且不进行后续视频检测的处理。当有效数字音频数据大于时间总长度时,说明音频文件未丢失,用“1”标识音频文件未丢失状态并保存在存储区55中,可进一步对视频文件是否丢失进行检测。可以理解的是,音频文件是否丢失的状态可根据具体情况而灵活设置,并不限定本发明。
由于视频和音频有一一对应的关系,例如,1秒看到60帧率视频,可听到1秒有效音频,因此本实施例中利用有效数字音频数据进行判断音频是否丢失,当音频丢失时,视频也会被判断丢失,即音频丢失后将不再对视频进行判断。
针对上述“爱你一万年”及“心如刀绞”这两首歌,将预设个数设置为100个。上述存储在存储区33中“爱你一万年”和“心如刀绞”的有效数字音频数据分别为为350个及380个,都大于100个,则此时将这两首歌的音频文件丢失的标志设定为“1”并保存在存储区44中。
由于上述“爱你一万年”的有效数字音频数据为350及时间总长度为300,则将有效数字音频数据与时间总长度作差比较:350-300=50,即有效数字音频数据大于时间总长度,该首歌的音频文件未丢失,可继续检测其视频文件是否丢失。“心如刀绞”的有效数字音频数据为380及时间总长度为400,则380-400=-20,即有效数字音频数据小于时间总长度,该首歌的音频文件丢失,停止对其检测。分别用“1”和“0”标识“爱你一万年”和“心如刀绞”对应的音频文件是否丢失的情况保存在存储区55中。
显示模块300,用于当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
在上述完成对所录制的音视频中的音频文件进行检测后,为了直观地提醒用户是否需要重新录制,系统将根据音频丢失状态存储区44或存储区55,中的信息,由显示模块300将在智能电视的荧幕上显示所录制的音视频中,音频的录制情况。即在智能电视的屏幕将显示歌曲名称及对应“丢失音频数据”的信息,以提醒用户所录制的歌曲存在音频丢失。或者通过语音对歌曲音频的录制情况进行播报,以提醒用户。
以上述录制的“爱你一万年”和“心如刀绞”这两首歌为例进行说明,经过检测,由于录制的“爱你一万年”音频不丢失,而录制的“心如刀绞”音频丢失,因此在智能电视的荧屏上显示:“爱你一万年”音频完整,“心如刀绞”音频丢失的信息。可以理解的是,该信息可通过列表的形式进行显示,还可通过其他方式进行显示,并不限定本发明。
本发明实施例中智能电视在完成音视频的录制后,通过时间总长度及有效数字音频数据判断音频是否丢失,并显示音频及视频的录制情况。实现了对智能电视所录制的音视频进行检测,并在智能电视录制音视频后自动提醒音频视频是否丢失,保证上传所录制的音视频是正常的。智能电视录制音视频后自动提醒音频视频是否丢失,提高了用户体验。
进一步地,如图4所示,基于上述终端检测录制音视频丢失的装置第一实施例,提出了本发明终端检测录制音视频丢失的装置第二实施例,本实施例中,上述终端检测录制音视频丢失的装置还包括:
第二获取模块400,用于当音频未丢失时,获取视频图像总数及有效视频图像数据;
当上述歌曲的音频未丢失时,对视频进行检测,具体地,第二获取模块400还用于,获取时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。该第一视频帧率为参考的标准帧,该第二视频帧率为从视频文件所保存的存储区11读取得到的动态帧率,可根据具体情况而灵活设置。例如,第一视频帧率可包括1秒60帧、1秒30帧、1秒24帧、1秒50帧、1秒120帧等,第二视频帧率可包括1秒60帧、1秒30帧、1秒24帧、1秒50帧、1秒120帧等。
上述歌曲“爱你一万年”中,时间总长度为300秒,有效数字音频数据为350个,假设第一视频帧率为1秒60帧,则得到的视频图像总数为300×60=18000帧。假设第二视频帧率为1秒100帧,有效视频图像数据为350×100=35000帧。
第二判断模块500,用于根据视频图像总数及有效视频图像数据判断视频是否丢失;
处理模块600,用于当有效视频图像数据小于或等于视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
第二判断模块500将上述得到的视频图像总数与有效视频图像数据进行比较,若有效视频图像数据小于或等于视频图像总数,则说明视频丢失,并以“0”作为标识保存在存储区66中。当有效视频图像数据大于视频图像总数,则视频未丢失。并以“1”作为标识保存在存储区66中。可以理解的是,该标识可根据具体情况而灵活设置,并不限定本发明。智能电视系统自动的提醒目前歌曲的录制情况,而且不需要人为的干预和控制,保证用户上传所录制的音视频没有丢失音频或者视频。
上述歌曲“爱你一万年”中,得到的视频图像总数为18000帧,有效视频图像数据为35000帧,则将有效视频图像数据与视频图像总数进行作差比较:35000-18000=17000帧,即有效视频图像数据大于视频图像总数,说明该歌曲的视频未丢失,并以“1”作为标识保存在存储区66中。
需要说明的是,本实施例中,为了减少对数据的处理,优选地先对音频进行检测再对视频进行检测,当然也可以先对视频进行检测再对音频进行检测,并不限定本发明。
当视频丢失时,在终端界面显示视频丢失信息以提醒用户。具体地,处理模块600根据视频丢失状态存储区66中的信息,将在智能电视的荧幕上显示所录制的音视频中视频的录制情况。例如,在上述对录制的“爱你一万年”进行视频检测后,由于录制的“爱你一万年”音频及视频都不丢失,因此在智能电视的荧屏上显示:“爱你一万年”音频文件及视频文件完整,可以理解的是,该信息可通过列表的形式进行显示,也可通过其他方式进行显示,,或者是通过语音进行播报,以便直观地提醒用户。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (13)

  1. 一种终端检测录制音视频丢失的方法,其特征在于,
    获取完成录制的音视频对应的时间总长度,当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据;
    根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
    其中,当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;
    若所述有效数字音频数据大于所述时间总长度,则音频未丢失;
    当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
  2. 如权利要求1所述的终端检测录制音视频丢失的方法,其特征在于,所述根据所述时间总长度与所述有效数字音频数据判断音频是否丢失之后还包括:
    当音频未丢失时,获取视频图像总数及有效视频图像数据;
    根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
    当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
  3. 如权利要求2所述的终端检测录制音视频丢失的方法,其特征在于,所述当音频未丢失时,获取视频图像总数及有效视频图像数据包括:
    获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
  4. 一种终端检测录制音视频丢失的方法,其特征在于,所述终端检测录制音视频丢失的方法包括以下步骤:
    获取完成录制的音视频对应的时间总长度及有效数字音频数据;
    根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
    当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
  5. 如权利要求4所述的终端检测录制音视频丢失的方法,其特征在于,所述获取完成录制的音视频对应的时间总长度及有效数字音频数据包括:
    当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
  6. 如权利要求4所述的终端检测录制音视频丢失的方法,其特征在于,所述根据时间总长度与有效数字音频数据判断音频是否丢失包括:
    当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;
    若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
  7. 如权利要求4所述的终端检测录制音视频丢失的方法,其特征在于,所述根据所述时间总长度与所述有效数字音频数据判断音频是否丢失之后还包括:
    当音频未丢失时,获取视频图像总数及有效视频图像数据;
    根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
    当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
  8. 如权利要求7所述的终端检测录制音视频丢失的方法,其特征在于,所述当音频未丢失时,获取视频图像总数及有效视频图像数据包括:
    获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
  9. 一种终端检测录制音视频丢失的装置,其特征在于,所述终端检测录制音视频丢失的装置包括:
    第一获取模块,用于获取完成录制的音视频对应的时间总长度及有效数字音频数据;
    第一判断模块,用于根据所述时间总长度与所述有效数字音频数据判断音频是否丢失;
    显示模块,用于当音频丢失时,在终端界面显示音频丢失信息以提醒用户。
  10. 如权利要求9所述的终端检测录制音视频丢失的装置,其特征在于,所述第一获取模块还用于,当所述时间总长度大于预设时间值时,根据完成录制的音视频所在的存储区,将非零数字的个数作为有效数字音频数据。
  11. 如权利要求9所述的终端检测录制音视频丢失的装置,其特征在于,所述第一判断模块还用于,当获取到的有效数字音频数据大于预设个数时,将所述有效数字音频数据与所述时间总长度进行比较;若所述有效数字音频数据大于所述时间总长度,则音频未丢失。
  12. 如权利要求9所述的终端检测录制音视频丢失的装置,其特征在于,所述终端检测录制音视频丢失的装置还包括:
    第二获取模块,用于当音频未丢失时,获取视频图像总数及有效视频图像数据;
    第二判断模块,用于根据所述视频图像总数及所述有效视频图像数据判断视频是否丢失;
    处理模块,用于当所述有效视频图像数据小于或等于所述视频图像总数,则视频丢失,并在终端界面显示视频丢失信息以提醒用户。
  13. 如权利要求12所述的终端检测录制音视频丢失的装置,其特征在于,所述第二获取模块还用于,获取所述时间总长度与第一视频帧率之间的乘积作为视频图像总数,并获取所述有效数字音频数据与第二视频帧率之间的乘积作为有效视频图像数据。
PCT/CN2016/084535 2015-09-09 2016-06-02 终端检测录制音视频丢失的方法及装置 WO2017041547A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510571384.7A CN105187909B (zh) 2015-09-09 2015-09-09 终端检测录制音视频丢失的方法及装置
CN201510571384.7 2015-09-09

Publications (1)

Publication Number Publication Date
WO2017041547A1 true WO2017041547A1 (zh) 2017-03-16

Family

ID=54909707

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084535 WO2017041547A1 (zh) 2015-09-09 2016-06-02 终端检测录制音视频丢失的方法及装置

Country Status (2)

Country Link
CN (1) CN105187909B (zh)
WO (1) WO2017041547A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554004A (zh) * 2020-11-27 2022-05-27 北京小米移动软件有限公司 一种录像方法、装置、电子设备及存储介质

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105187909B (zh) * 2015-09-09 2019-05-14 深圳Tcl数字技术有限公司 终端检测录制音视频丢失的方法及装置
CN111263189B (zh) * 2020-02-26 2023-03-07 深圳壹账通智能科技有限公司 视频质量检测方法、装置和计算机设备

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060257099A1 (en) * 2005-05-13 2006-11-16 Microsoft Corporation Unified recording and pause buffer format
CN101179682A (zh) * 2006-11-09 2008-05-14 国际商业机器公司 检测并处理预定节目的中断的方法以及数字录像机
CN104284135A (zh) * 2013-07-02 2015-01-14 华为技术有限公司 视频传输方法及设备
CN105187909A (zh) * 2015-09-09 2015-12-23 深圳Tcl数字技术有限公司 终端检测录制音视频丢失的方法及装置

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060257099A1 (en) * 2005-05-13 2006-11-16 Microsoft Corporation Unified recording and pause buffer format
CN101179682A (zh) * 2006-11-09 2008-05-14 国际商业机器公司 检测并处理预定节目的中断的方法以及数字录像机
CN104284135A (zh) * 2013-07-02 2015-01-14 华为技术有限公司 视频传输方法及设备
CN105187909A (zh) * 2015-09-09 2015-12-23 深圳Tcl数字技术有限公司 终端检测录制音视频丢失的方法及装置

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554004A (zh) * 2020-11-27 2022-05-27 北京小米移动软件有限公司 一种录像方法、装置、电子设备及存储介质

Also Published As

Publication number Publication date
CN105187909A (zh) 2015-12-23
CN105187909B (zh) 2019-05-14

Similar Documents

Publication Publication Date Title
WO2017177524A1 (zh) 音视频同步播放的方法及装置
WO2013131444A1 (zh) 分享内容的方法、终端、服务器及系统、计算机存储介质
WO2017005066A1 (zh) 录制音视频同步时间戳的方法和装置
WO2019080406A1 (zh) 电视机语音交互方法、语音交互控制装置及存储介质
WO2018018681A1 (zh) 视频节目预览方法及装置
WO2016091011A1 (zh) 字幕切换方法及装置
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2018045682A1 (zh) 音画同步测试方法及装置
WO2019051902A1 (zh) 终端控制方法、空调器及计算机可读存储介质
WO2015126044A1 (ko) 이미지를 처리하기 위한 방법 및 그 전자 장치
WO2017041547A1 (zh) 终端检测录制音视频丢失的方法及装置
WO2017084305A1 (zh) 终端控制方法及系统
WO2017045441A1 (zh) 基于智能电视的音频播放方法及装置
WO2018028124A1 (zh) 电视机及其信号源的切换方法
WO2017088444A1 (zh) 终端电量信息提示方法和装置
WO2017063366A1 (zh) 应用启动方法和系统
WO2017005062A1 (zh) 图片帧播放方法和装置
WO2016090991A1 (zh) 流媒体数据的下载方法及装置
WO2017113600A1 (zh) 视频播放方法及装置
WO2019051901A1 (zh) 终端控制方法、装置及计算机可读存储介质
WO2015192801A1 (en) Electronic device control method and system, and related device
WO2017016308A1 (zh) 菜单背景颜色处理方法及装置
WO2017088429A1 (zh) 移动终端控制显示终端上触屏应用程序的方法及系统
WO2017084297A1 (zh) 多媒体文件的播放方法及系统
WO2017161697A1 (zh) 多终端节目同步预览方法和装置

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 16843485

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM XXXX DATED 20.07.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16843485

Country of ref document: EP

Kind code of ref document: A1