CN107547930A - A kind of video play controller and control method based on mobile device rotation detection - Google Patents

A kind of video play controller and control method based on mobile device rotation detection Download PDF

Info

Publication number
CN107547930A
CN107547930A CN201710412102.8A CN201710412102A CN107547930A CN 107547930 A CN107547930 A CN 107547930A CN 201710412102 A CN201710412102 A CN 201710412102A CN 107547930 A CN107547930 A CN 107547930A
Authority
CN
China
Prior art keywords
video
playing
attitude data
video file
file
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201710412102.8A
Other languages
Chinese (zh)
Inventor
梁毅冰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huihai Yinhe Beijing Technology Co ltd
Original Assignee
Beijing Little Hi Tech LLC
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 Beijing Little Hi Tech LLC filed Critical Beijing Little Hi Tech LLC
Priority to CN201710412102.8A priority Critical patent/CN107547930A/en
Publication of CN107547930A publication Critical patent/CN107547930A/en
Pending legal-status Critical Current

Links

Landscapes

  • Television Signal Processing For Recording (AREA)

Abstract

The invention discloses a kind of video play controller and control method method based on mobile device rotation detection, wherein playing controller includes rotation detection module, for gathering the attitude data of the equipment in rotary moving during playing video file, attitude data is sent to video playback module, wherein, attitude data includes rotation direction, angle;Video playback module, for receiving attitude data, and according to attitude data playing video file, to control the playing progress rate of video file, direction and speed.Rotation of the invention according to mobile device in playing process, control frame of video redirects, meet the fluency requirement of video display process, while reduce the operand of mobile device, control the broadcasting of video to improve the interest that user watches video by equipment in rotary moving.

Description

