SM Motion Photo
This crate can be used to extract Motion Photo taken on Samsung phone (if it provides such feature and this feature is turned on) and saves it in MP4. You can also check if the photo has video and get meta information from the video.
This feature is available on Galaxy S20, S20+, S20 Ultra, Z Flip, Note10, Note10+, S10e, S10, S10+, Fold, Note9, S9, S9+, Note8, S8, S8+, S7, and S7 edge.
Usage
use File;
use SmMotion;
// open file
let photo_file = open.unwrap;
let mut sm = with.unwrap;
println!;
let mut video_file = create.unwrap;
// dump mp4 from jpeg
sm.dump_video_file.unwrap;
// get video duration (no dump needed)
println!;
// get MP4 file context
println!;