Here is a quick way to convert video recorded from the Dahua IP camera in .dav format to .mp4 format that is playable on any media player.
ffmpeg -y -i InputFile.DAV -vcodec libx264 -crf 25 output.mp4
Change the 25 to the number of frames per second that your video is recorded in.
ffmpeg -y -i InputFile.DAV -vcodec libx264 -crf 25 output.mp4
Change the 25 to the number of frames per second that your video is recorded in.
I have a video in .dav extension of 10 minutes, and when I try to convert video to mp4, the converted video is changed to 12 minutes. The video .dav recorded with 30 FPS. I have used many ffmpeg commands and everyone is with the difference of 2 minutes.
ReplyDeleteWould you help me?
Sorry for the late reply. Use 30 instead of the 25 in the command. So use this command:
Deleteffmpeg -y -i InputFile.DAV -vcodec libx264 -crf 30 output.mp4
Let me know if it worked.
It is too hard for me. I use Bigasoft Total Video Converter to convert DAV to other video formats. It works for me.
ReplyDeletehttp://www.bigasoft.com/articles/dav-player-converter.html
just in case anyone pops in: this software costs USD 39.90, trial's up to 5' max output. Thanks.
Deletesame as above here: this software costs USD 39.90, trial's up to 5' max output. Thanks.
ReplyDeleteMany of my friends use iDealshare VideoGo to convert DAV to MP4 with this guide at http://www.idealshare.net/video-converter/convert-dav-to-avi-mp4-mpg.html
ReplyDeleteToday, I just have a try and find it really works perfect.
It can convert DAV to MP4, AVI,WMV, MOV, 3GP, FLV, MKV, WTV, DV, RMVB, ASF, WebM, and etc video format.
It even convert DAV to OGG, FLAC, DTS, MP3, WAV, M4A audio format.
More exciting, it features editing features like trim, merge, crop, increase audio volume, split, rotate and etc.
Hope it also helps for you.