mp4 changes

This commit is contained in:
SteveGilvarry 2014-11-25 20:28:18 +11:00
parent 8d71d4de03
commit d8351eb1e3
1 changed files with 2 additions and 2 deletions

View File

@ -393,8 +393,8 @@ int FfmpegCamera::CaptureAndRecord( Image &image, bool recording, char* event_di
videoStore = NULL; videoStore = NULL;
} }
char fileName[4096]; char fileName[4096];
snprintf(fileName, sizeof(fileName), "%s/event.mkv", event_directory);//no audio support for mp4? snprintf(fileName, sizeof(fileName), "%s/event.mp4", event_directory);//no audio support for mp4?
videoStore = new VideoStore((const char *)fileName, "matroska", mFormatContext->streams[mVideoStreamId],mAudioStreamId==-1?NULL:mFormatContext->streams[mAudioStreamId],startTime); videoStore = new VideoStore((const char *)fileName, "mp4", mFormatContext->streams[mVideoStreamId],mAudioStreamId==-1?NULL:mFormatContext->streams[mAudioStreamId],startTime);
strcpy(oldDirectory, event_directory); strcpy(oldDirectory, event_directory);
} }