CN117176714A - Method for realizing real-time audio and video private cloud through FTP - Google Patents

Method for realizing real-time audio and video private cloud through FTP Download PDF

Info

Publication number
CN117176714A
CN117176714A CN202311204436.8A CN202311204436A CN117176714A CN 117176714 A CN117176714 A CN 117176714A CN 202311204436 A CN202311204436 A CN 202311204436A CN 117176714 A CN117176714 A CN 117176714A
Authority
CN
China
Prior art keywords
video
audio
ftp
format
ftp server
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202311204436.8A
Other languages
Chinese (zh)
Inventor
王欣颐
汪伟杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Individual
Original Assignee
Individual
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Individual filed Critical Individual
Priority to CN202311204436.8A priority Critical patent/CN117176714A/en
Publication of CN117176714A publication Critical patent/CN117176714A/en
Pending legal-status Critical Current

Links

Abstract

The application provides a method for realizing real-time audio and video private cloud through FTP, which comprises the following steps: the deployment and configuration of the FTP server; monitoring equipment configuration; the monitoring equipment acquires audio and video frames in real time; and packaging the audio and video frames into audio and video frames in a PS format in real time according to the PS format, and uploading the audio and video frames to the FTP server through a configured FTP code service interface by adopting an FTP protocol. The application provides a method for realizing real-time audio and video private cloud through FTP, which is characterized in that the method is transmitted to an FTP server built by a home computer in real time through an audio and video streaming PS technology, and even if a network is fluctuated or disconnected, audio and video monitoring data uploaded to the FTP server can still be played by using a universal player, so that the use experience of a user is improved.

Description

