mI-PIV / app

Mobile Instructional Particle Image Velocimetry (mI-PIV) is an educational Android application that teaches users about fluid mechanics through real-time experiments and curricular modules.
MIT License
8 stars 4 forks source link

Output Video #359

Closed jack-elliott closed 2 years ago

jack-elliott commented 2 years ago

When user is doing whole set processing then outputting a video to gallery, the resulting video has a hard time playing in the phone or when downloaded to a computer. Also, the output framerate seems slow.

Here's an example

https://user-images.githubusercontent.com/77805273/184225598-06952c82-f054-4ef6-bdff-df8f6cfa2dfe.mp4

kp-121 commented 2 years ago

I thought it would be better to see the vector field changes so I set it to 2 FPS. I can change it to 30 fps, or even have a popup giving the user the option of output fps.

I spent a lot of time with the format, and android's playback formats are finicky. I'll try to see if we can't find which formats the user's phone allows then convert it.

jack-elliott commented 2 years ago

Ah that makes sense. Maybe a user-defining option for the framerate would be best then. Opening the video took some effort on the phone, and I can't get it open on the computer. I think opening the vids on both is ideal.

kp-121 commented 2 years ago

I went with MP4 because that's the most popular format and can be played on most devices, but I'll double check that the format conversion isn't corrupting the video.