Filenames ending with "_" (underscore) ??

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
Post Reply
Darryl
Posts: 18
Joined: Tue Jun 21, 2016 11:44 am

Filenames ending with "_" (underscore) ??

Post by Darryl »

Hello !

I have been using IP2M-841 cameras recording directly to NAS (a FreeNAS machine). All works very well, except I notice occasionally that files written do not always end in the expected file types (.idx, .dav and .jpg).

Processing records from four cameras resulted in two records from each cam producing a file ending in either .idx_ or .dav_. Pretty sure this is not an error or a firmware issue ... guessing that it is most likely some sort of control record (perhaps indicating the first or last file in a sequence?)?

I'm writing bash shell scripts to process the files written to my NAS, converting them to file types that play back on my PC (.avi, .mov). It complicates my script logic a little bit to handle these records; my question is "what is the significance of a file ending in "_" ?

Thanks,
Darryl
Melvin
Site Admin
Posts: 2210
Joined: Wed Oct 14, 2015 2:20 pm

Re: Filenames ending with "_" (underscore) ??

Post by Melvin »

Hello Darryl ,

The underscore should not be there with the file name and it looks like its being created erroneously. However we have noted this issue some FTP services but not others.
Can't find your answer on the forum? Try our Knowledge Base! https://amcrest.zendesk.com/hc/en-us

Image
Darryl
Posts: 18
Joined: Tue Jun 21, 2016 11:44 am

Re: Filenames ending with "_" (underscore) ??

Post by Darryl »

Quick note about my config; I'm not using FTP. I'm going direct to FreeNAS NFS share.

Problem seems to happen only once per camera instance. I've written a script which evaluates file names and caught the problem. I'd be happy to work with your support team on diagnostics and field testing; if you'd like, let me know!

Darryl
Sublevel4
Posts: 11
Joined: Wed Nov 02, 2016 9:37 pm

Re: Filenames ending with "_" (underscore) ??

Post by Sublevel4 »

I seem to be having the same issue as this but mine it every file it writes. They all have .dav_
They seem to be truncated files as most of them are only several k in size where they should be many MB in size. I have had a few that where larger and i could watch the video once i removed the "_". I am using a FreeNAS server as well. Did you find a solution?
lederermc
Posts: 3
Joined: Thu Nov 03, 2016 2:06 pm

Re: Filenames ending with "_" (underscore) ??

Post by lederermc »

It appears to me that files ending in "_" are currently being written (i.e. streaming in progress). These "*.mp4_" files do NOT have the moov atom so they are not playable. Once the file is completed the "_" is removed and the moov atom is inserted. Suspect the .idx files contain the information required to insert the moov atom. I have not been able to figure out how to fix the missing moov atom error for these incomplete files. Any advice would be appreciated.
skalinkin
Posts: 1
Joined: Sun Jul 09, 2017 8:09 am

Re: Filenames ending with "_" (underscore) ??

Post by skalinkin »

I have the same issue with IP2M-844E writing files to FTP on FreeNas.
Here is what I see: I opened FTP folder current for current time. Continuously refreshing it (F5 or Ctrl + R).
the current file is increasing in size and has .dav_ extension. then for a moment it changes to .dav and then go back to .dav_
14.47.15-14.47.15[M][0@0][0].dav_
Looks like file being overwritten after it was finished. and actually it does not have end time in file name.
Melvin
Site Admin
Posts: 2210
Joined: Wed Oct 14, 2015 2:20 pm

Re: Filenames ending with "_" (underscore) ??

Post by Melvin »

Hello skalinkin,

The _ should be gone once the file is complete. Are you able to remove the _ and then play the files? I the camera on the latest firmware?
Can't find your answer on the forum? Try our Knowledge Base! https://amcrest.zendesk.com/hc/en-us

Image
Devilsbane2
Posts: 1
Joined: Wed Jan 03, 2018 11:10 am

Re: Filenames ending with "_" (underscore) ??

Post by Devilsbane2 »

So how can I recover the file? Renaming it doesn't work. Last week my camera was powered down unexpectedly during recording when the power cord was cut. There is a 15MB clip that ends in an underscore that I'm unable to open which likely shows the cord being cut. At first I put the SD card in my computer (since I have no power), copied the file to a local location and attempted to open it with a variety of programs. With no success and a new power cable I powered the camera back on and tried to access that date and time but it doesn't show that a recording ever happened at that time.

Seems like I need to take that data and finalize the file somehow to view my camera being tampered with. How can I do that? Pretty worthless camera if it's not going to show me what tampered with it. Was it my dog biting the cord or someone maliciously cutting it??
Post Reply