Method for realizing real-time audio and video private cloud through FTP
Technical Field
The application belongs to the technical field of private clouds, and particularly relates to a method for realizing real-time audio and video private clouds through FTP.
Background
At present, the monitoring equipment used by residents stores historical audio and video monitoring data in the following mode: 1. the household monitoring camera is provided with an SD card for localized audio and video recording, and has the following defects. A: the SD card has limited storage space, and for storing audio and video big data, the 256GB SD card stores 2Mbps audio and video stream, which can only be stored for about 7 days, and the storage time is short. B: SD cards have a limited lifetime for writing large amounts of data and are vulnerable to damage. C: if the monitoring equipment is damaged, the SD card is damaged at the same time, so that residents cannot obtain historical monitoring data. The above 3 points all cause insufficient evidence or damage. 2. At present, the home monitoring equipment can also be purchased for cloud storage deployed on the Internet by factories, but the public network bandwidth is extremely expensive and is continuously paid, and more expense and expenditure are increased for general home users. In addition, because the public network is adopted, a certain risk of secret leakage exists. 3. The local NVR is used for storage, special NVR equipment and hard disk are needed, and the cost is high.
Disclosure of Invention
Aiming at the defects existing in the prior art, the application provides a method for realizing real-time audio and video private cloud through FTP, which can effectively solve the problems.
The technical scheme adopted by the application is as follows:
the application provides a method for realizing real-time audio and video private cloud through FTP, which comprises the following steps:
step 1, deployment and configuration of an FTP server:
installing and deploying an FTP server on a client; configuring the FTP server, including: setting a user name, a password, a user authority and a shared directory for accessing the FTP server; the shared directory comprises an audio and video frame shared directory and a video file shared directory in a PS format; configuring an FTP code service interface of an FTP server to monitoring equipment;
step 2, configuring monitoring equipment:
the monitoring equipment is configured with an FTP code service interface for accessing the FTP server, and a user name and a password for accessing the FTP server;
step 3, the monitoring equipment acquires an audio and video frame in real time; the audio and video frames are packaged into audio and video frames in a PS format in real time according to the PS format;
the monitoring equipment uploads the audio and video frames in the PS format to the FTP server in real time by adopting an FTP protocol through a configured FTP code service interface;
the specific uploading method comprises the following steps: the monitoring equipment logs in the FTP server, and stores the audio and video frames in the PS format in real time in an audio and video frame sharing directory in the PS format; meanwhile, converting the audio and video frames in the PS format into video files in real time and storing the video files in the video file sharing directory;
step 4, the FTP server stores the audio and video frames in the PS format and the video files;
and 5, the universal player arranged at the client reads and plays the video files in the video file sharing directory.
Preferably, the client is a PC-side personal computer; the monitoring device is a monitoring camera device.
Preferably, the monitoring device acquires an audio and video frame in real time, and encapsulates the audio and video frame into an audio and video frame in a PS format in real time according to the PS format, specifically:
the monitoring equipment acquires audio and video frames in real time, wherein the audio and video frames comprise video frames in an H264 coding format and audio frames in an AAC coding format; wherein, the video frames of the H264 coding format comprise video I frames and video non-I frames;
video I frame per (|PS header|PS system map|PES) data PES data …) format, video non-I frame per (|PS header|PES|data|PES) data PES data …) format; audio frame by (|ps header|pes|data|pes| data|pes|data| … |) are format-encapsulated.
Preferably, the monitoring device uploads the audio and video frames in the PS format to the FTP server in real time by adopting an FTP protocol through a configured FTP code service interface, specifically:
the monitoring equipment logs in an FTP server by using an FTP user name and a password, creates a hierarchical directory corresponding to the monitoring equipment in a PS-format audio and video frame sharing directory of the FTP server, and stores the PS-format audio and video frame in the hierarchical directory; the monitoring equipment converts the audio and video frames in the PS format into video files, creates the video files in the video file sharing directory of the FTP server, and stores the video files obtained by conversion into corresponding video files in the video file sharing directory.
The method for realizing the real-time audio and video private cloud through the FTP has the following advantages:
the application provides a method for realizing real-time audio and video private cloud through FTP, which is characterized in that the method is transmitted to an FTP server built by a home computer in real time through an audio and video streaming PS technology, and even if a network is fluctuated or disconnected, audio and video monitoring data uploaded to the FTP server can still be played by using a universal player, so that the use experience of a user is improved.
Drawings
Fig. 1 is a schematic diagram of a method for implementing real-time audio and video private cloud through FTP according to the present application.
Detailed Description
In order to make the technical problems, technical schemes and beneficial effects solved by the application more clear, the application is further described in detail below with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for purposes of illustration only and are not intended to limit the scope of the application.
In consideration of the fact that the current main stream monitoring data storage mode has certain use limitation for families or shops, the application provides a method for realizing real-time audio and video private cloud through FTP.
Specifically, how to carry out audio and video monitoring data storage evidence and record a use scene by simply setting up a small private cloud of the user, and FTP is a file transfer protocol.
The application provides a method for realizing real-time audio and video private cloud through FTP, referring to FIG. 1, comprising the following steps:
step 1, deployment and configuration of an FTP server:
installing and deploying an FTP server on a client; the client can be a PC (personal computer); configuring the FTP server, including: setting a user name, a password, a user authority and a shared directory for accessing the FTP server; the shared directory comprises an audio and video frame shared directory and a video file shared directory in a PS format; configuring an FTP code service interface of an FTP server to monitoring equipment;
step 2, configuring monitoring equipment:
the monitoring device may be a monitoring camera device, where an FTP code service interface for accessing the FTP server, and a user name and a password for accessing the FTP server are configured in the monitoring device;
step 3, the monitoring equipment acquires an audio and video frame in real time; the audio and video frames are packaged into audio and video frames in a PS format in real time according to the PS format; the method comprises the following steps: the monitoring equipment acquires audio and video frames in real time, wherein the audio and video frames comprise video frames in an H264 coding format and audio frames in an AAC coding format; wherein, the video frames of the H264 coding format comprise video I frames and video non-I frames; video I frame per (|PS header|PS system map|PES) data PES data …) format, video non-I frame per (|PS header|PES|data|PES) data PES data …) format; audio frame by (|ps header|pes|data|pes| data|pes|data| … |) are format-encapsulated.
The monitoring equipment uploads the audio and video frames in the PS format to the FTP server in real time by adopting an FTP protocol through a configured FTP code service interface;
the specific uploading method comprises the following steps: the monitoring equipment logs in the FTP server, and stores the audio and video frames in the PS format in real time in an audio and video frame sharing directory in the PS format; meanwhile, converting the audio and video frames in the PS format into video files in real time and storing the video files in the video file sharing directory;
the method comprises the following steps of: the monitoring equipment logs in an FTP server by using an FTP user name and a password, creates a hierarchical directory corresponding to the monitoring equipment in a PS-format audio and video frame sharing directory of the FTP server, and stores the PS-format audio and video frame in the hierarchical directory; the monitoring equipment converts the audio and video frames in the PS format into video files, creates the video files in the video file sharing directory of the FTP server, and stores the video files obtained by conversion into corresponding video files in the video file sharing directory.
Step 4, the FTP server stores the audio and video frames in the PS format and the video files;
and 5, the universal player arranged at the client reads and plays the video files in the video file sharing directory.
Description of the whole flow scheme:
1: the universal FTP server is installed and deployed on a common home computer. Definition of FTP, for example (FTP Server common to FileZilla Server, wing FTP Server): file Transfer Protocol (file transfer protocol) for receiving and storing files, and in the present application, streaming of audio/video data is performed. After the FTP server is deployed, setting a corresponding user name, a corresponding password and a corresponding user authority (readable and writable), setting a shared directory of the FTP server, and completing the preparation work of the FTP service of the PC end.
2: PS format encapsulation of the audio/video stream is realized in the camera program.
PS flow definition: MPEG2-PS is a packaging container for multiplexing digital audio, video, etc. PS is an abbreviation of Program Stream. The program stream combines one or more elementary data streams (PES) that are packetized but have a common time reference into a single overall stream.
ES: elementary Stream (elementary stream) is an original elementary stream output from an encoder, and contains only information necessary for a decoder and close to an original image or an original audio. The original code stream for transmitting the single-channel video and audio signal is output by the compressor. The ES contains only one content data stream, such as video only or audio only, etc.
PES: packetized Elementary Streams (packetized ES), the packets formed by ES are referred to as PES packets, and are one type of data structure used to convey ESs. The PES stream is a data stream formed by processing the ES stream by a PES packetizer, and in this process, the operations of packetizing, adding header information, and the like (first packetizing the ES stream) are completed. The basic unit of a PES stream is a PES packet. The PES packet consists of a header and a payload. PS-Program Stream PS Stream consists of PS packets, and one PS packet consists of several PES packets (here, the ES is encapsulated in two layers). The packet header of the PS packet includes synchronization information and clock recovery information. One PS packet may contain at most 16 video PES packets and 32 audio PES packets with the same clock reference.
The camera program obtains the audio/video frames through the internal interface and then encapsulates the audio/video frames. The video frames are in H264 encoding format, the video I frames are encapsulated in (|PS header|PS system map|PES|data|PES data|PES data| … |) format, video non-I frame per (|PS header|PES|data|PES) data PES data …) format. And the audio frame is in an audio coding format of AAC, and the audio frame is packaged according to the format of (|PS header|PES|data|PES data|PES data| … |).
3: and transmitting the encapsulated PS stream data by adopting an FTP protocol:
the monitoring equipment performs the following operations through the written FTP code service interface:
a: the FTP user name and password are used for logging in the FTP server. B: a hierarchical directory of cameras at the FTP server (by date and camera ID) is created. C: video files are created (created in the mkv format [ various players can recognize ]). D: the monitoring device uploads the encapsulated audio/video frames in the PS format to the FTP server as a data carrier uploaded by the FTP (the first frame of the file is an I frame, and the audio/video frames encapsulated in the PS format are uploaded all the time in a round-robin manner), and the size of one file is generally limited to 30-40 minutes. E: closing the FTP server, and logging out of the FTP server. The whole file is uploaded.
4: the client uses a player (VLC, quick lightning, storm video and audio and other universal players) to play the video files uploaded to the FTP server at the PC end, and normal file playing is carried out.
Compared with the prior art, the application has the beneficial effects that:
1. compared with the storage of the SD card which is usually used by monitoring equipment, the method can discard the limitation that the video recording time caused by the limitation of the space of the SD card can only be stored for about 1 week, the FTP server only needs to have a large enough PC hard disk and can continuously store the data, the 6TB hard disk can generally store the monitoring data for 3 months, and the SD card is easy to damage when the large data is frequently written. According to the method, a user does not need to purchase the SD card independently, the safety is higher than that of the SD card, for example, the SD card of the camera is basically damaged and lost when damaged, the FTP private cloud is adopted, and even if the camera is damaged, the monitoring video is not damaged and lost.
2. Compared with the monitored local NVR, the application does not need the user to purchase NVR equipment and hard disk more, thereby reducing expenditure. And the method is simpler and more convenient than NVR deployment, and can be operated by a general user with less requirements on professional skills of the user.
3. Compared with an internet cloud storage mode, the method does not need users to pay expensive cloud storage cost per month, and is higher than the internet cloud storage safety, because once data are transmitted on the internet, the data are possibly intercepted, and privacy leakage risks exist.
The following examples are given to illustrate the application in a clear and complete manner, and are carried out by the following steps:
the first step: the personal PC computer uploads the FTP service program, configures the user name and the password, sets the shared directory, opens the viewable list of the shared directory, can build the subdirectory, and has readable, writable, additionally-writable and deletable permissions for file setting.
And a second step of: a universal player is installed, in this embodiment a storm video player is used.
And a third step of: in the configuration of the high-definition web camera, the user name and password of the FTP are associated, and the FTP video recording function is used, and the 24-hour daily video recording is configured.
Fourth step: the FTP service program waits for the high-definition web camera to upload audio and video monitoring data packaged in real-time PS format for half an hour.
Fifth step: and playing the PS-format encapsulated audio and video monitoring data uploaded to the FTP service program by using a storm video player.
In summary, the application provides a method suitable for home scenes and small shops, suitable for monitoring equipment to upload audio and video streams packaged by PS protocol in real time, wherein the FTP server receives the audio and video stream data and stores the audio and video stream data as real-time audio and video private cloud of video in real time, ensures the security of private data and can resist network jitter abnormality.
The foregoing is merely a preferred embodiment of the present application and it should be noted that modifications and adaptations to those skilled in the art may be made without departing from the principles of the present application, which is also intended to be covered by the present application.

