Edit decision list: Difference between revisions

From Official Kodi Wiki
Jump to navigation Jump to search
>Dteirney
(Quick addition of commercial break information for EDL format)
>Dteirney
(More information about supported file formats.)
Line 24: Line 24:


===Usage===
===Usage===
To use a specific format with a video file, put it in the same folder as the video file.
The EDL/Scenemarker file and video file must have the same name. <br>For example:


<pre>
Video File:  The Matrix.avi
EDL:        The Matrix.edl
Comskip:    The Matrix.txt
VideoReDo:  The Matrix.vprj
SnapStream:  The Matrix.avi.chapters.xml
</pre>
When multiple formats are available, XBMC will read them in the following order, until a valid file is read: VideoReDo, EDL, Comskip, SnapStream.


= EDL format with scenemarkers extension =
= EDL format with scenemarkers extension =
Line 54: Line 43:
</pre>
</pre>


This will skip from second 5.3 to second 7.1 of the video, then mute at 15 seconds, unmute at 16.7 seconds and commercial skip from second 420 to second 822 of the video. These actions will be performed when the playback timer reaches the times given in the file.
 
The scenemarkers '1' and '2' can be used to directly jump to second 255.3 and 720.1 in the video.
The first number is the scene number (not used yet), the second the seek value in seconds, the third is the 'scene marker' type indicator. The scenemarker data is not passed to mplayer, but is only used as internal data format.


=SceneMarker seeking=
=SceneMarker seeking=
Line 99: Line 86:
[[category:Usage]]
[[category:Usage]]
[[category:How To]]
[[category:How To]]
= File Formats =
XBMC Media Center is able to read edit decision lists from multiple file formats. The EDL file for a video must be in the same folder as the video file and is looked for based on the file extensions for the supported formats.
For example if the video file is called '''The Matrix.avi''' XBMC will look for the following files, in order, until a valid file is found. Note the the file name may be case-sensitive based on the operating system being used.
# The Matrix.Vprj (VideoReDo)
# The Matrix.edl (MPlayer EDL)
# The Matrix.txt (Comskip)
# The Matrix.avi.chapters.xml (SnapStream aka BeyondTV)
== VideoReDo ==
http://www.videoredo.com/ files are supported. The name of the file must be the same as the video but with a file extension of '''.Vprj'''. Only ''<SceneMarker>'' and ''<Cut>'' tags are read from the file, everything else is ignored.
Scene markers and cuts are given in milliseconds * 10,000.
<pre>
<Version>2
<Filename>C:\Path\To\Video.mpg
<InputPIDList>
<VideoStreamPID>224</VideoStreamPID>
<AudioStreamPID>192</AudioStreamPID>
</InputPIDList>
<SceneMarker 1415932542>4235230000
<SceneMarker 1415932543>4284610000
<SceneMarker 1415932544>4585580000
<SceneMarker 1415932545>5035360000
<Cut>4235230000:5936600000
<Cut>9535530000:11527860000
<Cut>14385710000:16090090000
</pre>
== MPlayer EDL ==
http://www.mplayerhq.hu/DOCS/HTML/en/edl.html files are supported. The name of the file must be the same as the video but with a file extension of '''.edl'''.
The file contains the time offsets for the start and ends of the edits along with the type of action associated with the edit. The file format is:
<pre>
[begin second] [end second] [action]
</pre>
The actions supported by this file format has been extended by XBMC Media Center to include scene marker and commercial break actions. Supported actions are:
* 0 - Cut
* 1 - Mute (not implemented)
* 2 - Scene Marker (the ''begin second'' is ignored)
* 3 - Commercial Break (treated as a "soft" cut so the video can be re-entered again)
For example, the following .edl file content will skip from second 5.3 to second 7.1, mute at 15 seconds, unmute at 16.7 seconds (when/if implemented) and commercial skip from 420 seconds to 822 seconds. There will be two scene markers. The first at 255.3 seconds and the next at 720.1 seconds.
<pre>
5.3  7.1    0
15    16.7  1
420  822    3
1    255.3  2
2    720.1  2
</pre>
== Comskip ==
http://www.kaashoek.com/comskip/ file are supported. The name of the file must be the same as the video but with a file extension of '''.txt'''. The file contains the frame markers for the commercial breaks that were detected. The Comskip file may or may not contain the frame rate. If the frame rate is not included, the detected frame rate of the video is used to convert from the frame markers to time offsets.
<pre>
FILE PROCESSING COMPLETE
------------------------
12693 17792
28578 34549
43114 48222
</pre>
<pre>
FILE PROCESSING COMPLETE 678900 FRAMES AT 25
------------------------
12693 17792
28578 34549
43114 48222
</pre>
= External Player Support =
The edit decision lists that have been read can be used by MPlayer. MPlayer only supports cuts and mutes, so any scene markers that have been read are ignored, and any commercial breaks that have been read are converted to cuts.

Revision as of 03:51, 21 December 2009

EDL (Edit Decision List) support.

  • The EDL (Edit Decision List) system allows you to automatically skip or mute sections of videos during playback, based on a movie specific EDL configuration file. This can for example be used for commercial skipping or to censor scenes or sounds from a movie.

SceneMarkers (chapter file) support.

  • SceneMarker files allow you to jump from scene to scene, like with DVD-Video chapters.