Video playing controller based on mobile equipment rotation detection and control method
Technical Field
The invention relates to the technical field of video processing, in particular to a video playing controller and a control method based on rotation detection of mobile equipment.
Background
In the existing video playing technology, a group of continuous pictures are played in a time sequence. Although the viewer can feel the visual experience of the dynamic picture, the speed, direction, angle, etc. of the picture change are not controlled by the viewer, but are preset by the video photographer at the time of shooting. In other words, the viewer always passively receives the change of the picture, and cannot actively control the speed, direction and angle of the picture change. Therefore, when a video is watched, the substitution feeling generated by the viewer is limited, and if the viewer wants to intuitively feel the scene and experience of the photographer at that time, very high shooting and movie skill is required, which is difficult for the ordinary video photographer to achieve.
Disclosure of Invention
The invention aims to control the speed, direction or angle of picture change in the video playing process and improve the user substitution feeling in the video playing process.
In order to achieve the above object, the present invention provides a video playback controller based on rotation detection of a mobile device, comprising
The video playing device comprises a rotation detection module, a video playing module and a video playing module, wherein the rotation detection module is used for collecting attitude data of the rotating mobile device in the process of playing a video file and sending the attitude data to the video playing module, and the attitude data comprises a rotating direction and an angle;
and the video playing module is used for receiving the attitude data and playing the video file according to the attitude data so as to control the playing progress, direction and speed of the video file.
Further, in the video playback controller based on the rotation detection of the mobile device according to the present invention, the video playback module includes
The video reading unit is used for reading and decoding the video file to obtain a video image and the video frame number thereof, caching the video image and the video frame number, and buffering to obtain a video frame image set;
the progress calculation unit is used for calculating the corresponding relation between the video frame and the rotation angle according to the video frame number;
and the playing progress unit is used for acquiring the rotating direction and the angle of the mobile equipment according to the attitude data, inquiring the video frame image set, calculating the jumping direction and the jumping video frame of video playing according to the rotating direction and the angle, and controlling the current video frame to play the jumping video frame along the jumping direction.
Further, in the video playback controller based on mobile device rotation detection according to the present invention, the video playback controller based on mobile device rotation detection further includes
The video recording unit is used for starting a camera of the mobile equipment to record videos, acquiring gesture data of the mobile equipment in the video recording process and generating video files and gesture data of the video recording process;
the video playing module also comprises
And the playing parameter judging unit is used for acquiring the video file, judging whether the video file comprises the attitude data of the recording process, if so, determining a rotating shaft according to the attitude data of the recording process, and controlling the video to play according to the rotating shaft and the attitude data, otherwise, controlling the video to play according to the default rotating shaft direction.
Furthermore, in the video playback controller based on rotation detection of a mobile device according to the present invention, the video recording unit module further includes
And the storage unit is used for storing the recorded video file to the local and/or uploading the recorded video file to the cloud.
Furthermore, in the video playback controller based on the rotation detection of the mobile device according to the present invention, the video playback module further includes
And the audio playing unit is used for playing the background music selected by the user while the user watches the video picture.
The invention also provides a video playing control method based on the rotation detection of the mobile equipment, which comprises the following steps:
acquiring attitude data of rotating mobile equipment in the process of playing a video file, wherein the attitude data comprises a rotating direction and an angle;
and receiving the attitude data, and playing the video file according to the attitude data so as to control the playing progress, direction and speed of the video file.
Further, in the video playing control method based on the rotation detection of the mobile device according to the present invention, the receiving the attitude data, retrieving and playing the video file according to the attitude data, so as to control the playing progress of the video file according to the attitude data includes
Reading and decoding a video file to obtain a video image and a video frame number thereof, caching, and buffering to obtain a video frame image set;
calculating the corresponding relation between the video frame and the rotation angle according to the length of the video file;
and acquiring the rotation direction and angle of the mobile equipment according to the attitude data, inquiring the video frame image set, calculating the skip direction and skip video frame of video playing according to the rotation direction and angle, and controlling the current video frame to play the skip video frame along the skip direction.
Further, in the video playing control method based on the rotation detection of the mobile device, the method further includes
Starting a camera of the mobile equipment to record videos, acquiring attitude data of the mobile equipment in the video recording process, and generating a video file and the attitude data of the video file in the recording process;
wherein receiving the gesture data, retrieving and playing the video file according to the gesture data so as to control the playing progress of the video file according to the gesture data further comprises
And acquiring a video file, judging whether the video file comprises the attitude data of the recording process, if so, determining a rotating shaft according to the attitude data of the recording process, and controlling the video to play according to the rotating shaft and the attitude data, otherwise, controlling the video to play according to the default rotating shaft direction.
Further, in the method for controlling video playback based on rotation detection of mobile device according to the present invention, the step of generating the video recording file further includes
And storing the recorded video file to the local and/or uploading the recorded video file to the cloud.
Further, in the video playing control method based on the rotation detection of the mobile device according to the present invention, the receiving the gesture data and playing the video file according to the gesture data so as to control the playing progress, direction and speed of the video file further includes
And playing the background music selected by the user while the user watches the video picture.
In the technical scheme, the rotation of the mobile device is detected, the progress of video playing is controlled, the calculation amount of the mobile device in the process of playing the video file is reduced, the smoothness of video playing is improved, and the experience of a user is improved.
Drawings
In order to more clearly illustrate the embodiments of the present application or technical solutions in the prior art, the drawings needed to be used in the embodiments will be briefly described below, and it is obvious that the drawings in the following description are only some embodiments described in the present invention, and other drawings can be obtained by those skilled in the art according to the drawings.
FIG. 1 is a block diagram of an embodiment of a video playback controller based on rotation detection of a mobile device according to the present invention;
FIG. 2a is a schematic view of a video frame sequence of a video file played by a video playback controller based on rotation detection of a mobile device according to the present invention;
FIG. 2b is a schematic diagram of a video frame playing controller controlling video frame playing by left-right rotation according to the rotation detection of the mobile device according to the present invention;
FIG. 2c is a schematic diagram of a video frame playing control device according to the present invention, which controls the video frame playing by rotating in the up-down direction according to the rotation detection of the mobile device;
fig. 2d is a schematic view of a mobile phone moving left and right to control video frame playing by applying the video playing controller based on mobile device rotation detection according to the present invention;
FIG. 3 is a schematic structural diagram of a video playback controller based on rotation detection of a mobile device according to another embodiment of the present invention;
fig. 4 is a schematic structural diagram illustrating an embodiment of determining a rotation axis for playing a video file by using a video play controller based on rotation detection of a mobile device according to the present invention;
fig. 5a is a schematic diagram of continuous video frames in a handbag video file in an electronic commerce product played by a video play controller based on mobile device rotation detection in 360 degrees according to the present invention;
fig. 5b is a schematic diagram illustrating rotation of a mobile phone in one direction during playing of a video file of a hand pack by using a video play controller based on rotation detection of a mobile device according to the present invention;
FIG. 5c is a schematic view of a video frame of a video playback controller playing a video file of a hand pack in one direction according to the present invention based on rotation detection of a mobile device;
FIG. 5d is a schematic view of a video frame of a video playback controller playing a video file of a hand pack in another direction according to the present invention based on rotation detection of a mobile device;
FIG. 6 is a schematic structural diagram of a video playback controller based on rotation detection of a mobile device according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram illustrating an embodiment of a video playback control method based on rotation detection of a mobile device according to the present invention;
fig. 8 is a schematic structural diagram of S102 in an embodiment of a video playback control method based on mobile device rotation detection according to the present invention;
fig. 9 is a schematic structural diagram of S102 in another embodiment of a video playback control method based on rotation detection of a mobile device according to the present invention;
fig. 10 is a schematic structural diagram of S102 in yet another embodiment of a video playback control method based on rotation detection of a mobile device according to the present invention.
Detailed Description
In order to make the technical solutions of the present invention better understood, those skilled in the art will now describe the present invention in further detail with reference to the accompanying drawings.
Fig. 1 is a block diagram of a video playback controller based on mobile device rotation detection according to an embodiment of the present invention.
The video playback controller based on the rotation detection of the mobile device in this embodiment includes a rotation detection module 10 and a video playback module 20. Wherein,
the video playing system comprises a rotation detection module 10, a video playing module and a video playing module, wherein the rotation detection module is used for collecting attitude data of the rotating mobile equipment in the process of playing a video file and sending the attitude data to the video playing module, and the attitude data comprises a rotating direction and an angle;
the rotation detection module is a sensor built in the mobile device, such as a gyroscope. The rotation method and the rotation angle of the mobile device are detected through the gyroscope. In specific implementation, the mobile device may optionally include a handheld mobile device with built-in gyroscope, acceleration sensor, magnetometer, and the like, such as a mobile phone and a pad.
And the video playing module 20 is configured to receive the gesture data and play the video file according to the gesture data, so as to control the playing progress, direction and speed of the video file.
The invention not only can play the video, but also can control the video playing process, namely, the control (forward or backward) of the video playing progress is achieved by rotating the mobile equipment. The traditional video player needs manual operation for controlling the video playing progress, for example, the control of the video playing is realized through a manual operation mode such as touch control of a progress bar or mouse click, the operation is not needed in the invention, a user only needs to rotate the handheld mobile equipment, the rotating direction of the mobile equipment and the rotating angle of the rotating direction can be detected through a sensor (such as a gyroscope and the like) arranged in the mobile equipment, the rotating direction and the rotating angle of the mobile equipment are detected in real time in the playing process of each video frame, if the rotating direction is consistent with the video playing direction, the video is played forwards (namely, the video is moved forwards) according to the rotating angle of the mobile equipment, and if the rotating direction is not consistent with the video playing direction, the video is played backwards (namely.
Further, the video playing module 20 comprises
The video reading unit 21 is configured to read and decode a video file, obtain a video image and a video frame number thereof, buffer the video image and the video frame number, and obtain a video frame image set through buffering.
The file information is the default information of each video file, which at least includes all parameters of the video file, such as Frame rate, Height, width, Bit rate, NumFrame, and the like.
Conventional video players play pictures sequentially from beginning to end, so that video encoding and decoding technologies are optimized correspondingly for playing continuous pictures sequentially, and video playing can be performed smoothly under the operation capability of the existing equipment. In order to solve the problem, the read and decoded video file is buffered to obtain the video image and the video frame number thereof, so as to control and realize the direct skip from the current video frame to the skip video frame.
The progress calculation unit 22 is used for calculating the corresponding relation between the video frames and the rotation angles according to the video frame numbers;
the invention aims to restore the user recording track to the maximum extent in the video recording process, namely, the user may move from one direction to another direction for recording in the video recording process. In a traditional video player, the video playing process of a user is static, and the user can know the recording direction of a recorder in the recording process only through the analysis of a video frame picture, so that the user lacks recording experience.
In order to meet the fluency of the video playing process, the read video file is decoded before playing, the decoded video frame image is buffered to obtain the video frame number of the whole video file, so that the rotating direction and the angle of the mobile equipment are selected according to the playing process of the video file, and the progress of video playing, namely the forward or backward progress, and the forward video frame number or the backward video frame number are controlled.
The playing progress unit 23 is configured to obtain a rotation direction and an angle of the mobile device according to the posture data, query the video frame image set, calculate a skip direction and a skip video frame of video playing according to the rotation direction and the angle, and control the current video frame to play the skip video frame along the skip direction.
The invention plays the video pictures continuously in sequence, jumps in the video in real time according to the operation of the user (namely the rotation of the mobile phone), and the jumping process is smooth and continuous (at least 30 frames of pictures need to be switched per second), so the user does not feel the incontinuity of the video pictures in the playing process, thereby ensuring the smoothness requirement of the video playing. In specific implementation, when the user selects a video file to play, as shown in fig. 2a, a video frame sequence diagram of the video file selected by the user is shown, and the video file represents a process from jumping from one side of the building in the figure to landing on the other side of the building in the figure. In specific implementation, the user can optionally rotate the mobile phone according to the direction (i.e. left and right directions) shown in fig. 2b, and also can rotate the mobile phone according to the direction (i.e. up and down directions) shown in fig. 2 c. When the user rotates the mobile phone, the mobile phone detects gesture data of the user rotating the mobile phone, and obtains a rotation direction and an angle of the mobile phone according to the gesture data, if the rotation direction of the user is detected to be a left-right direction as shown in fig. 2b, and a played video frame is obtained according to the angle calculation to be an X-th frame in a clockwise direction, when the mobile phone rotates in the left-right direction as shown in fig. 2b, a video frame before the rotation is still to a video frame as shown in a left image in fig. 2c, and a video file after the rotation jumps from the left image video frame of fig. 2c to a video frame as shown in a right image of fig. 2 c. It should be noted that the forward direction of video playing in this embodiment is the rotation direction shown in fig. 2b, so when it is detected that the user rotates in the reverse direction of the direction shown in fig. 2b, the video file is jumped to play (i.e. played in reverse direction) in the direction from the right to the left in fig. 2 c. Similarly, when the user rotates in the direction shown in fig. 2c, the mobile phone calculates the gesture data detected by the user's vertical rotation, and controls the playing of the video frame according to the calculation result.
Fig. 3 is a schematic structural diagram of another embodiment of a video playback controller based on mobile device rotation detection according to the present invention. The video playback controller based on the mobile device rotation detection in this embodiment includes a rotation detection module 10, a video playback module 20, and a video recording unit 30.
Wherein,
the video recording module 30 is configured to start a camera of the mobile device to record a video, acquire gesture data of the mobile device in a video recording process, and generate a video file and corresponding recording parameters thereof, where the recording parameters include a recording direction;
compared with the traditional video player, the method not only generates the recorded video file, but also comprises the attitude data of the recording process, in the embodiment, the default recording direction is a direction, and all the technical schemes that the attitude data of the recording process is collected in the recording process and the rotating shaft of the playing process is determined according to the attitude data are the protection scope of the method.
Further, the video recording module further comprises
The storage unit 31 is configured to store the recorded video file locally and/or upload the recorded video file to the cloud. In the embodiment, the user is set to backup through the keys (the example of the cloud is set in the embodiment, and other styles can be specifically set), and after the video recording is finished, the user only needs to click the storage key.
The video playing module 20 further comprises
And the playing parameter judging unit 24 is configured to acquire a video file, judge whether the video file includes the attitude data of the recording process, determine a rotating shaft according to the attitude data of the recording process if the video file includes the attitude data of the recording process, control the video to be played according to the rotating shaft and the attitude data, and control the video to be played according to a default rotating shaft direction if the video file does not include the attitude data of the recording process.
The video playing controller based on the mobile equipment rotation detection aims at enabling a user to control the playing of a video through rotating and moving a mobile phone, and for achieving the purpose, rotation and displacement data of the equipment need to be collected and calculated in real time. In practice, it is found that when a user moves a mobile phone, the user usually follows with the rotation operation, so that the invention is simplified into a data for collecting and calculating the gesture data. Meanwhile, it is found through observation and analysis of user behaviors that a user is usually used to move and rotate the mobile phone only in one direction of the left and right directions or the up and down directions, so that the video playback controller based on rotation detection of the mobile device described in this embodiment only collects and calculates the rotation angle of the mobile phone on one rotation axis of the x axis (left and right in the case of vertical screen or up and down in the case of horizontal screen) or the y axis (up and down in the case of vertical screen or left and right in the case of horizontal screen) during playback and/or shooting. As shown in fig. 4, the mobile device in this embodiment is described by taking a mobile phone as an example. The method comprises the following steps that original information collected by a built-in gyroscope in the mobile phone is rotation angular velocities of equipment on a rotation plane with three spatial coordinate axes of x, y and z as axes; the original information collected by the acceleration sensor is the acceleration components of the equipment on three spatial coordinate axes of x, y and z respectively; the raw information collected by the magnetometer is the magnetic force component of the equipment on three spatial coordinate axes of x, y and z. The 3 sensors acquire data of 3 coordinate axes, the data are called 9-axis data in a combined mode, and all attitude data such as the rotating angle, the displacement and the orientation of the equipment at any moment can be obtained through analysis and calculation of the 9-axis data.
In specific implementation, the video playing module of the present invention can play not only the video file recorded by the video recording module of the present invention, but also the video file played by other players, that is, the video file is not recorded by the video recording module of the present invention, so the rotation direction is default to the positive direction of the rotation in the terminal y-axis direction, the maximum rotation angle is dynamically set to Rmax according to the video frame number of the video file, and each frame of the video file is uniformly distributed in the interval of 0 to Rmax. If the video file is recorded by the video recording module, the rotation direction determines the positive rotation direction, namely the video playing direction, by the recording parameters.
Meanwhile, the invention can realize seamless intercommunication with the video file recorded by the existing video player, and increases video resources to facilitate system popularization. In addition, the method is convenient to interface with other platforms and technologies, provides a larger application scene for the technology, for example, the application is applied to the display and browsing of E-commerce products, and a user can realize 360-degree browsing of all geometric surfaces of the commodities by rotating the direction of a mobile phone. As shown in fig. 5a, with the schematic diagram of the continuous video frames in the video file of the e-commerce product-handbag displayed by 360 degrees played by the mobile phone, when the user holds the mobile phone and rotates the current video frame picture played in fig. 5b in the direction of the arrow, the picture played by the mobile phone jumps from the current video frame to fig. 5d, otherwise, the picture jumps to the video frame picture shown in fig. 5c in the reverse direction of the arrow, thereby realizing the purpose of controlling the video frame playing according to the direction of the user rotating the mobile phone. It should be noted that, in this embodiment, only the video playing controller based on the mobile device rotation detection according to the present invention is applied to the stereoscopic display and browsing of the e-commerce product, and the user realizes the preview of the handbag by rotating the mobile phone by 360 degrees; in specific implementation, the method can also be applied to other scenes, such as video files of products for realizing content display and browsing of all geometric surfaces of a target object by recording commodities, such as exhibition of museums, three-dimensional display and browsing of animal and human portraits, the category of the target object is not limited, all video files of the target object are decoded according to the method, video images of the target object and video frame numbers of the video images are obtained, and after gesture data of a user rotating a mobile phone (namely mobile equipment applying a video playing controller based on mobile equipment rotation detection disclosed by the invention) is detected, the technical scheme for controlling video frame playing according to the gesture data belongs to the protection scope of the invention.
Further, fig. 6 is a schematic structural diagram of another embodiment of a video playback controller based on mobile device rotation detection according to the present invention. The video playing controller based on the rotation detection of the mobile device in this embodiment includes a rotation detection module 10, a video playing module 20 and a video recording unit 30, wherein the video playing module 30 further includes
And an audio playing unit 25 for playing the background music selected by the user while the user views the video picture.
Whether the video file recorded by the video recording module is recorded by the existing video player or the video file recorded by the existing video player, the recording process of the video file is silent, so that the video is quite quiet during playing, the user is boring to watch the video file, and the user experience of the player is poor. It should be noted that the audio files in the audio library may be pre-stored locally or acquired online. The audio files pre-stored locally can be the audio files stored in the audio software in the mobile phone called through a preset interface, or the audio files pre-downloaded by the user through the audio library list.
Fig. 7 shows a video playing control method based on rotation detection of a mobile device according to the present invention, which includes the following steps:
s101, acquiring attitude data of the mobile equipment, wherein the attitude data comprises a rotating direction and an angle;
and S102, receiving the attitude data, and playing the video file according to the attitude data so as to control the playing progress, direction and speed of the video file.
Further, as shown in fig. 8, S102 specifically includes
S1021, reading and decoding the video file to obtain a video image and the video frame number thereof, caching, and buffering to obtain a video frame image set;
s1022, calculating the corresponding relation between the video frame and the rotation angle according to the length of the video file;
s1023, calculating the rotating direction and distance of the mobile equipment according to the attitude data, acquiring the position of the current video frame, inquiring the corresponding relation between the video frame and the rotating angle, judging the moving direction and the frame number of the video frame corresponding to the rotating direction and distance, and playing along the moving direction and the frame number of the video frame on the basis of the position of the current video frame.
Conventional video players play pictures sequentially from beginning to end, so that video encoding and decoding technologies are optimized correspondingly for playing continuous pictures sequentially, and video playing can be performed smoothly under the operation capability of the existing equipment. In order to reduce the amount of calculation of the mobile device in the process of playing the video file and improve the requirement of the player on the playing fluency, the invention plays the video pictures not sequentially and continuously, and jumps in the video in real time according to the operation of the user (namely the rotation of the mobile device). By using the conventional video playing technology, it is difficult to calculate the frame picture information of any random position in a short time. To achieve the requirement of smooth playing, at least 30 frames of pictures need to be switched every second, and if a conventional decoding technology is used, the corresponding video frames are decoded from the video in real time, which is far from achieving the requirement. Therefore, the invention firstly carries out preprocessing operation on the video file, namely, before the video is played, the video file is firstly decoded by using a conventional decoding mode, all pictures in the video are decoded and restored in advance and are cached in an image form. Therefore, in the playing process, the corresponding image data cached can be directly read, and the corresponding image is not decoded from the video. Meanwhile, aiming at the video file with longer time, the invention can reduce the decoding operation amount and avoid occupying too much running memory through a two-stage cache mechanism of memory and local file.
Fig. 9 is a schematic flowchart of a video playing control method based on mobile device rotation detection according to another embodiment of the present invention.
In this embodiment, the method includes
S201, starting a camera of the mobile equipment to record a video, collecting attitude data of the mobile equipment in the video recording process, and generating a video file and corresponding file information comprising recording parameters, wherein the recording parameters comprise recording directions;
s202, storing the recorded video file to the local and/or uploading the recorded video file to the cloud;
s203, acquiring the video file, and judging whether the file information of the video file comprises the recording parameters, if so, executing S204, otherwise, executing S205.
S204, determining a rotating shaft according to the recording parameters, and controlling the video to play according to the rotating shaft and the attitude data; the recording parameters are set by taking the rotation angle of the rotary-shaft mobile phone on one rotary shaft of an x-axis (left and right in the vertical screen process or up and down in the horizontal screen process) or a y-axis (up and down in the vertical screen process or left and right in the horizontal screen process) as an example.
And S205, controlling the video to play according to the attitude data and the default rotating shaft direction. In this embodiment, the default of the rotation direction is the positive direction of the rotation of the y-axis direction of the terminal, the maximum rotation angle is dynamically set to Rmax according to the video frame number of the video file, and each frame of the video file is uniformly distributed in the interval from 0 to Rmax.
Fig. 10 is a flowchart illustrating a video playback control method according to another embodiment of the present invention, which applies the video playback controller based on mobile device rotation detection.
The method in this embodiment includes the following steps:
s301, acquiring gesture data of the rotating mobile equipment in the process of playing the video file, wherein the gesture data comprises a rotating direction and an angle;
s302, receiving the attitude data, and playing the video file according to the attitude data so as to control the playing progress, direction and speed of the video file;
and S303, playing the background music selected by the user while the user watches the video picture.
While certain exemplary embodiments of the present invention have been described above by way of illustration only, it will be apparent to those of ordinary skill in the art that the described embodiments may be modified in various different ways without departing from the spirit and scope of the invention. Accordingly, the drawings and description are illustrative in nature and should not be construed as limiting the scope of the invention.

Claims (10)

1. A video playing controller based on mobile device rotation detection is characterized by comprising
The video playing device comprises a rotation detection module, a video playing module and a video playing module, wherein the rotation detection module is used for collecting attitude data of the rotating mobile device in the process of playing a video file and sending the attitude data to the video playing module, and the attitude data comprises a rotating direction and an angle;
and the video playing module is used for receiving the attitude data and playing the video file according to the data so as to control the playing progress, direction and speed of the video file.
2. The mobile device rotation detection-based video playback controller of claim 1, wherein the video playback module comprises
The video reading unit is used for reading and decoding the video file, obtaining a video image and the video frame number thereof, caching, and buffering to obtain a video frame image set;
the progress calculation unit is used for calculating the corresponding relation between the video frame and the rotation angle according to the video frame number;
and the playing progress unit is used for acquiring the rotating direction and the angle of the mobile equipment according to the attitude data, inquiring the video frame image set, calculating the jumping direction and the jumping video frame of video playing according to the rotating direction and the angle, and controlling the current video frame to play the jumping video frame along the jumping direction.
3. The mobile device rotation detection-based video playback controller of claim 1, wherein the mobile device rotation detection-based video playback controller further comprises
The video recording unit is used for starting a camera of the mobile equipment to record videos, acquiring gesture data of the mobile equipment in the video recording process and generating video files and gesture data of the video recording process;
the video playing module also comprises
And the playing parameter judging unit is used for acquiring the video file, judging whether the video file comprises the attitude data of the recording process, if so, determining a rotating shaft according to the attitude data of the recording process, and controlling the video to play according to the rotating shaft and the attitude data, otherwise, controlling the video to play according to the default rotating shaft direction.
4. The mobile device rotation detection-based video playback controller of claim 3, wherein the video recording unit module further comprises
And the storage unit is used for storing the recorded video file to the local and/or uploading the recorded video file to the cloud.
5. The mobile device rotation detection-based video playback controller of claim 1, wherein the video playback module further comprises
And the audio playing unit is used for playing the background music selected by the user while the user watches the video picture.
6. A video playing control method based on mobile equipment rotation detection is characterized by comprising the following steps:
acquiring attitude data of rotating mobile equipment in the process of playing a video file, wherein the attitude data comprises a rotating direction and an angle;
and receiving the attitude data, and playing the video file according to the attitude data so as to control the playing progress, direction and speed of the video file.
7. The method of claim 6, wherein the receiving gesture data, retrieving and playing the video file according to the gesture data, so as to control the playing progress of the video file according to the gesture data comprises
Reading and decoding a video file to obtain a video image and a video frame number thereof, caching, and buffering to obtain a video frame image set;
calculating the corresponding relation between the video frame and the rotation angle according to the length of the video file;
and acquiring the rotation direction and angle of the mobile equipment according to the attitude data, inquiring the video frame image set, calculating the skip direction and skip video frame of video playing according to the rotation direction and angle, and controlling the current video frame to play the skip video frame along the skip direction.
8. The method of claim 6, wherein the method further comprises
Starting a camera of the mobile equipment to record videos, acquiring attitude data of the mobile equipment in the video recording process, and generating a video file and the attitude data of the video file in the recording process;
wherein receiving the gesture data, retrieving and playing the video file according to the gesture data to control the playing progress of the video file according to the gesture data further comprises
And acquiring a video file, judging whether the video file comprises the attitude data of the recording process, if so, determining a rotating shaft according to the attitude data of the recording process, and controlling the video to play according to the rotating shaft and the attitude data, otherwise, controlling the video to play according to the default rotating shaft direction.
9. The method of claim 8, wherein the generating the video recording file further comprises
And storing the recorded video file to the local and/or uploading the recorded video file to the cloud.
10. The method of claim 6, wherein receiving gesture data and playing a video file according to the gesture data to control progress, direction and speed of playing the video file further comprises
And playing the background music selected by the user while the user watches the video picture.
CN201710412102.8A 2017-06-02 2017-06-02 A kind of video play controller and control method based on mobile device rotation detection Pending CN107547930A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710412102.8A CN107547930A (en) 2017-06-02 2017-06-02 A kind of video play controller and control method based on mobile device rotation detection

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710412102.8A CN107547930A (en) 2017-06-02 2017-06-02 A kind of video play controller and control method based on mobile device rotation detection

Publications (1)

Publication Number Publication Date
CN107547930A true CN107547930A (en) 2018-01-05

Family

ID=60965665

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710412102.8A Pending CN107547930A (en) 2017-06-02 2017-06-02 A kind of video play controller and control method based on mobile device rotation detection

Country Status (1)

Country Link
CN (1) CN107547930A (en)

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650554A (en) * 2018-04-26 2018-10-12 维沃移动通信有限公司 A kind of multimedia file broadcasting control method and mobile terminal
CN108965711A (en) * 2018-07-27 2018-12-07 广州酷狗计算机科技有限公司 Method for processing video frequency and device
CN112383827A (en) * 2020-11-10 2021-02-19 北京乐学帮网络技术有限公司 Video playing control method and device
CN112967598A (en) * 2021-01-29 2021-06-15 京东方智慧物联科技有限公司 Display system control method and device and display system
CN112997508A (en) * 2019-12-30 2021-06-18 深圳市大疆创新科技有限公司 Video processing method, device, control terminal, system and storage medium
CN113795448A (en) * 2019-05-20 2021-12-14 因温特奥股份公司 Method and device for visualizing a spare part

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394451A (en) * 2014-12-05 2015-03-04 宁波菊风系统软件有限公司 Video presenting method for intelligent mobile terminal
CN105357585A (en) * 2015-08-29 2016-02-24 华为技术有限公司 Method and device for playing video content at any position and time
CN105847850A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Panorama video real time playing method and apparatus
CN106454401A (en) * 2016-10-26 2017-02-22 乐视网信息技术(北京)股份有限公司 Method and device for playing video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104394451A (en) * 2014-12-05 2015-03-04 宁波菊风系统软件有限公司 Video presenting method for intelligent mobile terminal
CN105357585A (en) * 2015-08-29 2016-02-24 华为技术有限公司 Method and device for playing video content at any position and time
CN105847850A (en) * 2016-03-28 2016-08-10 乐视控股(北京)有限公司 Panorama video real time playing method and apparatus
CN106454401A (en) * 2016-10-26 2017-02-22 乐视网信息技术(北京)股份有限公司 Method and device for playing video

Cited By (12)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108650554A (en) * 2018-04-26 2018-10-12 维沃移动通信有限公司 A kind of multimedia file broadcasting control method and mobile terminal
CN108965711A (en) * 2018-07-27 2018-12-07 广州酷狗计算机科技有限公司 Method for processing video frequency and device
CN108965711B (en) * 2018-07-27 2020-12-11 广州酷狗计算机科技有限公司 Video processing method and device
CN113795448A (en) * 2019-05-20 2021-12-14 因温特奥股份公司 Method and device for visualizing a spare part
CN113795448B (en) * 2019-05-20 2024-03-19 因温特奥股份公司 Method and device for visualizing spare parts
CN112997508A (en) * 2019-12-30 2021-06-18 深圳市大疆创新科技有限公司 Video processing method, device, control terminal, system and storage medium
CN112997508B (en) * 2019-12-30 2024-03-15 深圳市大疆创新科技有限公司 Video processing method, device, control terminal, system and storage medium
CN112383827A (en) * 2020-11-10 2021-02-19 北京乐学帮网络技术有限公司 Video playing control method and device
CN112383827B (en) * 2020-11-10 2023-03-31 北京乐学帮网络技术有限公司 Video playing control method and device
CN112967598A (en) * 2021-01-29 2021-06-15 京东方智慧物联科技有限公司 Display system control method and device and display system
US11821571B2 (en) 2021-01-29 2023-11-21 Boe Intelligent Iot Technology Co., Ltd. Playback control method, apparatus system, electronic device and storage medium
CN112967598B (en) * 2021-01-29 2024-05-17 京东方智慧物联科技有限公司 Control method and device of display system and display system

Similar Documents

Publication Publication Date Title
AU2019216671B2 (en) Method and apparatus for playing video content from any location and any time
JP6944564B2 (en) Equipment and methods for gaze tracking
CN107547930A (en) A kind of video play controller and control method based on mobile device rotation detection
JP6708689B2 (en) 3D gameplay sharing
US11471760B2 (en) Systems and methods for enabling time-shifted coaching for cloud gaming systems
US10812868B2 (en) Video content switching and synchronization system and method for switching between multiple video formats
JP6410918B2 (en) System and method for use in playback of panoramic video content
JP5920708B2 (en) Multi-view video stream viewing system and method
JP4148671B2 (en) Display image control processing apparatus, moving image information transmission / reception system, display image control processing method, moving image information transmission / reception method, and computer program
US11997413B2 (en) Media content presentation
US10701282B2 (en) View interpolation for visual storytelling
US9055272B2 (en) Moving image reproduction apparatus, information processing apparatus, and moving image reproduction method
US20230109047A1 (en) Methods and apparatus for re-stabilizing video in post-processing
US20210144358A1 (en) Information-processing apparatus, method of processing information, and program
KR20160114481A (en) Method of Recording and Replaying Game Video by Object State Recording
JP5592264B2 (en) Editing device, editing method and editing program
KR102685040B1 (en) Video production device and method based on user movement record
WO2022065040A1 (en) Information processing device, information processing method, and information processing system
US20210400255A1 (en) Image processing apparatus, image processing method, and program
JP6214365B2 (en) Image reproduction apparatus, control method thereof, and control program
JP2021129215A (en) Video reproduction apparatus, video generation apparatus, video generation method, and video generation program
Bares et al. Virtual camera scouting with 3DOF motion trackers

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
TA01 Transfer of patent application right

Effective date of registration: 20210108

Address after: 100085 1-610-632, 5 / F, building 1, yard 35, Shangdi East Road, Haidian District, Beijing

Applicant after: Huihai Yinhe (Beijing) Technology Co.,Ltd.

Address before: 100089 commercial building 4-129, 2nd floor, building 1, 66 Zhongguancun East Road, Haidian District, Beijing

Applicant before: BEIJING XIAOHEI TECHNOLOGY Co.,Ltd.

TA01 Transfer of patent application right
RJ01 Rejection of invention patent application after publication

Application publication date: 20180105

RJ01 Rejection of invention patent application after publication