ftp format other than dav

Have some questions or having issues with your IP Camera(s), Post them here for the mods and other users to assist you with.
bucktownbell
Posts: 17
Joined: Mon Mar 06, 2017 3:29 am

Re: ftp format other than dav

Post by bucktownbell »

I'm evaluating an IP2M-841B camera purchased a few days ago and it writes .mp4 files when sent over via ftp. I had to write a script to extract and rename them to something sensible from the incoming directory but they are valid .mp4 files. They come with a text .idx file which looks like some kind of index. Does anyone know what these files are for? The camera works great. You should be able to covert .dav with ffmpeg. I use that to convert the .mkv files coming in from the Foscam cameras.
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Re: ftp format other than dav

Post by jamestx10 »

What platform are you on? Is your script in Powershell? Would you mind sharing it?
IP2M-841
bucktownbell
Posts: 17
Joined: Mon Mar 06, 2017 3:29 am

Re: ftp format other than dav

Post by bucktownbell »

My ftp server is Linux and the script is written in bash. I use the find command in the root camera ftp directory to get all the .mp4 files ( find camerarootdir -name \*.mp4 ). Amcrest uses a lot of subdirectories but the date and time to the second can be extracted from the path using splits and cuts. Then simply assemble date_time and move the file. I'm sure this can be done in powershell but I don't use MS for anything server.

I just bought an outdoor camera that only writes in .dav. ffplay plays them and ffmpeg can convert them which I find acceptable.
jamestx10
Posts: 34
Joined: Fri Jul 15, 2016 7:36 am

Re: ftp format other than dav

Post by jamestx10 »

For those of you in the windows world I made this PowerShell script. I have no need for the IDX files so I delete the. Change the locations in line 47 to point first to your source location then to your destination location. Files will be sorted into folders "2017-04" and will contain the MP3 and JPG files in the same folder.

Code: Select all

Function AmcrestCleanUp ($XPath, $YPath){
$XPath
$YPath
### Delete .IDX files
Get-ChildItem -path $XPath -Recurse -include *.idx -force | Remove-Item
###Process the .JPG and .MP4 Files
$Files = Get-ChildItem -path $XPath -Recurse -include *.jpg, *.mp4
$Files.Count
ForEach ($File in $Files){
$Path = $File.FullName
#$Path
$CT = $File.CreationTime.ToString("yyyy-MM-dd HH.mm.ss")
$NewName = $CT + $File.Extension
#$NewName
$YearMonth = $File.CreationTime.toString("yyyy-MM")
$DestinationPath = "$YPath$YearMonth"
#$DestinationPath
$FileEnd = $DestinationPath + "\" + $NewName
#$FileEnd
If (Test-Path $DestinationPath){
#Write-Host "Dest Path Found"
for($i = 0; Test-path $FileEnd; ++$i){
$FileEnd = $DestinationPath + "\" + $CT + "-" + $i + $File.Extension
}
#Write-Host "FileEnd2: $FileEnd"
Move-Item -literalpath $path -Destination $FileEnd
}
Else{
Write-Host "Creating Dest PAth"
New-Item -ItemType Directory -Path $DestinationPath
for($i = 0; Test-path $FileEnd; ++$i){
$FileEnd = $DestinationPath + "\" + $CT + "-" + $i + $File.Extension
}
#Write-Host "FileEnd2: $FileEnd"
Move-Item -literalpath $path -Destination $FileEnd
}
}

###Remove empty folders
Do{
$Folders = Get-ChildItem $XPath -Directory -Recurse |Where {(Get-ChildItem $_.FullName).count -eq 0} | select -expandproperty FullName
$Folders | ForEach-Object {Remove-item $_ }
}
While ($Folders.count -gt 0)
}

AmcrestCleanUp "I:\Camera\IP2m-841B-LVRM\" "I:\Camera\AmcrestTesting\LivingRoom\"
IP2M-841
nstearns
Posts: 3
Joined: Tue Dec 13, 2016 9:30 am

Re: ftp format other than dav

Post by nstearns »

I just purchased an IP2M-844EB.
It has the latest firmware: 2.520.0000.0.R, build : 2016-08-15
(I downloaded the latest and upgraded, then did a factory reset.)

Based on a post from an Amcrest rep earlier in this thread, I expected this model to now support recording in mpeg with a new firmware.
But...there is no new firmware since Oct 2016 and it still does not support anything other than .dav.

When will this model support MPG format for FTP recording?
nstearns
Posts: 3
Joined: Tue Dec 13, 2016 9:30 am

Re: ftp format other than dav

Post by nstearns »

Melvin wrote:Hello qoobs ,

New update would be made available for this model very soon.
really?
Today is May 27 2017.
I just purchased the IP2M-844E - it is running the latest firmware (dated Oct 2016).
Still does not support anything but .dav.

Please do not post misleading information. I would appreciate a valid update on when this will be resolved for this model.
Peter_JS
Posts: 6
Joined: Sat Apr 29, 2017 7:20 am

Re: ftp format other than dav

Post by Peter_JS »

+1!

I have recently purchased 1x IP2M-842E and 3x IP4M-1025EB
The 3x 4MP cameras all write MP4 to FTP server, but the 2MP one will only write in .DAV.
This is really annoying, as ffmpeg does not always convert the DAV files successfully.
Also the 4MP ones support NFS (called "NAS") ... and guess what...the 2MP one does not.

I'm sure its not just me and all consumers expect to find common features across all your current selling products ??

This thread has been going on for 18months, an honest update on timescales would be appreciated.

Thanks
Peter
netbeui
Posts: 7
Joined: Sun Mar 06, 2016 11:59 pm

Re: ftp format other than dav

Post by netbeui »

Hi Melvin, I see that the IP2M-842 recently got a firmware update. After updating the firmware on my camera where do I change the setting so video is created in mp4 format instead of dav?
qoobs
Posts: 9
Joined: Mon Jan 23, 2017 12:56 am

Re: ftp format other than dav

Post by qoobs »

Melvin wrote:Hello qoobs ,
New update would be made available for this model very soon.
This was half a year ago.
Could you please explain, what you think "soon" means?
Or maybe that was that pesky auto-correct, and you meant to write "not soon"?
qoobs
Posts: 9
Joined: Mon Jan 23, 2017 12:56 am

Re: ftp format other than dav

Post by qoobs »

This was my first Amcrest camera and it looks like it will be the last. Keep up the great work!
Post Reply