My wife and I watch Star Trek Voyager each night to fall asleep (I hear you snickering). A minor frustration is that I have to fast forward through the intro credits, and I also have to exit out at the end, select the next episode and then get through those intro credits in a few minutes. It's a really minor annoyance but one I am proud to say I have overcome with the build-in EDL (edit decision lists) that are supported by XBMC. EDL is a file type that informs XMBC to skip or mute a particular section of a video. The file format is pretty simple, each line has the start time in seconds, end time in seconds and then a numeric representation of what to do (skip 0, mute 1). The problem is creating these files can be a bit of a pain. I simplified the process with a small batch file, mplayer and NotePad++ (you can use regular notepad).
for /f "useback tokens=*" %%a in ('%str%') do set str=%%~a
"C:Program Files (x86)SMPlayermplayermplayer.exe" %1.avi -edlout %1.edl
"C:Program Files (x86)SMPlayermplayermplayer.exe" -frames 0 -identify %1.avi | find "ID_LENGTH"
"C:Program Files (x86)Notepad++notepad++.exe" "%str%.edl"
The only tool you really need is MPlayer (free). Once you have mplayer installed and the proper paths reflected in the batch file, The workflow is:
- Go to a command prompt in the folder containing the above batch file and execute: edl.bat "M:STVSeason 2Star Trek Voyager S02E25" (notice the lack of extension)
- Navigate to the beginning of the intro credits and press i.
- Navigate to the end of the intro credits and press i again.
- Navigate to the beginning of the ending credits and press i.
- Press i again and then q.
- The script will determine the total length of the video and print it on the command line, it will then launch your text editor and open the edl file
- Change the second to last number on the last line to match the total length.
- Save the edl and close it
- Repeat for all of the video files you want to edit.
MPlayer has pretty easy navigation controls. PgUp for forward 10-min, up-arrow forward 1 min, right arrow forward 10-sec. I can create an EDL in about 30-seconds.
This process can be used to remove or mute any part of a file. Finally, just use the XMBC "Play from here..." context item and you can have continuous play of the entire series without any interruption.