SHARE
    TWEET
    Guest User

    mplayer EDL file format, version 2

    a guest
    Jul 21st, 2015
    3,386
    0
    Never
    Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
    text 5.22 KB | None | 0 0
    1. http://devel.mplayer2.org/changeset/968154ba77f8e8974d6dd36d1109a473b3ff5b6c/
    2. EDL: add support for new EDL file format
    3. The timeline code previously added to support Matroska ordered
    4. chapters allows constructing a playback timeline from segments picked
    5. from multiple source files. Add support for a new EDL format to make
    6. this machinery available for use with file formats other than Matroska
    7. and in a manner easier to use than creating files with ordered
    8. chapters.
    9. Unlike the old -edl option which specifies an additional file with
    10. edits to apply to the video file given as the main argument, the new
    11. EDL format is used by giving only the EDL file as the file to play;
    12. that file then contains the filename(s) to use as source files where
    13. actual video segments come from. Filename paths in the EDL file are
    14. ignored. Currently the source files are only searched for in the
    15. directory of the EDL file; support for a search path option will
    16. likely be added in the future.
    17. Format of the EDL files
    18. The first line in the file must be "mplayer EDL file, version 2".
    19. The rest of the lines belong to one of these classes:
    20. 1) lines specifying source files
    21. 2) empty lines
    22. 3) lines specifying timeline segments.
    23. Lines beginning with '<' specify source files. These lines first
    24. contain an identifier used to refer to the source file later, then the
    25. filename separated by whitespace. The identifier must start with a
    26. letter. Filenames that start or end with whitespace or contain
    27. newlines are not supported.
    28. On other lines '#' characters delimit comments. Lines that contain
    29. only whitespace after comments have been removed are ignored.
    30. Timeline segments must appear in the file in chronological order. Each
    31. segment has the following information associated with it:
    32. duration
    33. output start time
    34. output end time (= output start time + duration)
    35. source id (specifies the file the content of the segment comes from)
    36. source start time (timestamp in the source file)
    37. source end time (= source start time + duration)
    38. The output timestamps must form a continuous timeline from 0 to the
    39. end of the last segment, such that each new segment starts from the
    40. time the previous one ends at. Source files and times may change
    41. arbitrarily between segments.
    42. The general format for lines specifying timeline segments is
    43. [output time info] source_id [source time info]
    44. source_id must be an identifier defined on a '<' line. Both the time
    45. info parts consists of zero or more of the following elements:
    46. 1) timestamp
    47. 2) -timestamp
    48. 3) +duration
    49. 4) *
    50. 5) -*
    51. , where "timestamp" and "duration" are decimal numbers (computations
    52. are done with nanosecond precision). Whitespace around "+" and "-" is
    53. optional. 1) and 2) specify start and end time of the segment on
    54. output or source side. 3) specifies duration; the semantics are the
    55. same whether this appears on output or source side. 4) and 5) are
    56. ignored on the output side (they're always implicitly assumed). On the
    57. source side 4) specifies that the segment starts where the previous
    58. segment _using this source_ ended; if there was no previous segment
    59. time 0 is used. 5) specifies that the segment ends where the next
    60. segment using this source starts.
    61. Redundant information may be omitted. It will be filled in using the
    62. following rules:
    63. output start for first segment is 0
    64. two of [output start, output end, duration] imply third
    65. two of [source start, source end, duration] imply third
    66. output start = output end of previous segment
    67. output end = output start of next segment
    68. if "*", source start = source end of earlier segment
    69. if "-*", source end = source start of a later segment
    70. As a special rule, a last zero-duration segment without a source
    71. specification may appear. This will produce no corresponding segment
    72. in the resulting timeline, but can be used as syntax to specify the
    73. end time of the timeline (with effect equal to adding -time on the
    74. previous line).
    75. Examples:
    76. mplayer EDL file, version 2
    77. < id1 filename
    78. 0 id1 123
    79. 100 id1 456
    80. 200 id1 789
    81. 300
    82. All segments come from the source file "filename". First segment
    83. (output time 0-100) comes from time 123-223, second 456-556, third
    84. 789-889.
    85. mplayer EDL file, version 2
    86. < f filename
    87. f 60-120
    88. f 600-660
    89. f 30- 90
    90. Play first seconds 60-120 from the file, then 600-660, then 30-90.
    91. mplayer EDL file, version 2
    92. < id1 filename1
    93. < id2 filename2
    94. +10 id1 *
    95. +10 id2 *
    96. +10 id1 *
    97. +10 id2 *
    98. +10 id1 *
    99. +10 id2 *
    100. This plays time 0-10 from filename1, then 0-10 from filename1, then
    101. 10-20 from filename1, then 10-20 from filename2, then 20-30 from
    102. filename1, then 20-30 from filename2.
    103. mplayer EDL file, version 2
    104. < t1 filename1
    105. < t2 filename2
    106. t1 * +2 # segment 1
    107. +2 t2 100 # segment 2
    108. t1 * # segment 3
    109. t2 *-* # segment 4
    110. t1 3 -* # segment 5
    111. +0.111111 t2 102.5 # segment 6
    112. 7.37 t1 5 +1 # segment 7
    113. This rather pathological example illustrates the rules for filling in
    114. implied data. All the values can be determined by recursively applying
    115. the rules given above, and the full end result is this:
    116. +2 0-2 t1 0-2 # segment 1
    117. +2 2-4 t2 100-102 # segment 2
    118. +0.758889 4-4.758889 t1 2-2.758889 # segment 3
    119. +0.5 4.4758889-5.258889 t2 102-102.5 # segment 4
    120. +2 5.258889-7.258889 t1 3-5 # segment 5
    121. +0.111111 7.258889-7.37 t2 102.5-102.611111 # segment 6
    122. +1 7.37-8.37 t1 5-6 # segment 7
    Advertisement
    Add Comment
    Please, Sign In to add comment
    Public Pastes
    We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
    Not a member of Pastebin yet?
    Sign Up, it unlocks many cool features!

    AltStyle によって変換されたページ (->オリジナル) /