Claims (4)

1. The method for realizing the real-time audio and video private cloud through the FTP is characterized by comprising the following steps of:
step 1, deployment and configuration of an FTP server:
installing and deploying an FTP server on a client; configuring the FTP server, including: setting a user name, a password, a user authority and a shared directory for accessing the FTP server; the shared directory comprises an audio and video frame shared directory and a video file shared directory in a PS format; configuring an FTP code service interface of an FTP server to monitoring equipment;
step 2, configuring monitoring equipment:
the monitoring equipment is configured with an FTP code service interface for accessing the FTP server, and a user name and a password for accessing the FTP server;
step 3, the monitoring equipment acquires an audio and video frame in real time; the audio and video frames are packaged into audio and video frames in a PS format in real time according to the PS format;
the monitoring equipment uploads the audio and video frames in the PS format to the FTP server in real time by adopting an FTP protocol through a configured FTP code service interface;
the specific uploading method comprises the following steps: the monitoring equipment logs in the FTP server, and stores the audio and video frames in the PS format in real time in an audio and video frame sharing directory in the PS format; meanwhile, converting the audio and video frames in the PS format into video files in real time and storing the video files in the video file sharing directory;
step 4, the FTP server stores the audio and video frames in the PS format and the video files;
and 5, the universal player arranged at the client reads and plays the video files in the video file sharing directory.
2. The method for realizing real-time audio and video private cloud through FTP according to claim 1, wherein the client is a PC; the monitoring device is a monitoring camera device.
3. The method for realizing real-time audio and video private cloud through FTP according to claim 1, wherein the monitoring device acquires audio and video frames in real time, packages the audio and video frames into audio and video frames in PS format in real time according to PS format, specifically:
the monitoring equipment acquires audio and video frames in real time, wherein the audio and video frames comprise video frames in an H264 coding format and audio frames in an AAC coding format; wherein, the video frames of the H264 coding format comprise video I frames and video non-I frames;
video I frame per (|PS header|PS system map|PES) data PES data …) format, video non-I frame per (|PS header|PES|data|PES) data PES data …) format; audio frame by (|ps header|pes|data|pes| data|pes|data| … |) are format-encapsulated.
4. The method for realizing the real-time audio and video private cloud by using the FTP according to claim 1, wherein the monitoring device uploads the audio and video frames in the PS format to the FTP server in real time by using the FTP protocol through a configured FTP code service interface, specifically comprising the following steps:
the monitoring equipment logs in an FTP server by using an FTP user name and a password, creates a hierarchical directory corresponding to the monitoring equipment in a PS-format audio and video frame sharing directory of the FTP server, and stores the PS-format audio and video frame in the hierarchical directory; the monitoring equipment converts the audio and video frames in the PS format into video files, creates the video files in the video file sharing directory of the FTP server, and stores the video files obtained by conversion into corresponding video files in the video file sharing directory.
CN202311204436.8A 2023-09-18 2023-09-18 Method for realizing real-time audio and video private cloud through FTP Pending CN117176714A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202311204436.8A CN117176714A (en) 2023-09-18 2023-09-18 Method for realizing real-time audio and video private cloud through FTP

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202311204436.8A CN117176714A (en) 2023-09-18 2023-09-18 Method for realizing real-time audio and video private cloud through FTP

