taburineagle / MPC-HC-Looper

A/B looping program to complement the MPC-HC media player, with speed controls, playlist creation (and saving), and tie-in to my Looper Trimmer EDL editing program.
Other
15 stars 1 forks source link

Save as sidecar file with relative path #5

Closed aybli closed 4 years ago

aybli commented 4 years ago

I'd like to suggest an option to quickly save the looper file next to the video file with just the video filename as the path value.

e.g. open ".\example.mp4" in MPC-HC Looper, create an event "Event|1:10.000|1:20.000|example.mp4", then quickly save as ".\example.mp4.looper".

taburineagle commented 4 years ago

Hello! That shouldn't be too hard to implement - I'd just need to write a check to see if there are only one or two events, then check to see if the filename is the same on all of the events, then use that base name as the looper file's default name when saving it.

aybli commented 4 years ago

Hey, I didn't even realize you could add multiple videos to one looper file! I would definitely appreciate it for my workflow but if it adds too much unnecessary complexity I get it and you may scratch that and I'll try it with some bash scripting instead.

taburineagle commented 4 years ago

Yep, events can use any file, so you can definitely add multiple media files to a .looper file.

Feature added! What it does is check to see if you have one or more events - if you have one (or multiple, and the media paths for every event is the same), the Save dialog chooses the relative path and name (+.looper) for the new looper file. If you have events that use several different file paths, it just uses the traditional behavior.

https://github.com/taburineagle/MPC-HC-Looper/blob/master/bin/MPCLooper_RC_042720.exe?raw=true

aybli commented 4 years ago

Thank you so much, this works great!

taburineagle commented 4 years ago

Awesome! Glad to be of service 😊