WO2018059165A1 - 一种视频播放的处理方法及装置 - Google Patents
一种视频播放的处理方法及装置 Download PDFInfo
- Publication number
- WO2018059165A1 WO2018059165A1 PCT/CN2017/098664 CN2017098664W WO2018059165A1 WO 2018059165 A1 WO2018059165 A1 WO 2018059165A1 CN 2017098664 W CN2017098664 W CN 2017098664W WO 2018059165 A1 WO2018059165 A1 WO 2018059165A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- video
- instruction
- stream type
- code stream
- hidden
- Prior art date
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
- H04N5/92—Transformation of the television signal for recording, e.g. modulation, frequency changing; Inverse transformation for playback
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11B—INFORMATION STORAGE BASED ON RELATIVE MOVEMENT BETWEEN RECORD CARRIER AND TRANSDUCER
- G11B27/00—Editing; Indexing; Addressing; Timing or synchronising; Monitoring; Measuring tape travel
- G11B27/36—Monitoring, i.e. supervising the progress of recording or reproducing
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/43—Processing 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/431—Generation of visual interfaces for content selection or interaction; Content or additional data rendering
- H04N21/4312—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
- H04N21/4316—Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for displaying supplemental content in a region of the screen, e.g. an advertisement in a separate window
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/222—Studio circuitry; Studio devices; Studio equipment
- H04N5/262—Studio circuits, e.g. for mixing, switching-over, change of character of image, other special effects ; Cameras specially adapted for the electronic generation of special effects
- H04N5/268—Signal distribution or switching
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N5/00—Details of television systems
- H04N5/76—Television signal recording
- H04N5/91—Television signal processing therefor
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N7/00—Television systems
- H04N7/01—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level
- H04N7/0117—Conversion of standards, e.g. involving analogue television standards or digital television standards processed at pixel level involving conversion of the spatial resolution of the incoming video signal
Definitions
- the present application relates to the field of video technologies, and in particular, to a method and an apparatus for processing video playback.
- the code stream type is a code stream parameter rule composed of video quality parameters (such as resolution, frame rate, code rate, etc.), which can be classified into high-definition, standard-definition, smooth, and other code stream types, according to the video quality from high to low. Sorted as: HD> SD > Smooth.
- video quality parameters such as resolution, frame rate, code rate, etc.
- HD> SD > Smooth the higher the video quality, that is, the higher the resolution, the higher the bit rate, the larger the frame rate, and the hardware resources required for video playback (such as CPU (Central Processing Unit), memory, bandwidth, etc.)
- the larger the video quality the lower the resolution, the smaller the code rate, and the smaller the frame rate, the smaller the hardware resources required for video playback.
- the client may be configured with a number of split screen modes, such as: 1 split screen mode, 4 split screen mode, 9 split screen mode, 16 split screen mode, and the like.
- the process of playing the video in the split screen may include: acquiring a stream (taking a stream), parsing a stream (decoding), and rendering (rendering) the stream.
- the client often needs to record the video being played, that is, save the stream of the video being played to the local. In this case, if the video being recorded is operated, it is likely that the video recording will be stopped, resulting in incomplete video recording of the video.
- the embodiment of the present application discloses a method and a device for processing video playback to ensure the integrity of video recording.
- the embodiment of the present application discloses a processing method for video playback, where the method includes:
- the first video is streamed according to the current code stream type of the first video. And save.
- the step of obtaining an adjustment instruction for the first video being played is: obtaining a hidden instruction for the first video being played;
- the method also includes stopping decoding and rendering of the first video.
- the step of obtaining a hidden instruction for the first video being played comprising:
- the step of determining, according to the play control instruction, whether there is a hidden first video to be played includes:
- the method further includes:
- the step of obtaining an adjustment instruction for the first video being played is: obtaining a code stream type switching instruction for the first video being played;
- the method also includes continuing to decode and render the first video.
- the method further includes:
- each video file of the first video is acquired and merged.
- the embodiment of the present application further discloses a processing device for video playback, where the device includes:
- An instruction obtaining unit configured to obtain an adjustment instruction for the first video being played
- a first video recording determining unit configured to determine whether the first video is being recorded
- the video processing unit is configured to: when the determination result of the first video recording unit is YES, the first video is streamed and saved according to the current code stream type of the first video.
- the instruction obtaining unit is specifically configured to: obtain a hidden instruction for the first video being played;
- the video processing unit is further configured to stop decoding and rendering the first video.
- the instruction obtaining unit is specifically configured to:
- the instruction obtaining unit is specifically configured to:
- the play control command is a split screen mode switching instruction
- the number of split screens corresponding to the target split screen mode in the split screen mode switching instruction is smaller than the number of split screens in the current split screen mode, it is determined that there is a hidden play that needs to be hidden. The first video.
- the device further includes:
- a second recording determining unit configured to determine whether the first video is being recorded when the hidden first video is displayed
- a video recovery unit configured to resume decoding and rendering of the first video if the second recording determination unit determines that the result is YES;
- a video restarting unit configured to re-open the streaming, decoding, and rendering of the first video if the second recording determining unit determines that the result is negative.
- the instruction obtaining unit is specifically configured to: obtain a code stream type switching instruction for the first video being played;
- the video processing unit is further configured to continue decoding and rendering the first video.
- the device further includes:
- An instruction receiving unit configured to receive a code stream type forced switching instruction input by a user
- a code stream type switching unit configured to switch a code stream type of the first video to a target code stream type in the code stream type forced switching instruction
- a third recording determining unit configured to determine whether the first video is being recorded
- a file generating unit configured to: when the determination result of the third recording determination unit is YES, generate a recording file for the first video according to the currently recorded video, and according to the target code stream type, The first video is taken and saved;
- a file merging unit configured to acquire and merge each video file of the first video after closing the recording of the first video.
- an embodiment of the present application further discloses an electronic device, where the electronic device includes a processor and a memory;
- the memory is configured to store an application
- the processor is configured to execute an application stored on the memory to implement a processing method of the video playback.
- an embodiment of the present application further discloses an application program for implementing the processing method of the above video playing at runtime.
- the embodiment of the present application further discloses a storage medium for storing an application, and the application is executed to implement the processing method of the video playing described above.
- an adjustment instruction for the first video being played is obtained; determining whether the first video is recording; if yes, according to the current code stream type of the first video, the first view The stream is taken and saved. It can be seen that the streaming of the first video being recorded is not stopped, that is, the recording of the first video is not stopped, and the integrity of the video recording is guaranteed.
- FIG. 1 is a schematic flowchart of a method for processing video playback according to an embodiment of the present disclosure
- FIG. 2 is another schematic flowchart of a method for processing video playback according to an embodiment of the present application
- FIG. 3 is another schematic flowchart of a method for processing video playback according to an embodiment of the present disclosure
- FIG. 4 is a schematic structural diagram of a video playback processing apparatus according to an embodiment of the present disclosure.
- FIG. 5 is another schematic structural diagram of a video playback processing apparatus according to an embodiment of the present disclosure.
- FIG. 1 is a schematic flowchart of a method for processing video playback according to an embodiment of the present disclosure, where the method includes:
- the adjustment instruction may be: a video hiding instruction and a code stream type switching instruction; where the code stream type switching instruction may switch the instruction according to the code stream type generated by the split mode switching instruction.
- the current split screen mode is 4 split screen mode
- the target split screen mode of the split screen mode switching instruction is 9 split screen mode. Since the number of channels played in the 9 split screen mode is increased, in order to reduce the CPU, memory, and network.
- the burden can reduce the video quality of the video played in the 9-split mode, that is, generate a code stream type switching instruction, and the video quality of the target stream type in the stream type switching instruction is smaller than the code stream in the 4-split mode Type of video quality.
- the current split screen mode is 9-split mode
- the split screen mode of the split-screen mode switching command is 4-split mode. Since the number of channels played in the 4-split mode is reduced, the high-frequency quality can be adjusted appropriately.
- Video In order to obtain a video with better video quality, the video quality of the video played in the 4-split mode can be improved, that is, according to the split mode switching instruction, a code stream type switching instruction is generated, and the target code in the code stream type switching instruction is generated. The video quality of the stream type is greater than the video quality of the stream type in the 9-split mode.
- the recording of the first video is interrupted.
- the recording of the first video is stopped, and before the first video is adjusted according to the adjustment instruction, it is determined whether the first video is being recorded.
- S300 The first video is streamed and saved according to the current code stream type of the first video.
- the first video is reserved and saved, thereby avoiding the interruption of the first video recording, and ensuring the integrity of the video recording;
- the adjustment instruction for the first video being played is obtained as a hidden instruction
- the first video is decompressed and saved according to the current code stream type of the first video, and the decoding of the first video is stopped. And rendering; for videos that are not recorded, you can stop streaming, decoding, and rendering the video. In this way, the video of each hidden video is guaranteed, and at the same time, the burden on the CPU, memory and network is effectively reduced;
- the current video stream type is switched, that is, the first video is streamed and saved according to the current code stream type of the first video, and the first video is further decoded and rendered.
- the hidden instruction may be obtained according to a playback control instruction.
- S100 may include:
- the play control command may include: a split screen mode switching instruction, a video hiding instruction, and a code stream type switching instruction; wherein the code stream type switching instruction may include: a code generated according to the split screen mode switching instruction Stream type switching instruction.
- S120 Determine, according to the play control instruction, whether there is a first video being played that needs to be hidden; if yes, execute S130;
- the play control instruction when the play control instruction is a video hiding instruction, it may be determined that the target video in the video hiding instruction is the first video being played that needs to be hidden;
- the play control command is a split screen mode switching instruction
- the number of split screens corresponding to the target split screen mode in the split screen mode switching instruction is smaller than the number of split screens in the current split screen mode, for example, the 9 split screen mode is switched to the 4 split screen.
- Mode the number of videos that can be displayed is reduced, and there must be a first video being played that needs to be hidden.
- the split screen modes configured in the current client are: 1 split screen mode, 4 split screen mode, 9 split screen mode, 16 split screen mode; 5 channels of video are displayed in the current split screen mode (9 split screen mode).
- A, B, C, D, and E respectively.
- the target split screen mode in the received split screen mode switching command is 1 split screen mode
- the target split screen mode in the split screen mode switching command (1 split screen mode)
- the number of corresponding split screens is smaller than the number of split screens in the current split screen mode (9 split screen mode), and it can be determined that there is a first video being played that needs to be hidden. If video A is displayed, it can be determined that the first being played needs to be hidden.
- the videos are: B, C, D, and E.
- the operation corresponding to the playback control instruction may be directly executed, for example, when the playback control command is a split screen mode switching instruction, the current split mode mode is switched.
- the target split screen mode in the split screen mode switching instruction when the play control command is the code stream type switching instruction, the current code stream type is switched to the target stream type in the code stream type switching instruction.
- hidden videos may also need to be displayed.
- the hidden first video it is determined whether the first video of the road is being recorded; if the first video of the road is being recorded, it may be indicated that the first video of the road is kept taking the stream. It is only necessary to restore the decoding and rendering of the first video of the road; if the first video of the road is not recorded, it is necessary to re-open the streaming, decoding and rendering of the first video of the road.
- the code stream type switching instruction for the video being played (the first video) needs to be generated according to the split screen mode switching instruction.
- the mapping relationship between the split screen mode and the code stream type may be preset, which may include: The corresponding relationship between the split screen mode and the default stream type and the corresponding split screen mode and the supported stream type; the supported stream type includes at least one code stream type, and the supported stream type is supported for switching.
- the code stream type, the default code stream type may be one of the code stream types supported by the code stream type; after receiving the split screen mode switching instruction, determining the points according to the correspondence between the preset split screen mode and the default stream type The default code stream type corresponding to the target split screen mode in the screen mode switching instruction; and determining the supported code stream type corresponding to the target split screen mode according to the correspondence between the preset split screen mode and the supported code stream type; The default stream type and the supported stream type, generate a stream type switching instruction, and then switch the instruction according to the stream type, and each channel that has been turned on Frequency switching type stream as a stream type or types supported Default Stream Stream Type is determined.
- the stream type of the video is switched, if the first video of the channel is being recorded, the recording of the first video of the channel will be stopped, and the first video recording of the road is incomplete.
- the code stream type switching instruction for the first video being played is obtained, if the code stream type switching instruction is generated according to the split screen mode switching instruction, the code may not be switched.
- the stream type continues to decode and render the first video, and the recording of the first video is not stopped.
- the stream type of the video can be switched to the target stream type in the stream type switching instruction to obtain a better video quality video playback.
- the user can adjust the code stream type of each video being played according to the needs of the user, that is, the adjustment instruction for the first video being played is: the user inputs the video for the ongoing play ( That is, the code stream type of the first video forcibly switches the instruction, and the code stream type of the first video is switched at this time.
- the processing method of the above video playing may further include:
- S500 Switch the code stream type of the first video to a target code stream type in the code stream type forced switching instruction.
- S700 Generate a video file for the first video according to the currently recorded video, and perform streaming and saving the first video according to the target code stream type.
- S800 After turning off the recording of the first video, acquire and merge each video file of the first video.
- the code stream type switching instruction is a code stream type forced switching instruction input by the user
- the recording of the first video is stopped, restarted again, and restarted.
- a video file for the first video is also generated according to the currently recorded video.
- a video file having a plurality of first videos is generated, in order to ensure the integrity of the video file of the final first video, that is, to ensure the integrity of the first video recording.
- each video file of the first video is acquired, and each video file of the first video is merged.
- the current first video A starts recording at 10:00, and at 10:15, the code stream type of the first video A is switched to the code stream type a, then the first video A
- the recording will be interrupted, that is, stopped, generating the video file f1 of the first video A recorded from 10:00 to 10:15, and restarting the recording of the first video A, that is, according to the code stream Type a takes the first video A and saves it; at 10:25, the code stream type of the first video A is switched to the code stream type b, and the recording is interrupted, generating from 10:15 to 10:25.
- the video file f2 of the first video A recorded in the time period, and restarting the recording of the first video A, that is, the first video A is taken and saved according to the code stream type b; at 10:34,
- the code stream type of the first video A is switched to the code stream type c, and the recording will be interrupted.
- the embodiment of the present application further provides a processing device for video playback.
- FIG. 4 is a schematic structural diagram of a video playback processing apparatus according to an embodiment of the present disclosure, where the apparatus includes:
- the instruction obtaining unit 100 is configured to obtain an adjustment instruction for the first video being played
- the first video recording determining unit 200 is configured to determine whether the first video is being recorded
- the video processing unit 300 is configured to: when the determination result of the first recording determination unit 200 is YES, the first video is streamed and saved according to the current code stream type of the first video.
- the instruction obtaining unit 100 is specifically configured to: obtain a hidden instruction for the first video being played;
- the video processing unit is further configured to stop decoding and rendering the first video.
- the instruction obtaining unit 100 is specifically configured to:
- the instruction obtaining unit 100 is specifically configured to:
- the play control command is a split screen mode switching instruction
- the number of split screens corresponding to the target split screen mode in the split screen mode switching instruction is smaller than the number of split screens in the current split screen mode, it is determined that there is a need The first video being played that is being hidden.
- the apparatus may further include:
- a second video recording determining unit (not shown in FIG. 4), configured to determine whether the first video is being recorded when the hidden first video is displayed;
- a video recovery unit (not shown in FIG. 4), configured to resume decoding and rendering of the first video if the determination result of the second recording determination unit is YES;
- the video restarting unit (not shown in FIG. 4) is configured to re-open the streaming, decoding, and rendering of the first video if the second recording determining unit determines that the result is negative.
- the instruction obtaining unit 100 is specifically configured to: obtain a code stream type switching instruction for the first video being played;
- the video processing unit 300 is further configured to continue to decode and render the first video.
- the apparatus may further include:
- the instruction receiving unit 400 is configured to receive a code stream type forced switching instruction input by the user;
- a code stream type switching unit 500 configured to switch a code stream type of the first video to a target code stream type in the code stream type forced switching instruction
- the third video recording determining unit 600 is configured to determine whether the first video is being recorded
- the file generating unit 700 is configured to: when the determination result of the third recording determination unit 600 is YES, generate a recording file for the first video according to the currently recorded video, and according to the target code stream type The first video is taken and saved;
- the file merging unit 800 is configured to acquire and merge each video file of the first video after turning off the recording of the first video.
- An embodiment of the present application further provides an electronic device, where the electronic device includes a processor and a memory;
- the processor is configured to execute an application stored on the memory to implement a video playback method.
- the processing method of video playback includes:
- the first video is streamed and saved according to the current code stream type of the first video.
- the communication bus may be a PCI (Peripheral Component Interconnect) bus or an EISA (Extended Industry Standard Architecture) bus.
- the communication bus can be divided into an address bus, a data bus, a control bus, and the like.
- the communication interface is used for communication between the above electronic device and other devices.
- the memory may include a RAM (Random Access Memory), and may also include NVM (Non-Volatile Memory), such as at least one disk storage.
- the memory may also be at least one storage device located away from the aforementioned processor.
- the processor may be a general-purpose processor, including a CPU (Central Processing Unit), an NP (Network Processor), or the like; or a DSP (Digital Signal Processing) or an ASIC (Application) Specific Integrated Circuit, FPGA (Field-Programmable Gate Array) or other programmable logic device, discrete gate or transistor logic device, discrete hardware components.
- CPU Central Processing Unit
- NP Network Processor
- DSP Digital Signal Processing
- ASIC Application) Specific Integrated Circuit
- FPGA Field-Programmable Gate Array
- other programmable logic device discrete gate or transistor logic device, discrete hardware components.
- the embodiment of the present application further provides an application program, which is used to implement a video playback method at runtime.
- the processing method of video playback includes:
- the first video is streamed and saved according to the current code stream type of the first video.
- the embodiment of the present application further provides a storage medium for storing an application, and the application is executed to implement a processing method of video playback.
- the processing method of video playback includes:
- the first video is streamed and saved according to the current code stream type of the first video.
- the processing device For the processing device, the electronic device, the application program, and the storage medium embodiment of the video playback, since it is basically similar to the processing method embodiment of the video playback, the description is relatively simple, and the relevant places are shown in FIG. 1 to FIG. 3. A partial description of the embodiment of the processing method of video playback may be used.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Computer Graphics (AREA)
- Business, Economics & Management (AREA)
- Marketing (AREA)
- Television Signal Processing For Recording (AREA)
- Signal Processing For Digital Recording And Reproducing (AREA)
- Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)
Abstract
本申请实施例公开了一种视频播放的处理方法及装置,涉及视频技术领域,该方法包括:获得针对正在播放的第一视频的调整指令;判断所述第一视频是否正在进行录像;如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。应用本申请实施例,保证了视频录像的完整。
Description
本申请要求于2016年9月30日提交中国专利局、申请号为201610871962.3发明名称为“一种视频播放的处理方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本申请涉及视频技术领域,特别涉及一种视频播放的处理方法及装置。
码流类型是由视频质量的参数(如:分辨率、帧率、码率等)组合成的码流参数规则,可分为高清、标清、流畅等码流类型,按照视频质量从高到低排序为:高清>标清>流畅。视频质量越高,也就是,分辨率越高,码率越大,帧率越大,视频播放所需要的硬件资源(如:CPU(Central Processing Unit,中央处理器)、内存、带宽等)也越大;视频质量越低,也就是,分辨率越低,码率越小,帧率越小,视频播放所需要的硬件资源也越小。
另外,客户端可能配置有许多的分屏模式,如:1分屏模式、4分屏模式、9分屏模式、16分屏模式等。这里,视频在分屏中播放的过程可以包括:获取码流(取流)、解析码流(解码)和对码流进行渲染(渲染)。一般的,客户端常常还需要对正在播放的视频进行录像,也就是,将正在播放的视频的码流保存至本地。这种情况下,若对正在录像的视频进行操作,很可能会导致视频的录像将会被停止,进而导致该视频的录像不完整。
发明内容
本申请实施例公开了一种视频播放的处理方法及装置,以保证视频录像的完整。
为达到上述目的,本申请实施例公开了一种视频播放的处理方法,所述方法包括:
获得针对正在播放的第一视频的调整指令;
判断所述第一视频是否正在进行录像;
如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流
并保存。
可选的,所述获得针对正在播放的第一视频的调整指令的步骤,为:获得针对正在播放的第一视频的隐藏指令;
所述方法还包括:停止对所述第一视频的解码和渲染。
可选的,获得针对正在播放的第一视频的隐藏指令的步骤,包括:
获得播放控制指令;
根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;
当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
可选的,当所述播放控制指令为分屏模式切换指令时,所述根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频的步骤,包括:
当所述分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目时,确定有需要隐藏的正在播放的第一视频。
可选的,当显示隐藏的所述第一视频时,所述方法还包括:
判断所述第一视频是否正在进行录像;
如果是,恢复对所述第一视频的解码和渲染;
如果否,重新开启对所述第一视频的取流、解码和渲染。
可选的,所述获得针对正在播放的第一视频的调整指令的步骤,为:获得针对正在播放的第一视频的码流类型切换指令;
所述方法还包括:继续对所述第一视频进行解码和渲染。
可选的,所述方法还包括:
接收用户输入的码流类型强制切换指令;
将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;
判断所述第一视频是否正在进行录像;
如果是,根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;
当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
为达到上述目的,本申请实施例还公开了一种视频播放的处理装置,所述装置包括:
指令获得单元,用于获得针对正在播放的第一视频的调整指令;
第一录像判断单元,用于判断所述第一视频是否正在进行录像;
视频处理单元,用于在所述第一录像判断单元的判断结果为是的情况下,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
可选的,所述指令获得单元,具体用于:获得针对正在播放的第一视频的隐藏指令;
所述视频处理单元,还用于停止对所述第一视频的解码和渲染。
可选的,所述指令获得单元,具体用于:
获得播放控制指令;根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
可选的,所述指令获得单元,具体用于:
当所述播放控制指令为分屏模式切换指令时,若所述分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目,确定有需要隐藏的正在播放的第一视频。
可选的,所述装置还包括:
第二录像判断单元,用于当显示隐藏的所述第一视频时,判断所述第一视频是否正在进行录像;
视频恢复单元,用于在所述第二录像判断单元判断结果为是的情况下,恢复对所述第一视频的解码和渲染;
视频重启单元,用于在所述第二录像判断单元判断结果为否的情况下,重新开启对所述第一视频的取流、解码和渲染。
可选的,所述指令获得单元,具体用于:获得针对正在播放的第一视频的码流类型切换指令;
所述视频处理单元,还用于继续对所述第一视频进行解码和渲染。
可选的,所述装置还包括:
指令接收单元,用于接收用户输入的码流类型强制切换指令;
码流类型切换单元,用于将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;
第三录像判断单元,用于判断所述第一视频是否正在进行录像;
文件生成单元,用于在所述第三录像判断单元的判断结果为是的情况下,根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;
文件合并单元,用于当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
为达到上述目的,本申请实施例还公开了一种电子设备,所述电子设备包括处理器和存储器;
所述存储器,用于存放应用程序;
所述处理器,用于执行所述存储器上所存放的应用程序,实现上述视频播放的处理方法。
为达到上述目的,本申请实施例还公开了一种应用程序,所述应用程序用于在运行时实现上述视频播放的处理方法。
为达到上述目的,本申请实施例还公开了一种存储介质,所述存储介质用于存储应用程序,所述应用程序被运行以实现上述视频播放的处理方法。
本申请实施例中,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视
频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整。
为了更清楚地说明本申请实施例或相关技术中的技术方案,下面将对实施例或相关技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1为本申请实施例提供的一种视频播放的处理方法的一种流程示意图;
图2为本申请实施例提供的一种视频播放的处理方法的另一种流程示意图;
图3为本申请实施例提供的一种视频播放的处理方法的另一种流程示意图;
图4为本申请实施例提供的一种视频播放的处理装置的一种结构示意图;
图5为本申请实施例提供的一种视频播放的处理装置的另一种结构示意图。
下面将结合本申请实施例中的附图,对本申请实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本申请一部分实施例,而不是全部的实施例。基于本申请中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本申请保护的范围。
下面通过具体实施例,对本申请进行详细说明。
参考图1,图1为本申请实施例提供的一种视频播放的处理方法的一种流程示意图,该方法包括:
S100:获得针对正在播放的第一视频的调整指令;
在本申请的一个实施例中,调整指令可以为:视频隐藏指令和码流类型切换指令;这里,码流类型切换指令可以根据分屏模式切换指令生成的码流类型切换指令。
例如:当前分屏模式为4分屏模式,分屏模式切换指令的目标分屏模式为9分屏模式,由于在9分屏模式下播放的视频的路数增加,为了降低CPU、内存以及网络的负担,可以降低9分屏模式下播放的视频的视频质量,也就是,生成码流类型切换指令,该码流类型切换指令中的目标码流类型的视频质量小于4分屏模式下码流类型的视频质量。
再如:当前分屏模式为9分屏模式,分屏模式切换指令的目标分屏模式为4分屏模式,由于4分屏模式下播放的视频的路数减少,可以适当的调高频质量的视频。为了获得较好视频质量的视频,可以提高4分屏模式下播放的视频的视频质量,也就是,根据分屏模式切换指令,生成码流类型切换指令,该码流类型切换指令中的目标码流类型的视频质量大于9分屏模式下码流类型的视频质量。
S200:判断所述第一视频是否正在进行录像;如果是,执行S300;
一般的,在对正在进行录像的第一视频进行操作时,如:隐藏第一视频、切换第一视频的码流类型等,都会使得第一视频的录像被中断。为了避免对正在进行录像的第一视频进行操作,导致第一视频的录像被停止,在根据调整指令调整第一视频前,判断该第一视频是否正在进行录像。
S300:按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
对于正在进行录像的第一视频,保留对该第一视频进行取流并保存,避免了第一视频录像的中断,保证了视频录像的完整;
另外,对于正在进行录像的第一视频的其他操作,可以按照获得的调整指令执行:
当获得针对正在播放的第一视频的调整指令为隐藏指令时,在按照该第一视频当前的码流类型,对该第一视频进行取流并保存的同时,停止对该第一视频的解码和渲染;而对于未进行录像的视频,可以停止对该视频的取流、解码和渲染。这样,既保证的对隐藏的每一路视频的录像,同时,有效的降低了对CPU、内存和网络的负担;
当获得针对正在播放的第一视频的调整指令为码流类型切换指令时,不
对切换该第一视频当前的码流类型,也就是,按照该第一视频当前的码流类型,对该第一视频进行取流并保存,并且继续对第一视频进行解码和渲染。
在本申请的一个实施例中,上述隐藏指令可以根据播放控制指令获得,参考图2,基于图1,该方法中,S100可以包括:
S110:获得播放控制指令;
在本申请的一个实施例中,播放控制指令可以包括:分屏模式切换指令、视频隐藏指令和码流类型切换指令;其中,码流类型切换指令可以包括:根据分屏模式切换指令生成的码流类型切换指令。
S120:根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;如果是,执行S130;
在本申请的一个实施例中,当播放控制指令为视频隐藏指令时,可以确定视频隐藏指令中的目标视频为需要隐藏的正在播放的第一视频;
当播放控制指令为分屏模式切换指令时,若分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目,如:9分屏模式切换为4分屏模式,能够显示的视频数量减少,此时必定存在需要隐藏的正在播放的第一视频。
假设,当前客户端中配置的分屏模式有:1分屏模式、4分屏模式、9分屏模式、16分屏模式;当前分屏模式(9分屏模式)下显示了5路视频,分别为A、B、C、D和E,若接收到的分屏模式切换指令中的目标分屏模式为1分屏模式,分屏模式切换指令中的目标分屏模式(1分屏模式)对应的分屏数目小于当前分屏模式(9分屏模式)中分屏数目,可以确定存在需要隐藏的正在播放的第一视频,若显示视频A,则可以确定需要隐藏的正在播放的第一视频为:B、C、D和E。
值得一提的是,若确定没有需要隐藏的正在播放的第一视频,则可以直接执行播放控制指令对应的操作,如:当播放控制指令为分屏模式切换指令时,将当前分屏模式切换为分屏模式切换指令中的目标分屏模式;当播放控制指令为码流类型切换指令时,将当前码流类型切换为码流类型切换指令中的目标码流类型。
S130:针对每路第一视频生成对应的隐藏指令。
当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
另外,隐藏的视频有可能也需要显示出来。这种情况下,当显示隐藏的第一视频时,判断该路第一视频是否正在进行录像;若该路第一视频正在进行录像,则可以说明该路第一视频保持着取流,此时只需要恢复对该路第一视频的解码和渲染即可;若该路第一视频未进行录像,则需要重新开启对该路第一视频的取流、解码和渲染。
随着分屏模式的切换,正在播放的视频的码流类型中通常也需要进行切换。也就是,需要根据分屏模式切换指令生成针对正在播放的视频(第一视频)的码流类型切换指令,如:可以预先设置分屏模式与码流类型的对应关系,一般可以包括:预设的分屏模式与默认码流类型的对应关系和预设的分屏模式与支持码流类型的对应关系;所述支持码流类型包括至少一种码流类型,支持码流类型为支持切换的码流类型,默认码流类型可以为支持码流类型中的一种码流类型;在接收到分屏模式切换指令后,根据预设的分屏模式与默认码流类型的对应关系,确定分屏模式切换指令中的目标分屏模式对应的默认码流类型;并根据预设的分屏模式与支持码流类型的对应关系,确定上述目标分屏模式对应的支持码流类型;根据所确定的默认码流类型和支持码流类型,生成码流类型切换指令,进而可以根据该码流类型切换指令,将已开启的每路视频的码流类型切换为所确定的默认码流类型或支持码流类型中的一种码流类型。
但是通常在切换视频的码流类型时,若该路第一视频正在进行录像,则该路第一视频的录像将会被停止,进而导致该路第一视频录像不完整。这种情况下,为了保证视频录像的完整,在获得针对正在播放的第一视频的码流类型切换指令时,若码流类型切换指令为根据分屏模式切换指令生成的,则可以不切换码流类型,继续对第一视频进行解码和渲染,该第一视频的录像不会被停止。
对于未进行录像的视频,可以将该视频的码流类型切换为码流类型切换指令中的目标码流类型,以获得一个较好的视频质量的视频播放。
在本申请的一个实施例中,用户可以根据自身的需求调整每一路正在播放的视频的码流类型,也就是,针对正在播放的第一视频的调整指令为:用户输入针对正在播放的视频(即第一视频)的码流类型强制切换指令,此时会切换第一视频的码流类型。这种情况下,为了保证视频录像的完整,参考图3,基于图1,上述视频播放的处理方法还可以包括:
S400:接收用户输入的码流类型强制切换指令;
S500:将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;
S600:判断所述第一视频是否正在进行录像;如果是,执行S700;
S700:根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;
S800:当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
当码流类型切换指令为用户输入的码流类型强制切换指令时,若被切换了码流类型的第一视频正在进行录像,对该第一视频的录像会被停止后再次重启,并且在重启对第一视频的录像的之前,还会根据当前录像的视频生成针对该第一视频的录像文件。这种情况下,当关闭对第一视频的录像后,会生成有多个第一视频的录像文件,为了确保最终第一视频的录像文件的完整,也就是,确保该第一视频录像的完整,当关闭该第一视频的录像后,获取该第一视频的每一录像文件,并合并该第一视频的每一录像文件。
假设,当前时刻为10:00,当前第一视频A从10:00开始进行录像,在10:15时,将第一视频A的码流类型切换为码流类型a,则第一视频A的录像将被中断,也就是被停止,生成从10:00至10:15的时间段内所录像的第一视频A的录像文件f1,并重启第一视频A的录像,也就是,按照码流类型a对第一视频A进行取流并保存;在10:25时,将第一视频A的码流类型切换为码流类型b,录像将被中断,生成从10:15至10:25的时间段内所录像的第一视频A的录像文件f2,并重启第一视频A的录像,也就是,按照码流类型b对第一视频A进行取流并保存;在10:34时,将第一视频A的码流类型切换为码流类型c,录像将被中断,
生成从10:25至10:34的时间段内所录像的第一视频A的录像文件f3,并重启第一视频A的录像,也就是,按照码流类型c对第一视频A进行取流并保存;在10:50时关闭第一视频的录像,此时生成从10:34至10:50的时间段内所录像的第一视频A的录像文件f4,获取第一视频A的每一录像文件,包括f1、f2、f3和f4,合并f1、f2、f3和f4,从而获得了完整的第一视频A的录像文件。
应用上述实施例,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整.
与方法实施例对应,本申请实施例还提供了一种视频播放的处理装置。
参考图4,图4为本申请实施例提供的一种视频播放的处理装置的一种结构示意图,所述装置包括:
指令获得单元100,用于获得针对正在播放的第一视频的调整指令;
第一录像判断单元200,用于判断所述第一视频是否正在进行录像;
视频处理单元300,用于在第一录像判断单元200的判断结果为是的情况下,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
在本申请的一个实施例中,所述指令获得单元100,具体用于:获得针对正在播放的第一视频的隐藏指令;
所述视频处理单元,还用于停止对所述第一视频的解码和渲染。
在本申请的一个实施例中,所述指令获得单元100,具体用于:
获得播放控制指令;根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
在本申请的一个实施例中,所述指令获得单元100,具体用于:
当所述播放控制指令为分屏模式切换指令时,若所述分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目,确定有需
要隐藏的正在播放的第一视频。
在本申请的一个实施例中,所述装置还可以包括:
第二录像判断单元(图4中未示出),用于当显示隐藏的所述第一视频时,判断所述第一视频是否正在进行录像;
视频恢复单元(图4中未示出),用于在所述第二录像判断单元的判断结果为是的情况下,恢复对所述第一视频的解码和渲染;
视频重启单元(图4中未示出),用于在所述第二录像判断单元判断结果为否的情况下,重新开启对所述第一视频的取流、解码和渲染。
在本申请的一个实施例中,所述指令获得单元100,具体用于:获得针对正在播放的第一视频的码流类型切换指令;
所述视频处理单元300,还用于继续对所述第一视频进行解码和渲染。
在本申请的一个实施例中,参考图5,在图4的基础上,所述装置还可以包括:
指令接收单元400,用于接收用户输入的码流类型强制切换指令;
码流类型切换单元500,用于将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;
第三录像判断单元600,用于判断所述第一视频是否正在进行录像;
文件生成单元700,用于在所述第三录像判断单元600的判断结果为是的情况下,根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;
文件合并单元800,用于当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
应用上述实施例,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整。
本申请实施例还提供了一种电子设备,电子设备包括处理器和存储器;
存储器,用于存放应用程序;
处理器,用于执行存储器上所存放的应用程序,实现视频播放的处理方法。其中,视频播放的处理方法包括:
获得针对正在播放的第一视频的调整指令;
判断所述第一视频是否正在进行录像;
如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
应用上述实施例,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整。
上述通信总线可以是PCI(Peripheral Component Interconnect,外设部件互连标准)总线或EISA(Extended Industry Standard Architecture,扩展工业标准结构)总线等。该通信总线可以分为地址总线、数据总线、控制总线等。
通信接口用于上述电子设备与其他设备之间的通信。
存储器可以包括RAM(Random Access Memory,随机存取存储器),也可以包括NVM(Non-Volatile Memory,非易失性存储器),例如至少一个磁盘存储器。可选的,存储器还可以是至少一个位于远离前述处理器的存储装置。
上述处理器可以是通用处理器,包括CPU(Central Processing Unit,中央处理器)、NP(Network Processor,网络处理器)等;还可以是DSP(Digital Signal Processing,数字信号处理器)、ASIC(Application Specific Integrated Circuit,专用集成电路)、FPGA(Field-Programmable Gate Array,现场可编程门阵列)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。
本申请实施例还提供了一种应用程序,应用程序用于在运行时实现视频播放的处理方法。其中,视频播放的处理方法包括:
获得针对正在播放的第一视频的调整指令;
判断所述第一视频是否正在进行录像;
如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
应用上述实施例,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整。
本申请实施例还提供了一种存储介质,存储介质用于存储应用程序,应用程序被运行以实现视频播放的处理方法。其中,视频播放的处理方法包括:
获得针对正在播放的第一视频的调整指令;
判断所述第一视频是否正在进行录像;
如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
应用上述实施例,获得针对正在播放的第一视频的调整指令;判断第一视频是否正在进行录像;如果是,按照第一视频当前的码流类型,对第一视频进行取流并保存。可见,正在进行录像的第一视频的取流不会被停止,也就是,第一视频的录像不会被停止,保证了视频录像的完整。
对于视频播放的处理装置、电子设备、应用程序、存储介质实施例而言,由于其基本相似于视频播放的处理方法实施例,所以描述的比较简单,相关之处参见图1-图3所示的视频播放的处理方法实施例的部分说明即可。
需要说明的是,在本文中,诸如第一和第二等之类的关系术语仅仅用来将一个实体或者操作与另一个实体或操作区分开来,而不一定要求或者暗示这些实体或操作之间存在任何这种实际的关系或者顺序。而且,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者设备不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者设备所固有的要
素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括所述要素的过程、方法、物品或者设备中还存在另外的相同要素。
本领域普通技术人员可以理解实现上述方法实施方式中的全部或部分步骤是可以通过程序来指令相关的硬件来完成,所述的程序可以存储于计算机可读取存储介质中,这里所称得的存储介质,如:ROM/RAM、磁碟、光盘等。
以上所述仅为本申请的较佳实施例而已,并非用于限定本申请的保护范围。凡在本申请的精神和原则之内所作的任何修改、等同替换、改进等,均包含在本申请的保护范围内。
Claims (17)
- 一种视频播放的处理方法,其特征在于,所述方法包括:获得针对正在播放的第一视频的调整指令;判断所述第一视频是否正在进行录像;如果是,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
- 根据权利要求1所述的方法,其特征在于,所述获得针对正在播放的第一视频的调整指令的步骤,为:获得针对正在播放的第一视频的隐藏指令;所述方法还包括:停止对所述第一视频的解码和渲染。
- 根据权利要求2所述的方法,其特征在于,获得针对正在播放的第一视频的隐藏指令的步骤,包括:获得播放控制指令;根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
- 根据权利要求3所述的方法,其特征在于,当所述播放控制指令为分屏模式切换指令时,所述根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频的步骤,包括:当所述分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目时,确定有需要隐藏的正在播放的第一视频。
- 根据权利要求2所述的方法,其特征在于,当显示隐藏的所述第一视频时,所述方法还包括:判断所述第一视频是否正在进行录像;如果是,恢复对所述第一视频的解码和渲染;如果否,重新开启对所述第一视频的取流、解码和渲染。
- 根据权利要求1所述的方法,其特征在于,所述获得针对正在播放的 第一视频的调整指令的步骤,为:获得针对正在播放的第一视频的码流类型切换指令;所述方法还包括:继续对所述第一视频进行解码和渲染。
- 根据权利要求1所述的方法,其特征在于,所述方法还包括:接收用户输入的码流类型强制切换指令;将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;判断所述第一视频是否正在进行录像;如果是,根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
- 一种视频播放的处理装置,其特征在于,所述装置包括:指令获得单元,用于获得针对正在播放的第一视频的调整指令;第一录像判断单元,用于判断所述第一视频是否正在进行录像;视频处理单元,用于在所述第一录像判断单元的判断结果为是的情况下,按照所述第一视频当前的码流类型,对所述第一视频进行取流并保存。
- 根据权利要求8所述的装置,其特征在于,所述指令获得单元,具体用于:获得针对正在播放的第一视频的隐藏指令;所述视频处理单元,还用于停止对所述第一视频的解码和渲染。
- 根据权利要求9所述的装置,其特征在于,所述指令获得单元,具体用于:获得播放控制指令;根据所述播放控制指令,确定是否有需要隐藏的正在播放的第一视频;当有需要隐藏的第一视频时,针对每路第一视频生成对应的隐藏指令。
- 根据权利要求10所述的装置,其特征在于,所述指令获得单元,具体用于:当所述播放控制指令为分屏模式切换指令时,若所述分屏模式切换指令中的目标分屏模式对应的分屏数目小于当前分屏模式中分屏数目,确定有需要隐藏的正在播放的第一视频。
- 根据权利要求9所述的装置,其特征在于,所述装置还包括:第二录像判断单元,用于当显示隐藏的所述第一视频时,判断所述第一视频是否正在进行录像;视频恢复单元,用于在所述第二录像判断单元判断结果为是的情况下,恢复对所述第一视频的解码和渲染;视频重启单元,用于在所述第二录像判断单元判断结果为否的情况下,重新开启对所述第一视频的取流、解码和渲染。
- 根据权利要求8所述的装置,其特征在于,所述指令获得单元,具体用于:获得针对正在播放的第一视频的码流类型切换指令;所述视频处理单元,还用于继续对所述第一视频进行解码和渲染。
- 根据权利要求8所述的装置,其特征在于,所述装置还包括:指令接收单元,用于接收用户输入的码流类型强制切换指令;码流类型切换单元,用于将所述第一视频的码流类型切换为所述码流类型强制切换指令中的目标码流类型;第三录像判断单元,用于判断所述第一视频是否正在进行录像;文件生成单元,用于在所述第三录像判断单元的判断结果为是的情况下,根据当前录像的视频生成针对所述第一视频的录像文件,并按照所述目标码流类型对所述第一视频进行取流并保存;文件合并单元,用于当关闭对所述第一视频的录像后,获取并合并所述第一视频的每一录像文件。
- 一种电子设备,其特征在于,所述电子设备包括处理器和存储器;所述存储器,用于存放应用程序;所述处理器,用于执行所述存储器上所存放的应用程序,实现权利要求1-7任一所述的视频播放的处理方法。
- 一种应用程序,其特征在于,所述应用程序用于在运行时实现权利要求1-7任一所述的视频播放的处理方法。
- 一种存储介质,其特征在于,所述存储介质用于存储应用程序,所述应用程序被运行以实现权利要求1-7任一所述的视频播放的处理方法。
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US16/335,577 US10771733B2 (en) | 2016-09-30 | 2017-08-23 | Method and apparatus for processing video playing |
EP17854617.2A EP3522525B1 (en) | 2016-09-30 | 2017-08-23 | Method and apparatus for processing video playing |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201610871962.3A CN107888859B (zh) | 2016-09-30 | 2016-09-30 | 一种视频播放的处理方法及装置 |
CN201610871962.3 | 2016-09-30 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018059165A1 true WO2018059165A1 (zh) | 2018-04-05 |
Family
ID=61763324
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2017/098664 WO2018059165A1 (zh) | 2016-09-30 | 2017-08-23 | 一种视频播放的处理方法及装置 |
Country Status (4)
Country | Link |
---|---|
US (1) | US10771733B2 (zh) |
EP (1) | EP3522525B1 (zh) |
CN (1) | CN107888859B (zh) |
WO (1) | WO2018059165A1 (zh) |
Families Citing this family (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN112672079B (zh) * | 2020-12-18 | 2023-01-06 | 北京飞讯数码科技有限公司 | 分屏切换方法、装置、设备及存储介质 |
CN114339415B (zh) * | 2021-12-23 | 2024-01-02 | 天翼云科技有限公司 | 客户端视频播放方法、装置、电子设备和可读介质 |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007043357A (ja) * | 2005-08-02 | 2007-02-15 | Casio Hitachi Mobile Communications Co Ltd | テレビ受信装置及びプログラム |
CN101094318A (zh) * | 2007-06-26 | 2007-12-26 | 蔡斌毅 | 多功能摄像头 |
CN201078853Y (zh) * | 2007-02-07 | 2008-06-25 | 台湾视讯系统股份有限公司 | 多媒体数字录放机 |
CN103369139A (zh) * | 2013-06-27 | 2013-10-23 | 广东欧珀移动通信有限公司 | 使用移动设备的摄录方法及其装置 |
CN106899817A (zh) * | 2017-01-04 | 2017-06-27 | 深圳市广和通无线股份有限公司 | 媒体数据录制方法和装置 |
Family Cites Families (12)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20070265031A1 (en) * | 2003-10-22 | 2007-11-15 | Sandy Electric Co., Ltd. | Mobile Phone, Display Method, and Computer Program |
JP2006310896A (ja) | 2005-04-26 | 2006-11-09 | Matsushita Electric Ind Co Ltd | 画像処理装置 |
JP4585479B2 (ja) * | 2006-03-30 | 2010-11-24 | 株式会社東芝 | サーバ装置および映像配信方法 |
JP2008085545A (ja) * | 2006-09-27 | 2008-04-10 | Funai Electric Co Ltd | 録画装置 |
CN101207757B (zh) * | 2006-12-22 | 2011-04-13 | 乐金电子(中国)研究开发中心有限公司 | 一种多画面录制电视机及其显示方法 |
CN101635828B (zh) * | 2009-08-19 | 2011-09-21 | 中兴通讯股份有限公司 | 实现iptv频道录制和播放的机顶盒装置、系统和方法 |
US9538229B2 (en) * | 2010-09-15 | 2017-01-03 | Verizon Patent And Licensing Inc. | Media experience for touch screen devices |
CN102611932B (zh) * | 2011-01-25 | 2014-09-17 | 国基电子(上海)有限公司 | 机顶盒及其录制电视节目的方法 |
EP2555517A1 (en) | 2011-08-01 | 2013-02-06 | Hunt Electronic Co., Ltd. | Network video server and video control method thereof |
CN103929611B (zh) * | 2013-01-10 | 2017-04-05 | 杭州海康威视数字技术股份有限公司 | 一种多画面分页播放方法 |
CN104184980A (zh) * | 2014-07-21 | 2014-12-03 | 联想(北京)有限公司 | 一种数据处理方法及电子设备 |
CN105391965B (zh) * | 2015-11-05 | 2018-09-07 | 广东欧珀移动通信有限公司 | 基于多摄像头的视频录制方法及装置 |
-
2016
- 2016-09-30 CN CN201610871962.3A patent/CN107888859B/zh active Active
-
2017
- 2017-08-23 EP EP17854617.2A patent/EP3522525B1/en active Active
- 2017-08-23 US US16/335,577 patent/US10771733B2/en active Active
- 2017-08-23 WO PCT/CN2017/098664 patent/WO2018059165A1/zh unknown
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2007043357A (ja) * | 2005-08-02 | 2007-02-15 | Casio Hitachi Mobile Communications Co Ltd | テレビ受信装置及びプログラム |
CN201078853Y (zh) * | 2007-02-07 | 2008-06-25 | 台湾视讯系统股份有限公司 | 多媒体数字录放机 |
CN101094318A (zh) * | 2007-06-26 | 2007-12-26 | 蔡斌毅 | 多功能摄像头 |
CN103369139A (zh) * | 2013-06-27 | 2013-10-23 | 广东欧珀移动通信有限公司 | 使用移动设备的摄录方法及其装置 |
CN106899817A (zh) * | 2017-01-04 | 2017-06-27 | 深圳市广和通无线股份有限公司 | 媒体数据录制方法和装置 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3522525A4 * |
Also Published As
Publication number | Publication date |
---|---|
EP3522525B1 (en) | 2021-10-06 |
EP3522525A4 (en) | 2020-05-27 |
CN107888859B (zh) | 2020-07-03 |
CN107888859A (zh) | 2018-04-06 |
EP3522525A1 (en) | 2019-08-07 |
US10771733B2 (en) | 2020-09-08 |
US20200021773A1 (en) | 2020-01-16 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US20210235153A1 (en) | Video processing method, electronic device, and computer-readable medium | |
KR102025504B1 (ko) | 디스플레이 모드 기반 미디어 플레이어 스위칭 | |
WO2018059164A1 (zh) | 一种视频播放的码流类型切换方法及装置 | |
US9652683B2 (en) | Automatic extraction of closed caption data from frames of an audio video (AV) stream using image filtering | |
WO2020151398A1 (zh) | 硬件解码动态分辨率无缝切换方法、装置及存储介质 | |
WO2022001027A1 (zh) | 网络教学中投屏画面自适应的方法以及装置 | |
US11356739B2 (en) | Video playback method, terminal apparatus, and storage medium | |
WO2018192183A1 (zh) | 无线传屏中视频文件的处理方法及装置 | |
JP2017510114A (ja) | ビデオ最適化用のメタデータを生成するための方法及び装置 | |
WO2017166685A1 (zh) | 外接扬声器切换方法及装置 | |
WO2018059165A1 (zh) | 一种视频播放的处理方法及装置 | |
WO2017097151A1 (zh) | 一种转码方法及装置 | |
WO2016150274A1 (zh) | 一种歌曲拼接算法及装置 | |
JP2009177603A (ja) | 情報処理装置および表示制御方法 | |
US9152374B2 (en) | Control and capture of audio data intended for an audio endpoint device of an application executing on a data processing device | |
CN108882004B (zh) | 视频录制方法、装置、设备及存储介质 | |
WO2020107992A1 (zh) | 视频处理方法、装置、电子设备及存储介质 | |
US9900665B2 (en) | Caption rendering automation test framework | |
US20200145470A1 (en) | Method and apparatus for playing media file | |
WO2017208377A1 (ja) | ログデータ取得装置およびログデータ取得方法 | |
US11196789B2 (en) | Recording device and recording method | |
JP5240868B2 (ja) | プロジェクタ、音声信号出力方法およびプログラム | |
TWI721089B (zh) | 轉碼方法及裝置 | |
WO2023277886A1 (en) | Noise removal on an electronic device | |
CN111954068A (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: 17854617 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
ENP | Entry into the national phase |
Ref document number: 2017854617 Country of ref document: EP Effective date: 20190430 |