Publications (1)

Publication Number Publication Date
CN117176714A true CN117176714A (en) 2023-12-05

Family

ID=88931652

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202311204436.8A Pending CN117176714A (en) 2023-09-18 2023-09-18 Method for realizing real-time audio and video private cloud through FTP

Country Status (1)

Country Link
CN (1) CN117176714A (en)

Similar Documents

Publication Publication Date Title
EP1743485B1 (en) Motion picture distribution system and related method
CN101790886B (en) Apparatus and method for storing and reading a file having a media data container and a metadata container
US8776150B2 (en) Implementation method and system for a media-on-demand frame-spanning playing mode in a peer-to-peer network
US7231516B1 (en) Networked digital video recording system with copy protection and random access playback
US7116894B1 (en) System and method for digital multimedia stream conversion
JP4426780B2 (en) Video recording / reproducing system and recording / reproducing method
WO2007010779A1 (en) Packet transmitter
CN112752115B (en) Live broadcast data transmission method, device, equipment and medium
US20110229105A1 (en) Decentralized symmetric network of autonomous digital video recorders and its method of use
US20110276994A1 (en) Realtime broadcast stream and control data conversion system and method
JP2007173987A (en) Multimedia data transmission/reception system and device, or program
JP6876928B2 (en) Information processing equipment and methods
EP2135100B1 (en) Converting video data into video streams
WO2007125848A1 (en) Data processing device, data processing method, data processing program, recording medium containing the data processing program, and integrated circuit
WO2009104639A1 (en) Video distribution device, video distribution system, and video distribution method
CN104038844A (en) Mobile live broadcast system based on MPEG-2 standard
CN104639905A (en) Wireless video monitoring method suitable for live broadcast on mobile terminal of iOS system
CN106657110A (en) Encrypted transmission method and apparatus of streaming data
KR20040089108A (en) Device for secure transmission recording and visualisation of audiovisual programmes
CN106331853A (en) Multimedia de-packaging method and apparatus
CN117176714A (en) Method for realizing real-time audio and video private cloud through FTP
US7529263B1 (en) Local area-networked system having intelligent traffic control and efficient bandwidth management
US20070280293A1 (en) System and method for implementing video streaming over IP networks
CN110620796B (en) Fingerprint information access method and device
JP4755710B2 (en) Video surveillance system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination