This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

NVR/DVR video data storage in DVR-RDK DM8168

Hi,

     I am using DM8168 from Udworks. , the dev. SDK is DVR-RDK 2. And I also have DM8168-EVM with EZSDK 5. 

     I am developing NVR devices.  I studied some NVRs from other companies, which are also based on DM8168.

     My question is:

     (1) How can I store the NVR video data from IPNC? Some NVRs devide a harddisk into a fixed number of big blocks(such as 16GB per block), and the video data is stored in the blocks. However, I do not know how to implement this.

     (2) Could you give some demos or links or docs on this?

     Thanks in the first.

  • XIONG,

    Are you referring to HDD partitions? To get better understanding of the implementation based on DM816x, refer to the UDWorks DVR reference design implementation.

    http://www.udworks.com/02_DVR/sub03.php

  • Hi Renjith,

          What I want to know is not the HDD partitions, since I can see that the HDD file system is ext3. What I am wandering is that both of the two NVR products formats a new hard disk, and then they creates some number of big files,and then they begin to record video data into the big files. Eg. in one NVR product, it creates 8 big files at first (& each file is 17.6GB ) , and then it stores video data into the big files.

          What I want to know is how can I implement this kind of video storage? Since it is different from organizing video data into ordinary files.

          Thanks

  • XIONG,

    I may be wrong. But my thinking goes like this. These files are created as a database files and videos will be stored in these files, along with relevant database entries.

  • Hi Renjith,

        Thanks for your reply.

         Following is the contents in the harddisk:

     

        Could you give more suggestions on using database technology to store video data files? Any more links on introducing these work?

        I will study the Ud Works development source codes, and hope to find more info in it.

        Thank you

        

  • Hi Renjith,

       Following is the content in the harddisk, it is linux ext3 file system.

    :~# ls /mnt/winc/database/ -lah

    drwxrwxrwx    2 root     root         4.0K Feb 20 07:24 .

    drwxr-xr-x    4 root     root         4.0K Feb 20 07:24 ..

    -rw-r--r--    1 root     root           14 Feb 21 00:29 chtdbs.cfg

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile0.av

    -rw-------    1 root     root        17.6G Feb 21 00:46 chtfile1.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile2.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile3.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile4.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile5.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile6.av

    -rw-------    1 root     root        17.6G Feb 21 00:29 chtfile7.av

     

  • Hi,

    As Renjith pointed out, these files are part of a database where Video/Audio from IPNCs/Encoders are stored.

    There are multiple ways to design this database, one of which is shown in the above post where the customer stores each channel data(video bit stream/audio samples and frame level info) in individual files. For Eg. chtfile0.av would contain the data(Video/audio) of only channel 0. This kind of database is efficient in reading bit stream data from individual channels for playback, but is not so efficient while writing data to HDD as HDD head has to move back and forth continuously to write data to individual files(different channels).

    In UD Works DVR reference design, they mux the data from different channels into a single basket file(*.bkt). This arrangement of data is efficient in writing bitstream data to HDD while being not efficient in reading them back.

    It is purely up to the designer to choose the best way to store the data, depending upon which activities are most relevant and which activities can be compromised.

    Thanks & Regards,

    Arun

  • Hi Arun,

          Thanks for your detailed reply to the answer.

           Perhapers both of the database method & UD Works method have advantages and shortcomings. I will do some more research and comparison on them.

           Since I will get the UD Works board in about a week later.

           Could you give some links, or docs, or paper on discussing and comparing both of these storage methods, and on how to implement them ?

           Did the UD Works provide source codes on the basket file (*.bkt) storage ?

           Thank you again.

  • hi all, could you please help me in my task scenario is this that if i record ten videos today i have to get this videos in an order like 1st video at 10:12 am and second at 11:34am so my question is this when we start recording is there is any variable with this basket file through which i can recognize the recording sequence
  • how to get the detail information of recorded data means if i record 10 video today which file contain all the info about recorded datalike recorded time date and size of file