Features

  • Support for EDLs/Scenemarkers in the following formats:
    • EDL (Edit Decision List) .edl format with added type '2' for scenemarkers
    • ComSkip .txt format (with framerate information)
    • VideoReDo version 2 .vprj format
    • SnapStream Beyond TV Smart Chapters (a.k.a. smartskip) .chapters.xml format.
  • Automatically adjusts seeking so cutpoints are skipped.
  • Total time of the movie is adjusted for the EDL cuts.
  • EDL/Scenemarker usage information in video information.
  • NOTE: Muting is not implemented.

Usage

EDL format with scenemarkers extension

An Edit Decision List or EDL allows you to automatically skip or mute sections of videos during playback, based on a movie specific EDL configuration file. The EDL can for example be used to to skip commecials or intros. XBMC adds a third option to use scenemarkers. Scenemarkers can be used to quickly jump to a scene, similar to DVD chapters.

The current EDL file format is: [begin second] [end second] [action]

Where the seconds are floating-point numbers and the action is either 0 for cut, 1 for mute, 2 for a scene marker, 3 for a commercial break. Example:

5.3   7.1    0
15    16.7   1
420   822    3
1     255.3  2
2     720.1  2


SceneMarker seeking

To assign a button for next/previous scenemarker, use the NextScene/PreviousScene codes in keymap.xml. For example to assing the |< and >| buttons on the xbox remote in full screen video:

<FullscreenVideo>
    <remote>
      <skipplus>NextScene</skipplus>
      <skipminus>PreviousScene</skipminus>

EDL information display

Pressing the black button (Title on the XBox remote) will show information regarding the currently playing video stream such as codecs, framerate and more. Edit decision list related information is shown prefixed with edl: followed by a dash or letters followed by numbers. The letter denotes the type of edit and the following number the count of that type. For example, edl: c4s8 means there are 4 commercial breaks and 8 scene markers.

  • c = cuts
  • m = mutes
  • b = commercial breaks
  • s = scene markers
  • - (dash) = no edit decision list

Not implemented

  • Compensation for cutpoint when movie length is unknown and percentage seeking is used.
  • Muting is not yet implemented for DVDPlayer nor for MPlayer

Possible issues

  • The readers now stop reading at the first format error, and invalidates the EDL.
  • MPlayer sometimes seems to ignore search parameters, see Bug-report #1803075.

Possible future expansions

  • Read other scene marker formats, like DVD-Video authoring formats, so DVDrip's can have the original scene markers.
  • Read other EDL/chapter file formats
  • Implement muting

File Formats

XBMC Media Center is able to read edit decision lists from multiple file formats. The EDL file for a video must be in the same folder as the video file and is looked for based on the file extensions for the supported formats.

For example if the video file is called The Matrix.avi XBMC will look for the following files, in order, until a valid file is found. Note the the file name may be case-sensitive based on the operating system being used.

  1. The Matrix.Vprj (VideoReDo)
  2. The Matrix.edl (MPlayer EDL)
  3. The Matrix.txt (Comskip)
  4. The Matrix.avi.chapters.xml (SnapStream aka BeyondTV)

VideoReDo

http://www.videoredo.com/ files are supported. The name of the file must be the same as the video but with a file extension of .Vprj. Only <SceneMarker> and <Cut> tags are read from the file, everything else is ignored.

Scene markers and cuts are given in milliseconds * 10,000.

<Version>2
<Filename>C:\Path\To\Video.mpg
<InputPIDList>
<VideoStreamPID>224</VideoStreamPID>
<AudioStreamPID>192</AudioStreamPID>
</InputPIDList>
<SceneMarker 1415932542>4235230000
<SceneMarker 1415932543>4284610000
<SceneMarker 1415932544>4585580000
<SceneMarker 1415932545>5035360000
<Cut>4235230000:5936600000
<Cut>9535530000:11527860000
<Cut>14385710000:16090090000

MPlayer EDL

http://www.mplayerhq.hu/DOCS/HTML/en/edl.html files are supported. The name of the file must be the same as the video but with a file extension of .edl.

The file contains the time offsets for the start and ends of the edits along with the type of action associated with the edit. The file format is:

[begin second] [end second] [action]

The actions supported by this file format has been extended by XBMC Media Center to include scene marker and commercial break actions. Supported actions are:

  • 0 - Cut
  • 1 - Mute (not implemented)
  • 2 - Scene Marker (the begin second is ignored)
  • 3 - Commercial Break (treated as a "soft" cut so the video can be re-entered again)

For example, the following .edl file content will skip from second 5.3 to second 7.1, mute at 15 seconds, unmute at 16.7 seconds (when/if implemented) and commercial skip from 420 seconds to 822 seconds. There will be two scene markers. The first at 255.3 seconds and the next at 720.1 seconds.

5.3   7.1    0
15    16.7   1
420   822    3
1     255.3  2
2     720.1  2

Comskip

http://www.kaashoek.com/comskip/ file are supported. The name of the file must be the same as the video but with a file extension of .txt. The file contains the frame markers for the commercial breaks that were detected. The Comskip file may or may not contain the frame rate. If the frame rate is not included, the detected frame rate of the video is used to convert from the frame markers to time offsets.

FILE PROCESSING COMPLETE
------------------------
12693	17792
28578	34549
43114	48222
FILE PROCESSING COMPLETE 678900 FRAMES AT 25
------------------------
12693	17792
28578	34549
43114	48222

External Player Support

The edit decision lists that have been read can be used by MPlayer. MPlayer only supports cuts and mutes, so any scene markers that have been read are ignored, and any commercial breaks that have been read are converted to cuts.