Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using ComCut to find .mpg's in a directory and use the existing EDL to create new file, move to another directory #42

Open
omn1slash opened this issue Jul 9, 2020 · 4 comments

Comments

@omn1slash
Copy link

Hello, so in a nut shell, I use Channels-DVR to record shows. Channels produces the file (they are .mpgs') and then dumps it in its DVR folder. With it, it also dumps a .edl folder and the program reads it to skip commercials. Plex does not read .edl's... so what I'd like to have done is use comcut to find these .mpg's that are in the DVR directory (and sub directories for shows), run the comcut process with the .edl (keeping the .edl when done) and then moving the result to another directory for plex to see. I can get this to work via the command line but I can't get it to retain the original file name. I'm using comcut /home/user/dvr/*.mpg *.mpg, which just renames it to a *.mpg (sorry my Linux skills are mediocre). Is there a way to use comcut to do this, or know of a script that would automatically do this?

@daphatty
Copy link

Is comcut actually creating usable files for you? Whenever I try to remove commercials from my ChannelsDVR recorded shows using the accompanying .edl file, the resulting file has no audio at all.

@omn1slash
Copy link
Author

Yeah, they were creating just fine. The problem was I couldn't get the program to find a way to find anything *.mpg in the channels DVR folder, so this didn't work out for me. I ended up installing a Windows VM on my Linux box and using an automated MCEBuddy process.

@BrettSheleski
Copy link
Owner

@omn1slash - You'd have to write a script to handle what you're looking for. Off the top of my head you should probably be able to use the find command with the -exec parameter.

Something like the following:

find /path/to/source/dir -name "*.mpg" -exec comcut {} /path/to/destination/dir/`basename {}` \;

@omn1slash
Copy link
Author

I'll give that a shot - thanks! I'm not a pro at Linux or devising scripts, but this should be helpful. I really do like comcut and would prefer to use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants