WO2017118320A1 - Mobile terminal, video processing apparatus and method thereof - Google Patents

Mobile terminal, video processing apparatus and method thereof Download PDF

Info

Publication number
WO2017118320A1
WO2017118320A1 PCT/CN2016/112360 CN2016112360W WO2017118320A1 WO 2017118320 A1 WO2017118320 A1 WO 2017118320A1 CN 2016112360 W CN2016112360 W CN 2016112360W WO 2017118320 A1 WO2017118320 A1 WO 2017118320A1
Authority
WO
WIPO (PCT)
Prior art keywords
video
geographic location
file
mobile terminal
location information
Prior art date
Application number
PCT/CN2016/112360
Other languages
French (fr)
Chinese (zh)
Inventor
林月贡
吴林波
Original Assignee
努比亚技术有限公司
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
Priority claimed from CN201610005052.7A external-priority patent/CN105681713A/en
Priority claimed from CN201610037835.3A external-priority patent/CN105578269B/en
Application filed by 努比亚技术有限公司 filed Critical 努比亚技术有限公司
Publication of WO2017118320A1 publication Critical patent/WO2017118320A1/en

Links

Images

Classifications

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

Definitions

  • the present application relates to the field of video processing, and in particular, to a mobile terminal and a video processing apparatus and method thereof.
  • Mobile terminals such as smart phones, tablets, etc.
  • crop the video requiring the user to manually select or input the starting position and ending position of the cropping. It is often not possible to crop the video clips required by the user very accurately, for example, for different spans.
  • the user manually sets the time point at which the video is segmented, and often the video cannot be segmented into video file segments taken in different geographic regions.
  • Video recording is usually performed by a mobile terminal acquiring video data through a camera, and acquiring audio data through a microphone, and encoding the video data and the audio data separately into a video file.
  • the video file usually only has two kinds of information, video and audio, or you can add subtitle information instead of recording more information.
  • the existing mobile terminal's video recording technology can provide a method for recording a geographic point, but cannot easily record the recorded audio and video and geography.
  • the location is associated, and multiple geographic trajectories experienced by the entire shot cannot be recorded.
  • the present invention provides a mobile terminal and a video processing apparatus and method thereof, which are intended to record continuous geographic location information that a mobile terminal passes during video recording, and perform video file based on different geographic regions of the collected video file. Precise segmentation.
  • a mobile terminal where the mobile terminal includes:
  • a camera configured to perform video capture to obtain video data
  • the controller is configured to control the camera to acquire the video data, and write the geographic location where the mobile terminal is located when the camera collects the video data, and write the video data based on the Writing video data of the geographical location to generate a video file;
  • the controller is further configured to determine a granularity of a geographic location interval used for segmenting the video file, and determine a geographic location interval corresponding to the granularity to which the geographic location of the video data in the video file belongs, based on The time axis of the video file determines a time interval corresponding to a geographic location interval of the video data in the video file, and the video file is segmented according to the determined time interval to obtain a video file corresponding to the geographic location interval. Fragment.
  • the controller is further configured to identify the time interval based on a time axis of the video file, and divide the video file according to the identified time interval to obtain a video file segment, which will have the same The video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographic location interval.
  • the controller is further configured to acquire a preset first geographic location interval corresponding to the granularity, and determine a first time corresponding to the first geographic location interval on a time axis of the video file. a time interval; filtering, according to a time axis of the video file, the video file segment corresponding to the first time interval in the video file to be updated, and updating the video file to perform segmentation processing A video file fragment corresponding to the geographic location interval.
  • the controller is further configured to acquire a geographic location of the mobile terminal in each collection period of the camera, and write the acquired geographic location to the camera, where the camera collects in a corresponding collection period.
  • Video data wherein each of the acquisition periods includes at least one video frame.
  • the mobile terminal is provided with a location information module and a mobile communication module. At least one of a block and a wireless internet module;
  • the location information module is configured to receive a positioning signal and output a geographic location of the mobile terminal
  • the mobile communication module is configured to receive a geographic location of the mobile terminal determined by the wireless communication system based on the resident cell information of the mobile communication module;
  • the wireless internet module is configured to detect a device identifier of the network access device, and send the device identifier of the network access device to the server side, where each collection period of the environment is collected based on the device of the network access device Identifying, by the server side, a geographical location associated with the device identifier as a geographic location of the mobile terminal;
  • the controller is further configured to read geographic location information output by the location information module during each acquisition period of the camera and write video data obtained by the camera to collect the environment during a corresponding collection period.
  • a video processing method comprising:
  • the video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
  • the segmentation process of the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval includes:
  • Identifying the time interval based on the time axis of the video file segmenting the video file based on the identified time interval to obtain a video file segment, and combining video file segments having the same geographic location to obtain the geographic location A video file fragment corresponding to the interval.
  • the segmentation process of the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval includes:
  • the collecting, by the environment, the video data, and writing the geographic location where the mobile terminal is located when the environment is collected includes:
  • each of the collection periods includes at least one Video frame.
  • the method further includes:
  • the geographic location of the mobile terminal is obtained by using at least one of the following manners:
  • Detecting a device identifier of the network access device and transmitting, to the server side, a device identifier of the network access device, where the device identifier of the network access device is acquired and
  • the geographical location associated with the device identification is the geographic location of the mobile terminal.
  • a video processing apparatus including:
  • the audio and video acquisition module is configured to: after the mobile terminal starts the recording function, acquire video data and audio data, mark the recorded first time stamp for the video data, and encode the video data to generate a video data packet, and Marking the recorded second time stamp for the audio data, and encoding the audio data to generate an audio data packet;
  • the location information obtaining module is configured to acquire the geographical location information recorded by the mobile terminal every preset time, and mark the third time stamp recorded by the geographical location information;
  • a hybrid generation module configured to write the video data packet, the audio data packet, and the geographic location information into a recording file, to record a video with continuous geographic location information, for the mobile terminal to follow the first
  • the recording file is played back in the order of the timestamp, the second timestamp, and the third timestamp.
  • the hybrid generation module is further configured to: the first timestamp and the second timestamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively And the third timestamp, the video data packet, the audio data packet, and the geographic location information are mixed into the recording file in chronological order.
  • the hybrid generation module is further configured to: according to the video data and the first timestamp and the second timestamp corresponding to the audio data, the video data packet and the The audio data packet is mixed into the video file in chronological order, and the geographical location information is written into the geographic location information file according to the third timestamp; and after receiving the end recording instruction, the video file is And splicing and writing the recording file with the geographical location information file.
  • the video processing device further includes:
  • a setting module configured to receive a user setting instruction, and set the preset time interval for acquiring the geographical location information according to the user setting instruction.
  • another mobile terminal comprising the video processing device of the above structure.
  • another video processing method including:
  • the mobile terminal After the mobile terminal starts the recording function, acquiring video data and audio data, marking the recorded first time stamp for the video data, encoding the video data to generate a video data packet, and marking the audio data for the audio data Recording a second timestamp and encoding the audio data to generate an audio data packet;
  • writing the video data packet, the audio data packet, and the geographic location information into the recording file includes:
  • the video data packet based on the first timestamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information, respectively.
  • the audio data packet and the geographical location information are mixed and written into the recording file in chronological order.
  • the method includes:
  • the time stamp of the image is obtained by encoding the video data and the audio data obtained by continuing to obtain the video data packet and the audio data packet, and the obtained video data packet, the audio data packet and the geographical location information are sequentially written into the recording file in chronological order. .
  • writing the video data packet, the audio data packet, and the geographic location information into the recording file includes:
  • the video file and the geographical location information file are spliced into the recording file.
  • the acquiring, by the preset time, the geographical location information recorded by the mobile terminal, before the third timestamp recorded by the geographical location information mark includes:
  • the mobile terminal and the video processing apparatus and method thereof for implementing the embodiments of the present invention have the following beneficial effects: recording continuous geographic location information that the mobile terminal passes during video recording, and improving audio and video and geographic location that the mobile terminal will record The convenience of association is performed, and the video files are accurately segmented based on different geographical regions of the collected video files.
  • FIG. 1 is a schematic diagram of an optional hardware structure of a mobile terminal embodying various embodiments of the present invention
  • FIG. 2 is a schematic diagram of an alternative electrical structure of a camera in a mobile terminal embodying various embodiments of the present invention
  • FIG. 3 is a schematic diagram of splitting a video file according to an embodiment of the present invention.
  • FIG. 4 is a schematic diagram of still another optional hardware structure of a mobile terminal implementing various embodiments of the present invention.
  • FIG. 5 is a schematic diagram of another optional hardware structure of a mobile terminal implementing various embodiments of the present invention.
  • FIG. 6 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 5;
  • FIG. 7 is a schematic flowchart of a video processing method according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of a functional module of a video processing apparatus according to an embodiment of the present disclosure.
  • FIG. 9 is a schematic diagram of a first structure for writing a video data packet, an audio data packet, and geographic location information into a recording file according to the present invention.
  • FIG. 10 is a schematic diagram of a second structure for writing a video data packet, an audio data packet, and geographic location information into a recording file according to the present invention
  • FIG. 11 is a schematic diagram of another functional module of a video processing apparatus according to an embodiment of the present disclosure.
  • FIG. 12 is another schematic flowchart of a video processing method according to an embodiment of the present disclosure.
  • FIG. 13 is still another schematic flowchart of a video processing method according to an embodiment of the present invention.
  • the mobile terminal can be implemented in various forms.
  • the terminal described in the present invention can be packaged Mobile terminals such as mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (tablets), PMPs (portable multimedia players), navigation devices, and the like, and such as digital TVs, desktops
  • a fixed terminal such as a computer.
  • the terminal is a mobile terminal.
  • configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
  • the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 10, an interface unit 170, and a controller 180. And a power supply unit 190.
  • Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network.
  • the wireless communication unit can include a location information module 115.
  • the location information module 115 is a module for checking or acquiring location information of the mobile terminal.
  • a typical example of the location information module 115 is a GPS (Global Positioning System) module.
  • the location information module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information based on longitude, latitude, and altitude.
  • the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite. Further, the location information module 115 can calculate the speed information by continuously calculating the current location information in real time.
  • the A/V input unit 120 is for receiving an audio or video signal.
  • the A/V input unit 120 may include a camera 121 that is loaded by an image capture in a video capture mode or an image capture mode.
  • the obtained image data of the still picture or video is processed.
  • the processed image frame can be displayed on the display unit 151.
  • the image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the configuration of the mobile terminal.
  • FIG. 2 is a block diagram showing the electrical structure of the camera 121.
  • the photographic lens 1211 is composed of a plurality of optical lenses for forming a subject image, and is a single focus lens or a zoom lens.
  • the photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance.
  • the lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217.
  • An imaging element 1212 is disposed on the optical axis of the photographic lens 1211 near the position of the subject image formed by the photographic lens 1211.
  • the imaging element 1212 is for capturing an image of a subject and acquiring captured image data.
  • Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode.
  • the front surface of each pixel is provided with a Bayer array of RGB color filters.
  • the imaging element 1212 is connected to the imaging circuit 1213.
  • the imaging circuit 1213 performs charge accumulation control and image signal readout control in the imaging element 1212, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
  • the imaging circuit 1213 is connected to an A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
  • A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
  • the bus 1227 is a transmission path for transmitting various data read or generated inside the camera. path.
  • the A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, a SDRAM (Synchronous Dynamic Random Access Memory) 1218, and a memory interface are also connected. (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display) driver 1220.
  • the image processor 1215 performs various kinds of images such as OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 1212. deal with.
  • the JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display.
  • the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226.
  • the JPEG method is adopted as the image compression/decompression method.
  • the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
  • the microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera.
  • the microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
  • the operating unit 1223 includes, but is not limited to, a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, an enlarge button
  • the operation controls such as various input buttons and various input keys detect the operation state of these operation controls.
  • the detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217.
  • the microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
  • the flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217. Micro The computer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
  • the SDRAM 1218 is an electrically rewritable volatile memory for temporarily storing image data or the like.
  • the SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
  • the memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225.
  • the recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body.
  • the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
  • the LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218.
  • the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed.
  • the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
  • the LCD 1226 is configured to display an image on the back of the camera body.
  • the LCD 1226 LCD is not limited thereto, and various display panels (LCD 1226) such as an organic EL may be used.
  • various display panels such as an organic EL may be used.
  • the present invention is not limited thereto, and various display panels such as an organic EL may be used.
  • the interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal.
  • the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more.
  • the identification module may be stored to verify various information used by the user to use the mobile terminal and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identification Module (USIM) and many more.
  • UIM User Identification Module
  • SIM Customer Identification Module
  • USB Universal Customer Identification Module
  • the device having the identification module may take the form of a smart card, and thus the identification device may be connected to the mobile terminal via a port or other connection device.
  • the interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal or can be used in the mobile terminal and external device Transfer data between.
  • the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal or may be used as a form through which various command signals input from the base are allowed to be transmitted to the mobile terminal. path.
  • Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
  • the output unit 150 is configured to visually output a signal (eg, a video signal).
  • the output unit 150 may include a display unit 151.
  • the display unit 151 can display information processed in the mobile terminal. For example, when the mobile terminal is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal is in the video call mode or the image capturing mode, the display unit 151 may display the captured image and/or the received image, a UI or GUI showing the video or image and related functions, and the like.
  • UI user interface
  • GUI graphical user interface
  • the display unit 151 can function as an input device and an output device.
  • the display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like.
  • LCD liquid crystal display
  • TFT-LCD thin film transistor LCD
  • OLED organic light emitting diode
  • a flexible display a three-dimensional (3D) display, and the like.
  • 3D three-dimensional
  • Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like.
  • TOLED Transparent Organic Light Emitting Diode
  • the mobile terminal may comprise two or more display units (or other display devices), for example, the mobile terminal may comprise an external display unit (not shown) And an internal display unit (not shown).
  • the touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
  • the memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
  • the memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like.
  • the mobile terminal can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
  • the controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
  • the power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
  • the various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof.
  • the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle.
  • implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation.
  • the software code can be implemented by a software application (or program) written in any suitable programming language, the software code can It is stored in the memory
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the location information module 115 can be implemented as a GPS module that receives the positioning signal and outputs the geographic location of the mobile terminal, such as a geographic location in the form of latitude and longitude, plane coordinates, and spherical coordinates.
  • the camera performs video capture on the environment to obtain video data, such as video data in AVI, MP4, etc., and stores it in the memory 160.
  • the controller 180 writes the geographic location to the video data obtained by the camera in the corresponding acquisition cycle collection environment in the geographic location output by the read location information module 115 of each acquisition cycle of the camera, wherein each acquisition cycle of the camera and at least one video Frame correspondence (that is, the camera captures at least one video frame in one acquisition cycle); generates a video file based on the video data written to the geographic location.
  • the controller 180 determines the granularity of the geographic location interval used for segmenting the video file (for example, an urban area, a county, and the like. In actual implementation, the granularity may be determined based on an instruction of the user, or may be determined according to a historical moving range of the mobile terminal), and determined.
  • the geographical location corresponding to the granularity to which the geographic location of the video data belongs in the video file (the geographical location area here corresponds to the foregoing granularity, and if the granularity is the urban area, the video data of each collection period in the video file is determined to belong to
  • the geographical location interval that is, the geographical location interval in which the mobile terminal is located when determining the video data of each collection period in the video file, and determining the geographic location of the video data in the video file (corresponding to different collection periods) based on the time axis of the video file
  • the time interval of the interval attribution the video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
  • the controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, if at least two video file segments exist
  • the video file segments belonging to the same geographical location are merged to obtain a video file segment corresponding to the geographical location interval; for example, referring to FIG. 3, four video file segments are obtained by segmentation, corresponding to belonging to Baoan.
  • the first and third video file segments are combined to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District (only shown in Figure 3).
  • the merged video file corresponding to Baoan District is selected.
  • the video file segment is named after the geographical location of the video file.
  • An example of the video file segment obtained after the segmentation is: Baoan District. MP4; Nanshan District .MP4 and Futian District IV. MP4.
  • the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
  • the controller 180 acquires a preset first geographic location interval corresponding to the granularity. For example, when the user uses the camera to collect environment generated video files in the Baoan District, Nanshan District, and Futian District, the control display unit 151 displays Geographical location of video data in video files: Baoan District, Nanshan District and Futian District.
  • the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file.
  • a time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated.
  • the video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
  • the geographic location of each slave acquisition period is detected based on the GPS mode, and the geographic location corresponding to the video data (such as video data of each collection period) in the video file is determined.
  • the time interval used for segmentation of the video file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, when the mobile terminal is implemented as a driving recorder,
  • the video files are divided according to different geographical interval information, and it is possible to quickly know which areas have passed, and play the corresponding video to know what is happening in the area.
  • FIG. 2 is a schematic diagram showing the hardware structure of the mobile terminal according to the embodiment.
  • the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 160, and an interface unit. 170, controller 180 and power supply unit 190, and the like.
  • Figure 4 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network.
  • the wireless communication unit 110 can include a wireless internet module 113.
  • the wireless internet module 113 supports wireless internet access of the mobile terminal.
  • the module can be internally or externally coupled to the mobile terminal.
  • the wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
  • the wireless internet module 113 can be implemented as a wireless compatibility (WiFi) module for detecting a device identifier (such as a MAC address) of a network access device (such as a wireless router, a wireless access point) used by the wireless internet module 113 to access the network. And so on, because the terminal device accessing the network through the network access device inevitably uses the location service, the server side can collect the geographical location when the terminal device uses the location service and associate with the identifier of the network access device; Once the mobile terminal can send the device identifier of the network access device to the server side, the collection is performed.
  • WiFi wireless compatibility
  • the location of the network access device is obtained based on the device identifier of the network access device, and the geographic location associated with the device identifier is obtained as the geographic location of the mobile terminal. Even if the geographic location of the network access device is updated, the network access can be obtained in time. The latest geographic location of the device as the geographic location of the mobile terminal.
  • the camera 121 performs video capture on the environment to obtain video data, such as video data in a format such as AVI, MP4, and the like, and stores it in the memory 160.
  • the controller 180 writes the geographic location to the video data obtained by the camera 121 in the corresponding collection period in the geographic location output by the reading wireless internet module 113 of each acquisition cycle of the camera 121, wherein each acquisition cycle of the camera 121 is At least one video frame corresponds (that is, the camera 121 acquires at least one video frame in one acquisition cycle); and generates a video file based on the video data written to the geographic location.
  • the controller 180 determines the granularity of the geographic location interval used for segmenting the video file (for example, an urban area, a county, and the like. In actual implementation, the granularity may be determined based on an instruction of the user, or may be determined according to a historical moving range of the mobile terminal), and determined.
  • the geographical location corresponding to the granularity to which the geographic location of the video data belongs in the video file (the geographical location area here corresponds to the foregoing granularity, and if the granularity is the urban area, the video data of each collection period in the video file is determined to belong to
  • the geographical location interval that is, the geographical location interval in which the mobile terminal is located when determining the video data of each collection period in the video file, and determining the geographic location of the video data in the video file (corresponding to different collection periods) based on the time axis of the video file
  • the time interval of the interval attribution the video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
  • the controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, and if there are at least two video file segments belonging to the same geographical location interval, the controller will belong to the same
  • the video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographical interval; for example, four video file segments are obtained by segmentation, corresponding to four geographic locations belonging to Baoan District, Baoan District, Nanshan District and Futian District. In the interval, the first two video file segments are merged to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District.
  • the video file segment is named after the geographical location to which it belongs, and is obtained after segmentation.
  • the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
  • the controller 180 acquires a preset first geographic location interval corresponding to the granularity, for example, when the user uses the camera 121 to collect environment generated video files in Baoan District, Nanshan District and Futian District, and controls the display unit.
  • 151 shows the geographical location of the video data in the video file: Baoan District, Nanshan District and Futian District.
  • the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file.
  • a time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated.
  • the video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
  • the geographic location of each slave acquisition period is detected based on the WiFi mode, and the GPS module is not required to be set in the mobile terminal, and the video is determined based on the geographic location of the video data (such as video data of each collection period) in the video file.
  • the time interval used for segmentation of the file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, the mobile terminal is implemented as a driving recorder.
  • the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 160, and an interface unit. 170, controller 180 and power supply unit 190, and the like.
  • Figure 5 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
  • Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network.
  • the wireless communication unit can include a mobile communication module 112.
  • the mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server.
  • a base station e.g., an access point, a Node B, etc.
  • Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
  • the mobile terminal has been described in terms of its function.
  • a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
  • the mobile terminal as shown in FIG. 5 can be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
  • Such communication systems may use different air interfaces and/or physical layers.
  • the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), code. Divisional Multiple Access (CDMA) and Universal Mobile Telecommunications System (UMTS) (particularly, Long Term Evolution (LTE)), Global System for Mobile Communications (GSM), and the like.
  • FDMA Frequency Division Multiple Access
  • TDMA Time Division Multiple Access
  • CDMA Code Divisional Multiple Access
  • UMTS Universal Mobile Telecommunications System
  • LTE Long Term Evolution
  • GSM Global System for Mobile Communications
  • the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
  • a CDMA wireless communication system may include a plurality of mobile terminals, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280.
  • the MSC 280 is configured to interface with a public switched telephone network (PSTN) 290.
  • PSTN public switched telephone network
  • the MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line.
  • the backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be understood that the system as shown in Figure 4 can include multiple BSC 2750s.
  • Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
  • BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology.
  • BTS Base Transceiver Subsystem
  • the term "base station” can be used to generally refer to a single BSC 275 and at least one BS 270.
  • a base station can also be referred to as a "cell station.”
  • each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
  • a broadcast transmitter (BT) 295 transmits a broadcast signal to a mobile terminal operating within the system.
  • a broadcast receiving module 111 as shown in FIG. 5 is provided at the mobile terminal to receive a broadcast signal transmitted by the BT 295.
  • GPS Global Positioning System
  • Satellite 300 helps locate at least one of a plurality of mobile terminals.
  • a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites.
  • the GPS module 115 as shown in Figure 1 is typically constructed to The satellite 300 cooperates to obtain the desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
  • BS 270 receives reverse link signals from various mobile terminals.
  • Mobile terminals typically participate in calls, messaging, and other types of communications.
  • Each reverse link signal received by a particular base station 270 is processed within a particular BS 270.
  • the obtained data is forwarded to the relevant BSC 275.
  • the BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270.
  • the BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290.
  • PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to the mobile terminal.
  • the present embodiment is proposed based on the above-described mobile terminal hardware structure and communication system.
  • the mobile communication module 112 receives the geographic location of the mobile terminal determined by the wireless communication system based on the camped cell information of the mobile communication module 112, and the wireless communication system determines the mobile terminal based on the cell identification number (Cell-ID number) of the cell in which the mobile terminal resides. Geographic location. As long as the wireless communication system can collect the geographical location of the cell base station where the mobile terminal is located on the map and the coverage radius of the cell, when the mobile terminal registers with the cell, the wireless communication system can determine which cell the mobile terminal is in, and move. The positioning accuracy of the terminal in the cell depends on the cell radius.
  • the camera 121 performs video capture on the environment to obtain video data, such as video data in a format such as AVI, MP4, and the like, and stores it in the memory 160.
  • the controller 180 writes the geographic location to the video data obtained by the camera 121 in the corresponding collection period in the geographic location output by the reading wireless internet module 113 of each acquisition cycle of the camera 121, wherein each acquisition cycle of the camera 121 is At least one video frame corresponds (that is, the camera 121 acquires at least one video frame in one acquisition cycle); and generates a video file based on the video data written to the geographic location.
  • the controller 180 determines the granularity of the geographic location interval used to segment the video file (eg, For example, in an urban area, a county, or the like, the actual implementation granularity may be determined based on a user's instruction, or may be determined according to a historical mobile range of the mobile terminal, and determine a geographical interval corresponding to the granularity of the geographic location of the video data in the video file.
  • the geographical area here corresponds to the foregoing granularity. If the granularity is the urban area, the geographical location of the video data in each collection period in the video file is determined, that is, the video data of each collection period in the video file is determined to be moved.
  • the geographic location interval in which the terminal is located determines a time interval to which the geographic location of the video data in the video file belongs (corresponding to different acquisition periods), and divides the video file based on the determined time interval.
  • a video file fragment corresponding to the geographic location interval is obtained.
  • the controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, and if there are at least two video file segments belonging to the same geographical location interval, the controller will belong to the same
  • the video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographic location interval; for example, four video file segments are obtained by segmentation, corresponding to four geographic location ranges belonging to Baoan District, Baoan District, Nanshan District and Futian District, Combine the first two video file segments to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District.
  • the video file segment is named after the geographical location segment to which it belongs, and the video file segment obtained after segmentation is obtained.
  • the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
  • the controller 180 acquires a preset first geographic location interval corresponding to the granularity. For example, when the user uses the camera 121 to collect environment generated video files in the Baoan District, Nanshan District, and Futian District, the control display unit 151 displays the video in the video file. Geographical location of the data: Baoan District, Nanshan District and Futian District.
  • the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file.
  • a time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated.
  • the video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
  • the geographic location of each slave acquisition period is detected based on the WiFi mode, and the GPS module is not required to be set in the mobile terminal, and the video is determined based on the geographic location of the video data (such as video data of each collection period) in the video file.
  • the time interval used for the segmentation of the file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, when the mobile terminal is implemented as a driving recorder, the collected
  • the video file is divided according to different geographical interval information, and it is possible to quickly know which areas have passed, and play the corresponding video to know what is happening in the area.
  • the first embodiment to the third embodiment respectively use the location information module 115, the wireless internet module 113, and the mobile communication module 112 to obtain the geographic location of the mobile terminal, and of course, any two modules or all three may be used in the implementation.
  • the manner of modules to cooperate to determine the geographic location of the mobile terminal ensures that the geographic location of the mobile terminal can always be obtained, for example, when the location information module 115 cannot receive the GPS signal, the geographic location output by the wireless internet module 113 and the mobile communication module 112 can be utilized.
  • To comprehensively determine the geographic location of the mobile terminal such as using the wireless internet module 113 and the mobile communication module 112 to output the intermediate location of the geographic location as the geographic location of the mobile terminal.
  • this embodiment describes a video processing method. Referring to FIG. 7, the following steps are included:
  • step 101 video recording is performed to obtain video data.
  • Step 102 Write the geographic location where the mobile terminal is located when the video data is collected to the video data, and generate a video file based on the video data written in the geographic location.
  • the geographic location of the mobile terminal is obtained by using at least one of the following methods:
  • the device identifier of the network access device is detected, and the device identifier of the network access device is sent to the server side, and the geographical location associated with the device identifier on the server side is obtained as the geographic location of the mobile terminal based on the device identifier of the network access device.
  • Step 103 Determine a granularity of a geographic location interval used for segmenting the video file, and determine a geographic location interval corresponding to the granularity to which the geographic location of the video data in the video file belongs.
  • Step 104 Determine a time interval corresponding to a geographic location interval of each video data based on a time axis of the video file, and perform segmentation processing on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
  • Determining the granularity of the geographic location interval used for segmenting the video file (for example, urban area, county, etc., in actual implementation, the granularity may be determined based on the user's instruction or divided according to the historical moving range of the mobile terminal), and the video file is determined.
  • the geographical location corresponding to the granularity to which the geographic location of the video data belongs (the geographical location here corresponds to the foregoing granularity, and if the granularity is the urban area, the geographical location of the video data of each collection period in the video file is determined.
  • the mobile terminal determines the time interval of the video file based on the time axis of the video file to determine the time interval of the geographic location interval with the video data in the video file (corresponding to different acquisition periods), and the video file is segmented based on the determined time interval.
  • Performing a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval if there are at least two video file segments belonging to the same geographical location interval, then belonging to the same geographical location
  • the video file segments are merged to obtain a video file segment corresponding to the geographical interval; for example, four video file segments are obtained by segmentation, corresponding to the four geographic regions belonging to Baoan District, Baoan District, Nanshan District and Futian District, and the first two are
  • the video file segments are merged to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District.
  • the video file segment is named after the geographical location of the video file segment, and one of the video file segments obtained after the segmentation is named.
  • the reading user sets a function to merge the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographical location to obtain the geographical location.
  • the video file segment corresponding to the interval; if not, the video file segment obtained after the segmentation is output.
  • a user obtains a video by using a camera to acquire a plurality of geographical interval collection environments
  • a video file segment of a part of the geographical interval is required, and no other geographical interval (here, the first geographical interval) is required.
  • the video file fragment obtains a preset first geographic location interval corresponding to the granularity, for example, when the user uses the camera to generate a video file in the collection environment of Baoan District, Nanshan District and Futian District, the geographic data of the video data in the video file is displayed.
  • Location range Baoan District, Nanshan District and Futian District.
  • the first time interval corresponding to the Futian District (the first geographical interval) on the time axis of the determined video file is determined. ; based on the timeline of the video file, filtering the video file segment corresponding to the first time interval to be updated
  • the video file and the updated video file segment only include the video data collected in Baoan District and Nanshan District, and the video file is segmented to obtain a video file segment corresponding to the geographical interval (Baoan District, Nanshan District).
  • the video processing method described in this embodiment has the following beneficial effects:
  • the video of a certain geographical interval in the video is removed, and the remaining video files are segmented into video file segments corresponding to different geographical locations.
  • the first embodiment to the third embodiment respectively use the location information module 115, the wireless internet module 113, and the mobile communication module 112 to obtain the geographic location of the mobile terminal, and of course, any two modules or all three may be used in the implementation.
  • the manner of modules to cooperate to determine the geographic location of the mobile terminal ensures that the geographic location of the mobile terminal can always be obtained, for example, when the location information module 115 cannot receive the GPS signal, the geographic location output by the wireless internet module 113 and the mobile communication module 112 can be utilized.
  • To comprehensively determine the geographic location of the mobile terminal such as using the wireless internet module 113 and the mobile communication module 112 to output the intermediate location of the geographic location as the geographic location of the mobile terminal.
  • the present invention Based on the hardware structure of the mobile terminal and the structure of the wireless communication system of the mobile terminal, the present invention also provides a video processing device and a video processing method corresponding to the video processing device.
  • the video processing device of this embodiment includes:
  • the audio and video acquisition module 10 is configured to acquire video data and audio data after the mobile terminal starts the recording function, mark the recorded first time stamp for the video data, and encode the video data to generate a video data packet. And marking the recorded second time stamp for the audio data, and encoding the audio data to generate an audio data packet;
  • the type of the mobile terminal may be set according to actual needs.
  • the mobile terminal may be a driving recorder, a mobile phone, an iPad, an aerial camera, a camera, or the like.
  • the mobile terminal is provided with a camera, a microphone, a navigation system, an encoder, a mixer, a memory, etc., wherein the camera is used for acquiring image information, and performing analog-to-digital conversion to form original video data (RAW data), and time stamping the RAW data. And sent to the video encoder.
  • the microphone is used to collect sound information, perform analog-to-digital conversion to form audio data (PCM data), time stamp the PCM data and send it to the audio encoder.
  • the encoder is divided into a video encoder and an audio encoder.
  • the video encoder encodes the video data sent by the camera.
  • the video encoder includes H.264, H.265, MPEG-4, VP8, etc., and the video encoder will encode the video data.
  • the video data is sent to the mixer.
  • the audio encoder encodes the audio data sent by the microphone, and the audio encoder includes AAC, MP3, AMR, etc., and the audio encoder sends the encoded audio and video data to the mixer.
  • the navigation system is used to periodically take the geographical location information of the mobile terminal during the recording process, that is, the latitude and longitude information (x, y), time stamp the geographical location information and send it to the mixer, and the navigation system may include GPS, Beidou navigation, GLONASS, etc. .
  • the mixer is used for encapsulating the audio and video data sent by the encoder and the geographical location information sent by the navigation system, packaging and writing the file, and storing it in the memory.
  • first, second, and third of the first timestamp, the second timestamp, and the third timestamp mentioned in the present invention are only for facilitating the distinction between acquiring video data, audio data, and geographic location information.
  • the corresponding timestamp is not the first timestamp, the second timestamp, and the third timestamp are sorted according to the timest order, and the three parts of obtaining video data, audio data, and geographic location information are asynchronously performed simultaneously.
  • Each has its own timestamp, and each part has its own internal order.
  • the mobile terminal After the mobile terminal starts the recording function, before starting to record the video, first make some preparations for the entire recording process, for example, initializing the camera, microphone, and so on. After the preparation work is completed, the mobile terminal invokes the audio and video acquisition module 10 to start acquiring image information through the camera, and performs analog-to-digital conversion of the collected image information into original video data, which is the first recorded for the video data mark.
  • the time stamp is used, and the video data is encoded by a video encoder such as H.264 or H.265 to generate a video data packet.
  • the audio and video acquisition module 10 starts to acquire sound information through the microphone, and performs analog-to-digital conversion of the collected sound information into audio data, and then marks the recorded second time stamp for the audio and video data, and encodes the audio through AAC or AMR.
  • the device encodes the audio data to generate an audio data packet.
  • the first timestamp and the second timestamp may be Beijing time for video recording.
  • the first timestamp or the second timestamp may be 8:30. It may also be a relative time from the start of recording to a time of 0.
  • the first time stamp or the second time stamp may be the 5th minute of recording.
  • the location information obtaining module 20 is configured to acquire the geographical location information recorded by the mobile terminal every preset time, and mark the recorded third time stamp for the geographical location information;
  • the mobile terminal invokes the location information acquiring module 20 to extract the geographic location information by using a navigation system such as GPS or Beidou navigation at the preset time.
  • a navigation system such as GPS or Beidou navigation
  • the preset time can be flexibly set according to the specific situation.
  • the mobile terminal currently recording is in "Shenzhen University"
  • the geographical location information obtained by the navigation system is (113.943044, 22.5407).
  • the obtained geographical location information marks the currently recorded third timestamp, and the third timestamp is consistent with the setting format of the first timestamp and the second timestamp mentioned above, and can be set as the relative time of Beijing time or recording. time.
  • the hybrid generation module 30 is configured to write the video data packet, the audio data packet, and the geographic location information into a recording file to record a video with continuous geographic location information, for the mobile terminal to follow the The recording file is played back in the order of a time stamp, the second time stamp, and the third time stamp.
  • the mobile terminal obtains the video data packet, the audio data packet and the geographical location information obtained by the above
  • the hybrid generation module 30 encapsulates the write recording file according to the format standard of the video container, and stores it in the memory for convenient storage and transmission.
  • the format standard of the video container may include mp4, mkv, rmvb, avi, and the like. Then, it is determined whether the instruction to end the recording is detected. If the instruction to end the recording is not detected, the above steps S10 to S30 are cyclically executed to acquire the audio and video data and the geographical location information, and respectively mark the corresponding time stamp. Write to the recording file. If the recording end command is detected, the recording ends, and the camera, microphone, navigation system, etc. are terminated, and data acquisition is no longer performed.
  • the obtained recording file includes a continuous audio track (Audio Track), a video track (Video Track), a Loc Track, and the like, and realizes recording a video with continuous geographical position information.
  • the mobile terminal plays back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp.
  • the generated video file includes a sequence of continuous geographic location information that the mobile terminal passes during the recording process, so that when the video is played back, the user can view the geographical location information when the video is recorded.
  • FIG. 9 a schematic diagram of generating a recording file for video recording, the mobile terminal according to the standard of the video container, the video data packet, the audio data packet, and the geographical location information. These three kinds of data are cross-stored to the recording file, and the video file header is written at the beginning of the recording file. After receiving the instruction to end the recording, the video file end is written at the end of the recording file.
  • Video represents a video data packet
  • Audio represents an audio data packet
  • Loc represents a geographic location information data packet.
  • the first obtained video data packet Video is written into the recording file, and then the obtained geographical location information Loc is written into the recording file.
  • the audio data packet Audio acquired in the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until the end of the recording instruction is received.
  • the driving recorder utilizes the method provided by the solution. After recording the video, you can easily view the driving route during playback, and you can know where the video is recorded at a certain point in time.
  • FIG. 10 a schematic diagram of generating a recording file for another video recording
  • the mobile terminal first mixes the video data packet and the audio data into a video file according to the standard of the video container, in the video. Write the video file header at the beginning of the file and the video file end at the end of the video file.
  • the geographical location information is stored in the geographic location information file, and then the geographical location information file is spliced to the end of the video file to form a recording file.
  • Video represents a video data packet
  • Audio represents an audio data packet
  • Loc represents a geographic location information data packet.
  • the first obtained video data packet Video is written into the video file, and then the obtained audio data packet Audio is written into the video file, and then the next time is obtained.
  • the acquired audio data packet Audio is written to the video file, and the data is continuously looped and mixed and written to the video file.
  • the loop sequentially writes the geographical location information Loc into the geographic location information file in chronological order. The recording is stopped until the end of the recording instruction is received, and the geographical location information file is stitched behind the video file to form a recording file. It can be understood that the geographic location information file can also be spliced in front of the video file.
  • the audio and video data or the geographical location information file is sequentially retrieved and played according to the time sequence.
  • the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographical change track of the captured video process.
  • FIG. 9 and FIG. 10 is only an example.
  • the three parts of the video data, the audio data, and the geographical location information are simultaneously asynchronously performed, and which one is requested to be written to the file, then the write is locked. After the write operation is completed, the lock is released, and other subsequent partial write requests are allowed, that is, the order in which Video, Audio, and Loc enter the write recording file is indefinite.
  • the number of acquired videos in the embodiment of the present invention The video data is encoded according to the first timestamp recorded, and the video data is encoded to generate a video data packet, and the recorded second audio data is marked with the second timestamp, and the audio data is encoded to generate an audio data packet.
  • the geographical location information recorded by the mobile terminal is obtained every preset time, the third time stamp recorded by the geographical location information is marked, and then the video data packet, the audio data packet and the geographical location information are written into the recording file to record the tape.
  • the mobile terminal can play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp.
  • the information that the mobile terminal can carry when performing video recording is enriched.
  • the geographic location information of the mobile terminal can be recorded while acquiring the audio and video, and the geographical location information is combined with the audio and video data.
  • the generated recording file includes a sequence of continuous geographical location information of the mobile terminal, and the geographical location information of the recorded video can be viewed when the video is played back.
  • the continuous geographical location information recorded by the mobile terminal during video recording is realized, and the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved.
  • the hybrid generation module 30 is further configured to: based on the video data packet, the audio.
  • the first time stamp, the second timestamp, and the third timestamp corresponding to the data packet and the geographic location information respectively, the video data packet, the audio data packet, and the geographic location Information is mixed into the recording file in chronological order.
  • the hybrid generation module 30 may be based on the first time stamp corresponding to the video data, and the second time stamp corresponding to the audio data. And the third timestamp corresponding to the geographical location information, and the video data, the audio data, and the geographical location information are encapsulated according to the chronological order of the obtained video, according to the format standard of the video container, such as mp4, mkv, rmvb, avi, etc. Record the file and store it.
  • the hybrid generation module 30 is further configured Set to determine whether the end of the recording command is detected; if so, then end the recording; if not, continue to obtain video data, audio data and geographic location information and respectively mark the corresponding timestamp, to continue to obtain the obtained video data and audio
  • the data is encoded to obtain a video data packet and an audio data packet, and the obtained video data packet, audio data packet, and geographical location information are sequentially written into the recording file in chronological order.
  • the mobile terminal can sequentially play according to the stored chronological order to record a video with continuous geographical location information.
  • the video data packet, the audio data packet, and the geographical location information are cross-stored to the recording file, and the video file header is written at the beginning of the recording file, and the first obtained video data packet Video is written.
  • the acquired geographical location information Loc is written into the recording file, and then the audio data packet Audio acquired at the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until received. Stop recording when the recording command ends, and write the end of the video file at the end of the recording file.
  • the video data, the audio data, and the geographical location information are cross-mixed and written into the recording file according to the timestamps corresponding thereto.
  • the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographically changed track of the captured video process.
  • the hybrid generation module 30 is further configured to: based on the video data and the audio data.
  • the video data packet and the audio data packet are mixed into a video file in chronological order, and the geographical location information is in accordance with the third The order of the time stamps is written into the geographic location information file; and after receiving the end recording instruction, the video file and the geographical location information file are spliced into the recording file.
  • the mobile terminal separates the acquired audio data and video data from the geographic location information.
  • the hybrid generation module 30 mixes the video data packet and the audio data packet into the video file in chronological order based on the first time stamp corresponding to the video data and the second time stamp corresponding to the audio data.
  • the geographical location information is mixed, that is, according to the format of the video container mp4, mkv, rmvb, avi, etc., the audio data package and the video data package are written into the video file and stored (excluding the geographical location information).
  • the geographical location information acquired every preset time is written into the geographic location information file in the order of the third timestamp.
  • the end recording instruction It is judged whether the end recording instruction is detected, and if the end recording instruction is not detected, the data is continuously looped for corresponding processing and storage.
  • the recording is ended, and the obtained video file and the geographical location information file are spliced into the recording file.
  • the geographic location information file can be spliced behind the video file so as not to affect the various information stored in the original video file. As shown in FIG. 10, the video data package and the audio data are mixed and stored in the video file, the video file header is written at the beginning of the video file, and the video file end is written at the end of the video file.
  • the geographical location information is stored in the geographic location information file, and after the recording is completed, the geographical location information file is stitched to the end of the video file to form a recording file.
  • the obtained audio data and video data are separately processed from the geographical location information and then combined.
  • the video file is mixed and written according to the acquisition time sequence of the video data packet and the audio data packet, and the geographical location information is acquired into the geographical location information file by the preset time interval, and the video file and the geographical location information file are spliced into the recording file. .
  • the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the continuous geographical location information recorded by the mobile terminal is recorded during the video recording.
  • the video processing apparatus further includes:
  • the setting module 40 is configured to receive a user setting instruction, and set the preset time interval for acquiring the geographical location information according to the user setting instruction.
  • the location information may be acquired by using the default preset time, or the preset time interval for obtaining the geographical location information may be changed according to the actual situation, and the user may be in the specified setting.
  • the interface may set the preset time so that the setting module 40 sets the preset time according to the received user setting instruction. For example, if the user walks the mobile terminal to perform video recording, the preset time can be set to 1 minute, and the navigation system acquires the geographical location information every minute. When the mobile terminal is mounted on the drone for long-term video recording, the user can update the preset time to 1 second, and the navigation system acquires the geographical location information every second.
  • the time interval for obtaining the geographical location information is reasonably set according to different situations, and the video with continuous geographical location information is recorded.
  • the geographical location associated with the recorded video can be conveniently viewed. information.
  • this embodiment can also be proposed based on the above second or third implementation.
  • the preset time interval for acquiring the geographic location information is flexibly set, so that the mobile terminal can obtain the geographical location information according to different recording situations, and realize the continuous geographical location information recorded by the mobile terminal during video recording. It enriches the information that the mobile terminal can carry when recording video.
  • the embodiment of the present invention further provides another mobile terminal, where the mobile terminal includes the video processing device of the above structure, that is, includes the audio and video acquiring module 10, and location information.
  • the mobile terminal can be a mobile phone, an iPad, a camera, or the like.
  • the video processing method of this embodiment includes:
  • Step S10 After the mobile terminal starts the recording function, acquiring video data and audio data, marking the recorded first time stamp for the video data, and encoding the video data to generate a video data packet, and for the audio Data tagging the recorded second timestamp and encoding the audio data to generate an audio data packet;
  • the type of the mobile terminal may be set according to actual needs.
  • the mobile terminal may be a driving recorder, a mobile phone, an iPad, an aerial camera, a camera, or the like.
  • the mobile terminal is provided with a camera, a microphone, a navigation system, an encoder, a mixer, a memory, etc., wherein the camera is used for acquiring image information, and performing analog-to-digital conversion to form original video data (RAW data), and time stamping the RAW data. And sent to the video encoder.
  • the microphone is used to collect sound information, perform analog-to-digital conversion to form audio data (PCM data), time stamp the PCM data and send it to the audio encoder.
  • the encoder is divided into a video encoder and an audio encoder.
  • the video encoder encodes the video data sent by the camera.
  • the video encoder includes H.264, H.265, MPEG-4, VP8, etc., and the video encoder will encode the video data.
  • the video data is sent to the mixer.
  • the audio encoder encodes the audio data sent by the microphone, and the audio encoder includes AAC, MP3, AMR, etc., and the audio encoder sends the encoded audio and video data to the mixer.
  • the navigation system is used to periodically take the geographical location information of the mobile terminal during the recording process, that is, the latitude and longitude information (x, y), time stamp the geographical location information and send it to the mixer, and the navigation system may include GPS, Beidou navigation, GLONASS, etc. .
  • the mixer is used for encapsulating the audio and video data sent by the encoder and the geographical location information sent by the navigation system, packaging and writing the file, and storing it in the memory.
  • first, second, and third of the first timestamp, the second timestamp, and the third timestamp mentioned in the present invention are only for facilitating the distinction between acquiring video data, audio data, and geographic location information.
  • the corresponding timestamp is not the first timestamp, the second timestamp, and the third timestamp are sorted according to the timest order, and the video data, the audio data, and the geographical location letter are acquired.
  • the three parts of the information are asynchronous at the same time, each with its own timestamp, and each part has its own internal order.
  • the mobile terminal After the mobile terminal starts the recording function, before starting to record the video, first make some preparations for the entire recording process, for example, initializing the camera, microphone, and so on. After the preparation work is completed, the mobile terminal starts to acquire image information through the camera, and performs analog-to-digital conversion of the collected image information into original video data, and marks the first time stamp recorded by the video data, and adopts H.264 or H.
  • a video encoder such as 265 encodes the video data to generate a video data packet.
  • the sound information is obtained through the microphone, and the collected sound information is analog-to-digital converted into audio data, and then the recorded second time stamp is marked for the audio and video data, and the audio data is performed by an audio encoder such as AAC or AMR.
  • the code generates an audio packet.
  • the first timestamp and the second timestamp may be Beijing time for video recording.
  • the first timestamp or the second timestamp may be 8:30. It may also be a relative time from the start of recording to a time of 0.
  • the first time stamp or the second time stamp may be the 5th minute of recording.
  • Step S20 Obtain the geographical location information recorded by the mobile terminal every preset time, and mark the third timestamp recorded by the geographical location information;
  • the mobile terminal After the video recording is started, the mobile terminal obtains the geographic location information by using a navigation system such as GPS or Beidou navigation, and the geographic location information may be latitude and longitude information. Set the time to be flexible according to the specific situation. For example, the mobile terminal currently recording is in "Shenzhen University", and the geographical location information obtained by the navigation system is (113.943044, 22.5407). At the same time, the obtained geographical location information marks the currently recorded third timestamp, and the third timestamp is consistent with the setting format of the first timestamp and the second timestamp mentioned above, and can be set as the relative time of Beijing time or recording. time.
  • a navigation system such as GPS or Beidou navigation
  • Step S30 writing the video data packet, the audio data packet, and the geographical location information Recording a file to record a video with continuous geographic location information, for the mobile terminal to play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp.
  • the mobile terminal encapsulates the video data packet, the audio data packet and the geographical location information obtained in the above according to the format standard of the video container into a recording file, and stores it in a memory for convenient storage and transmission, and the format standard of the video container Can include mp4, mkv, rmvb, avi and other formats. Then, it is determined whether the instruction to end the recording is detected. If the instruction to end the recording is not detected, the above steps S10 to S30 are cyclically executed to acquire the audio and video data and the geographical location information, and respectively mark the corresponding time stamp. Write to the recording file. If the recording end command is detected, the recording ends, and the camera, microphone, navigation system, etc. are terminated, and data acquisition is no longer performed.
  • the obtained recording file includes a continuous audio track (Audio Track), a video track (Video Track), a Loc Track, and the like, and realizes recording a video with continuous geographical position information.
  • the mobile terminal plays back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp.
  • the generated video file includes a sequence of continuous geographic location information that the mobile terminal passes during the recording process, so that when the video is played back, the user can view the geographical location information when the video is recorded.
  • FIG. 9 a schematic diagram of generating a recording file for video recording, the mobile terminal according to the standard of the video container, the video data packet, the audio data packet, and the geographical location information. These three kinds of data are cross-stored to the recording file, and the video file header is written at the beginning of the recording file. After receiving the instruction to end the recording, the video file end is written at the end of the recording file.
  • Video is represented by V
  • Audio is represented by A; wherein Video represents a video packet, Audio represents an audio packet, and Loc represents a geographical location information packet.
  • the first obtained video data packet Video is written into the recording file, and then the obtained geographical location information Loc is written into the recording file. Then the next time The acquired audio data packet Audio is written to the recording file, and the data is continuously acquired and mixed and written to the recording file until the end of the recording instruction is received.
  • the driving recorder uses the method provided by the solution to record the video, the driving can be conveniently viewed during playback. The route, as well as the location in which the video is recorded at a certain point in time.
  • FIG. 10 a schematic diagram of generating a recording file for another video recording
  • the mobile terminal first mixes the video data packet and the audio data into a video file according to the standard of the video container, in the video. Write the video file header at the beginning of the file and the video file end at the end of the video file.
  • the geographical location information is stored in the geographic location information file, and then the geographical location information file is spliced to the end of the video file to form a recording file.
  • Video is represented by V
  • Audio is represented by A; wherein Video represents a video packet, Audio represents an audio packet, and Loc represents a geographical location information packet.
  • the first obtained video data packet Video is written into the video file, and then the obtained audio data packet Audio is written into the video file, and then the next time is obtained.
  • the acquired audio data packet Audio is written to the video file, and the data is continuously looped and mixed and written to the video file.
  • the loop sequentially writes the geographical location information Loc into the geographic location information file in chronological order. The recording is stopped until the end of the recording instruction is received, and the geographical location information file is stitched behind the video file to form a recording file. It can be understood that the geographic location information file can also be spliced in front of the video file.
  • the audio and video data or the geographical location information file is sequentially retrieved and played according to the time sequence.
  • the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographical change track of the captured video process.
  • FIG. 9 and FIG. 10 are only an example. In actual situations, the three parts of the video data, the audio data, and the geographical location information are simultaneously asynchronously performed, which one is requested first. If the file is written, the write is locked. After the write operation is completed, the lock is released, and other subsequent partial write requests are allowed. That is, the order in which Video, Audio, and Loc enter the write record is indefinite.
  • the first timestamp recorded by the obtained video data is marked, and the video data is encoded to generate a video data packet, and the obtained audio data mark is used. Recording the second timestamp and encoding the audio data to generate an audio data packet.
  • the geographical location information recorded by the mobile terminal is obtained every preset time, the third time stamp recorded by the geographical location information is marked, and then the video data packet, the audio data packet and the geographical location information are written into the recording file to record the tape.
  • the mobile terminal can play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp. Therefore, the information that the mobile terminal can carry when performing video recording is enriched.
  • the geographic location information of the mobile terminal can be recorded while acquiring the audio and video, and the geographical location information is combined with the audio and video data.
  • the generated recording file includes a sequence of continuous geographical location information of the mobile terminal, and the geographical location information of the recorded video can be viewed when the video is played back.
  • the continuous geographical location information recorded by the mobile terminal during video recording is realized, and the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved.
  • Step S30 may include: based on the first time stamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information, respectively The video data packet, the audio data packet, and the geographic location information are mixed and written into the recording file in chronological order.
  • the mobile terminal when the obtained video data packet, the audio data packet, and the geographical location information are written into the recording file, the mobile terminal may be based on the first time stamp corresponding to the video data, and the audio data Corresponding second timestamp and the third timestamp corresponding to the geographical location information, the video data, the audio data and the geographical location information are in accordance with the chronological order of the acquisition, according to the format standard of the video container such as mp4, mkv, rmvb, avi, etc. Encapsulate, mix and write to the recording file and store it.
  • the mobile terminal determines whether an end recording instruction is detected; if yes, ends the recording; if not, continues to acquire video data, audio data, and geographic location information, and respectively marks the corresponding timestamp And encoding the obtained video data and audio data to obtain a video data packet and an audio data packet, and writing the obtained video data packet, the audio data packet, and the geographical location information into the recording file in chronological order.
  • the mobile terminal can sequentially play according to the stored chronological order to record a video with continuous geographical location information.
  • the video data packet, the audio data packet, and the geographical location information are cross-stored to the recording file, and the video file header is written at the beginning of the recording file, and the first obtained video data packet Video is written.
  • the acquired geographical location information Loc is written into the recording file, and then the audio data packet Audio acquired at the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until received. Stop recording when the recording command ends, and write the end of the video file at the end of the recording file.
  • the video data, the audio data, and the geographical location information are cross-mixed and written into the recording file according to the timestamps corresponding thereto.
  • the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographically changed track of the captured video process.
  • Step S30 may include, according to the video data and the first time stamp and the second time stamp corresponding to the audio data, the video data packet and the The audio data packet is mixed and written into the video file in chronological order, and the geographical location information is written into the geographic location information file according to the third timestamp;
  • the video file and the geographical location information file are spliced into the recording file.
  • the mobile terminal separates the acquired audio data and video data from the geographic location information. Specifically, based on the first timestamp corresponding to the video data, and the second timestamp corresponding to the audio data, the video data packet and the audio data packet are mixed into the video file in chronological order, and the geographic location information is no longer used.
  • the hybrid processing is performed according to the format standard of mp4, mkv, rmvb, avi, etc. of the video container, and the audio data package and the video data package are written into the video file and stored (excluding geographical location information).
  • the geographical location information acquired every preset time is written into the geographic location information file in the order of the third timestamp.
  • the end recording instruction It is judged whether the end recording instruction is detected, and if the end recording instruction is not detected, the data is continuously looped for corresponding processing and storage.
  • the recording is ended, and the obtained video file and the geographical location information file are spliced into the recording file.
  • the geographic location information file can be spliced behind the video file so as not to affect the various information stored in the original video file. As shown in FIG. 10, the video data package and the audio data are mixed and stored in the video file, the video file header is written at the beginning of the video file, and the video file end is written at the end of the video file.
  • the geographical location information is stored in the geographic location information file, and after the recording is completed, the geographical location information file is stitched to the end of the video file to form a recording file.
  • the obtained audio data and video data are separately processed from the geographical location information and then combined.
  • the video file is mixed and written according to the acquisition time sequence of the video data packet and the audio data packet, and the geographical location information is acquired into the geographical location information file by the preset time interval, and the video file and the geographical location information file are spliced into the recording file. .
  • the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the continuous geographical location information recorded by the mobile terminal is recorded during the video recording.
  • step S20 in the embodiment may include: receiving a user setting instruction, and setting the preset time interval for acquiring the geographical location information according to the user setting instruction.
  • the location information may be acquired by using the default preset time, or the preset time interval for obtaining the geographical location information may be changed according to the actual situation, and the user may be in the specified setting.
  • the interface can set the preset time. For example, if the user walks the mobile terminal to perform video recording, the preset time can be set to 1 minute, and the navigation system acquires the geographical location information every minute. When the mobile terminal is mounted on the drone for long-term video recording, the user can update the preset time to 1 second, and the navigation system acquires the geographical location information every second.
  • the time interval for obtaining the geographical location information is reasonably set according to different situations, and the video with continuous geographical location information is recorded. When the user needs to record the route that passes during the video recording, the geographical location associated with the recorded video can be conveniently viewed. information.
  • this embodiment can also be proposed based on the above second or third implementation.
  • the preset time interval for acquiring the geographic location information is flexibly set, so that the mobile terminal can obtain the geographical location information according to different recording situations, and realize the continuous geographical location information recorded by the mobile terminal during video recording. It enriches the information that the mobile terminal can carry when recording video.
  • the technical solution of the present invention may be a software product in essence or in part contributing to the prior art.
  • a computer software product stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or Network devices, etc.) perform the methods described in various embodiments of the present invention.
  • the video data and the audio data are acquired, the first time stamp recorded by the video data is marked, and the video data is encoded to generate a video data packet, and the audio data is marked.
  • the audio data packet and the geographical location information are written into the recording file, and the mobile terminal plays back the recording file in the order of the first timestamp, the second timestamp, and the third timestamp. In this way, the continuous geographical location information that the mobile terminal passes through during the video recording is recorded, which improves the convenience of the mobile terminal to associate the recorded audio and video with the geographic location.

Abstract

A mobile terminal, a video processing apparatus and a method thereof are provided, wherein, the mobile terminal comprises: a camera, configured to perform a video acquisition to obtain video data; a controller, configured to control the camera to perform the acquisition and obtain the video data, and further configured to write, upon acquiring the video data by the camera, a geographical location where the mobile terminal is located into the video data, and generate a video document from the video data having the geographical location written therein; the controller is further configured to determine a granularity of a geographical location interval used when dividing up the video document, determine the geographical location interval to which the geographical location of the video data of the video document belongs and corresponding to the granularity, determine, on the basis of a timeline of the video document, a time interval corresponding to the geographical location interval of the video data of the video document, and perform, on the basis of the determined time interval, a division processing on the video document to obtain a video document clip corresponding to the geographical location interval. The invention achieves recording of continuous information of geographical locations passed by the mobile terminal when performing video recording, and performs, on the basis of the different geographical regions of the collected video document, a precise division of the video document.

Description

移动终端及其视频处理装置、方法Mobile terminal and video processing device and method thereof 技术领域Technical field
本申请涉及视频处理领域,尤其涉及移动终端及其视频处理装置、方法。The present application relates to the field of video processing, and in particular, to a mobile terminal and a video processing apparatus and method thereof.
背景技术Background technique
移动终端(如智能手机、平板电脑等)对视频进行裁剪,需要用户手动选择或者输入裁剪的起始位置和结束位置,往往并不能很精确的裁剪出用户所需要的视频片段,例如对于跨越不同地理区域拍摄的视频,用户手动设置对视频进行分割的时间点,往往不能将视频分割为在不同地理区域拍摄的视频文件片段。视频录制通常是移动终端通过摄像头获取视频数据,以及通过麦克风取得音频数据,并将视频数据和音频数据分别进行编码后封装成一个视频文件。该视频文件通常只带有视频和音频两种信息,或者再加入字幕信息,而不能记录更多的信息。例如,当用户需要记录在视频录制期间所经过的地理位置信息时,现有的移动终端的视频录制技术可提供一个视频记录一个地理点的方法,但并不能便捷地将录制的音视频与地理位置进行关联,而不能记录整个拍摄所经历的多个地理轨迹。Mobile terminals (such as smart phones, tablets, etc.) crop the video, requiring the user to manually select or input the starting position and ending position of the cropping. It is often not possible to crop the video clips required by the user very accurately, for example, for different spans. For video captured in a geographical area, the user manually sets the time point at which the video is segmented, and often the video cannot be segmented into video file segments taken in different geographic regions. Video recording is usually performed by a mobile terminal acquiring video data through a camera, and acquiring audio data through a microphone, and encoding the video data and the audio data separately into a video file. The video file usually only has two kinds of information, video and audio, or you can add subtitle information instead of recording more information. For example, when a user needs to record geographic location information that passes during video recording, the existing mobile terminal's video recording technology can provide a method for recording a geographic point, but cannot easily record the recorded audio and video and geography. The location is associated, and multiple geographic trajectories experienced by the entire shot cannot be recorded.
发明内容Summary of the invention
鉴于此,本发明提出了一种移动终端及其视频处理装置、方法,旨在实现在进行视频录制时记录移动终端所经过的连续地理位置信息,基于采集视频文件的不同地理区域对视频文件进行精确分割。In view of this, the present invention provides a mobile terminal and a video processing apparatus and method thereof, which are intended to record continuous geographic location information that a mobile terminal passes during video recording, and perform video file based on different geographic regions of the collected video file. Precise segmentation.
本发明实施例解决其技术问题所采用的技术方案是:The technical solution adopted by the embodiment of the present invention to solve the technical problem thereof is:
第一方面,提供了一种移动终端,所述移动终端包括: In a first aspect, a mobile terminal is provided, where the mobile terminal includes:
相机,配置为进行视频采集得到视频数据;a camera configured to perform video capture to obtain video data;
所述控制器,配置为控制所述相机进行采集得到所述视频数据,将所述相机采集到所述视频数据时所述移动终端所处的地理位置写入所述视频数据,并基于所述写入所述地理位置的视频数据生成视频文件;The controller is configured to control the camera to acquire the video data, and write the geographic location where the mobile terminal is located when the camera collects the video data, and write the video data based on the Writing video data of the geographical location to generate a video file;
所述控制器,还配置为确定对所述视频文件进行分割所使用的地理位置区间的粒度,确定所述视频文件中视频数据的地理位置所归属的与所述粒度对应的地理位置区间,基于所述视频文件的时间轴确定与所述视频文件中视频数据的地理位置区间对应的时间区间,基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。The controller is further configured to determine a granularity of a geographic location interval used for segmenting the video file, and determine a geographic location interval corresponding to the granularity to which the geographic location of the video data in the video file belongs, based on The time axis of the video file determines a time interval corresponding to a geographic location interval of the video data in the video file, and the video file is segmented according to the determined time interval to obtain a video file corresponding to the geographic location interval. Fragment.
作为一种实施方式,所述控制器,还配置为基于所述视频文件的时间轴标识所述时间区间,基于所标识所述时间区间对所述视频文件进行分割得到视频文件片段,将具有相同地理位置的视频文件片段合并,得到与所述地理位置区间对应的视频文件片段。In an embodiment, the controller is further configured to identify the time interval based on a time axis of the video file, and divide the video file according to the identified time interval to obtain a video file segment, which will have the same The video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographic location interval.
作为一种实施方式,所述控制器,还配置为获取预设的与所述粒度对应的第一地理位置区间,确定所述视频文件的时间轴上与所述第一地理位置区间对应的第一时间区间;基于所述视频文件的时间轴滤除所述视频文件中所述第一时间区间对应的视频文件片段得到更新的所述视频文件,将更新所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。In an embodiment, the controller is further configured to acquire a preset first geographic location interval corresponding to the granularity, and determine a first time corresponding to the first geographic location interval on a time axis of the video file. a time interval; filtering, according to a time axis of the video file, the video file segment corresponding to the first time interval in the video file to be updated, and updating the video file to perform segmentation processing A video file fragment corresponding to the geographic location interval.
作为一种实施方式,所述控制器,还配置为在所述相机的每个采集周期中获取所述移动终端的地理位置,将所获取的地理位置写入所述相机在相应采集周期采集的视频数据;其中,每个所述采集周期包括至少一个视频帧。As an implementation manner, the controller is further configured to acquire a geographic location of the mobile terminal in each collection period of the camera, and write the acquired geographic location to the camera, where the camera collects in a corresponding collection period. Video data; wherein each of the acquisition periods includes at least one video frame.
作为一种实施方式,所述移动终端设置有位置信息模块、移动通信模 块和无线互联网模块至少之一;As an implementation manner, the mobile terminal is provided with a location information module and a mobile communication module. At least one of a block and a wireless internet module;
所述位置信息模块,配置为接收定位信号,输出所述移动终端的地理位置;The location information module is configured to receive a positioning signal and output a geographic location of the mobile terminal;
所述移动通信模块,配置为接收无线通信系统基于所述移动通信模块的驻留小区信息确定的所述移动终端的地理位置;The mobile communication module is configured to receive a geographic location of the mobile terminal determined by the wireless communication system based on the resident cell information of the mobile communication module;
所述无线互联网模块,配置为检测网络接入设备的设备标识,向服务器侧发送所述网络接入设备的设备标识,在采集所述环境的每个采集周期基于所述网络接入设备的设备标识在所述服务器侧获取与所述设备标识关联的地理位置作为所述移动终端的地理位置;The wireless internet module is configured to detect a device identifier of the network access device, and send the device identifier of the network access device to the server side, where each collection period of the environment is collected based on the device of the network access device Identifying, by the server side, a geographical location associated with the device identifier as a geographic location of the mobile terminal;
所述控制器,还配置为在所述相机的每个采集周期的读取所述位置信息模块输出的地理位置信息并写入所述相机在相应采集周期采集所述环境得到的视频数据。The controller is further configured to read geographic location information output by the location information module during each acquisition period of the camera and write video data obtained by the camera to collect the environment during a corresponding collection period.
第二方面,提供一种视频处理方法,所述方法包括:In a second aspect, a video processing method is provided, the method comprising:
进行视频采集得到视频数据;Perform video capture to obtain video data;
将采集到所述视频数据时所述移动终端所处的地理位置写入所述视频数据,并基于所述写入所述地理位置的视频数据生成视频文件;Writing, to the video data, a geographic location where the mobile terminal is located when the video data is collected, and generating a video file based on the video data written in the geographic location;
确定对所述视频文件进行分割所使用的地理位置区间的粒度;Determining the granularity of the geographic location interval used to segment the video file;
确定所述视频文件中视频数据的地理位置所归属的与所述粒度对应的地理位置区间;Determining a geographical interval corresponding to the granularity to which the geographic location of the video data in the video file belongs;
基于所述视频文件的时间轴上确定与所述各视频数据的地理位置区间归属的时间区间;Determining a time interval to which the geographic location interval of each video data belongs based on a time axis of the video file;
基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。The video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
作为一种实施方式,所述基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段,包括: As an embodiment, the segmentation process of the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval includes:
基于所述视频文件的时间轴标识所述时间区间,基于所标识所述时间区间对所述视频文件进行分割得到视频文件片段,将具有相同地理位置的视频文件片段合并,得到与所述地理位置区间对应的视频文件片段。Identifying the time interval based on the time axis of the video file, segmenting the video file based on the identified time interval to obtain a video file segment, and combining video file segments having the same geographic location to obtain the geographic location A video file fragment corresponding to the interval.
作为一种实施方式,所述基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段,包括:As an embodiment, the segmentation process of the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval includes:
获取预设的与所述粒度对应的第一地理位置区间,确定所述视频文件的时间轴上与所述第一地理位置区间对应的第一时间区间;Obtaining a preset first geographic location interval corresponding to the granularity, and determining a first time interval corresponding to the first geographic location interval on a time axis of the video file;
基于所述视频文件的时间轴滤除所述第一时间区间对应的视频文件片段得到更新的所述视频文件,将更新所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。And filtering the video file segment corresponding to the first time interval to obtain the updated video file based on a time axis of the video file, and updating the video file to perform segmentation processing to obtain a video file segment corresponding to the geographic location interval. .
作为一种实施方式,所述对所述环境进行采集得到所述视频数据,将采集所述环境时所述移动终端所处的地理位置写入所述视频数据,包括:As an implementation manner, the collecting, by the environment, the video data, and writing the geographic location where the mobile terminal is located when the environment is collected, includes:
在所述相机的每个采集周期中获取所述移动终端的地理位置,将所获取的地理位置写入所述相机在相应采集周期采集的视频数据;其中,每个所述采集周期包括至少一个视频帧。Acquiring a geographic location of the mobile terminal in each acquisition period of the camera, and writing the acquired geographic location to video data collected by the camera in a corresponding collection period; wherein each of the collection periods includes at least one Video frame.
作为一种实施方式,所述方法还包括:As an implementation manner, the method further includes:
获取所述移动终端的地理位置:Obtaining the geographic location of the mobile terminal:
在所述相机的每个采集周期的读取输出的地理位置信息并写入所述相机在相应采集周期采集所述环境得到的视频数据;Reading the geographical position information of the output during each acquisition period of the camera and writing the video data obtained by the camera collecting the environment during the corresponding collection period;
其中采用以下方式至少之一获取所述移动终端的地理位置:The geographic location of the mobile terminal is obtained by using at least one of the following manners:
接收定位信号,基于所述定位信号输出所述移动终端的地理位置;Receiving a positioning signal, and outputting a geographic location of the mobile terminal based on the positioning signal;
接收无线通信系统基于所述移动终端驻留小区信息确定的所述移动终端的地理位置;Receiving, by the wireless communication system, a geographic location of the mobile terminal determined based on the mobile terminal camping cell information;
检测网络接入设备的设备标识,向服务器侧发送所述网络接入设备的设备标识,基于所述网络接入设备的设备标识在所述服务器侧获取与所述 设备标识关联的地理位置作为所述移动终端的地理位置。Detecting a device identifier of the network access device, and transmitting, to the server side, a device identifier of the network access device, where the device identifier of the network access device is acquired and The geographical location associated with the device identification is the geographic location of the mobile terminal.
第三方面,提供了一种视频处理装置,包括:In a third aspect, a video processing apparatus is provided, including:
音视频获取模块,配置为在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包;The audio and video acquisition module is configured to: after the mobile terminal starts the recording function, acquire video data and audio data, mark the recorded first time stamp for the video data, and encode the video data to generate a video data packet, and Marking the recorded second time stamp for the audio data, and encoding the audio data to generate an audio data packet;
位置信息获取模块,配置为每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;The location information obtaining module is configured to acquire the geographical location information recorded by the mobile terminal every preset time, and mark the third time stamp recorded by the geographical location information;
混合生成模块,配置为将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。a hybrid generation module, configured to write the video data packet, the audio data packet, and the geographic location information into a recording file, to record a video with continuous geographic location information, for the mobile terminal to follow the first The recording file is played back in the order of the timestamp, the second timestamp, and the third timestamp.
作为一种实施方式,所述混合生成模块还配置为,基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。As an implementation manner, the hybrid generation module is further configured to: the first timestamp and the second timestamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively And the third timestamp, the video data packet, the audio data packet, and the geographic location information are mixed into the recording file in chronological order.
作为一种实施方式,所述混合生成模块还配置为,基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;并在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。In an embodiment, the hybrid generation module is further configured to: according to the video data and the first timestamp and the second timestamp corresponding to the audio data, the video data packet and the The audio data packet is mixed into the video file in chronological order, and the geographical location information is written into the geographic location information file according to the third timestamp; and after receiving the end recording instruction, the video file is And splicing and writing the recording file with the geographical location information file.
作为一种实施方式,所述视频处理装置还包括:As an implementation manner, the video processing device further includes:
设置模块,配置为接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。 And a setting module configured to receive a user setting instruction, and set the preset time interval for acquiring the geographical location information according to the user setting instruction.
第四方面,提供了另一种移动终端,所述移动终端包括上述结构的视频处理装置。In a fourth aspect, another mobile terminal is provided, the mobile terminal comprising the video processing device of the above structure.
第五方面,提供了另一种视频处理制方法,包括:In a fifth aspect, another video processing method is provided, including:
在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包;After the mobile terminal starts the recording function, acquiring video data and audio data, marking the recorded first time stamp for the video data, encoding the video data to generate a video data packet, and marking the audio data for the audio data Recording a second timestamp and encoding the audio data to generate an audio data packet;
每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;Obtaining the geographical location information recorded by the mobile terminal every preset time, and marking the recorded third time stamp for the geographical location information;
将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。Writing the video data packet, the audio data packet, and the geographic location information into a recording file, to record a video with continuous geographic location information, for the mobile terminal to follow the first timestamp, the first The recording file is played back in the order of the second time stamp and the third time stamp.
作为一种实施方式,将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件包括:As an implementation manner, writing the video data packet, the audio data packet, and the geographic location information into the recording file includes:
基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。And the video data packet, based on the first timestamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information, respectively. The audio data packet and the geographical location information are mixed and written into the recording file in chronological order.
作为一种实施方式,基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件之后包括:As an implementation manner, the first timestamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively After the video data packet, the audio data packet, and the geographical location information are mixed and written into the recording file in chronological order, the method includes:
判断是否侦测到结束录制指令;Determine whether an end recording command is detected;
若是,则结束录制;If yes, the recording ends;
若否,则继续获取视频数据、音频数据及地理位置信息并分别标志对 应的时间戳,对继续获取得到的视频数据及音频数据进行编码得到视频数据包及音频数据包,将得到的视频数据包、音频数据包及地理位置信息按照时间先后顺序写入所述录制文件。If not, continue to obtain video data, audio data and geographical location information and mark the pair separately The time stamp of the image is obtained by encoding the video data and the audio data obtained by continuing to obtain the video data packet and the audio data packet, and the obtained video data packet, the audio data packet and the geographical location information are sequentially written into the recording file in chronological order. .
作为一种实施方式,将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件包括:As an implementation manner, writing the video data packet, the audio data packet, and the geographic location information into the recording file includes:
基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;And synthesizing the video data packet and the audio data packet into a video file according to the first time stamp and the second time stamp corresponding to the video data and the audio data, and The geographical location information is written into the geographic location information file in the order of the third timestamp;
在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。After receiving the end recording instruction, the video file and the geographical location information file are spliced into the recording file.
作为一种实施方式,所述每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳之前包括:As an implementation manner, the acquiring, by the preset time, the geographical location information recorded by the mobile terminal, before the third timestamp recorded by the geographical location information mark, includes:
接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。Receiving a user setting instruction, and setting the preset time interval for acquiring the geographical location information according to the user setting instruction.
实施本发明实施例的移动终端及其视频处理装置、方法,具有以下有益效果:可实现在进行视频录制时记录移动终端所经过的连续地理位置信息,提高移动终端将录制的音视频与地理位置进行关联地便捷性,基于采集视频文件的不同地理区域对视频文件进行精确分割。The mobile terminal and the video processing apparatus and method thereof for implementing the embodiments of the present invention have the following beneficial effects: recording continuous geographic location information that the mobile terminal passes during video recording, and improving audio and video and geographic location that the mobile terminal will record The convenience of association is performed, and the video files are accurately segmented based on different geographical regions of the collected video files.
附图说明DRAWINGS
图1为实现本发明各个实施例的移动终端的一个可选的硬件结构示意图;1 is a schematic diagram of an optional hardware structure of a mobile terminal embodying various embodiments of the present invention;
图2为实现本发明各个实施例的移动终端中相机的一个可选的电气结构示意图;2 is a schematic diagram of an alternative electrical structure of a camera in a mobile terminal embodying various embodiments of the present invention;
图3为本发明实施例分割视频文件的示意图; 3 is a schematic diagram of splitting a video file according to an embodiment of the present invention;
图4为实现本发明各个实施例的移动终端的又一个可选的硬件结构示意图;4 is a schematic diagram of still another optional hardware structure of a mobile terminal implementing various embodiments of the present invention;
图5为实现本发明各个实施例的移动终端的另一个可选的硬件结构示意图;FIG. 5 is a schematic diagram of another optional hardware structure of a mobile terminal implementing various embodiments of the present invention; FIG.
图6为如图5所示的移动终端的无线通信系统示意图;6 is a schematic diagram of a wireless communication system of the mobile terminal shown in FIG. 5;
图7为实现本发明实施例提供的视频处理方法的一种流程示意图;FIG. 7 is a schematic flowchart of a video processing method according to an embodiment of the present invention;
图8为本发明实施例提供的视频处理装置的一种功能模块示意图;FIG. 8 is a schematic diagram of a functional module of a video processing apparatus according to an embodiment of the present disclosure;
图9为本发明提供的将视频数据包、音频数据包及地理位置信息写入录制文件的第一结构示意图;FIG. 9 is a schematic diagram of a first structure for writing a video data packet, an audio data packet, and geographic location information into a recording file according to the present invention;
图10为本发明提供的将视频数据包、音频数据包及地理位置信息写入录制文件的第二结构示意图;10 is a schematic diagram of a second structure for writing a video data packet, an audio data packet, and geographic location information into a recording file according to the present invention;
图11为本发明实施例提供的视频处理装置的另一种功能模块示意图;FIG. 11 is a schematic diagram of another functional module of a video processing apparatus according to an embodiment of the present disclosure;
图12为本发明实施例提供的视频处理方法的另一种流程示意图;FIG. 12 is another schematic flowchart of a video processing method according to an embodiment of the present disclosure;
图13为本发明实施例提供的视频处理方法的又一种流程示意图。FIG. 13 is still another schematic flowchart of a video processing method according to an embodiment of the present invention.
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。The implementation, functional features, and advantages of the present invention will be further described in conjunction with the embodiments.
具体实施方式detailed description
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。It is understood that the specific embodiments described herein are merely illustrative of the invention and are not intended to limit the invention.
现在将参考附图描述实现本发明各个实施例的移动终端。在后续的描述中,使用用于表示元件的诸如“模块”、“部件”或“单元”的后缀仅为了有利于本发明的说明,其本身并没有特定的意义。因此,“模块”与“部件”可以混合地使用。A mobile terminal embodying various embodiments of the present invention will now be described with reference to the accompanying drawings. In the following description, the use of suffixes such as "module", "component" or "unit" for indicating an element is merely an explanation for facilitating the present invention, and does not have a specific meaning per se. Therefore, "module" and "component" can be used in combination.
移动终端可以以各种形式来实施。例如,本发明中描述的终端可以包 括诸如移动电话、智能电话、笔记本电脑、数字广播接收器、PDA(个人数字助理)、PAD(平板电脑)、PMP(便携式多媒体播放器)、导航装置等等的移动终端以及诸如数字TV、台式计算机等等的固定终端。下面,假设终端是移动终端。然而,本领域技术人员将理解的是,除了特别用于移动目的的元件之外,根据本发明的实施方式的构造也能够应用于固定类型的终端。The mobile terminal can be implemented in various forms. For example, the terminal described in the present invention can be packaged Mobile terminals such as mobile phones, smart phones, notebook computers, digital broadcast receivers, PDAs (Personal Digital Assistants), PADs (tablets), PMPs (portable multimedia players), navigation devices, and the like, and such as digital TVs, desktops A fixed terminal such as a computer. In the following, it is assumed that the terminal is a mobile terminal. However, those skilled in the art will appreciate that configurations in accordance with embodiments of the present invention can be applied to fixed type terminals in addition to components that are specifically for mobile purposes.
实施例一Embodiment 1
本实施例记载一种移动终端,如图1所示,移动终端可以包括无线通信单元110、A/V(音频/视频)输入单元120、输出单元150、存储器10、接口单元170、控制器180和电源单元190。图1示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。This embodiment describes a mobile terminal. As shown in FIG. 1 , the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 10, an interface unit 170, and a controller 180. And a power supply unit 190. Figure 1 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括位置信息模块115。 Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network. For example, the wireless communication unit can include a location information module 115.
位置信息模块115是用于检查或获取移动终端的位置信息的模块。位置信息模块115的典型示例是GPS(全球定位系统)模块。根据当前的技术,位置信息模块115计算来自三个或更多卫星的距离信息和准确的时间信息并且对于计算的信息应用三角测量法,从而根据经度、纬度和高度准确地计算三维当前位置信息。当前,用于计算位置和时间信息的方法使用三颗卫星并且通过使用另外的一颗卫星校正计算出的位置和时间信息的误差。此外,位置信息模块115能够通过实时地连续计算当前位置信息来计算速度信息。The location information module 115 is a module for checking or acquiring location information of the mobile terminal. A typical example of the location information module 115 is a GPS (Global Positioning System) module. According to the current technology, the location information module 115 calculates distance information and accurate time information from three or more satellites and applies triangulation to the calculated information to accurately calculate three-dimensional current position information based on longitude, latitude, and altitude. Currently, the method for calculating position and time information uses three satellites and corrects the calculated position and time information errors by using another satellite. Further, the location information module 115 can calculate the speed information by continuously calculating the current location information in real time.
A/V输入单元120用于接收音频或视频信号。A/V输入单元120可以包括相机121,相机121对在视频捕获模式或图像捕获模式中由图像捕获装 置获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元151上。经相机121处理后的图像帧可以存储在存储器160(或其它存储介质)中或者经由无线通信单元110进行发送,可以根据移动终端的构造提供两个或更多相机1210。The A/V input unit 120 is for receiving an audio or video signal. The A/V input unit 120 may include a camera 121 that is loaded by an image capture in a video capture mode or an image capture mode. The obtained image data of the still picture or video is processed. The processed image frame can be displayed on the display unit 151. The image frames processed by the camera 121 may be stored in the memory 160 (or other storage medium) or transmitted via the wireless communication unit 110, and two or more cameras 1210 may be provided according to the configuration of the mobile terminal.
图2为相机121的电气结构框图。2 is a block diagram showing the electrical structure of the camera 121.
摄影镜头1211由用于形成被摄体像的多个光学镜头构成,为单焦点镜头或变焦镜头。摄影镜头1211在镜头驱动器1221的控制下能够在光轴方向上移动,镜头驱动器1221根据来自镜头驱动控制电路1222的控制信号,控制摄影镜头1211的焦点位置,在变焦镜头的情况下,也可控制焦点距离。镜头驱动控制电路1222按照来自微型计算机1217的控制命令进行镜头驱动器1221的驱动控制。The photographic lens 1211 is composed of a plurality of optical lenses for forming a subject image, and is a single focus lens or a zoom lens. The photographic lens 1211 is movable in the optical axis direction under the control of the lens driver 1221, and the lens driver 1221 controls the focus position of the photographic lens 1211 in accordance with a control signal from the lens driving control circuit 1222, and can also be controlled in the case of the zoom lens. Focus distance. The lens drive control circuit 1222 performs drive control of the lens driver 1221 in accordance with a control command from the microcomputer 1217.
在摄影镜头1211的光轴上、由摄影镜头1211形成的被摄体像的位置附近配置有摄像元件1212。摄像元件1212用于对被摄体像摄像并取得摄像图像数据。在摄像元件1212上二维且呈矩阵状配置有构成各像素的光电二极管。各光电二极管产生与受光量对应的光电转换电流,该光电转换电流由与各光电二极管连接的电容器进行电荷蓄积。各像素的前表面配置有拜耳排列的RGB滤色器。An imaging element 1212 is disposed on the optical axis of the photographic lens 1211 near the position of the subject image formed by the photographic lens 1211. The imaging element 1212 is for capturing an image of a subject and acquiring captured image data. Photodiodes constituting each pixel are arranged two-dimensionally and in a matrix on the imaging element 1212. Each photodiode generates a photoelectric conversion current corresponding to the amount of received light, and the photoelectric conversion current is charged by a capacitor connected to each photodiode. The front surface of each pixel is provided with a Bayer array of RGB color filters.
摄像元件1212与摄像电路1213连接,该摄像电路1213在摄像元件1212中进行电荷蓄积控制和图像信号读出控制,对该读出的图像信号(模拟图像信号)降低重置噪声后进行波形整形,进而进行增益提高等以成为适当的信号电平。The imaging element 1212 is connected to the imaging circuit 1213. The imaging circuit 1213 performs charge accumulation control and image signal readout control in the imaging element 1212, and performs waveform shaping after reducing the reset noise of the read image signal (analog image signal). Further, gain improvement or the like is performed to obtain an appropriate signal level.
摄像电路1213与A/D转换器1214连接,该A/D转换器1214对模拟图像信号进行模数转换,向总线1227输出数字图像信号(以下称之为图像数据)。The imaging circuit 1213 is connected to an A/D converter 1214 that performs analog-to-digital conversion on the analog image signal and outputs a digital image signal (hereinafter referred to as image data) to the bus 1227.
总线1227是用于传送在相机的内部读出或生成的各种数据的传送路 径。在总线1227连接着上述A/D转换器1214,此外还连接着图像处理器1215、JPEG处理器1216、微型计算机1217、SDRAM(Synchronous Dynamic random access memory,同步动态随机存取内存)1218、存储器接口(以下称之为存储器I/F)1219、LCD(Liquid Crystal Display,液晶显示器)驱动器1220。The bus 1227 is a transmission path for transmitting various data read or generated inside the camera. path. The A/D converter 1214 is connected to the bus 1227, and an image processor 1215, a JPEG processor 1216, a microcomputer 1217, a SDRAM (Synchronous Dynamic Random Access Memory) 1218, and a memory interface are also connected. (hereinafter referred to as memory I/F) 1219, LCD (Liquid Crystal Display) driver 1220.
图像处理器1215对基于摄像元件1212的输出的图像数据进行OB相减处理、白平衡调整、颜色矩阵运算、伽马转换、色差信号处理、噪声去除处理、同时化处理、边缘处理等各种图像处理。JPEG处理器1216在将图像数据记录于记录介质1225时,按照JPEG压缩方式压缩从SDRAM1218读出的图像数据。此外,JPEG处理器1216为了进行图像再现显示而进行JPEG图像数据的解压缩。进行解压缩时,读出记录在记录介质1225中的文件,在JPEG处理器1216中实施了解压缩处理后,将解压缩的图像数据暂时存储于SDRAM1218中并在LCD1226上进行显示。另外,在本实施方式中,作为图像压缩解压缩方式采用的是JPEG方式,然而压缩解压缩方式不限于此,当然可以采用MPEG、TIFF、H.264等其他的压缩解压缩方式。The image processor 1215 performs various kinds of images such as OB subtraction processing, white balance adjustment, color matrix calculation, gamma conversion, color difference signal processing, noise removal processing, simultaneous processing, edge processing, and the like on the image data based on the output of the imaging element 1212. deal with. The JPEG processor 1216 compresses the image data read out from the SDRAM 1218 in accordance with the JPEG compression method when the image data is recorded on the recording medium 1225. Further, the JPEG processor 1216 performs decompression of JPEG image data for image reproduction display. At the time of decompression, the file recorded on the recording medium 1225 is read, and after the compression processing is performed in the JPEG processor 1216, the decompressed image data is temporarily stored in the SDRAM 1218 and displayed on the LCD 1226. Further, in the present embodiment, the JPEG method is adopted as the image compression/decompression method. However, the compression/decompression method is not limited thereto, and other compression/decompression methods such as MPEG, TIFF, and H.264 may be used.
微型计算机1217发挥作为该相机整体的控制部的功能,统一控制相机的各种处理序列。微型计算机1217连接着操作单元1223和闪存1224。The microcomputer 1217 functions as a control unit of the entire camera, and collectively controls various processing sequences of the camera. The microcomputer 1217 is connected to the operation unit 1223 and the flash memory 1224.
操作单元1223包括但不限于实体按键或者虚拟按键,该实体或虚拟按键可以为电源按钮、拍照键、编辑按键、动态图像按钮、再现按钮、菜单按钮、十字键、OK按钮、删除按钮、放大按钮等各种输入按钮和各种输入键等操作控件,检测这些操作控件的操作状态,。The operating unit 1223 includes, but is not limited to, a physical button or a virtual button, and the entity or virtual button may be a power button, a camera button, an edit button, a dynamic image button, a reproduction button, a menu button, a cross button, an OK button, a delete button, an enlarge button The operation controls such as various input buttons and various input keys detect the operation state of these operation controls.
将检测结果向微型计算机1217输出。此外,在作为显示器的LCD1226的前表面设有触摸面板,检测用户的触摸位置,将该触摸位置向微型计算机1217输出。微型计算机1217根据来自操作单元1223的操作位置的检测结果,执行与用户的操作对应的各种处理序列。The detection result is output to the microcomputer 1217. Further, a touch panel is provided on the front surface of the LCD 1226 as a display, and the touch position of the user is detected, and the touch position is output to the microcomputer 1217. The microcomputer 1217 executes various processing sequences corresponding to the user's operation in accordance with the detection result from the operation position of the operation unit 1223.
闪存1224存储用于执行微型计算机1217的各种处理序列的程序。微 型计算机1217根据该程序进行相机整体的控制。此外,闪存1224存储相机的各种调整值,微型计算机1217读出调整值,按照该调整值进行相机的控制。The flash memory 1224 stores programs for executing various processing sequences of the microcomputer 1217. Micro The computer 1217 performs overall control of the camera in accordance with the program. Further, the flash memory 1224 stores various adjustment values of the camera, and the microcomputer 1217 reads out the adjustment value, and performs control of the camera in accordance with the adjustment value.
SDRAM1218是用于对图像数据等进行暂时存储的可电改写的易失性存储器。该SDRAM1218暂时存储从A/D转换器1214输出的图像数据和在图像处理器1215、JPEG处理器1216等中进行了处理后的图像数据。The SDRAM 1218 is an electrically rewritable volatile memory for temporarily storing image data or the like. The SDRAM 1218 temporarily stores image data output from the A/D converter 1214 and image data processed in the image processor 1215, the JPEG processor 1216, and the like.
存储器接口1219与记录介质1225连接,进行将图像数据和附加在图像数据中的文件头等数据写入记录介质1225和从记录介质1225中读出的控制。记录介质1225例如为能够在相机主体上自由拆装的存储器卡等记录介质,然而不限于此,也可以是内置在相机主体中的硬盘等。The memory interface 1219 is connected to the recording medium 1225, and performs control for writing image data and a file header attached to the image data to the recording medium 1225 and reading out from the recording medium 1225. The recording medium 1225 is, for example, a recording medium such as a memory card that can be detachably attached to the camera body. However, the recording medium 1225 is not limited thereto, and may be a hard disk or the like built in the camera body.
LCD驱动器1210与LCD1226连接,将由图像处理器1215处理后的图像数据存储于SDRAM1218,需要显示时,读取SDRAM1218存储的图像数据并在LCD1226上显示,或者,JPEG处理器1216压缩过的图像数据存储于SDRAM1218,在需要显示时,JPEG处理器1216读取SDRAM1218的压缩过的图像数据,再进行解压缩,将解压缩后的图像数据通过LCD1226进行显示。The LCD driver 1210 is connected to the LCD 1226, and stores image data processed by the image processor 1215 in the SDRAM 1218. When display is required, the image data stored in the SDRAM 1218 is read and displayed on the LCD 1226, or the image data stored in the JPEG processor 1216 is compressed. In the SDRAM 1218, when display is required, the JPEG processor 1216 reads the compressed image data of the SDRAM 1218, decompresses it, and displays the decompressed image data through the LCD 1226.
LCD1226配置在相机主体的背面进行图像显示。该LCD1226LCD,然而不限于此,也可以采用有机EL等各种显示面板(LCD1226),然而不限于此,也可以采用有机EL等各种显示面板。The LCD 1226 is configured to display an image on the back of the camera body. The LCD 1226 LCD is not limited thereto, and various display panels (LCD 1226) such as an organic EL may be used. However, the present invention is not limited thereto, and various display panels such as an organic EL may be used.
接口单元170用作至少一个外部装置与移动终端连接可以通过的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。识别模块可以是存储用于验证用户使用移动终端的各种信息并且可以包括用户识别模块(UIM)、客户识别模块(SIM)、通用客户识别模块(USIM) 等等。另外,具有识别模块的装置(下面称为“识别装置”)可以采取智能卡的形式,因此,识别装置可以经由端口或其它连接装置与移动终端连接。接口单元170可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到移动终端内的一个或多个元件或者可以用于在移动终端和外部装置之间传输数据。The interface unit 170 serves as an interface through which at least one external device can connect with the mobile terminal. For example, the external device may include a wired or wireless headset port, an external power (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, and an audio input/output. (I/O) port, video I/O port, headphone port, and more. The identification module may be stored to verify various information used by the user to use the mobile terminal and may include a User Identification Module (UIM), a Customer Identification Module (SIM), a Universal Customer Identification Module (USIM) and many more. In addition, the device having the identification module (hereinafter referred to as "identification device") may take the form of a smart card, and thus the identification device may be connected to the mobile terminal via a port or other connection device. The interface unit 170 can be configured to receive input from an external device (eg, data information, power, etc.) and transmit the received input to one or more components within the mobile terminal or can be used in the mobile terminal and external device Transfer data between.
另外,当移动终端与外部底座连接时,接口单元170可以用作允许通过其将电力从底座提供到移动终端的路径或者可以用作允许从底座输入的各种命令信号通过其传输到移动终端的路径。从底座输入的各种命令信号或电力可以用作用于识别移动终端是否准确地安装在底座上的信号。In addition, when the mobile terminal is connected to the external base, the interface unit 170 may function as a path through which power is supplied from the base to the mobile terminal or may be used as a form through which various command signals input from the base are allowed to be transmitted to the mobile terminal. path. Various command signals or power input from the base can be used as signals for identifying whether the mobile terminal is accurately mounted on the base.
输出单元150被构造为以视觉输出信号(例如,视频信号)。输出单元150可以包括显示单元151。The output unit 150 is configured to visually output a signal (eg, a video signal). The output unit 150 may include a display unit 151.
显示单元151可以显示在移动终端中处理的信息。例如,当移动终端处于电话通话模式时,显示单元151可以显示与通话或其它通信(例如,文本消息收发、多媒体文件下载等等)相关的用户界面(UI)或图形用户界面(GUI)。当移动终端处于视频通话模式或者图像捕获模式时,显示单元151可以显示捕获的图像和/或接收的图像、示出视频或图像以及相关功能的UI或GUI等等。The display unit 151 can display information processed in the mobile terminal. For example, when the mobile terminal is in a phone call mode, the display unit 151 can display a user interface (UI) or a graphical user interface (GUI) related to a call or other communication (eg, text messaging, multimedia file download, etc.). When the mobile terminal is in the video call mode or the image capturing mode, the display unit 151 may display the captured image and/or the received image, a UI or GUI showing the video or image and related functions, and the like.
同时,当显示单元151和触摸板以层的形式彼此叠加以形成触摸屏时,显示单元151可以用作输入装置和输出装置。显示单元151可以包括液晶显示器(LCD)、薄膜晶体管LCD(TFT-LCD)、有机发光二极管(OLED)显示器、柔性显示器、三维(3D)显示器等等中的至少一种。这些显示器中的一些可以被构造为透明状以允许用户从外部观看,这可以称为透明显示器,典型的透明显示器可以例如为TOLED(透明有机发光二极管)显示器等等。根据特定想要的实施方式,移动终端可以包括两个或更多显示单元(或其它显示装置),例如,移动终端可以包括外部显示单元(未示出) 和内部显示单元(未示出)。触摸屏可用于检测触摸输入压力以及触摸输入位置和触摸输入面积。Meanwhile, when the display unit 151 and the touch panel are superposed on each other in the form of a layer to form a touch screen, the display unit 151 can function as an input device and an output device. The display unit 151 may include at least one of a liquid crystal display (LCD), a thin film transistor LCD (TFT-LCD), an organic light emitting diode (OLED) display, a flexible display, a three-dimensional (3D) display, and the like. Some of these displays may be configured to be transparent to allow a user to view from the outside, which may be referred to as a transparent display, and a typical transparent display may be, for example, a TOLED (Transparent Organic Light Emitting Diode) display or the like. According to a particular desired embodiment, the mobile terminal may comprise two or more display units (or other display devices), for example, the mobile terminal may comprise an external display unit (not shown) And an internal display unit (not shown). The touch screen can be used to detect touch input pressure as well as touch input position and touch input area.
存储器160可以存储由控制器180执行的处理和控制操作的软件程序等等,或者可以暂时地存储已经输出或将要输出的数据(例如,电话簿、消息、静态图像、视频等等)。而且,存储器160可以存储关于当触摸施加到触摸屏时输出的各种方式的振动和音频信号的数据。The memory 160 may store a software program or the like that performs processing and control operations performed by the controller 180, or may temporarily store data (for example, a phone book, a message, a still image, a video, and the like) that has been output or is to be output. Moreover, the memory 160 can store data regarding vibrations and audio signals of various manners that are output when a touch is applied to the touch screen.
存储器160可以包括至少一种类型的存储介质,所述存储介质包括闪存、硬盘、多媒体卡、卡型存储器(例如,SD或DX存储器等等)、随机访问存储器(RAM)、静态随机访问存储器(SRAM)、只读存储器(ROM)、电可擦除可编程只读存储器(EEPROM)、可编程只读存储器(PROM)、磁性存储器、磁盘、光盘等等。而且,移动终端可以与通过网络连接执行存储器160的存储功能的网络存储装置协作。The memory 160 may include at least one type of storage medium including a flash memory, a hard disk, a multimedia card, a card type memory (eg, SD or DX memory, etc.), a random access memory (RAM), a static random access memory ( SRAM), read only memory (ROM), electrically erasable programmable read only memory (EEPROM), programmable read only memory (PROM), magnetic memory, magnetic disk, optical disk, and the like. Moreover, the mobile terminal can cooperate with a network storage device that performs a storage function of the memory 160 through a network connection.
控制器180通常控制移动终端的总体操作。例如,控制器180执行与语音通话、数据通信、视频通话等等相关的控制和处理。The controller 180 typically controls the overall operation of the mobile terminal. For example, the controller 180 performs the control and processing associated with voice calls, data communications, video calls, and the like.
电源单元190在控制器180的控制下接收外部电力或内部电力并且提供操作各元件和组件所需的适当的电力。The power supply unit 190 receives external power or internal power under the control of the controller 180 and provides appropriate power required to operate the various components and components.
这里描述的各种实施方式可以以使用例如计算机软件、硬件或其任何组合的计算机可读介质来实施。对于硬件实施,这里描述的实施方式可以通过使用特定用途集成电路(ASIC)、数字信号处理器(DSP)、数字信号处理装置(DSPD)、可编程逻辑装置(PLD)、现场可编程门阵列(FPGA)、处理器、控制器、微控制器、微处理器、被设计为执行这里描述的功能的电子单元中的至少一种来实施,在一些情况下,这样的实施方式可以在控制器180中实施。对于软件实施,诸如过程或功能的实施方式可以与允许执行至少一种功能或操作的单独的软件模块来实施。软件代码可以由以任何适当的编程语言编写的软件应用程序(或程序)来实施,软件代码可以 存储在存储器160中并且由控制器180执行。The various embodiments described herein can be implemented in a computer readable medium using, for example, computer software, hardware, or any combination thereof. For hardware implementations, the embodiments described herein may be through the use of application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays ( An FPGA, a processor, a controller, a microcontroller, a microprocessor, at least one of the electronic units designed to perform the functions described herein, in some cases, such an embodiment may be at the controller 180 Implemented in the middle. For software implementations, implementations such as procedures or functions may be implemented with separate software modules that permit the execution of at least one function or operation. The software code can be implemented by a software application (or program) written in any suitable programming language, the software code can It is stored in the memory 160 and executed by the controller 180.
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
位置信息模块115可以实施为GPS模块,接收定位信号并输出移动终端的地理位置,如经纬度、平面坐标、球坐标形式的地理位置。相机对环境进行视频采集得到视频数据,如AVI、MP4等格式的视频数据并存储至存储器160。控制器180在相机的每个采集周期的读取位置信息模块115输出的地理位置,将地理位置写入相机在相应采集周期采集环境得到的视频数据,其中相机的每个采集周期与至少一个视频帧对应(也就是相机在一个采集周期内至少采集一个视频帧);基于写入地理位置的视频数据生成视频文件。The location information module 115 can be implemented as a GPS module that receives the positioning signal and outputs the geographic location of the mobile terminal, such as a geographic location in the form of latitude and longitude, plane coordinates, and spherical coordinates. The camera performs video capture on the environment to obtain video data, such as video data in AVI, MP4, etc., and stores it in the memory 160. The controller 180 writes the geographic location to the video data obtained by the camera in the corresponding acquisition cycle collection environment in the geographic location output by the read location information module 115 of each acquisition cycle of the camera, wherein each acquisition cycle of the camera and at least one video Frame correspondence (that is, the camera captures at least one video frame in one acquisition cycle); generates a video file based on the video data written to the geographic location.
控制器180确定对视频文件进行分割所使用的地理位置区间的粒度(例如城区、县市等,实际实施中粒度可以基于用户的指令确定,或者根据移动终端的历史移动范围进行划分得到),确定视频文件中视频数据的地理位置所归属的与粒度对应的地理位置区间(这里的地理位置区域与前述的粒度对应,如前述的粒度为城区,则确定视频文件中各采集周期的视频数据归属的地理位置区间,也就是确定视频文件中各采集周期的视频数据时移动终端所处的地理位置区间),基于视频文件的时间轴确定与视频文件中视频数据(对应不同的采集周期)的地理位置区间归属的时间区间,基于所确定的时间区间对视频文件进行分割处理得到与地理位置区间对应的视频文件片段。The controller 180 determines the granularity of the geographic location interval used for segmenting the video file (for example, an urban area, a county, and the like. In actual implementation, the granularity may be determined based on an instruction of the user, or may be determined according to a historical moving range of the mobile terminal), and determined. The geographical location corresponding to the granularity to which the geographic location of the video data belongs in the video file (the geographical location area here corresponds to the foregoing granularity, and if the granularity is the urban area, the video data of each collection period in the video file is determined to belong to The geographical location interval, that is, the geographical location interval in which the mobile terminal is located when determining the video data of each collection period in the video file, and determining the geographic location of the video data in the video file (corresponding to different collection periods) based on the time axis of the video file The time interval of the interval attribution, the video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
控制器180基于所确定的时间区间对视频文件进行分割处理,得到与地理位置区间对应的视频文件片段时,如果存在至少两个视频文件片段归 属于相同地理位置区间的情况,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;例如,参见图3,分割得到4个视频文件片段,对应归属于宝安区、南山区、宝安区和福田区四个地理位置区间,则将第1、3个视频文件片段合并,得到对应宝安区、南山区和福田区的3个视频文件片段(图3中只示出了合并后的对应宝安区的视频文件),可选地,视频文件片段以所归属的地理位置区间进行命名,分割后得到的视频文件片段命名的一个示例为:宝安区.MP4;南山区.MP4和福田区四.MP4。实际实施时,可选地,控制器180读取用户是否设置开启了将归属于相同地理位置区间的视频文件片段合并的功能,如果开启,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;如果未开启,则输出分割后得到的视频文件片段。The controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, if at least two video file segments exist In the case of the same geographical location interval, the video file segments belonging to the same geographical location are merged to obtain a video file segment corresponding to the geographical location interval; for example, referring to FIG. 3, four video file segments are obtained by segmentation, corresponding to belonging to Baoan. In the four geographical locations of the district, Nanshan District, Baoan District and Futian District, the first and third video file segments are combined to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District (only shown in Figure 3). The merged video file corresponding to Baoan District is selected. Optionally, the video file segment is named after the geographical location of the video file. An example of the video file segment obtained after the segmentation is: Baoan District. MP4; Nanshan District .MP4 and Futian District IV. MP4. In actual implementation, optionally, the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
用户在利用相机获取多个地理位置区间采集环境得到视频时,可能存在均需要部分地理位置区间的视频文件片段的情况,而不需要另外一部分地理位置区间(这里设为第一地理位置区间)对应的视频文件片段,那么,控制器180获取预设的与粒度对应的第一地理位置区间,例如在用户使用相机在宝安区、南山区和福田区采集环境生成视频文件时,控制显示单元151显示视频文件中视频数据的地理位置区间:宝安区、南山区和福田区。供用户选择需要那个地理位置区间的视频文件片段,这里设用户选定了宝安区、南山区,则控制器180在确定视频文件的时间轴上与福田区(第一地理位置区间)对应的第一时间区间;基于视频文件的时间轴滤除第一时间区间对应的视频文件片段得到更新的视频文件,更新的视频文件片段仅包括宝安区、南山区采集的视频数据,将更新视频文件进行分割处理得到与地理位置区间(宝安区、南山区)对应的视频文件片段。When a user obtains a video by using a camera to acquire a plurality of geographical interval collection environments, there may be a case where a video file segment of a part of the geographical interval is required, and no other geographical interval (here, the first geographical interval) is required. The video file segment is obtained. Then, the controller 180 acquires a preset first geographic location interval corresponding to the granularity. For example, when the user uses the camera to collect environment generated video files in the Baoan District, Nanshan District, and Futian District, the control display unit 151 displays Geographical location of video data in video files: Baoan District, Nanshan District and Futian District. For the user to select a video file segment that requires that geographical interval, where the user selects Baoan District and Nanshan District, the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file. A time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated. The video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
本实施例中基于GPS方式检测各从采集周期的地理位置,基于视频文件中视频数据(如各采集周期的视频数据)归属的地理位置区间,确定对 视频文件进行分割所使用的时间区间,基于时间区间对视频文件进行分割,能够对实现对视频文件中视频数据的采集位置对应的地理位置区间进行分割,例如移动终端实施为行车记录仪时,采集的视频文件按不同的地理位置区间信息进行分割,可以快速知道经过哪些区域,播放对应视频就可以知道该区域发生的情况。In this embodiment, the geographic location of each slave acquisition period is detected based on the GPS mode, and the geographic location corresponding to the video data (such as video data of each collection period) in the video file is determined. The time interval used for segmentation of the video file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, when the mobile terminal is implemented as a driving recorder, The video files are divided according to different geographical interval information, and it is possible to quickly know which areas have passed, and play the corresponding video to know what is happening in the area.
实施例二Embodiment 2
图2为本实施例的移动终端的硬件结构示意,如图4所示,移动终端可以包括无线通信单元110、A/V(音频/视频)输入单元120、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图4示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。FIG. 2 is a schematic diagram showing the hardware structure of the mobile terminal according to the embodiment. As shown in FIG. 4, the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 160, and an interface unit. 170, controller 180 and power supply unit 190, and the like. Figure 4 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端与无线通信系统或网络之间的无线电通信。例如,无线通信单元110可以包括无线互联网模块113。 Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network. For example, the wireless communication unit 110 can include a wireless internet module 113.
无线互联网模块113支持移动终端的无线互联网接入。该模块可以内部或外部地耦接到移动终端。该模块所涉及的无线互联网接入技术可以包括WLAN(无线LAN)(Wi-Fi)、Wibro(无线宽带)、Wimax(全球微波互联接入)、HSDPA(高速下行链路分组接入)等等。The wireless internet module 113 supports wireless internet access of the mobile terminal. The module can be internally or externally coupled to the mobile terminal. The wireless Internet access technologies involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro (Wireless Broadband), Wimax (Worldwide Interoperability for Microwave Access), HSDPA (High Speed Downlink Packet Access), etc. .
无线互联网模块113可以实施为无线相容性(WiFi)模块,用于检测无线互联网模块113接入网络所使用的网络接入设备(如无线路由器,无线接入点)的设备标识(如MAC地址等),由于通过该网络接入设备接入网络的终端设备会不可避免地使用定位服务,因此服务器侧可以收集这些终端设备使用定位服务时的地理位置并与网络接入设备的标识关联;后续,一旦移动终端可以基于向服务器侧发送网络接入设备的设备标识,在采集 环境的每个采集周期基于网络接入设备的设备标识获取在服务器侧与设备标识关联的地理位置作为移动终端的地理位置,即使网络接入设备的地理位置发生更新,也能够及时获取网络接入设备的最新地理位置作为移动终端的地理位置。The wireless internet module 113 can be implemented as a wireless compatibility (WiFi) module for detecting a device identifier (such as a MAC address) of a network access device (such as a wireless router, a wireless access point) used by the wireless internet module 113 to access the network. And so on, because the terminal device accessing the network through the network access device inevitably uses the location service, the server side can collect the geographical location when the terminal device uses the location service and associate with the identifier of the network access device; Once the mobile terminal can send the device identifier of the network access device to the server side, the collection is performed. The location of the network access device is obtained based on the device identifier of the network access device, and the geographic location associated with the device identifier is obtained as the geographic location of the mobile terminal. Even if the geographic location of the network access device is updated, the network access can be obtained in time. The latest geographic location of the device as the geographic location of the mobile terminal.
相机121对环境进行视频采集得到视频数据,如AVI、MP4等格式的视频数据并存储至存储器160。控制器180在相机121的每个采集周期的读取无线互联网模块113输出的地理位置,将地理位置写入相机121在相应采集周期采集环境得到的视频数据,其中相机121的每个采集周期与至少一个视频帧对应(也就是相机121在一个采集周期内至少采集一个视频帧);基于写入地理位置的视频数据生成视频文件。The camera 121 performs video capture on the environment to obtain video data, such as video data in a format such as AVI, MP4, and the like, and stores it in the memory 160. The controller 180 writes the geographic location to the video data obtained by the camera 121 in the corresponding collection period in the geographic location output by the reading wireless internet module 113 of each acquisition cycle of the camera 121, wherein each acquisition cycle of the camera 121 is At least one video frame corresponds (that is, the camera 121 acquires at least one video frame in one acquisition cycle); and generates a video file based on the video data written to the geographic location.
控制器180确定对视频文件进行分割所使用的地理位置区间的粒度(例如城区、县市等,实际实施中粒度可以基于用户的指令确定,或者根据移动终端的历史移动范围进行划分得到),确定视频文件中视频数据的地理位置所归属的与粒度对应的地理位置区间(这里的地理位置区域与前述的粒度对应,如前述的粒度为城区,则确定视频文件中各采集周期的视频数据归属的地理位置区间,也就是确定视频文件中各采集周期的视频数据时移动终端所处的地理位置区间),基于视频文件的时间轴确定与视频文件中视频数据(对应不同的采集周期)的地理位置区间归属的时间区间,基于所确定的时间区间对视频文件进行分割处理得到与地理位置区间对应的视频文件片段。The controller 180 determines the granularity of the geographic location interval used for segmenting the video file (for example, an urban area, a county, and the like. In actual implementation, the granularity may be determined based on an instruction of the user, or may be determined according to a historical moving range of the mobile terminal), and determined. The geographical location corresponding to the granularity to which the geographic location of the video data belongs in the video file (the geographical location area here corresponds to the foregoing granularity, and if the granularity is the urban area, the video data of each collection period in the video file is determined to belong to The geographical location interval, that is, the geographical location interval in which the mobile terminal is located when determining the video data of each collection period in the video file, and determining the geographic location of the video data in the video file (corresponding to different collection periods) based on the time axis of the video file The time interval of the interval attribution, the video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
控制器180基于所确定的时间区间对视频文件进行分割处理,得到与地理位置区间对应的视频文件片段时,如果存在至少两个视频文件片段归属于相同地理位置区间的情况,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;例如,分割得到4个视频文件片段,对应归属于宝安区、宝安区、南山区和福田区四个地理位置 区间,则将前2个视频文件片段合并,得到对应宝安区、南山区和福田区的3个视频文件片段,可选地,视频文件片段以所归属的地理位置区间进行命名,分割后得到的视频文件片段命名的一个示例为:宝安区.MP4;南山区.MP4和福田区四.MP4。实际实施时,可选地,控制器180读取用户是否设置开启了将归属于相同地理位置区间的视频文件片段合并的功能,如果开启,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;如果未开启,则输出分割后得到的视频文件片段。The controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, and if there are at least two video file segments belonging to the same geographical location interval, the controller will belong to the same The video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographical interval; for example, four video file segments are obtained by segmentation, corresponding to four geographic locations belonging to Baoan District, Baoan District, Nanshan District and Futian District. In the interval, the first two video file segments are merged to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District. Optionally, the video file segment is named after the geographical location to which it belongs, and is obtained after segmentation. An example of the naming of video file fragments is: Baoan District. MP4; Nanshan District. MP4 and Futian District IV. MP4. In actual implementation, optionally, the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
用户在利用相机121获取多个地理位置区间采集环境得到视频时,可能存在均需要部分地理位置区间的视频文件片段的情况,而不需要另外一部分地理位置区间(这里设为第一地理位置区间)对应的视频文件片段,那么,控制器180获取预设的与粒度对应的第一地理位置区间,例如在用户使用相机121在宝安区、南山区和福田区采集环境生成视频文件时,控制显示单元151显示视频文件中视频数据的地理位置区间:宝安区、南山区和福田区。供用户选择需要那个地理位置区间的视频文件片段,这里设用户选定了宝安区、南山区,则控制器180在确定视频文件的时间轴上与福田区(第一地理位置区间)对应的第一时间区间;基于视频文件的时间轴滤除第一时间区间对应的视频文件片段得到更新的视频文件,更新的视频文件片段仅包括宝安区、南山区采集的视频数据,将更新视频文件进行分割处理得到与地理位置区间(宝安区、南山区)对应的视频文件片段。When the user obtains a video by using the camera 121 to obtain a plurality of geographic location collection environments, there may be a case where a video file segment of a part of the geographic location interval is required, and no other geographic location interval (here, the first geographical location interval) is required. Corresponding video file segment, the controller 180 acquires a preset first geographic location interval corresponding to the granularity, for example, when the user uses the camera 121 to collect environment generated video files in Baoan District, Nanshan District and Futian District, and controls the display unit. 151 shows the geographical location of the video data in the video file: Baoan District, Nanshan District and Futian District. For the user to select a video file segment that requires that geographical interval, where the user selects Baoan District and Nanshan District, the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file. A time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated. The video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
本实施例中基于WiFi方式检测各从采集周期的地理位置,不需要移动终端中设置GPS模块,视基于视频文件中视频数据(如各采集周期的视频数据)归属的地理位置区间,确定对视频文件进行分割所使用的时间区间,基于时间区间对视频文件进行分割,能够对实现对视频文件中视频数据的采集位置对应的地理位置区间进行分割,例如移动终端实施为行车记录仪 时,采集的视频文件按不同的地理位置区间信息进行分割,可以快速知道经过哪些区域,播放对应视频就可以知道该区域发生的情况。In this embodiment, the geographic location of each slave acquisition period is detected based on the WiFi mode, and the GPS module is not required to be set in the mobile terminal, and the video is determined based on the geographic location of the video data (such as video data of each collection period) in the video file. The time interval used for segmentation of the file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, the mobile terminal is implemented as a driving recorder. When the collected video files are divided according to different geographical interval information, it is possible to quickly know which areas have passed, and play the corresponding video to know what is happening in the area.
实施例三Embodiment 3
图5为本实施例的移动终端的硬件结构示意图,如图5所示,移动终端可以包括无线通信单元110、A/V(音频/视频)输入单元120、输出单元150、存储器160、接口单元170、控制器180和电源单元190等等。图5示出了具有各种组件的移动终端,但是应理解的是,并不要求实施所有示出的组件。可以替代地实施更多或更少的组件。将在下面详细描述移动终端的元件。5 is a schematic structural diagram of hardware of a mobile terminal according to the embodiment. As shown in FIG. 5, the mobile terminal may include a wireless communication unit 110, an A/V (audio/video) input unit 120, an output unit 150, a memory 160, and an interface unit. 170, controller 180 and power supply unit 190, and the like. Figure 5 illustrates a mobile terminal having various components, but it should be understood that not all illustrated components are required to be implemented. More or fewer components can be implemented instead. The elements of the mobile terminal will be described in detail below.
无线通信单元110通常包括一个或多个组件,其允许移动终端与无线通信系统或网络之间的无线电通信。例如,无线通信单元可以包括移动通信模块112。 Wireless communication unit 110 typically includes one or more components that permit radio communication between the mobile terminal and a wireless communication system or network. For example, the wireless communication unit can include a mobile communication module 112.
移动通信模块112将无线电信号发送到基站(例如,接入点、节点B等等)、外部终端以及服务器中的至少一个和/或从其接收无线电信号。这样的无线电信号可以包括语音通话信号、视频通话信号、或者根据文本和/或多媒体消息发送和/或接收的各种类型的数据。The mobile communication module 112 transmits the radio signals to and/or receives radio signals from at least one of a base station (e.g., an access point, a Node B, etc.), an external terminal, and a server. Such radio signals may include voice call signals, video call signals, or various types of data transmitted and/or received in accordance with text and/or multimedia messages.
至此,已经按照其功能描述了移动终端。下面,为了简要起见,将描述诸如折叠型、直板型、摆动型、滑动型移动终端等等的各种类型的移动终端中的滑动型移动终端作为示例。因此,本发明能够应用于任何类型的移动终端,并且不限于滑动型移动终端。So far, the mobile terminal has been described in terms of its function. Hereinafter, for the sake of brevity, a slide type mobile terminal among various types of mobile terminals such as a folding type, a bar type, a swing type, a slide type mobile terminal, and the like will be described as an example. Therefore, the present invention can be applied to any type of mobile terminal, and is not limited to a slide type mobile terminal.
如图5中所示的移动终端可以被构造为利用经由帧或分组发送数据的诸如有线和无线通信系统以及基于卫星的通信系统来操作。The mobile terminal as shown in FIG. 5 can be configured to operate using a communication system such as a wired and wireless communication system and a satellite-based communication system that transmits data via frames or packets.
现在将参考图6描述其中根据本发明的移动终端能够操作的通信系统。A communication system in which a mobile terminal according to the present invention can be operated will now be described with reference to FIG.
这样的通信系统可以使用不同的空中接口和/或物理层。例如,由通信系统使用的空中接口包括例如频分多址(FDMA)、时分多址(TDMA)、码 分多址(CDMA)和通用移动通信系统(UMTS)(特别地,长期演进(LTE))、全球移动通信系统(GSM)等等。作为非限制性示例,下面的描述涉及CDMA通信系统,但是这样的教导同样适用于其它类型的系统。Such communication systems may use different air interfaces and/or physical layers. For example, the air interface used by the communication system includes, for example, Frequency Division Multiple Access (FDMA), Time Division Multiple Access (TDMA), code. Divisional Multiple Access (CDMA) and Universal Mobile Telecommunications System (UMTS) (particularly, Long Term Evolution (LTE)), Global System for Mobile Communications (GSM), and the like. As a non-limiting example, the following description relates to a CDMA communication system, but such teachings are equally applicable to other types of systems.
参考图6,CDMA无线通信系统可以包括多个移动终端、多个基站(BS)270、基站控制器(BSC)275和移动交换中心(MSC)280。MSC280被构造为与公共电话交换网络(PSTN)290形成接口。MSC280还被构造为与可以经由回程线路耦接到基站270的BSC275形成接口。回程线路可以根据若干己知的接口中的任一种来构造,接口包括例如E1/T1、ATM,IP、PPP、帧中继、HDSL、ADSL或xDSL。将理解的是,如图4中所示的系统可以包括多个BSC2750。Referring to FIG. 6, a CDMA wireless communication system may include a plurality of mobile terminals, a plurality of base stations (BS) 270, a base station controller (BSC) 275, and a mobile switching center (MSC) 280. The MSC 280 is configured to interface with a public switched telephone network (PSTN) 290. The MSC 280 is also configured to interface with a BSC 275 that can be coupled to the base station 270 via a backhaul line. The backhaul line can be constructed in accordance with any of a number of well known interfaces including, for example, E1/T1, ATM, IP, PPP, Frame Relay, HDSL, ADSL, or xDSL. It will be understood that the system as shown in Figure 4 can include multiple BSC 2750s.
每个BS270可以服务一个或多个分区(或区域),由多向天线或指向特定方向的天线覆盖的每个分区放射状地远离BS270。或者,每个分区可以由用于分集接收的两个或更多天线覆盖。每个BS270可以被构造为支持多个频率分配,并且每个频率分配具有特定频谱(例如,1.25MHz,5MHz等等)。Each BS 270 can serve one or more partitions (or regions), each of which is covered by a multi-directional antenna or an antenna directed to a particular direction radially away from the BS 270. Alternatively, each partition may be covered by two or more antennas for diversity reception. Each BS 270 can be configured to support multiple frequency allocations, and each frequency allocation has a particular frequency spectrum (eg, 1.25 MHz, 5 MHz, etc.).
分区与频率分配的交叉可以被称为CDMA信道。BS270也可以被称为基站收发器子系统(BTS)或者其它等效术语。在这样的情况下,术语“基站”可以用于笼统地表示单个BSC275和至少一个BS270。基站也可以被称为"蜂窝站"。或者,特定BS270的各分区可以被称为多个蜂窝站。The intersection of partitioning and frequency allocation can be referred to as a CDMA channel. BS 270 may also be referred to as a Base Transceiver Subsystem (BTS) or other equivalent terminology. In such a case, the term "base station" can be used to generally refer to a single BSC 275 and at least one BS 270. A base station can also be referred to as a "cell station." Alternatively, each partition of a particular BS 270 may be referred to as a plurality of cellular stations.
如图6中所示,广播发射器(BT)295将广播信号发送给在系统内操作的移动终端。如图5中所示的广播接收模块111被设置在移动终端处以接收由BT295发送的广播信号。在图6中,示出了几个全球定位系统(GPS)卫星300。卫星300帮助定位多个移动终端中的至少一个。As shown in FIG. 6, a broadcast transmitter (BT) 295 transmits a broadcast signal to a mobile terminal operating within the system. A broadcast receiving module 111 as shown in FIG. 5 is provided at the mobile terminal to receive a broadcast signal transmitted by the BT 295. In Figure 6, several Global Positioning System (GPS) satellites 300 are shown. Satellite 300 helps locate at least one of a plurality of mobile terminals.
在图6中,描绘了多个卫星300,但是理解的是,可以利用任何数目的卫星获得有用的定位信息。如图1中所示的GPS模块115通常被构造为与 卫星300配合以获得想要的定位信息。替代GPS跟踪技术或者在GPS跟踪技术之外,可以使用可以跟踪移动终端的位置的其它技术。另外,至少一个GPS卫星300可以选择性地或者额外地处理卫星DMB传输。In Figure 6, a plurality of satellites 300 are depicted, but it is understood that useful positioning information can be obtained using any number of satellites. The GPS module 115 as shown in Figure 1 is typically constructed to The satellite 300 cooperates to obtain the desired positioning information. Instead of GPS tracking technology or in addition to GPS tracking technology, other techniques that can track the location of the mobile terminal can be used. Additionally, at least one GPS satellite 300 can selectively or additionally process satellite DMB transmissions.
作为无线通信系统的一个典型操作,BS270接收来自各种移动终端的反向链路信号。移动终端通常参与通话、消息收发和其它类型的通信。特定基站270接收的每个反向链路信号被在特定BS270内进行处理。获得的数据被转发给相关的BSC275。BSC提供通话资源分配和包括BS270之间的软切换过程的协调的移动管理功能。BSC275还将接收到的数据路由到MSC280,其提供用于与PSTN290形成接口的额外的路由服务。类似地,PSTN290与MSC280形成接口,MSC与BSC275形成接口,并且BSC275相应地控制BS270以将正向链路信号发送到移动终端。As a typical operation of a wireless communication system, BS 270 receives reverse link signals from various mobile terminals. Mobile terminals typically participate in calls, messaging, and other types of communications. Each reverse link signal received by a particular base station 270 is processed within a particular BS 270. The obtained data is forwarded to the relevant BSC 275. The BSC provides call resource allocation and coordinated mobility management functions including a soft handoff procedure between the BSs 270. The BSC 275 also routes the received data to the MSC 280, which provides additional routing services for interfacing with the PSTN 290. Similarly, PSTN 290 interfaces with MSC 280, which forms an interface with BSC 275, and BSC 275 controls BS 270 accordingly to transmit forward link signals to the mobile terminal.
基于上述移动终端硬件结构以及通信系统提出本实施例。The present embodiment is proposed based on the above-described mobile terminal hardware structure and communication system.
移动通信模块112接收无线通信系统基于移动通信模块112的驻留小区信息确定的移动终端的地理位置,无线通信系统基于移动终端所驻留小区的小区识别号(Cell-ID号)来确定移动终端的地理位置。只要无线通信系统能够采集到移动终端所在小区基站在地图上的地理位置,以及小区的覆盖半径,则当移动终端在所处小区注册后,无线通信系统就能够确定移动终端处于哪一小区,移动终端在小区的定位精度取决于小区半径。The mobile communication module 112 receives the geographic location of the mobile terminal determined by the wireless communication system based on the camped cell information of the mobile communication module 112, and the wireless communication system determines the mobile terminal based on the cell identification number (Cell-ID number) of the cell in which the mobile terminal resides. Geographic location. As long as the wireless communication system can collect the geographical location of the cell base station where the mobile terminal is located on the map and the coverage radius of the cell, when the mobile terminal registers with the cell, the wireless communication system can determine which cell the mobile terminal is in, and move. The positioning accuracy of the terminal in the cell depends on the cell radius.
相机121对环境进行视频采集得到视频数据,如AVI、MP4等格式的视频数据并存储至存储器160。控制器180在相机121的每个采集周期的读取无线互联网模块113输出的地理位置,将地理位置写入相机121在相应采集周期采集环境得到的视频数据,其中相机121的每个采集周期与至少一个视频帧对应(也就是相机121在一个采集周期内至少采集一个视频帧);基于写入地理位置的视频数据生成视频文件。The camera 121 performs video capture on the environment to obtain video data, such as video data in a format such as AVI, MP4, and the like, and stores it in the memory 160. The controller 180 writes the geographic location to the video data obtained by the camera 121 in the corresponding collection period in the geographic location output by the reading wireless internet module 113 of each acquisition cycle of the camera 121, wherein each acquisition cycle of the camera 121 is At least one video frame corresponds (that is, the camera 121 acquires at least one video frame in one acquisition cycle); and generates a video file based on the video data written to the geographic location.
控制器180确定对视频文件进行分割所使用的地理位置区间的粒度(例 如城区、县市等,实际实施中粒度可以基于用户的指令确定,或者根据移动终端的历史移动范围进行划分得到),确定视频文件中视频数据的地理位置所归属的与粒度对应的地理位置区间(这里的地理位置区域与前述的粒度对应,如前述的粒度为城区,则确定视频文件中各采集周期的视频数据归属的地理位置区间,也就是确定视频文件中各采集周期的视频数据时移动终端所处的地理位置区间),基于视频文件的时间轴确定与视频文件中视频数据(对应不同的采集周期)的地理位置区间归属的时间区间,基于所确定的时间区间对视频文件进行分割处理得到与地理位置区间对应的视频文件片段。The controller 180 determines the granularity of the geographic location interval used to segment the video file (eg, For example, in an urban area, a county, or the like, the actual implementation granularity may be determined based on a user's instruction, or may be determined according to a historical mobile range of the mobile terminal, and determine a geographical interval corresponding to the granularity of the geographic location of the video data in the video file. (The geographical area here corresponds to the foregoing granularity. If the granularity is the urban area, the geographical location of the video data in each collection period in the video file is determined, that is, the video data of each collection period in the video file is determined to be moved. The geographic location interval in which the terminal is located, based on the time axis of the video file, determines a time interval to which the geographic location of the video data in the video file belongs (corresponding to different acquisition periods), and divides the video file based on the determined time interval. A video file fragment corresponding to the geographic location interval is obtained.
控制器180基于所确定的时间区间对视频文件进行分割处理,得到与地理位置区间对应的视频文件片段时,如果存在至少两个视频文件片段归属于相同地理位置区间的情况,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;例如,分割得到4个视频文件片段,对应归属于宝安区、宝安区、南山区和福田区四个地理位置区间,则将前2个视频文件片段合并,得到对应宝安区、南山区和福田区的3个视频文件片段,可选地,视频文件片段以所归属的地理位置区间进行命名,分割后得到的视频文件片段命名的一个示例为:宝安区.MP4;南山区.MP4和福田区四.MP4。实际实施时,可选地,控制器180读取用户是否设置开启了将归属于相同地理位置区间的视频文件片段合并的功能,如果开启,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;如果未开启,则输出分割后得到的视频文件片段。The controller 180 performs a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, and if there are at least two video file segments belonging to the same geographical location interval, the controller will belong to the same The video file segments of the geographic location are merged to obtain a video file segment corresponding to the geographic location interval; for example, four video file segments are obtained by segmentation, corresponding to four geographic location ranges belonging to Baoan District, Baoan District, Nanshan District and Futian District, Combine the first two video file segments to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District. Optionally, the video file segment is named after the geographical location segment to which it belongs, and the video file segment obtained after segmentation is obtained. An example of the naming is: Baoan District. MP4; Nanshan District. MP4 and Futian District IV. MP4. In actual implementation, optionally, the controller 180 reads whether the user sets the function of combining the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographic location to obtain A video file segment corresponding to the geographic location interval; if not, the video file segment obtained after the segmentation is output.
用户在利用相机121获取多个地理位置区间采集环境得到视频时,可能存在均需要部分地理位置区间的视频文件片段的情况,而不需要另外一部分地理位置区间(这里设为第一地理位置区间)对应的视频文件片段, 那么,控制器180获取预设的与粒度对应的第一地理位置区间,例如在用户使用相机121在宝安区、南山区和福田区采集环境生成视频文件时,控制显示单元151显示视频文件中视频数据的地理位置区间:宝安区、南山区和福田区。供用户选择需要那个地理位置区间的视频文件片段,这里设用户选定了宝安区、南山区,则控制器180在确定视频文件的时间轴上与福田区(第一地理位置区间)对应的第一时间区间;基于视频文件的时间轴滤除第一时间区间对应的视频文件片段得到更新的视频文件,更新的视频文件片段仅包括宝安区、南山区采集的视频数据,将更新视频文件进行分割处理得到与地理位置区间(宝安区、南山区)对应的视频文件片段。When the user obtains a video by using the camera 121 to obtain a plurality of geographic location collection environments, there may be a case where a video file segment of a part of the geographic location interval is required, and no other geographic location interval (here, the first geographical location interval) is required. Corresponding video file fragment, Then, the controller 180 acquires a preset first geographic location interval corresponding to the granularity. For example, when the user uses the camera 121 to collect environment generated video files in the Baoan District, Nanshan District, and Futian District, the control display unit 151 displays the video in the video file. Geographical location of the data: Baoan District, Nanshan District and Futian District. For the user to select a video file segment that requires that geographical interval, where the user selects Baoan District and Nanshan District, the controller 180 corresponds to the Futian District (the first geographic location interval) on the time axis of the determined video file. A time interval; the video file segment corresponding to the first time interval is filtered based on the time axis of the video file to obtain an updated video file, and the updated video file segment only includes video data collected by Baoan District and Nanshan District, and the video file is updated. The video file segment corresponding to the geographical location interval (Baoan District, Nanshan District) is processed.
本实施例中基于WiFi方式检测各从采集周期的地理位置,不需要移动终端中设置GPS模块,视基于视频文件中视频数据(如各采集周期的视频数据)归属的地理位置区间,确定对视频文件进行分割所使用的时间区间,基于时间区间对视频文件进行分割,能够对实现对视频文件中视频数据的采集位置对应的地理位置区间进行分割,例如移动终端实施为行车记录仪时,采集的视频文件按不同的地理位置区间信息进行分割,可以快速知道经过哪些区域,播放对应视频就可以知道该区域发生的情况。In this embodiment, the geographic location of each slave acquisition period is detected based on the WiFi mode, and the GPS module is not required to be set in the mobile terminal, and the video is determined based on the geographic location of the video data (such as video data of each collection period) in the video file. The time interval used for the segmentation of the file, the video file is segmented based on the time interval, and the geographic location interval corresponding to the location of the video data in the video file can be divided, for example, when the mobile terminal is implemented as a driving recorder, the collected The video file is divided according to different geographical interval information, and it is possible to quickly know which areas have passed, and play the corresponding video to know what is happening in the area.
实施例一至实施例三分别就移动终端采用位置信息模块115、无线互联网模块113和移动通信模块112之一来获取移动终端的地理位置,当然实施实施时可以采用其中任意两个模块或采用全部三个模块的方式来配合确定移动终端的地理位置,确保总是能够获取移动终端地理位置,例如在位置信息模块115无法接收GPS信号时,可以利用无线互联网模块113和移动通信模块112输出的地理位置来综合确定移动终端的地理位置,如采用无线互联网模块113和移动通信模块112输出地理位置的中间位置来作为移动终端的地理位置。The first embodiment to the third embodiment respectively use the location information module 115, the wireless internet module 113, and the mobile communication module 112 to obtain the geographic location of the mobile terminal, and of course, any two modules or all three may be used in the implementation. The manner of modules to cooperate to determine the geographic location of the mobile terminal ensures that the geographic location of the mobile terminal can always be obtained, for example, when the location information module 115 cannot receive the GPS signal, the geographic location output by the wireless internet module 113 and the mobile communication module 112 can be utilized. To comprehensively determine the geographic location of the mobile terminal, such as using the wireless internet module 113 and the mobile communication module 112 to output the intermediate location of the geographic location as the geographic location of the mobile terminal.
实施例四 Embodiment 4
与前述实施例的记载对应,本实施例记载一种视频处理方法,参见图7,包括以下步骤:Corresponding to the description of the foregoing embodiment, this embodiment describes a video processing method. Referring to FIG. 7, the following steps are included:
步骤101,进行视频采集得到视频数据。In step 101, video recording is performed to obtain video data.
步骤102,将采集得到视频数据时移动终端所处的地理位置写入视频数据,并基于写入地理位置的视频数据生成视频文件。Step 102: Write the geographic location where the mobile terminal is located when the video data is collected to the video data, and generate a video file based on the video data written in the geographic location.
在相机的每个采集周期的读取位置信息模块输出的地理位置信息并写入相机在相应采集周期采集环境得到的视频数据;Reading the geographic location information output by the location information module in each acquisition cycle of the camera and writing the video data obtained by the camera in the corresponding collection period acquisition environment;
其中采用以下方式至少之一获取移动终端的地理位置:The geographic location of the mobile terminal is obtained by using at least one of the following methods:
接收定位信号,基于定位信号输出移动终端的地理位置;Receiving a positioning signal, and outputting a geographical location of the mobile terminal based on the positioning signal;
接收无线通信系统基于移动终端驻留小区信息确定的移动终端的地理位置;Receiving a geographic location of the mobile terminal determined by the wireless communication system based on the mobile terminal camping cell information;
检测网络接入设备的设备标识,向服务器侧发送网络接入设备的设备标识,基于网络接入设备的设备标识获取在服务器侧与设备标识关联的地理位置作为移动终端的地理位置。The device identifier of the network access device is detected, and the device identifier of the network access device is sent to the server side, and the geographical location associated with the device identifier on the server side is obtained as the geographic location of the mobile terminal based on the device identifier of the network access device.
步骤103,确定对视频文件进行分割所使用的地理位置区间的粒度,确定视频文件中视频数据的地理位置所归属的与粒度对应的地理位置区间。Step 103: Determine a granularity of a geographic location interval used for segmenting the video file, and determine a geographic location interval corresponding to the granularity to which the geographic location of the video data in the video file belongs.
步骤104,基于视频文件的时间轴确定与各视频数据的地理位置区间归属的时间区间,基于所确定的时间区间对视频文件进行分割处理得到与地理位置区间对应的视频文件片段。Step 104: Determine a time interval corresponding to a geographic location interval of each video data based on a time axis of the video file, and perform segmentation processing on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
确定对视频文件进行分割所使用的地理位置区间的粒度(例如城区、县市等,实际实施中粒度可以基于用户的指令确定,或者根据移动终端的历史移动范围进行划分得到),确定视频文件中视频数据的地理位置所归属的与粒度对应的地理位置区间(这里的地理位置区域与前述的粒度对应,如前述的粒度为城区,则确定视频文件中各采集周期的视频数据归属的地理位置区间,也就是确定视频文件中各采集周期的视频数据时移动终端所 处的地理位置区间),基于视频文件的时间轴确定与视频文件中视频数据(对应不同的采集周期)的地理位置区间归属的时间区间,基于所确定的时间区间对视频文件进行分割处理得到与地理位置区间对应的视频文件片段。Determining the granularity of the geographic location interval used for segmenting the video file (for example, urban area, county, etc., in actual implementation, the granularity may be determined based on the user's instruction or divided according to the historical moving range of the mobile terminal), and the video file is determined. The geographical location corresponding to the granularity to which the geographic location of the video data belongs (the geographical location here corresponds to the foregoing granularity, and if the granularity is the urban area, the geographical location of the video data of each collection period in the video file is determined. , that is, when determining the video data of each collection period in the video file, the mobile terminal The geographic location interval of the video file is determined based on the time axis of the video file to determine the time interval of the geographic location interval with the video data in the video file (corresponding to different acquisition periods), and the video file is segmented based on the determined time interval. A video file fragment corresponding to the geographic location interval.
基于所确定的时间区间对视频文件进行分割处理,得到与地理位置区间对应的视频文件片段时,如果存在至少两个视频文件片段归属于相同地理位置区间的情况,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;例如,分割得到4个视频文件片段,对应归属于宝安区、宝安区、南山区和福田区四个地理位置区间,则将前2个视频文件片段合并,得到对应宝安区、南山区和福田区的3个视频文件片段,可选地,视频文件片段以所归属的地理位置区间进行命名,分割后得到的视频文件片段命名的一个示例为:宝安区.MP4;南山区.MP4和福田区四.MP4。实际实施时,可选地,读取用户是否设置开启了将归属于相同地理位置区间的视频文件片段合并的功能,如果开启,则将归属于相同地理位置的视频文件片段合并,得到与地理位置区间对应的视频文件片段;如果未开启,则输出分割后得到的视频文件片段。Performing a segmentation process on the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval, if there are at least two video file segments belonging to the same geographical location interval, then belonging to the same geographical location The video file segments are merged to obtain a video file segment corresponding to the geographical interval; for example, four video file segments are obtained by segmentation, corresponding to the four geographic regions belonging to Baoan District, Baoan District, Nanshan District and Futian District, and the first two are The video file segments are merged to obtain three video file segments corresponding to Baoan District, Nanshan District and Futian District. Optionally, the video file segment is named after the geographical location of the video file segment, and one of the video file segments obtained after the segmentation is named. Examples are: Baoan District. MP4; Nanshan District. MP4 and Futian District IV. MP4. In actual implementation, optionally, the reading user sets a function to merge the video file segments belonging to the same geographical location interval, and if so, merges the video file segments belonging to the same geographical location to obtain the geographical location. The video file segment corresponding to the interval; if not, the video file segment obtained after the segmentation is output.
用户在利用相机获取多个地理位置区间采集环境得到视频时,可能存在均需要部分地理位置区间的视频文件片段的情况,而不需要另外一部分地理位置区间(这里设为第一地理位置区间)对应的视频文件片段,那么,获取预设的与粒度对应的第一地理位置区间,例如在用户使用相机在宝安区、南山区和福田区采集环境生成视频文件时,显示视频文件中视频数据的地理位置区间:宝安区、南山区和福田区。供用户选择需要那个地理位置区间的视频文件片段,这里设用户选定了宝安区、南山区,则在确定视频文件的时间轴上与福田区(第一地理位置区间)对应的第一时间区间;基于视频文件的时间轴滤除第一时间区间对应的视频文件片段得到更新的 视频文件,更新的视频文件片段仅包括宝安区、南山区采集的视频数据,将更新视频文件进行分割处理得到与地理位置区间(宝安区、南山区)对应的视频文件片段。When a user obtains a video by using a camera to acquire a plurality of geographical interval collection environments, there may be a case where a video file segment of a part of the geographical interval is required, and no other geographical interval (here, the first geographical interval) is required. The video file fragment, then, obtains a preset first geographic location interval corresponding to the granularity, for example, when the user uses the camera to generate a video file in the collection environment of Baoan District, Nanshan District and Futian District, the geographic data of the video data in the video file is displayed. Location range: Baoan District, Nanshan District and Futian District. For the user to select the video file segment that needs the geographical interval, where the user selects Baoan District and Nanshan District, the first time interval corresponding to the Futian District (the first geographical interval) on the time axis of the determined video file is determined. ; based on the timeline of the video file, filtering the video file segment corresponding to the first time interval to be updated The video file and the updated video file segment only include the video data collected in Baoan District and Nanshan District, and the video file is segmented to obtain a video file segment corresponding to the geographical interval (Baoan District, Nanshan District).
综上所述,本实施例所述的视频处理方法具有以下有益效果:In summary, the video processing method described in this embodiment has the following beneficial effects:
1.根据地理地理位置区间自动检测视频中对应的时间区间,然后将视频文件基于时间区间裁剪成在不同地理位置区间采集的视频文件片段;1. automatically detecting a corresponding time interval in the video according to the geographical location interval, and then cutting the video file into video file segments collected in different geographical intervals according to the time interval;
2.根据用户选择移除视频中某一段地理位置区间的视频,并对剩余的视频文件分割为对应不同地理位置区间采集的视频文件片段。2. According to the user's choice, the video of a certain geographical interval in the video is removed, and the remaining video files are segmented into video file segments corresponding to different geographical locations.
实施例一至实施例三分别就移动终端采用位置信息模块115、无线互联网模块113和移动通信模块112之一来获取移动终端的地理位置,当然实施实施时可以采用其中任意两个模块或采用全部三个模块的方式来配合确定移动终端的地理位置,确保总是能够获取移动终端地理位置,例如在位置信息模块115无法接收GPS信号时,可以利用无线互联网模块113和移动通信模块112输出的地理位置来综合确定移动终端的地理位置,如采用无线互联网模块113和移动通信模块112输出地理位置的中间位置来作为移动终端的地理位置。The first embodiment to the third embodiment respectively use the location information module 115, the wireless internet module 113, and the mobile communication module 112 to obtain the geographic location of the mobile terminal, and of course, any two modules or all three may be used in the implementation. The manner of modules to cooperate to determine the geographic location of the mobile terminal ensures that the geographic location of the mobile terminal can always be obtained, for example, when the location information module 115 cannot receive the GPS signal, the geographic location output by the wireless internet module 113 and the mobile communication module 112 can be utilized. To comprehensively determine the geographic location of the mobile terminal, such as using the wireless internet module 113 and the mobile communication module 112 to output the intermediate location of the geographic location as the geographic location of the mobile terminal.
基于上述移动终端硬件结构、移动终端的无线通信系统的结构,本发明还给出了一种视频处理装置及与该视频处理装置对应的视频处理方法。Based on the hardware structure of the mobile terminal and the structure of the wireless communication system of the mobile terminal, the present invention also provides a video processing device and a video processing method corresponding to the video processing device.
实施例五Embodiment 5
如图8所示,示出了本发明视频处理装置的第一实施例。该实施例的视频处理装置包括:As shown in Figure 8, a first embodiment of a video processing device of the present invention is shown. The video processing device of this embodiment includes:
音视频获取模块10,配置为在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包; The audio and video acquisition module 10 is configured to acquire video data and audio data after the mobile terminal starts the recording function, mark the recorded first time stamp for the video data, and encode the video data to generate a video data packet. And marking the recorded second time stamp for the audio data, and encoding the audio data to generate an audio data packet;
本实施例中,移动终端的类型可根据实际需要进行设置,例如,该移动终端可为行车记录仪、手机、iPad、航拍器、相机等。移动终端设置有摄像头、麦克风、导航系统、编码器、混合器、存储器等,其中,摄像头用于采集图像信息,并进行模数转换形成原始视频数据(RAW数据),为RAW数据加上时间戳并送入视频编码器。麦克风用于采集声音信息,进行模数转换后形成音频数据(PCM数据),为PCM数据加上时间戳并送入音频编码器。编码器分为视频编码器和音频编码器,视频编码器对摄像头送入的视频数据进行编码,视频编码器包括H.264、H.265、MPEG-4、VP8等,视频编码器将编码后的视频数据送入混合器。音频编码器对麦克风送入的音频数据进行编码,音频编码器包括AAC、MP3、AMR等,音频编码器将编码后的音视频数据送入混合器。导航系统用于定时取在录制过程中移动终端所在的地理位置信息,即经纬度信息(x,y),为地理位置信息打上时间戳并送入混合器,导航系统可包括GPS、北斗导航、GLONASS等。混合器用于将编码器送入的音视频数据以及导航系统送入的地理位置信息,进行封装打包并写入文件,并保存在存储器中。In this embodiment, the type of the mobile terminal may be set according to actual needs. For example, the mobile terminal may be a driving recorder, a mobile phone, an iPad, an aerial camera, a camera, or the like. The mobile terminal is provided with a camera, a microphone, a navigation system, an encoder, a mixer, a memory, etc., wherein the camera is used for acquiring image information, and performing analog-to-digital conversion to form original video data (RAW data), and time stamping the RAW data. And sent to the video encoder. The microphone is used to collect sound information, perform analog-to-digital conversion to form audio data (PCM data), time stamp the PCM data and send it to the audio encoder. The encoder is divided into a video encoder and an audio encoder. The video encoder encodes the video data sent by the camera. The video encoder includes H.264, H.265, MPEG-4, VP8, etc., and the video encoder will encode the video data. The video data is sent to the mixer. The audio encoder encodes the audio data sent by the microphone, and the audio encoder includes AAC, MP3, AMR, etc., and the audio encoder sends the encoded audio and video data to the mixer. The navigation system is used to periodically take the geographical location information of the mobile terminal during the recording process, that is, the latitude and longitude information (x, y), time stamp the geographical location information and send it to the mixer, and the navigation system may include GPS, Beidou navigation, GLONASS, etc. . The mixer is used for encapsulating the audio and video data sent by the encoder and the geographical location information sent by the navigation system, packaging and writing the file, and storing it in the memory.
需要说明的是,本发明提到的第一时间戳、第二时间戳、第三时间戳中的第一、第二、第三仅是为了便于区分获取视频数据、音频数据及地理位置信息各自所对应的时间戳,并非第一时间戳、第二时间戳、第三时间戳为按照时间戳的先后顺序排序,获取视频数据、音频数据及地理位置信息这三个部分是异步同时进行的,各自有各自的时间戳,每个部分内部才有自己的顺序。It should be noted that the first, second, and third of the first timestamp, the second timestamp, and the third timestamp mentioned in the present invention are only for facilitating the distinction between acquiring video data, audio data, and geographic location information. The corresponding timestamp is not the first timestamp, the second timestamp, and the third timestamp are sorted according to the timest order, and the three parts of obtaining video data, audio data, and geographic location information are asynchronously performed simultaneously. Each has its own timestamp, and each part has its own internal order.
移动终端开启录制功能后,在开始录制视频之前,首先为整个录制流程做些准备工作,例如,初始化摄像头、麦克风等。在准备工作完成后,移动终端调用音视频获取模块10通过摄像头开始获取图像信息,将采集到的图像信息进行模数转换为原始视频数据,为视频数据标记所录制的第一 时间戳,并采用H.264或H.265等视频编码器对视频数据进行编码生成视频数据包。同时音视频获取模块10通过麦克风开始获取声音信息,并将采集到的声音信息进行模数转换为音频数据,然后为音视频数据标记所录制的第二时间戳,并通过AAC或AMR等音频编码器对音频数据进行编码生成音频数据包。After the mobile terminal starts the recording function, before starting to record the video, first make some preparations for the entire recording process, for example, initializing the camera, microphone, and so on. After the preparation work is completed, the mobile terminal invokes the audio and video acquisition module 10 to start acquiring image information through the camera, and performs analog-to-digital conversion of the collected image information into original video data, which is the first recorded for the video data mark. The time stamp is used, and the video data is encoded by a video encoder such as H.264 or H.265 to generate a video data packet. At the same time, the audio and video acquisition module 10 starts to acquire sound information through the microphone, and performs analog-to-digital conversion of the collected sound information into audio data, and then marks the recorded second time stamp for the audio and video data, and encodes the audio through AAC or AMR. The device encodes the audio data to generate an audio data packet.
需要说明的是,第一时间戳和第二时间戳可以是进行视频录制的北京时间,例如,当录制时间为从8:00至10:00时,第一时间戳或第二时间戳可为8:30。也可以是从开始录制时的时间为0开始计时的相对时间,例如,当录制时间为从第0至10分钟时,第一时间戳或第二时间戳可为进行录制的第5分钟。It should be noted that the first timestamp and the second timestamp may be Beijing time for video recording. For example, when the recording time is from 8:00 to 10:00, the first timestamp or the second timestamp may be 8:30. It may also be a relative time from the start of recording to a time of 0. For example, when the recording time is from 0 to 10 minutes, the first time stamp or the second time stamp may be the 5th minute of recording.
位置信息获取模块20,配置为每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;The location information obtaining module 20 is configured to acquire the geographical location information recorded by the mobile terminal every preset time, and mark the recorded third time stamp for the geographical location information;
在开始进行视频录制后,在上述获取音视频数据的同时,移动终端调用位置信息获取模块20通过GPS或北斗导航等导航系统以每隔预设时间进行地理位置信息的提取,该地理位置信息可为经纬度信息,该预设时间可根据具体情况而灵活设置。例如,当前进行录制的移动终端在“深圳大学”,导航系统获取得到的地理位置信息为(113.943044,22.5407)。同时将获取的地理位置信息标志当前所录制的第三时间戳,该第三时间戳与上述提到的第一时间戳及第二时间戳的设置格式一致,可设置为北京时间或者录制的相对时间。After the video recording is started, the mobile terminal invokes the location information acquiring module 20 to extract the geographic location information by using a navigation system such as GPS or Beidou navigation at the preset time. For latitude and longitude information, the preset time can be flexibly set according to the specific situation. For example, the mobile terminal currently recording is in "Shenzhen University", and the geographical location information obtained by the navigation system is (113.943044, 22.5407). At the same time, the obtained geographical location information marks the currently recorded third timestamp, and the third timestamp is consistent with the setting format of the first timestamp and the second timestamp mentioned above, and can be set as the relative time of Beijing time or recording. time.
混合生成模块30,配置为将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。The hybrid generation module 30 is configured to write the video data packet, the audio data packet, and the geographic location information into a recording file to record a video with continuous geographic location information, for the mobile terminal to follow the The recording file is played back in the order of a time stamp, the second time stamp, and the third time stamp.
移动终端将上述得到的视频数据包、音频数据包及地理位置信息,由 混合生成模块30依据视频容器的格式标准封装写入录制文件中,并进行存储在存储器中,以方便保存与传输,该视频容器的格式标准可包括mp4、mkv、rmvb、avi等格式。然后判断是否侦测到结束录制的指令,若未侦测到录制结束的指令,则循环执行上述步骤S10至步骤S30,进行音视频数据及地理位置信息的获取,并分别标志对应的时间戳,写入录制文件。若侦测到录制结束指令,则结束录制,终止摄像头、麦克风、导航系统等不再进行数据获取。The mobile terminal obtains the video data packet, the audio data packet and the geographical location information obtained by the above The hybrid generation module 30 encapsulates the write recording file according to the format standard of the video container, and stores it in the memory for convenient storage and transmission. The format standard of the video container may include mp4, mkv, rmvb, avi, and the like. Then, it is determined whether the instruction to end the recording is detected. If the instruction to end the recording is not detected, the above steps S10 to S30 are cyclically executed to acquire the audio and video data and the geographical location information, and respectively mark the corresponding time stamp. Write to the recording file. If the recording end command is detected, the recording ends, and the camera, microphone, navigation system, etc. are terminated, and data acquisition is no longer performed.
得到的录制文件中包含了连续的音频轨(Audio Track)、视频轨(Video Track)、地理位置信息轨(Loc Track)等,实现了录制带有连续地理位置信息的视频。移动终端在进行视频回放时,按照第一时间戳、第二时间戳及第三时间戳的先后顺序回放该录制文件。使得生成的视频文件中包含了移动终端在录制过程中所经过的连续地理位置信息序列,这样在回放视频时,用户可以查看录制视频时所经过的地理位置信息。The obtained recording file includes a continuous audio track (Audio Track), a video track (Video Track), a Loc Track, and the like, and realizes recording a video with continuous geographical position information. When the video terminal performs video playback, the mobile terminal plays back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp. The generated video file includes a sequence of continuous geographic location information that the mobile terminal passes during the recording process, so that when the video is played back, the user can view the geographical location information when the video is recorded.
以下将进行举例说明,在一实施例中,如图9所示,为一进行视频录制生成录制文件的结构示意图,移动终端按视频容器的标准,将视频数据包、音频数据包及地理位置信息这三种数据进行交叉存放至录制文件,在录制文件的开头写上视频文件头,在接收到结束录制的指令后,在录制文件的最后写上视频文件尾。具体地,图9中,Video表示视频数据包,Audio表示音频数据包,Loc表示地理位置信息数据包。按照获取的时间先后顺序,在获取视频数据、音频数据及地理位置信息的过程中,将首先获取到的视频数据包Video写入录制文件,再将获取到的地理位置信息Loc写入录制文件,然后将下一时间获取到的音频数据包Audio写入录制文件,不断进行循环获取数据并混合写入录制文件,直至接收到结束录制指令时才停止录制。使得当用户需要记录视频录制期间所经过的路线时,可以便于查看录制视频关联的地理位置信息,例如,行车记录仪利用本方案提供的方法 进行录制视频后,在回放时可以很方便的查看行车路线,以及可以获知视频某个时间点的画面是在哪个地理位置上录制的。The following is an example. In an embodiment, as shown in FIG. 9, a schematic diagram of generating a recording file for video recording, the mobile terminal according to the standard of the video container, the video data packet, the audio data packet, and the geographical location information. These three kinds of data are cross-stored to the recording file, and the video file header is written at the beginning of the recording file. After receiving the instruction to end the recording, the video file end is written at the end of the recording file. Specifically, in FIG. 9, Video represents a video data packet, Audio represents an audio data packet, and Loc represents a geographic location information data packet. According to the chronological order of acquisition, in the process of acquiring video data, audio data and geographical location information, the first obtained video data packet Video is written into the recording file, and then the obtained geographical location information Loc is written into the recording file. Then, the audio data packet Audio acquired in the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until the end of the recording instruction is received. When the user needs to record the route that passes during the video recording, it is convenient to view the geographical location information associated with the recorded video, for example, the driving recorder utilizes the method provided by the solution. After recording the video, you can easily view the driving route during playback, and you can know where the video is recorded at a certain point in time.
在另一实施例中,如图10所示,为另一进行视频录制生成录制文件的结构示意图,移动终端按视频容器的标准,先将视频数据包和音频数据混合存放至视频文件,在视频文件的开头写上视频文件头,在视频文件的最后写上视频文件尾。地理位置信息存放至地理位置信息文件,再将地理位置信息文件拼接至视频文件的尾部,形成录制文件。具体地,图10中,Video表示视频数据包,Audio表示音频数据包,Loc表示地理位置信息数据包。按照获取的时间先后顺序,在获取视频数据和音频数据过程中,将首先获取到的视频数据包Video写入视频文件,再将获取到的音频数据包Audio写入视频文件,然后将下一时间获取到的音频数据包Audio写入视频文件,不断进行循环获取数据并混合写入视频文件。同样地,循环将地理位置信息Loc按照时间的先后顺序依次写入地理位置信息文件。直至在接收到结束录制指令时停止录制,并将地理位置信息文件拼接在视频文件的后面,以形成录制文件。可以理解的是,也可将地理位置信息文件拼接在视频文件的前面,在回放录制文件时,按照时间的先后顺序依次调取出音视频数据或地理位置信息文件进行播放。实现了录制带有连续地理位置信息视频,解决了现有移动终端无法记录所拍摄视频过程的地理位置变化轨迹的问题。In another embodiment, as shown in FIG. 10, a schematic diagram of generating a recording file for another video recording, the mobile terminal first mixes the video data packet and the audio data into a video file according to the standard of the video container, in the video. Write the video file header at the beginning of the file and the video file end at the end of the video file. The geographical location information is stored in the geographic location information file, and then the geographical location information file is spliced to the end of the video file to form a recording file. Specifically, in FIG. 10, Video represents a video data packet, Audio represents an audio data packet, and Loc represents a geographic location information data packet. According to the chronological order of acquisition, in the process of acquiring video data and audio data, the first obtained video data packet Video is written into the video file, and then the obtained audio data packet Audio is written into the video file, and then the next time is obtained. The acquired audio data packet Audio is written to the video file, and the data is continuously looped and mixed and written to the video file. Similarly, the loop sequentially writes the geographical location information Loc into the geographic location information file in chronological order. The recording is stopped until the end of the recording instruction is received, and the geographical location information file is stitched behind the video file to form a recording file. It can be understood that the geographic location information file can also be spliced in front of the video file. When the recorded file is played back, the audio and video data or the geographical location information file is sequentially retrieved and played according to the time sequence. The recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographical change track of the captured video process.
需要说明的是,图9和图10的顺序仅仅是一个示例,实际情况中会根据视频数据、音频数据、地理位置信息这三部分同时异步进行,哪个先请求写入文件,则锁定写入,写动作完成后,再释放锁定,后面的其他的部分写请求才会被允许,即Video、Audio、Loc进入写入录制文件的顺序是不定的。It should be noted that the sequence of FIG. 9 and FIG. 10 is only an example. In actual cases, the three parts of the video data, the audio data, and the geographical location information are simultaneously asynchronously performed, and which one is requested to be written to the file, then the write is locked. After the write operation is completed, the lock is released, and other subsequent partial write requests are allowed, that is, the order in which Video, Audio, and Loc enter the write recording file is indefinite.
本发明实施例在移动终端进行视频录制的过程中,对获取到的视频数 据标记所录制的第一时间戳,并对该视频数据进行编码生成视频数据包,以及对获取到的音频数据标记所录制的第二时间戳,并对该音频数据进行编码生成音频数据包。同时,每隔预设时间获取移动终端录制的地理位置信息,为地理位置信息标记所录制的第三时间戳,然后将视频数据包、音频数据包及地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,移动终端可按照第一时间戳、第二时间戳及第三时间戳的先后顺序回放录制文件。从而丰富了移动终端在进行视频录制时所能携带的信息,在进行视频录制的过程中,获取音视频的同时可记录移动终端所在的地理位置信息,并将地理位置信息与音视频数据进行结合形成录制文件。使得生成的录制文件包含了移动终端的连续地理位置信息序列,在回放视频时可以查看录制视频时所经过的地理位置信息。实现了在进行视频录制时记录移动终端所经过的连续地理位置信息,以及提高了移动终端将录制的音视频与地理位置进行关联地便捷性。In the process of video recording by the mobile terminal, the number of acquired videos in the embodiment of the present invention The video data is encoded according to the first timestamp recorded, and the video data is encoded to generate a video data packet, and the recorded second audio data is marked with the second timestamp, and the audio data is encoded to generate an audio data packet. At the same time, the geographical location information recorded by the mobile terminal is obtained every preset time, the third time stamp recorded by the geographical location information is marked, and then the video data packet, the audio data packet and the geographical location information are written into the recording file to record the tape. For a video with continuous geographical location information, the mobile terminal can play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp. Therefore, the information that the mobile terminal can carry when performing video recording is enriched. In the process of video recording, the geographic location information of the mobile terminal can be recorded while acquiring the audio and video, and the geographical location information is combined with the audio and video data. Form a recording file. The generated recording file includes a sequence of continuous geographical location information of the mobile terminal, and the geographical location information of the recorded video can be viewed when the video is played back. The continuous geographical location information recorded by the mobile terminal during video recording is realized, and the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved.
进一步地,基于上述视频处理装置的第一实施例,提出了本发明视频处理装置的第二实施例,该实施例中上述混合生成模块30还配置为,基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。Further, based on the first embodiment of the video processing device, a second embodiment of the video processing device of the present invention is proposed. In the embodiment, the hybrid generation module 30 is further configured to: based on the video data packet, the audio. The first time stamp, the second timestamp, and the third timestamp corresponding to the data packet and the geographic location information respectively, the video data packet, the audio data packet, and the geographic location Information is mixed into the recording file in chronological order.
本实施例中,将得到的视频数据包、音频数据包及地理位置信息写入录制文件时,混合生成模块30可基于视频数据所对应的第一时间戳,音频数据所对应的第二时间戳,以及地理位置信息所对应的第三时间戳,将视频数据、音频数据及地理位置信息按照获取的时间先后顺序,依据视频容器的mp4、mkv、rmvb、avi等格式标准进行封装,混合写入录制文件中并进行存储。In this embodiment, when the obtained video data packet, the audio data packet, and the geographical location information are written into the recording file, the hybrid generation module 30 may be based on the first time stamp corresponding to the video data, and the second time stamp corresponding to the audio data. And the third timestamp corresponding to the geographical location information, and the video data, the audio data, and the geographical location information are encapsulated according to the chronological order of the obtained video, according to the format standard of the video container, such as mp4, mkv, rmvb, avi, etc. Record the file and store it.
进一步地,移动终端在进行视频录制的过程中,混合生成模块30还配 置为,判断是否侦测到结束录制指令;若是,则结束录制;若否,则继续获取视频数据、音频数据及地理位置信息并分别标志对应的时间戳,对继续获取得到的视频数据及音频数据进行编码得到视频数据包及音频数据包,将得到的视频数据包、音频数据包及地理位置信息按照时间先后顺序写入所述录制文件。Further, in the process of performing video recording by the mobile terminal, the hybrid generation module 30 is further configured Set to determine whether the end of the recording command is detected; if so, then end the recording; if not, continue to obtain video data, audio data and geographic location information and respectively mark the corresponding timestamp, to continue to obtain the obtained video data and audio The data is encoded to obtain a video data packet and an audio data packet, and the obtained video data packet, audio data packet, and geographical location information are sequentially written into the recording file in chronological order.
在进行视频回放时,移动终端可根据存储的时间先后顺序依次进行播放,以实现录制带有连续地理位置信息的视频。如图9所示,将视频数据包、音频数据包及地理位置信息这三种数据进行交叉存放至录制文件,在录制文件的开头写上视频文件头,将首先获取到的视频数据包Video写入录制文件,再将获取到的地理位置信息Loc写入录制文件,然后将下一时间获取到的音频数据包Audio写入录制文件,不断进行循环获取数据并混合写入录制文件,直至接收到结束录制指令时停止录制,在录制文件的最后写上视频文件尾。During video playback, the mobile terminal can sequentially play according to the stored chronological order to record a video with continuous geographical location information. As shown in FIG. 9, the video data packet, the audio data packet, and the geographical location information are cross-stored to the recording file, and the video file header is written at the beginning of the recording file, and the first obtained video data packet Video is written. After entering the recording file, the acquired geographical location information Loc is written into the recording file, and then the audio data packet Audio acquired at the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until received. Stop recording when the recording command ends, and write the end of the video file at the end of the recording file.
本实施例将视频数据、音频数据及地理位置信息根据各自所对应的时间戳,按照时间先后顺序交叉混合写入录制文件。提高了移动终端将录制的音视频与地理位置进行关联地便捷性,实现了录制带有连续地理位置信息视频,解决了现有移动终端无法记录所拍摄视频过程的地理位置变化轨迹的问题。In this embodiment, the video data, the audio data, and the geographical location information are cross-mixed and written into the recording file according to the timestamps corresponding thereto. The convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographically changed track of the captured video process.
进一步地,基于上述视频处理装置的第一实施例,提出了本发明视频处理装置的第三实施例,该实施例中上述混合生成模块30还配置为,基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;并在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。 Further, based on the first embodiment of the video processing apparatus, a third embodiment of the video processing apparatus of the present invention is proposed. In the embodiment, the hybrid generation module 30 is further configured to: based on the video data and the audio data. Corresponding to the first timestamp and the second timestamp, the video data packet and the audio data packet are mixed into a video file in chronological order, and the geographical location information is in accordance with the third The order of the time stamps is written into the geographic location information file; and after receiving the end recording instruction, the video file and the geographical location information file are spliced into the recording file.
本实施例中,移动终端将获取到的音频数据和视频数据,与地理位置信息进行分开处理。具体地,混合生成模块30基于视频数据所对应的第一时间戳,音频数据所对应的第二时间戳,将视频数据包和音频数据包按照时间先后顺序混合写入视频文件,此时不再对地理位置信息进行混合处理,即依据按视频容器的mp4、mkv、rmvb、avi等格式标准进行封装,将音频数据包和视频数据包写入视频文件并进行存储(不包含地理位置信息)。另外,将每隔预设时间获取到的地理位置信息按照第三时间戳的顺序写入地理位置信息文件。判断是否侦测到结束录制指令,若未侦测到结束录制指令,则继续循环获取数据进行相应处理并存储。在侦测到结束录制指令时,结束录制,并将得到的视频文件和地理位置信息文件进行拼接写入录制文件。可将地理位置信息文件拼接在视频文件的后面,从而不影响原视频文件所存储的各种信息。如图10所示,将视频数据包和音频数据混合存放至视频文件,在视频文件的开头写上视频文件头,在视频文件的最后写上视频文件尾。地理位置信息存放至地理位置信息文件,在完成录制后再将地理位置信息文件拼接至视频文件的尾部,形成录制文件。In this embodiment, the mobile terminal separates the acquired audio data and video data from the geographic location information. Specifically, the hybrid generation module 30 mixes the video data packet and the audio data packet into the video file in chronological order based on the first time stamp corresponding to the video data and the second time stamp corresponding to the audio data. The geographical location information is mixed, that is, according to the format of the video container mp4, mkv, rmvb, avi, etc., the audio data package and the video data package are written into the video file and stored (excluding the geographical location information). In addition, the geographical location information acquired every preset time is written into the geographic location information file in the order of the third timestamp. It is judged whether the end recording instruction is detected, and if the end recording instruction is not detected, the data is continuously looped for corresponding processing and storage. When the end of the recording instruction is detected, the recording is ended, and the obtained video file and the geographical location information file are spliced into the recording file. The geographic location information file can be spliced behind the video file so as not to affect the various information stored in the original video file. As shown in FIG. 10, the video data package and the audio data are mixed and stored in the video file, the video file header is written at the beginning of the video file, and the video file end is written at the end of the video file. The geographical location information is stored in the geographic location information file, and after the recording is completed, the geographical location information file is stitched to the end of the video file to form a recording file.
本实施例在录制视频过程中,将获取到的音频数据和视频数据,与地理位置信息进行分开处理后合并。根据视频数据包和音频数据包的获取时间顺序混合写入视频文件,将间隔预设时间获取到地理位置信息存储入地理位置信息文件,在将视频文件和地理位置信息文件拼接写入录制文件中。提高了移动终端将录制的音视频与地理位置进行关联地便捷性,实现了在进行视频录制时记录移动终端所经过的连续地理位置信息。In the process of recording a video, the obtained audio data and video data are separately processed from the geographical location information and then combined. The video file is mixed and written according to the acquisition time sequence of the video data packet and the audio data packet, and the geographical location information is acquired into the geographical location information file by the preset time interval, and the video file and the geographical location information file are spliced into the recording file. . The convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the continuous geographical location information recorded by the mobile terminal is recorded during the video recording.
实施例六Embodiment 6
进一步地,如图11所示,基于上述视频处理装置的第一实施例,提出了本发明视频处理装置的第四实施例,该实施例中上述视频处理装置还包括: Further, as shown in FIG. 11, based on the first embodiment of the video processing apparatus, a fourth embodiment of the video processing apparatus of the present invention is proposed. The video processing apparatus further includes:
设置模块40,配置为接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。The setting module 40 is configured to receive a user setting instruction, and set the preset time interval for acquiring the geographical location information according to the user setting instruction.
本实施例中,在进行视频录制之前,可选择利用默认的预设时间对地理位置信息进行获取,或者根据实际情况当需要改变获取地理位置信息的预设时间间隔时,用户可在指定的设置界面可对该预设时间进行设定,以便设置模块40根据接收到的用户设置指令对该预设时间进行设定。例如,假设用户手持移动终端走路进行视频录制,可将预设时间设置为1分钟,此时导航系统每隔一分钟获取一次地理位置信息。当移动终端挂载在无人机上进行长时间的视频录制时,用户可以将该预设时间更新为1秒钟,此时导航系统每隔一秒钟获取一次地理位置信息。使得通过获取地理位置信息的时间间隔根据不同的情况进行合理设置,实现了录制带有连续地理位置信息视频,当用户需要记录视频录制期间所经过的路线时,可以便于查看录制视频关联的地理位置信息。当然,本实施例也可基于上述第二或第三实施提出。In this embodiment, before the video recording is performed, the location information may be acquired by using the default preset time, or the preset time interval for obtaining the geographical location information may be changed according to the actual situation, and the user may be in the specified setting. The interface may set the preset time so that the setting module 40 sets the preset time according to the received user setting instruction. For example, if the user walks the mobile terminal to perform video recording, the preset time can be set to 1 minute, and the navigation system acquires the geographical location information every minute. When the mobile terminal is mounted on the drone for long-term video recording, the user can update the preset time to 1 second, and the navigation system acquires the geographical location information every second. The time interval for obtaining the geographical location information is reasonably set according to different situations, and the video with continuous geographical location information is recorded. When the user needs to record the route that passes during the video recording, the geographical location associated with the recorded video can be conveniently viewed. information. Of course, this embodiment can also be proposed based on the above second or third implementation.
本实施例通过对获取地理位置信息的预设时间间隔进行灵活设置,使得移动终端可以根据不同的录制情况适时获取地理位置信息,实现了在进行视频录制时记录移动终端所经过的连续地理位置信息,丰富了移动终端在进行视频录制时所能携带的信息。In this embodiment, the preset time interval for acquiring the geographic location information is flexibly set, so that the mobile terminal can obtain the geographical location information according to different recording situations, and realize the continuous geographical location information recorded by the mobile terminal during video recording. It enriches the information that the mobile terminal can carry when recording video.
实施例七Example 7
对应上述实施例五与实施例六所述的视频处理装置,本发明实施例还提供了另一种移动终端,该移动终端包括上述结构的视频处理装置,即包括音视频获取模块10、位置信息获取模块20及混合生成模块30等。该移动终端可为手机、iPad、相机等。Corresponding to the video processing device according to the foregoing fifth embodiment and the sixth embodiment, the embodiment of the present invention further provides another mobile terminal, where the mobile terminal includes the video processing device of the above structure, that is, includes the audio and video acquiring module 10, and location information. The acquisition module 20, the hybrid generation module 30, and the like. The mobile terminal can be a mobile phone, an iPad, a camera, or the like.
实施例八 Example eight
对应上述实施例五与实施例六所述的视频处理装置,如图12所示,提出本发明视频处理方法的第一实施例。该实施例的视频处理制方法包括:Corresponding to the video processing apparatus according to the fifth embodiment and the sixth embodiment, as shown in FIG. 12, a first embodiment of the video processing method of the present invention is proposed. The video processing method of this embodiment includes:
步骤S10、在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包;Step S10: After the mobile terminal starts the recording function, acquiring video data and audio data, marking the recorded first time stamp for the video data, and encoding the video data to generate a video data packet, and for the audio Data tagging the recorded second timestamp and encoding the audio data to generate an audio data packet;
本实施例中,移动终端的类型可根据实际需要进行设置,例如,该移动终端可为行车记录仪、手机、iPad、航拍器、相机等。移动终端设置有摄像头、麦克风、导航系统、编码器、混合器、存储器等,其中,摄像头用于采集图像信息,并进行模数转换形成原始视频数据(RAW数据),为RAW数据加上时间戳并送入视频编码器。麦克风用于采集声音信息,进行模数转换后形成音频数据(PCM数据),为PCM数据加上时间戳并送入音频编码器。编码器分为视频编码器和音频编码器,视频编码器对摄像头送入的视频数据进行编码,视频编码器包括H.264、H.265、MPEG-4、VP8等,视频编码器将编码后的视频数据送入混合器。音频编码器对麦克风送入的音频数据进行编码,音频编码器包括AAC、MP3、AMR等,音频编码器将编码后的音视频数据送入混合器。导航系统用于定时取在录制过程中移动终端所在的地理位置信息,即经纬度信息(x,y),为地理位置信息打上时间戳并送入混合器,导航系统可包括GPS、北斗导航、GLONASS等。混合器用于将编码器送入的音视频数据以及导航系统送入的地理位置信息,进行封装打包并写入文件,并保存在存储器中。In this embodiment, the type of the mobile terminal may be set according to actual needs. For example, the mobile terminal may be a driving recorder, a mobile phone, an iPad, an aerial camera, a camera, or the like. The mobile terminal is provided with a camera, a microphone, a navigation system, an encoder, a mixer, a memory, etc., wherein the camera is used for acquiring image information, and performing analog-to-digital conversion to form original video data (RAW data), and time stamping the RAW data. And sent to the video encoder. The microphone is used to collect sound information, perform analog-to-digital conversion to form audio data (PCM data), time stamp the PCM data and send it to the audio encoder. The encoder is divided into a video encoder and an audio encoder. The video encoder encodes the video data sent by the camera. The video encoder includes H.264, H.265, MPEG-4, VP8, etc., and the video encoder will encode the video data. The video data is sent to the mixer. The audio encoder encodes the audio data sent by the microphone, and the audio encoder includes AAC, MP3, AMR, etc., and the audio encoder sends the encoded audio and video data to the mixer. The navigation system is used to periodically take the geographical location information of the mobile terminal during the recording process, that is, the latitude and longitude information (x, y), time stamp the geographical location information and send it to the mixer, and the navigation system may include GPS, Beidou navigation, GLONASS, etc. . The mixer is used for encapsulating the audio and video data sent by the encoder and the geographical location information sent by the navigation system, packaging and writing the file, and storing it in the memory.
需要说明的是,本发明提到的第一时间戳、第二时间戳、第三时间戳中的第一、第二、第三仅是为了便于区分获取视频数据、音频数据及地理位置信息各自所对应的时间戳,并非第一时间戳、第二时间戳、第三时间戳为按照时间戳的先后顺序排序,获取视频数据、音频数据及地理位置信 息这三个部分是异步同时进行的,各自有各自的时间戳,每个部分内部才有自己的顺序。It should be noted that the first, second, and third of the first timestamp, the second timestamp, and the third timestamp mentioned in the present invention are only for facilitating the distinction between acquiring video data, audio data, and geographic location information. The corresponding timestamp is not the first timestamp, the second timestamp, and the third timestamp are sorted according to the timest order, and the video data, the audio data, and the geographical location letter are acquired. The three parts of the information are asynchronous at the same time, each with its own timestamp, and each part has its own internal order.
移动终端开启录制功能后,在开始录制视频之前,首先为整个录制流程做些准备工作,例如,初始化摄像头、麦克风等。在准备工作完成后,移动终端通过摄像头开始获取图像信息,将采集到的图像信息进行模数转换为原始视频数据,为视频数据标记所录制的第一时间戳,并采用H.264或H.265等视频编码器对视频数据进行编码生成视频数据包。同时通过麦克风开始获取声音信息,并将采集到的声音信息进行模数转换为音频数据,然后为音视频数据标记所录制的第二时间戳,并通过AAC或AMR等音频编码器对音频数据进行编码生成音频数据包。After the mobile terminal starts the recording function, before starting to record the video, first make some preparations for the entire recording process, for example, initializing the camera, microphone, and so on. After the preparation work is completed, the mobile terminal starts to acquire image information through the camera, and performs analog-to-digital conversion of the collected image information into original video data, and marks the first time stamp recorded by the video data, and adopts H.264 or H. A video encoder such as 265 encodes the video data to generate a video data packet. At the same time, the sound information is obtained through the microphone, and the collected sound information is analog-to-digital converted into audio data, and then the recorded second time stamp is marked for the audio and video data, and the audio data is performed by an audio encoder such as AAC or AMR. The code generates an audio packet.
需要说明的是,第一时间戳和第二时间戳可以是进行视频录制的北京时间,例如,当录制时间为从8:00至10:00时,第一时间戳或第二时间戳可为8:30。也可以是从开始录制时的时间为0开始计时的相对时间,例如,当录制时间为从第0至10分钟时,第一时间戳或第二时间戳可为进行录制的第5分钟。It should be noted that the first timestamp and the second timestamp may be Beijing time for video recording. For example, when the recording time is from 8:00 to 10:00, the first timestamp or the second timestamp may be 8:30. It may also be a relative time from the start of recording to a time of 0. For example, when the recording time is from 0 to 10 minutes, the first time stamp or the second time stamp may be the 5th minute of recording.
步骤S20、每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;Step S20: Obtain the geographical location information recorded by the mobile terminal every preset time, and mark the third timestamp recorded by the geographical location information;
在开始进行视频录制后,在上述获取音视频数据的同时,移动终端通过GPS或北斗导航等导航系统以每隔预设时间进行地理位置信息的提取,该地理位置信息可为经纬度信息,该预设时间可根据具体情况而灵活设置。例如,当前进行录制的移动终端在“深圳大学”,导航系统获取得到的地理位置信息为(113.943044,22.5407)。同时将获取的地理位置信息标志当前所录制的第三时间戳,该第三时间戳与上述提到的第一时间戳及第二时间戳的设置格式一致,可设置为北京时间或者录制的相对时间。After the video recording is started, the mobile terminal obtains the geographic location information by using a navigation system such as GPS or Beidou navigation, and the geographic location information may be latitude and longitude information. Set the time to be flexible according to the specific situation. For example, the mobile terminal currently recording is in "Shenzhen University", and the geographical location information obtained by the navigation system is (113.943044, 22.5407). At the same time, the obtained geographical location information marks the currently recorded third timestamp, and the third timestamp is consistent with the setting format of the first timestamp and the second timestamp mentioned above, and can be set as the relative time of Beijing time or recording. time.
步骤S30、将所述视频数据包、所述音频数据包及所述地理位置信息写 入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。Step S30, writing the video data packet, the audio data packet, and the geographical location information Recording a file to record a video with continuous geographic location information, for the mobile terminal to play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp.
移动终端将上述得到的视频数据包、音频数据包及地理位置信息,依据视频容器的格式标准封装写入录制文件中,并进行存储在存储器中,以方便保存与传输,该视频容器的格式标准可包括mp4、mkv、rmvb、avi等格式。然后判断是否侦测到结束录制的指令,若未侦测到录制结束的指令,则循环执行上述步骤S10至步骤S30,进行音视频数据及地理位置信息的获取,并分别标志对应的时间戳,写入录制文件。若侦测到录制结束指令,则结束录制,终止摄像头、麦克风、导航系统等不再进行数据获取。The mobile terminal encapsulates the video data packet, the audio data packet and the geographical location information obtained in the above according to the format standard of the video container into a recording file, and stores it in a memory for convenient storage and transmission, and the format standard of the video container Can include mp4, mkv, rmvb, avi and other formats. Then, it is determined whether the instruction to end the recording is detected. If the instruction to end the recording is not detected, the above steps S10 to S30 are cyclically executed to acquire the audio and video data and the geographical location information, and respectively mark the corresponding time stamp. Write to the recording file. If the recording end command is detected, the recording ends, and the camera, microphone, navigation system, etc. are terminated, and data acquisition is no longer performed.
得到的录制文件中包含了连续的音频轨(Audio Track)、视频轨(Video Track)、地理位置信息轨(Loc Track)等,实现了录制带有连续地理位置信息的视频。移动终端在进行视频回放时,按照第一时间戳、第二时间戳及第三时间戳的先后顺序回放该录制文件。使得生成的视频文件中包含了移动终端在录制过程中所经过的连续地理位置信息序列,这样在回放视频时,用户可以查看录制视频时所经过的地理位置信息。The obtained recording file includes a continuous audio track (Audio Track), a video track (Video Track), a Loc Track, and the like, and realizes recording a video with continuous geographical position information. When the video terminal performs video playback, the mobile terminal plays back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp. The generated video file includes a sequence of continuous geographic location information that the mobile terminal passes during the recording process, so that when the video is played back, the user can view the geographical location information when the video is recorded.
以下将进行举例说明,在一实施例中,如图9所示,为一进行视频录制生成录制文件的结构示意图,移动终端按视频容器的标准,将视频数据包、音频数据包及地理位置信息这三种数据进行交叉存放至录制文件,在录制文件的开头写上视频文件头,在接收到结束录制的指令后,在录制文件的最后写上视频文件尾。具体地,在图9中,用V表示Video,用A表示Audio;其中,Video表示视频数据包,Audio表示音频数据包,Loc表示地理位置信息数据包。按照获取的时间先后顺序,在获取视频数据、音频数据及地理位置信息的过程中,将首先获取到的视频数据包Video写入录制文件,再将获取到的地理位置信息Loc写入录制文件,然后将下一时间 获取到的音频数据包Audio写入录制文件,不断继续获取数据并混合写入录制文件,直至接收到结束录制指令时才停止录制。使得当用户需要记录视频录制期间所经过的路线时,可以便于查看录制视频关联的地理位置信息,例如,行车记录仪利用本方案提供的方法进行录制视频后,在回放时可以很方便的查看行车路线,以及可以获知视频某个时间点的画面是在哪个地理位置上录制的。The following is an example. In an embodiment, as shown in FIG. 9, a schematic diagram of generating a recording file for video recording, the mobile terminal according to the standard of the video container, the video data packet, the audio data packet, and the geographical location information. These three kinds of data are cross-stored to the recording file, and the video file header is written at the beginning of the recording file. After receiving the instruction to end the recording, the video file end is written at the end of the recording file. Specifically, in FIG. 9, Video is represented by V, and Audio is represented by A; wherein Video represents a video packet, Audio represents an audio packet, and Loc represents a geographical location information packet. According to the obtained chronological order, in the process of acquiring video data, audio data and geographical location information, the first obtained video data packet Video is written into the recording file, and then the obtained geographical location information Loc is written into the recording file. Then the next time The acquired audio data packet Audio is written to the recording file, and the data is continuously acquired and mixed and written to the recording file until the end of the recording instruction is received. When the user needs to record the route that passes during the video recording, it is convenient to view the geographical location information associated with the recorded video. For example, after the driving recorder uses the method provided by the solution to record the video, the driving can be conveniently viewed during playback. The route, as well as the location in which the video is recorded at a certain point in time.
在另一实施例中,如图10所示,为另一进行视频录制生成录制文件的结构示意图,移动终端按视频容器的标准,先将视频数据包和音频数据混合存放至视频文件,在视频文件的开头写上视频文件头,在视频文件的最后写上视频文件尾。地理位置信息存放至地理位置信息文件,再将地理位置信息文件拼接至视频文件的尾部,形成录制文件。具体地,在图10中,用V表示Video,用A表示Audio;其中,Video表示视频数据包,Audio表示音频数据包,Loc表示地理位置信息数据包。按照获取的时间先后顺序,在获取视频数据和音频数据过程中,将首先获取到的视频数据包Video写入视频文件,再将获取到的音频数据包Audio写入视频文件,然后将下一时间获取到的音频数据包Audio写入视频文件,不断进行循环获取数据并混合写入视频文件。同样地,循环将地理位置信息Loc按照时间的先后顺序依次写入地理位置信息文件。直至在接收到结束录制指令时停止录制,并将地理位置信息文件拼接在视频文件的后面,以形成录制文件。可以理解的是,也可将地理位置信息文件拼接在视频文件的前面,在回放录制文件时,按照时间的先后顺序依次调取出音视频数据或地理位置信息文件进行播放。实现了录制带有连续地理位置信息视频,解决了现有移动终端无法记录所拍摄视频过程的地理位置变化轨迹的问题。In another embodiment, as shown in FIG. 10, a schematic diagram of generating a recording file for another video recording, the mobile terminal first mixes the video data packet and the audio data into a video file according to the standard of the video container, in the video. Write the video file header at the beginning of the file and the video file end at the end of the video file. The geographical location information is stored in the geographic location information file, and then the geographical location information file is spliced to the end of the video file to form a recording file. Specifically, in FIG. 10, Video is represented by V, and Audio is represented by A; wherein Video represents a video packet, Audio represents an audio packet, and Loc represents a geographical location information packet. According to the chronological order of acquisition, in the process of acquiring video data and audio data, the first obtained video data packet Video is written into the video file, and then the obtained audio data packet Audio is written into the video file, and then the next time is obtained. The acquired audio data packet Audio is written to the video file, and the data is continuously looped and mixed and written to the video file. Similarly, the loop sequentially writes the geographical location information Loc into the geographic location information file in chronological order. The recording is stopped until the end of the recording instruction is received, and the geographical location information file is stitched behind the video file to form a recording file. It can be understood that the geographic location information file can also be spliced in front of the video file. When the recorded file is played back, the audio and video data or the geographical location information file is sequentially retrieved and played according to the time sequence. The recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographical change track of the captured video process.
需要说明的是,图9和图10的顺序仅仅是一个示例,实际情况中会根据视频数据、音频数据、地理位置信息这三部分同时异步进行,哪个先请 求写入文件,则锁定写入,写动作完成后,再释放锁定,后面的其他的部分写请求才会被允许,即Video、Audio、Loc进入写入录制文件的顺序是不定的。It should be noted that the sequence of FIG. 9 and FIG. 10 is only an example. In actual situations, the three parts of the video data, the audio data, and the geographical location information are simultaneously asynchronously performed, which one is requested first. If the file is written, the write is locked. After the write operation is completed, the lock is released, and other subsequent partial write requests are allowed. That is, the order in which Video, Audio, and Loc enter the write record is indefinite.
本发明实施例在移动终端进行视频录制的过程中,对获取到的视频数据标记所录制的第一时间戳,并对该视频数据进行编码生成视频数据包,以及对获取到的音频数据标记所录制的第二时间戳,并对该音频数据进行编码生成音频数据包。同时,每隔预设时间获取移动终端录制的地理位置信息,为地理位置信息标记所录制的第三时间戳,然后将视频数据包、音频数据包及地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,移动终端可按照第一时间戳、第二时间戳及第三时间戳的先后顺序回放录制文件。从而丰富了移动终端在进行视频录制时所能携带的信息,在进行视频录制的过程中,获取音视频的同时可记录移动终端所在的地理位置信息,并将地理位置信息与音视频数据进行结合形成录制文件。使得生成的录制文件包含了移动终端的连续地理位置信息序列,在回放视频时可以查看录制视频时所经过的地理位置信息。实现了在进行视频录制时记录移动终端所经过的连续地理位置信息,以及提高了移动终端将录制的音视频与地理位置进行关联地便捷性。In the process of video recording by the mobile terminal, the first timestamp recorded by the obtained video data is marked, and the video data is encoded to generate a video data packet, and the obtained audio data mark is used. Recording the second timestamp and encoding the audio data to generate an audio data packet. At the same time, the geographical location information recorded by the mobile terminal is obtained every preset time, the third time stamp recorded by the geographical location information is marked, and then the video data packet, the audio data packet and the geographical location information are written into the recording file to record the tape. For a video with continuous geographical location information, the mobile terminal can play back the recorded file in the order of the first timestamp, the second timestamp, and the third timestamp. Therefore, the information that the mobile terminal can carry when performing video recording is enriched. In the process of video recording, the geographic location information of the mobile terminal can be recorded while acquiring the audio and video, and the geographical location information is combined with the audio and video data. Form a recording file. The generated recording file includes a sequence of continuous geographical location information of the mobile terminal, and the geographical location information of the recorded video can be viewed when the video is played back. The continuous geographical location information recorded by the mobile terminal during video recording is realized, and the convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved.
进一步地,基于与上述实施例五与实施例六所述的视频处理装置所对应的视频处理制方法的第一实施例,提出了本发明视频处理方法的第二实施例,该实施例中上述步骤S30可包括:基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。Further, based on the first embodiment of the video processing method corresponding to the video processing apparatus according to the fifth embodiment and the sixth embodiment, a second embodiment of the video processing method of the present invention is proposed. Step S30 may include: based on the first time stamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information, respectively The video data packet, the audio data packet, and the geographic location information are mixed and written into the recording file in chronological order.
本实施例中,将得到的视频数据包、音频数据包及地理位置信息写入录制文件时,移动终端可基于视频数据所对应的第一时间戳,音频数据所 对应的第二时间戳,以及地理位置信息所对应的第三时间戳,将视频数据、音频数据及地理位置信息按照获取的时间先后顺序,依据视频容器的mp4、mkv、rmvb、avi等格式标准进行封装,混合写入录制文件中并进行存储。In this embodiment, when the obtained video data packet, the audio data packet, and the geographical location information are written into the recording file, the mobile terminal may be based on the first time stamp corresponding to the video data, and the audio data Corresponding second timestamp and the third timestamp corresponding to the geographical location information, the video data, the audio data and the geographical location information are in accordance with the chronological order of the acquisition, according to the format standard of the video container such as mp4, mkv, rmvb, avi, etc. Encapsulate, mix and write to the recording file and store it.
进一步地,移动终端在进行视频录制的过程中,判断是否侦测到结束录制指令;若是,则结束录制;若否,则继续获取视频数据、音频数据及地理位置信息并分别标志对应的时间戳,对继续获取得到的视频数据及音频数据进行编码得到视频数据包及音频数据包,将得到的视频数据包、音频数据包及地理位置信息按照时间先后顺序写入所述录制文件。Further, in the process of performing video recording, the mobile terminal determines whether an end recording instruction is detected; if yes, ends the recording; if not, continues to acquire video data, audio data, and geographic location information, and respectively marks the corresponding timestamp And encoding the obtained video data and audio data to obtain a video data packet and an audio data packet, and writing the obtained video data packet, the audio data packet, and the geographical location information into the recording file in chronological order.
在进行视频回放时,移动终端可根据存储的时间先后顺序依次进行播放,以实现录制带有连续地理位置信息的视频。如图9所示,将视频数据包、音频数据包及地理位置信息这三种数据进行交叉存放至录制文件,在录制文件的开头写上视频文件头,将首先获取到的视频数据包Video写入录制文件,再将获取到的地理位置信息Loc写入录制文件,然后将下一时间获取到的音频数据包Audio写入录制文件,不断进行循环获取数据并混合写入录制文件,直至接收到结束录制指令时停止录制,在录制文件的最后写上视频文件尾。During video playback, the mobile terminal can sequentially play according to the stored chronological order to record a video with continuous geographical location information. As shown in FIG. 9, the video data packet, the audio data packet, and the geographical location information are cross-stored to the recording file, and the video file header is written at the beginning of the recording file, and the first obtained video data packet Video is written. After entering the recording file, the acquired geographical location information Loc is written into the recording file, and then the audio data packet Audio acquired at the next time is written into the recording file, and the data is continuously looped and mixed and written into the recording file until received. Stop recording when the recording command ends, and write the end of the video file at the end of the recording file.
本实施例将视频数据、音频数据及地理位置信息根据各自所对应的时间戳,按照时间先后顺序交叉混合写入录制文件。提高了移动终端将录制的音视频与地理位置进行关联地便捷性,实现了录制带有连续地理位置信息视频,解决了现有移动终端无法记录所拍摄视频过程的地理位置变化轨迹的问题。In this embodiment, the video data, the audio data, and the geographical location information are cross-mixed and written into the recording file according to the timestamps corresponding thereto. The convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the recording of the video with continuous geographical location information is realized, which solves the problem that the existing mobile terminal cannot record the geographically changed track of the captured video process.
进一步地,基于与上述实施例五与实施例六所述的视频处理装置所对应的视频处理制方法的第一实施例,提出了本发明视频处理方法的第三实施例,该实施例中上述步骤S30可包括:基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述 音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;Further, based on the first embodiment of the video processing method corresponding to the video processing apparatus according to the fifth embodiment and the sixth embodiment, a third embodiment of the video processing method of the present invention is proposed. Step S30 may include, according to the video data and the first time stamp and the second time stamp corresponding to the audio data, the video data packet and the The audio data packet is mixed and written into the video file in chronological order, and the geographical location information is written into the geographic location information file according to the third timestamp;
在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。After receiving the end recording instruction, the video file and the geographical location information file are spliced into the recording file.
本实施例中,移动终端将获取到的音频数据和视频数据,与地理位置信息进行分开处理。具体地,基于视频数据所对应的第一时间戳,音频数据所对应的第二时间戳,将视频数据包和音频数据包按照时间先后顺序混合写入视频文件,此时不再对地理位置信息进行混合处理,即依据按视频容器的mp4、mkv、rmvb、avi等格式标准进行封装,将音频数据包和视频数据包写入视频文件并进行存储(不包含地理位置信息)。另外,将每隔预设时间获取到的地理位置信息按照第三时间戳的顺序写入地理位置信息文件。判断是否侦测到结束录制指令,若未侦测到结束录制指令,则继续循环获取数据进行相应处理并存储。在侦测到结束录制指令时,结束录制,并将得到的视频文件和地理位置信息文件进行拼接写入录制文件。可将地理位置信息文件拼接在视频文件的后面,从而不影响原视频文件所存储的各种信息。如图10所示,将视频数据包和音频数据混合存放至视频文件,在视频文件的开头写上视频文件头,在视频文件的最后写上视频文件尾。地理位置信息存放至地理位置信息文件,在完成录制后再将地理位置信息文件拼接至视频文件的尾部,形成录制文件。In this embodiment, the mobile terminal separates the acquired audio data and video data from the geographic location information. Specifically, based on the first timestamp corresponding to the video data, and the second timestamp corresponding to the audio data, the video data packet and the audio data packet are mixed into the video file in chronological order, and the geographic location information is no longer used. The hybrid processing is performed according to the format standard of mp4, mkv, rmvb, avi, etc. of the video container, and the audio data package and the video data package are written into the video file and stored (excluding geographical location information). In addition, the geographical location information acquired every preset time is written into the geographic location information file in the order of the third timestamp. It is judged whether the end recording instruction is detected, and if the end recording instruction is not detected, the data is continuously looped for corresponding processing and storage. When the end of the recording instruction is detected, the recording is ended, and the obtained video file and the geographical location information file are spliced into the recording file. The geographic location information file can be spliced behind the video file so as not to affect the various information stored in the original video file. As shown in FIG. 10, the video data package and the audio data are mixed and stored in the video file, the video file header is written at the beginning of the video file, and the video file end is written at the end of the video file. The geographical location information is stored in the geographic location information file, and after the recording is completed, the geographical location information file is stitched to the end of the video file to form a recording file.
本实施例在录制视频过程中,将获取到的音频数据和视频数据,与地理位置信息进行分开处理后合并。根据视频数据包和音频数据包的获取时间顺序混合写入视频文件,将间隔预设时间获取到地理位置信息存储入地理位置信息文件,在将视频文件和地理位置信息文件拼接写入录制文件中。提高了移动终端将录制的音视频与地理位置进行关联地便捷性,实现了在进行视频录制时记录移动终端所经过的连续地理位置信息。 In the process of recording a video, the obtained audio data and video data are separately processed from the geographical location information and then combined. The video file is mixed and written according to the acquisition time sequence of the video data packet and the audio data packet, and the geographical location information is acquired into the geographical location information file by the preset time interval, and the video file and the geographical location information file are spliced into the recording file. . The convenience of the mobile terminal to associate the recorded audio and video with the geographical location is improved, and the continuous geographical location information recorded by the mobile terminal is recorded during the video recording.
实施例九Example nine
进一步地,如图13所示,基于与上述实施例五与实施例六所述的视频处理装置所对应的视频处理制方法的第一实施例,提出了本发明视频处理方法的第四实施例,该实施例中上述步骤S20之前可包括:接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。Further, as shown in FIG. 13, based on the first embodiment of the video processing method corresponding to the video processing apparatus according to the fifth embodiment and the sixth embodiment, the fourth embodiment of the video processing method of the present invention is proposed. The foregoing step S20 in the embodiment may include: receiving a user setting instruction, and setting the preset time interval for acquiring the geographical location information according to the user setting instruction.
本实施例中,在进行视频录制之前,可选择利用默认的预设时间对地理位置信息进行获取,或者根据实际情况当需要改变获取地理位置信息的预设时间间隔时,用户可在指定的设置界面可对该预设时间进行设定。例如,假设用户手持移动终端走路进行视频录制,可将预设时间设置为1分钟,此时导航系统每隔一分钟获取一次地理位置信息。当移动终端挂载在无人机上进行长时间的视频录制时,用户可以将该预设时间更新为1秒钟,此时导航系统每隔一秒钟获取一次地理位置信息。使得通过获取地理位置信息的时间间隔根据不同的情况进行合理设置,实现了录制带有连续地理位置信息视频,当用户需要记录视频录制期间所经过的路线时,可以便于查看录制视频关联的地理位置信息。当然,本实施例也可基于上述第二或第三实施提出。In this embodiment, before the video recording is performed, the location information may be acquired by using the default preset time, or the preset time interval for obtaining the geographical location information may be changed according to the actual situation, and the user may be in the specified setting. The interface can set the preset time. For example, if the user walks the mobile terminal to perform video recording, the preset time can be set to 1 minute, and the navigation system acquires the geographical location information every minute. When the mobile terminal is mounted on the drone for long-term video recording, the user can update the preset time to 1 second, and the navigation system acquires the geographical location information every second. The time interval for obtaining the geographical location information is reasonably set according to different situations, and the video with continuous geographical location information is recorded. When the user needs to record the route that passes during the video recording, the geographical location associated with the recorded video can be conveniently viewed. information. Of course, this embodiment can also be proposed based on the above second or third implementation.
本实施例通过对获取地理位置信息的预设时间间隔进行灵活设置,使得移动终端可以根据不同的录制情况适时获取地理位置信息,实现了在进行视频录制时记录移动终端所经过的连续地理位置信息,丰富了移动终端在进行视频录制时所能携带的信息。In this embodiment, the preset time interval for acquiring the geographic location information is flexibly set, so that the mobile terminal can obtain the geographical location information according to different recording situations, and realize the continuous geographical location information recorded by the mobile terminal during video recording. It enriches the information that the mobile terminal can carry when recording video.
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品 的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。Through the description of the above embodiments, those skilled in the art can clearly understand that the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better. Implementation. Based on such understanding, the technical solution of the present invention may be a software product in essence or in part contributing to the prior art. In the form of a computer software product stored in a storage medium (such as ROM / RAM, disk, CD), including a number of instructions to make a terminal device (can be a mobile phone, computer, server, air conditioner, or Network devices, etc.) perform the methods described in various embodiments of the present invention.
以上仅为本发明的可选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。The above is only an alternative embodiment of the present invention, and thus does not limit the scope of the invention, and the equivalent structure or equivalent process transformation made by using the specification and the drawings of the present invention, or directly or indirectly applied to other related technologies. The fields are all included in the scope of patent protection of the present invention.
工业实用性Industrial applicability
本发明实施例中,在移动终端开启录制功能后,获取视频数据和音频数据,为视频数据标记所录制的第一时间戳,并对视频数据进行编码生成视频数据包,以及为音频数据标记所录制的第二时间戳,并对音频数据进行编码生成音频数据包;每隔预设时间获取移动终端录制的地理位置信息,为地理位置信息标记所录制的第三时间戳;将视频数据包、音频数据包及地理位置信息写入录制文件,供移动终端按照第一时间戳、第二时间戳及第三时间戳的先后顺序回放录制文件。如此,在进行视频录制时记录移动终端所经过的连续地理位置信息,提高了移动终端将录制的音视频与地理位置进行关联地便捷性。 In the embodiment of the present invention, after the mobile terminal starts the recording function, the video data and the audio data are acquired, the first time stamp recorded by the video data is marked, and the video data is encoded to generate a video data packet, and the audio data is marked. Recording the second timestamp, and encoding the audio data to generate an audio data packet; acquiring the geographical location information recorded by the mobile terminal every preset time, marking the third timestamp recorded by the geographical location information; and the video data packet, The audio data packet and the geographical location information are written into the recording file, and the mobile terminal plays back the recording file in the order of the first timestamp, the second timestamp, and the third timestamp. In this way, the continuous geographical location information that the mobile terminal passes through during the video recording is recorded, which improves the convenience of the mobile terminal to associate the recorded audio and video with the geographic location.

Claims (20)

  1. 一种移动终端,所述移动终端包括:A mobile terminal, the mobile terminal comprising:
    相机,配置为进行视频采集得到视频数据;a camera configured to perform video capture to obtain video data;
    所述控制器,配置为控制所述相机进行采集得到所述视频数据,将所述相机采集到所述视频数据时所述移动终端所处的地理位置写入所述视频数据,并基于所述写入所述地理位置的视频数据生成视频文件;The controller is configured to control the camera to acquire the video data, and write the geographic location where the mobile terminal is located when the camera collects the video data, and write the video data based on the Writing video data of the geographical location to generate a video file;
    所述控制器,还配置为确定对所述视频文件进行分割所使用的地理位置区间的粒度,确定所述视频文件中视频数据的地理位置所归属的与所述粒度对应的地理位置区间,基于所述视频文件的时间轴确定与所述视频文件中视频数据的地理位置区间对应的时间区间,基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。The controller is further configured to determine a granularity of a geographic location interval used for segmenting the video file, and determine a geographic location interval corresponding to the granularity to which the geographic location of the video data in the video file belongs, based on The time axis of the video file determines a time interval corresponding to a geographic location interval of the video data in the video file, and the video file is segmented according to the determined time interval to obtain a video file corresponding to the geographic location interval. Fragment.
  2. 如权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述控制器,还配置为基于所述视频文件的时间轴标识所述时间区间,基于所标识所述时间区间对所述视频文件进行分割得到视频文件片段,将具有相同地理位置的视频文件片段合并,得到与所述地理位置区间对应的视频文件片段。The controller is further configured to identify the time interval based on a time axis of the video file, and divide the video file according to the identified time interval to obtain a video file segment, and the video file segment having the same geographic location Merging, obtaining a video file segment corresponding to the geographic location interval.
  3. 如权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述控制器,还配置为获取预设的与所述粒度对应的第一地理位置区间,确定所述视频文件的时间轴上与所述第一地理位置区间对应的第一时间区间;基于所述视频文件的时间轴滤除所述视频文件中所述第一时间区间对应的视频文件片段得到更新的所述视频文件,将更新所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。The controller is further configured to acquire a preset first geographic location interval corresponding to the granularity, and determine a first time interval corresponding to the first geographic location interval on a time axis of the video file; The time axis of the video file filters out the video file segment corresponding to the video file segment corresponding to the first time interval in the video file, and updates the video file to perform segmentation processing to obtain a correspondence corresponding to the geographic location interval. Video file fragment.
  4. 如权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述控制器,还配置为在所述相机的每个采集周期中获取所述移动终 端的地理位置,将所获取的地理位置写入所述相机在相应采集周期采集的视频数据;其中,每个所述采集周期包括至少一个视频帧。The controller is further configured to acquire the mobile terminal in each acquisition cycle of the camera The geographic location of the end is written to the acquired video data of the camera during the corresponding collection period; wherein each of the collection periods includes at least one video frame.
  5. 如权利要求1所述的移动终端,其中,The mobile terminal of claim 1, wherein
    所述移动终端设置有位置信息模块、移动通信模块和无线互联网模块至少之一;The mobile terminal is provided with at least one of a location information module, a mobile communication module, and a wireless internet module;
    所述位置信息模块,配置为接收定位信号,输出所述移动终端的地理位置;The location information module is configured to receive a positioning signal and output a geographic location of the mobile terminal;
    所述移动通信模块,配置为接收无线通信系统基于所述移动通信模块的驻留小区信息确定的所述移动终端的地理位置;The mobile communication module is configured to receive a geographic location of the mobile terminal determined by the wireless communication system based on the resident cell information of the mobile communication module;
    所述无线互联网模块,配置为检测网络接入设备的设备标识,向服务器侧发送所述网络接入设备的设备标识,在采集所述环境的每个采集周期基于所述网络接入设备的设备标识在所述服务器侧获取与所述设备标识关联的地理位置作为所述移动终端的地理位置;The wireless internet module is configured to detect a device identifier of the network access device, and send the device identifier of the network access device to the server side, where each collection period of the environment is collected based on the device of the network access device Identifying, by the server side, a geographical location associated with the device identifier as a geographic location of the mobile terminal;
    所述控制器,还配置为在所述相机的每个采集周期的读取所述位置信息模块输出的地理位置信息并写入所述相机在相应采集周期采集所述环境得到的视频数据。The controller is further configured to read geographic location information output by the location information module during each acquisition period of the camera and write video data obtained by the camera to collect the environment during a corresponding collection period.
  6. 一种视频处理方法,所述方法包括:A video processing method, the method comprising:
    进行视频采集得到视频数据;Perform video capture to obtain video data;
    将采集到所述视频数据时所述移动终端所处的地理位置写入所述视频数据,并基于所述写入所述地理位置的视频数据生成视频文件;Writing, to the video data, a geographic location where the mobile terminal is located when the video data is collected, and generating a video file based on the video data written in the geographic location;
    确定对所述视频文件进行分割所使用的地理位置区间的粒度;Determining the granularity of the geographic location interval used to segment the video file;
    确定所述视频文件中视频数据的地理位置所归属的与所述粒度对应的地理位置区间;Determining a geographical interval corresponding to the granularity to which the geographic location of the video data in the video file belongs;
    基于所述视频文件的时间轴上确定与所述各视频数据的地理位置区间归属的时间区间; Determining a time interval to which the geographic location interval of each video data belongs based on a time axis of the video file;
    基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。The video file is segmented based on the determined time interval to obtain a video file segment corresponding to the geographic location interval.
  7. 如权利要求6所述的方法,其中,所述基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段,包括:The method of claim 6, wherein the segmenting the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval comprises:
    基于所述视频文件的时间轴标识所述时间区间,基于所标识所述时间区间对所述视频文件进行分割得到视频文件片段,将具有相同地理位置的视频文件片段合并,得到与所述地理位置区间对应的视频文件片段。Identifying the time interval based on the time axis of the video file, segmenting the video file based on the identified time interval to obtain a video file segment, and combining video file segments having the same geographic location to obtain the geographic location A video file fragment corresponding to the interval.
  8. 如权利要求6所述的方法,其中,所述基于所确定的时间区间对所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段,包括:The method of claim 6, wherein the segmenting the video file based on the determined time interval to obtain a video file segment corresponding to the geographic location interval comprises:
    获取预设的与所述粒度对应的第一地理位置区间,确定所述视频文件的时间轴上与所述第一地理位置区间对应的第一时间区间;Obtaining a preset first geographic location interval corresponding to the granularity, and determining a first time interval corresponding to the first geographic location interval on a time axis of the video file;
    基于所述视频文件的时间轴滤除所述第一时间区间对应的视频文件片段得到更新的所述视频文件,将更新所述视频文件进行分割处理得到与所述地理位置区间对应的视频文件片段。And filtering the video file segment corresponding to the first time interval to obtain the updated video file based on a time axis of the video file, and updating the video file to perform segmentation processing to obtain a video file segment corresponding to the geographic location interval. .
  9. 如权利要求6所述的方法,其中,所述对所述环境进行采集得到所述视频数据,将采集所述环境时所述移动终端所处的地理位置写入所述视频数据,包括:The method of claim 6, wherein the collecting the video data to obtain the video data, and writing the geographic location of the mobile terminal to the video data when the environment is collected comprises:
    在所述相机的每个采集周期中获取所述移动终端的地理位置,将所获取的地理位置写入所述相机在相应采集周期采集的视频数据;其中,每个所述采集周期包括至少一个视频帧。Acquiring a geographic location of the mobile terminal in each acquisition period of the camera, and writing the acquired geographic location to video data collected by the camera in a corresponding collection period; wherein each of the collection periods includes at least one Video frame.
  10. 如权利要求6所述的方法,其中,所述方法还包括:The method of claim 6 wherein the method further comprises:
    获取所述移动终端的地理位置:Obtaining the geographic location of the mobile terminal:
    在所述相机的每个采集周期的读取输出的地理位置信息并写入所述相 机在相应采集周期采集所述环境得到的视频数据;Geographically read information of the read output at each acquisition cycle of the camera and written to the phase Collecting video data obtained by the environment in a corresponding collection period;
    其中采用以下方式至少之一获取所述移动终端的地理位置:The geographic location of the mobile terminal is obtained by using at least one of the following manners:
    接收定位信号,基于所述定位信号输出所述移动终端的地理位置;Receiving a positioning signal, and outputting a geographic location of the mobile terminal based on the positioning signal;
    接收无线通信系统基于所述移动终端驻留小区信息确定的所述移动终端的地理位置;Receiving, by the wireless communication system, a geographic location of the mobile terminal determined based on the mobile terminal camping cell information;
    检测网络接入设备的设备标识,向服务器侧发送所述网络接入设备的设备标识,基于所述网络接入设备的设备标识在所述服务器侧获取与所述设备标识关联的地理位置作为所述移动终端的地理位置。Detecting a device identifier of the network access device, and transmitting, to the server side, a device identifier of the network access device, and acquiring, according to the device identifier of the network access device, a geographical location associated with the device identifier on the server side The geographic location of the mobile terminal.
  11. 一种视频处理装置,所述视频处理装置包括:A video processing device, the video processing device comprising:
    音视频获取模块,配置为在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包;The audio and video acquisition module is configured to: after the mobile terminal starts the recording function, acquire video data and audio data, mark the recorded first time stamp for the video data, and encode the video data to generate a video data packet, and Marking the recorded second time stamp for the audio data, and encoding the audio data to generate an audio data packet;
    位置信息获取模块,配置为每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;The location information obtaining module is configured to acquire the geographical location information recorded by the mobile terminal every preset time, and mark the third time stamp recorded by the geographical location information;
    混合生成模块,配置为将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。a hybrid generation module, configured to write the video data packet, the audio data packet, and the geographic location information into a recording file, to record a video with continuous geographic location information, for the mobile terminal to follow the first The recording file is played back in the order of the timestamp, the second timestamp, and the third timestamp.
  12. 如权利要求11所述的视频处理装置,其中,所述混合生成模块还配置为,基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。The video processing device of claim 11, wherein the hybrid generation module is further configured to: the first timestamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively And the second timestamp and the third timestamp, the video data packet, the audio data packet, and the geographic location information are mixed into the recording file in chronological order.
  13. 如权利要求11所述的视频处理装置,其中,所述混合生成模块还 配置为,基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;并在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。The video processing device of claim 11 wherein said hybrid generation module further And configuring, according to the video data and the first timestamp and the second timestamp corresponding to the audio data, to mix the video data packet and the audio data packet into a video in chronological order a file, the geographic location information is written into the geographic location information file according to the third timestamp; and after receiving the end recording instruction, the video file and the geographical location information file are spliced and recorded. file.
  14. 如权利要求11至13中任一项所述的视频处理装置,其中,所述视频处理装置还包括:The video processing device according to any one of claims 11 to 13, wherein the video processing device further comprises:
    设置模块,配置为接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。And a setting module configured to receive a user setting instruction, and set the preset time interval for acquiring the geographical location information according to the user setting instruction.
  15. 一种移动终端,所述移动终端包括如权利要求11至14中任一项所述的视频处理装置。A mobile terminal comprising the video processing device according to any one of claims 11 to 14.
  16. 一种视频处理方法,所述视频处理制方法包括以下步骤:A video processing method, the video processing method comprising the following steps:
    在移动终端开启录制功能后,获取视频数据和音频数据,为所述视频数据标记所录制的第一时间戳,并对所述视频数据进行编码生成视频数据包,以及为所述音频数据标记所录制的第二时间戳,并对所述音频数据进行编码生成音频数据包;After the mobile terminal starts the recording function, acquiring video data and audio data, marking the recorded first time stamp for the video data, encoding the video data to generate a video data packet, and marking the audio data for the audio data Recording a second timestamp and encoding the audio data to generate an audio data packet;
    每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳;Obtaining the geographical location information recorded by the mobile terminal every preset time, and marking the recorded third time stamp for the geographical location information;
    将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件,以录制带有连续地理位置信息的视频,供所述移动终端按照所述第一时间戳、所述第二时间戳及所述第三时间戳的先后顺序回放所述录制文件。Writing the video data packet, the audio data packet, and the geographic location information into a recording file, to record a video with continuous geographic location information, for the mobile terminal to follow the first timestamp, the first The recording file is played back in the order of the second time stamp and the third time stamp.
  17. 如权利要求16所述的视频处理制方法,其中,将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件包括:The video processing system of claim 16, wherein the writing the video data packet, the audio data packet, and the geographic location information to a recording file comprises:
    基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数 据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件。And the number of the video is based on the first timestamp, the second timestamp, and the third timestamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively The recording file is mixed in a chronological order according to the packet, the audio data packet, and the geographical location information.
  18. 如权利要求17所述的视频处理制方法,其中,基于所述视频数据包、所述音频数据包及所述地理位置信息分别所对应的所述第一时间戳、所述第二时间戳及所述第三时间戳,将所述视频数据包、所述音频数据包及所述地理位置信息按照时间先后顺序混合写入录制文件之后包括:The video processing system according to claim 17, wherein the first time stamp and the second time stamp corresponding to the video data packet, the audio data packet, and the geographic location information respectively The third timestamp, after the video data packet, the audio data packet, and the geographical location information are mixed into the recording file in chronological order, includes:
    判断是否侦测到结束录制指令;Determine whether an end recording command is detected;
    若是,则结束录制;If yes, the recording ends;
    若否,则继续获取视频数据、音频数据及地理位置信息并分别标志对应的时间戳,对继续获取得到的视频数据及音频数据进行编码得到视频数据包及音频数据包,将得到的视频数据包、音频数据包及地理位置信息按照时间先后顺序写入所述录制文件。If not, the video data, the audio data and the geographical location information are continuously obtained and the corresponding time stamps are respectively marked, and the video data and the audio data obtained by the acquisition are encoded to obtain a video data packet and an audio data packet, and the obtained video data packet is obtained. The audio data package and the geographical location information are written into the recording file in chronological order.
  19. 如权利要求16所述的视频处理制方法,其中,将所述视频数据包、所述音频数据包及所述地理位置信息写入录制文件包括:The video processing system of claim 16, wherein the writing the video data packet, the audio data packet, and the geographic location information to a recording file comprises:
    基于所述视频数据和所述音频数据所对应的所述第一时间戳和所述第二时间戳,将所述视频数据包和所述音频数据包按照时间先后顺序混合写入视频文件,将所述地理位置信息按照所述第三时间戳的顺序写入地理位置信息文件;And synthesizing the video data packet and the audio data packet into a video file according to the first time stamp and the second time stamp corresponding to the video data and the audio data, and The geographical location information is written into the geographic location information file in the order of the third timestamp;
    在接收到结束录制指令后,将所述视频文件和所述地理位置信息文件进行拼接写入录制文件。After receiving the end recording instruction, the video file and the geographical location information file are spliced into the recording file.
  20. 如权利要求16至19中任一项所述的视频处理制方法,其中,所述每隔预设时间获取所述移动终端录制的地理位置信息,为所述地理位置信息标记所录制的第三时间戳之前包括:The video processing system according to any one of claims 16 to 19, wherein the location information recorded by the mobile terminal is acquired every preset time, and the third location recorded for the geographical location information mark Before the timestamp includes:
    接收用户设置指令,根据所述用户设置指令对获取所述地理位置信息的所述预设时间间隔进行设置。 Receiving a user setting instruction, and setting the preset time interval for acquiring the geographical location information according to the user setting instruction.
PCT/CN2016/112360 2016-01-04 2016-12-27 Mobile terminal, video processing apparatus and method thereof WO2017118320A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201610005052.7 2016-01-04
CN201610005052.7A CN105681713A (en) 2016-01-04 2016-01-04 Video recording method, video recording device and mobile terminal
CN201610037835.3A CN105578269B (en) 2016-01-20 2016-01-20 Mobile terminal and its method for processing video frequency
CN201610037835.3 2016-01-20

Publications (1)

Publication Number Publication Date
WO2017118320A1 true WO2017118320A1 (en) 2017-07-13

Family

ID=59273348

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/112360 WO2017118320A1 (en) 2016-01-04 2016-12-27 Mobile terminal, video processing apparatus and method thereof

Country Status (1)

Country Link
WO (1) WO2017118320A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652058A (en) * 2020-04-27 2020-09-11 青岛百灵信息科技股份有限公司 Computer face recognition device
CN113766279A (en) * 2021-08-24 2021-12-07 沈阳风驰软件股份有限公司 Information processing method, server and mobile terminal

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651748A (en) * 2011-02-23 2012-08-29 上海博路信息技术有限公司 Photo sharing system on basis of geographic position
US20140160251A1 (en) * 2012-12-12 2014-06-12 Verint Systems Ltd. Live streaming video over 3d
CN105007442A (en) * 2015-07-22 2015-10-28 深圳市万姓宗祠网络科技股份有限公司 Marking method for continuously recording video and image
CN105578269A (en) * 2016-01-20 2016-05-11 努比亚技术有限公司 Mobile terminal and video processing method thereof
CN105681713A (en) * 2016-01-04 2016-06-15 努比亚技术有限公司 Video recording method, video recording device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102651748A (en) * 2011-02-23 2012-08-29 上海博路信息技术有限公司 Photo sharing system on basis of geographic position
US20140160251A1 (en) * 2012-12-12 2014-06-12 Verint Systems Ltd. Live streaming video over 3d
CN105007442A (en) * 2015-07-22 2015-10-28 深圳市万姓宗祠网络科技股份有限公司 Marking method for continuously recording video and image
CN105681713A (en) * 2016-01-04 2016-06-15 努比亚技术有限公司 Video recording method, video recording device and mobile terminal
CN105578269A (en) * 2016-01-20 2016-05-11 努比亚技术有限公司 Mobile terminal and video processing method thereof

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111652058A (en) * 2020-04-27 2020-09-11 青岛百灵信息科技股份有限公司 Computer face recognition device
CN111652058B (en) * 2020-04-27 2023-03-28 青岛百灵信息科技股份有限公司 Computer face recognition device
CN113766279A (en) * 2021-08-24 2021-12-07 沈阳风驰软件股份有限公司 Information processing method, server and mobile terminal

Similar Documents

Publication Publication Date Title
CN103297682B (en) Moving image capture apparatus and the method for using camera system
US7609901B2 (en) Recording/reproducing system
US8031238B2 (en) Image-capturing apparatus, image-capturing method, and computer program product
CN105578269B (en) Mobile terminal and its method for processing video frequency
WO2017071559A1 (en) Image processing apparatus and method
WO2017166954A1 (en) Apparatus and method for caching video frame and computer storage medium
KR102314594B1 (en) Image display method and electronic device
WO2018059206A1 (en) Terminal, method of acquiring video, and data storage medium
US20120046042A1 (en) Apparatus and method for power control in geo-tagging in a mobile terminal
US20080171558A1 (en) Location-Based Service Method and System Using Location Data Included in Image Data
CN104657206B (en) A kind for the treatment of method and apparatus of image data
CN105975570A (en) Geographic position-based video search method and system
WO2017045647A1 (en) Method and mobile terminal for processing image
CN105827959A (en) Geographic position-based video processing method
WO2018076938A1 (en) Method and device for processing image, and computer storage medium
WO2017054616A1 (en) Method and device for displaying video picture, and picture display method
WO2017071542A1 (en) Image processing method and apparatus
US20230316459A1 (en) Information processing apparatus and method, electronic device and computer readable medium
CN105681713A (en) Video recording method, video recording device and mobile terminal
CN106954020B (en) A kind of image processing method and terminal
WO2017118320A1 (en) Mobile terminal, video processing apparatus and method thereof
WO2017067481A1 (en) Method and mobile terminal for processing image
CN105933651A (en) Method and apparatus for jumper connection of video on the basis of object route
CN113790732B (en) Method and device for generating position information
KR20140115974A (en) Photographing device, photographing method and computer readable medium for storing program

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: 16883445

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 16883445

Country of ref document: EP

Kind code of ref document: A1