Iteration of writing videos
1 view (last 30 days)
Show older comments
Commented: Ryan Sumida on 6 Jan 2023
Hello! My the purpose of my code is to cut out 8-second scenes from a video from specific time stamps. I'm having an issue where the first 8-second video comes out good but it cannot make anymore and just cycles through the loop. Heres the code thank you
Edited: VBBV on 6 Jan 2023
Place the below line
Outside of the outer for loop with index k.
Yes. you are right. The filename appears to be same for each iteration. In such case, the line reading filename needs to be modified as
fileName = sprintf('%d.10.07.2022 lool before 3,4.mp4',k)
v = VideoReader(fullfile(rootDirectory),fileName)
Find more on Video Formats and Interfaces in Help Center and File Exchange
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!Start Hunting!