Gstreamer Editing Services + Tauri Tips

0. Create Clip From File Path let file_path = "path_to_video"; // Add file:/// to the beginning of path let path_for_gstreamer = format!("file:///{}", file_path); // Then, we can get clip from the path let uri_clip = UriClip::new(&path_for_gstreamer)?; 1. Set Video Track Resolution // The variable type must be i32 let width: i32 = 1920; let height: i32 = 1080; let restriction = Caps::builder("video/x-raw") .field("width", width) .field("height", height) .build(); // Create new video track let video_track = VideoTrack::new(); // Set resolution video_track....

August 25, 2023 · 2 min · 361 words · RstursOC