Can I make a recorded video file smaller with enterprise?

Hello,

I do not have enterprise at the moment but depending on what I can do with it I may upgrade. I need to capture a video through the app and then upload it to a server. My issue is the video file size being so large even with 10 seconds of recording. How do other apps do this? Do they change the video resolution of the device when recording to help make it smaller? Is there any capability to make the file smaller with enterprise?

Thanks,

Warren

Video files are output at standard resolutions depending on what the camera can create, for instance a 1080p video will be 1980x1080 pixels for each frame. You have a frame rate on how often those frames are captured, typically 30fps or 60fps but could be more. Then there is some compression that gets applied too.  But these files are still going to be quite large.  A 10 second clip could still be several megabytes big.

Your server could also be the culprit. For instance, most PHP servers have a default 2MB limit for file uploads. Its not uncommon for video to take up a megabyte per second, so you would exceed most PHP server’s limits with a 2 second video.

Thanks for the info. I am using .NET for receiving the video file.  What I tried before is someone posted code on here for copying the video file to your temporary folder so I could then access it to upload. That part worked fine. But it timed out. I will look at it again.

So do all apps use the basic settings for the video file? I was looking at the code with Xamarin and it had several settings  to set as far as resolution and others before recording a video through the app.

I need to look if there is a way to limit how long the video file can be so it stops after 15 seconds of whatever it is set to.

Warren

I read it has a PreferredMaxDuration setting but also said this may not work with all devices. How else could I stop the video recording with my own timer?

I played with my video app I wrote to record video through the app and upload it to my .NET website to save. When I have the video settings for 320x480 a 15 second video is around 2mb and uploads just fine. Any other setting above that come out to 20mb or higher. The app actually shows it uploading and says it completed but on my server I never see the video. I will look into seeing why it did not save. I’m still interested in seeing how to stop a video on my own in case the PreferredMaxDuration  does not work on a device.

Thanks

Generally we use the OS Control for this. When its running your app is backgrounded and we have little control at that point. We will pass the requested time on, but it’s up to the OS to honor it.

Rob

Video files are output at standard resolutions depending on what the camera can create, for instance a 1080p video will be 1980x1080 pixels for each frame. You have a frame rate on how often those frames are captured, typically 30fps or 60fps but could be more. Then there is some compression that gets applied too.  But these files are still going to be quite large.  A 10 second clip could still be several megabytes big.

Your server could also be the culprit. For instance, most PHP servers have a default 2MB limit for file uploads. Its not uncommon for video to take up a megabyte per second, so you would exceed most PHP server’s limits with a 2 second video.

Thanks for the info. I am using .NET for receiving the video file.  What I tried before is someone posted code on here for copying the video file to your temporary folder so I could then access it to upload. That part worked fine. But it timed out. I will look at it again.

So do all apps use the basic settings for the video file? I was looking at the code with Xamarin and it had several settings  to set as far as resolution and others before recording a video through the app.

I need to look if there is a way to limit how long the video file can be so it stops after 15 seconds of whatever it is set to.

Warren

I read it has a PreferredMaxDuration setting but also said this may not work with all devices. How else could I stop the video recording with my own timer?

I played with my video app I wrote to record video through the app and upload it to my .NET website to save. When I have the video settings for 320x480 a 15 second video is around 2mb and uploads just fine. Any other setting above that come out to 20mb or higher. The app actually shows it uploading and says it completed but on my server I never see the video. I will look into seeing why it did not save. I’m still interested in seeing how to stop a video on my own in case the PreferredMaxDuration  does not work on a device.

Thanks

Generally we use the OS Control for this. When its running your app is backgrounded and we have little control at that point. We will pass the requested time on, but it’s up to the OS to honor it.

Rob