ddnn55 / fcptrim

Trim video files as specified in a Final Cut Pro XML file
2 stars 0 forks source link

Trim clips with start and end points #1

Open camjac251 opened 6 years ago

camjac251 commented 6 years ago

Hey there.

I was wondering if there is a way to maybe get around the limitation of the clips being the same length and starting at frame 0. I am working on a project where if I convert the raw files to a usable format losslessly, they will be too big. So I've made proxy files at a fraction of the quality and file size in hopes to edit that into a finished piece and afterward be able to send the timecode of each clip to the original files through ffmpeg to convert each cut into a clip so I can replace each cut with the lossless original source quality.

Could this script work in this same way? It would save a lot of time manually doing it.

ddnn55 commented 6 years ago

Ahh yes there is probably a way. I used this originally to trim clips that were different angles shot simultaneously (actually a 6 camera 360° rig).

Not sure when I could do this, PR is certainly welcome. How many clips are we talking? If it’s not too many, work around could be to temporarily align them all to the beginning, but obviously that’s not very scalable. On Fri, Dec 8, 2017 at 11:05 AM camjac251 notifications@github.com wrote:

Hey there.

I was wondering if there is a way to maybe get around the limitation of the clips being the same length and starting at frame 0. I am working on a project where if I convert the raw files to a usable format losslessly, they will be too big. So I've made proxy files at a fraction of the quality and file size in hopes to edit that into a finished piece and afterward be able to send the timecode of each clip to the original files through ffmpeg to convert each cut into a clip so I can replace each cut with the lossless original source quality.

Could this script work in this same way? It would save a lot of time manually doing it.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/gimlids/fcptrim/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AALXpZZOZZgYflgovuXY6F7XXs5LZ2rzks5s-V5lgaJpZM4Q7TKb .

camjac251 commented 6 years ago

Thank you for the reply. I will likely have an awful lot of clips in the end. I was thinking of maybe an automated way possibly of doing it if it is possible. The xml would be read and possibly parsed into start and end points for ffmpeg commands to be sent, ffmpeg would use the original file path over the proxy version for trimming. Then a video could be created with the same settings as one of the video files that is being clipped of empty video from 0 to the first clips start point, then it could fill in the blanks for each clip with the black video and join all of the pieces together at the end for a solid replaceable file for editing.

A bit more advanced but it was just something I thought of.

Honestly the second part would be easy enough if it were say under 100 clips total. if the xml could be read instead though to automatically create the clips through ffmpeg, it would be a lot more convenient and less time consuming.