오프닝자막, 동영상자막 관련 알고리즘 수정

This commit is contained in:
2025-03-17 18:51:45 +09:00
parent 66223549b8
commit 5d222516a3
18 changed files with 671 additions and 92 deletions

378
DIC_2502C copy.json Normal file
View File

@@ -0,0 +1,378 @@
{
"0": {
"1": {
"ele": "none",
"point": 0
},
"2": {
"ele": "none",
"point": 0
},
"3": {
"ele": "none",
"point": 0
},
"4": {
"ele": "none",
"point": 0
},
"5": {
"ele": "none",
"point": 0
},
"6": {
"ele": "none",
"point": 0
},
"7": {
"ele": "none",
"point": 0
},
"8": {
"ele": "$[?(@.width == 65 && @.height == 45)]",
"type": "boolean",
"point": 10
}
},
"1": {
"1": {
"ele": "none",
"point": 0
},
"2": {
"ele": "none",
"point": 0
},
"3": {
"ele": "none",
"point": 0
},
"4": {
"ele": "none",
"point": 0
},
"5": {
"ele": "$.children[?(@.name=='Mountains of Cheorwon')].name",
"value": "Mountains of Cheorwon",
"point": 10
},
"6": {
"ele": "$.children[?(@.name=='Mountains of Cheorwon')].text.font.names[0]",
"type": "font",
"value": "Arial",
"point": 10
},
"7": {
"ele": "$.children[?(@.name=='Mountains of Cheorwon')].text.font.names[0]",
"value": "Arial-BoldItalicMT",
"point": 10
},
"8": {
"ele": "$.children[?(@.name=='Mountains of Cheorwon')].text.font.sizes[0]",
"value": 40,
"point": 10
},
"9": {
"ele": "$.children[?(@.name=='Mountains of Cheorwon')].text.font.colors[0]",
"type": "color",
"value": "f1eb4a",
"point": 10
},
"10": {
"ele": "none",
"point": 0
},
"11": {
"ele": "none",
"point": 0
},
"12": {
"ele": "none",
"point": 0
},
"13": {
"ele": "$.children[?(@.name=='철원 금학산 등산')].name",
"value": "철원 금학산 등산",
"point": 10
},
"14": {
"ele": "$.children[?(@.name=='철원 금학산 등산')].text.font.names[0]",
"type": "font",
"value": "GulimChe",
"point": 10
},
"15": {
"ele": "$.children[?(@.name=='철원 금학산 등산')].text.font.sizes[0]",
"value": 30,
"point": 10
},
"16": {
"ele": "$.children[?(@.name=='철원 금학산 등산')].text.font.colors[0]",
"type": "color",
"value": "f1eb4a",
"point": 10
},
"17": {
"ele": "none",
"point": 0
},
"18": {
"ele": "none",
"point": 0
},
"19": {
"ele": "none",
"point": 0
},
"20": {
"ele": "none",
"point": 0
},
"21": {
"ele": "none",
"point": 0
},
"22": {
"ele": "none",
"point": 0
},
"23": {
"ele": "none",
"point": 0
},
"24": {
"ele": "none",
"point": 0
},
"25": {
"ele": "none",
"point": 0
},
"26": {
"ele": "none",
"point": 0
},
"27": {
"ele": "$[?(@.width == 65 && @.height == 45)]",
"type": "boolean",
"point": 10
}
},
"2": {
"1": {
"ele": "//CRClipArr/CRClip[position() = //CRTrackList[1]/CRTrackClip/@ClipIndex]/@Path",
"type": "array",
"value": [
"동영상.mp4",
"이미지1.jpg",
"이미지3.jpg",
"이미지2.jpg"
],
"point": 4
},
"2": {
"ele": "/CROASTERP/CRTrackArr[1]/CRVideoTrackArr[1]/CRTrackList[1]/CRTrackClip[1][@Speed='120']",
"point": 2
},
"3": {
"ele": "count(//CRClip[@Path='동영상.mp4']/preceding-sibling::*)",
"type": "startend",
"start": "0",
"end": "385",
"point": 2
},
"4": {
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='동영상.mp4']/preceding-sibling::*)]//CRFilter[@Type='1'][@ID='47'][@VID100='6'][@VID103='1']",
"point": 3
},
"5": {
"ele": "//CRCUnitArr[@Name='{search}']",
"search": "금학산 정상에서",
"point": 3
},
"6": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool[@Type='1']/GCUnit[@VID102='바탕체']",
"ele2": "//CROwneUnit[1]/CRCUnitArr//GCUnitPool[@Type='1']/GCUnit[@VID102='바탕체']",
"search": "금학산 정상에서",
"point": 2
},
"7": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool[@Type='1']/GCUnit[@VID101='170']",
"ele2": "//CROwneUnit[1]/CRCUnitArr//GCUnitPool[@Type='1']/GCUnit[@VID101='170']",
"search": "금학산 정상에서",
"point": 2
},
"8": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool/GCUnit[@Type='4'][@VID100='-15081004']",
"ele2": "//CROwneUnit[1]/CRCUnitArr//GCUnitPool/GCUnit[@Type='4'][@VID100='-15081004']",
"search": "금학산 정상에서",
"point": 2
},
"9": {
"existEle": "//CRCUnitArr[@Name='{search}']",
"ele": "sum(//CRTrackList[@Name='텍스트']/CRTrackClip[not(@ClipIndex=count(//CROwneUnit/CRCUnitArr[@Name='{search}']/parent::CROwneUnit/preceding-sibling::CROwneUnit))]/@Length)",
"type": "searchIndex",
"value": 170,
"search": "금학산 정상에서",
"point": 2
},
"10": {
"ele": "//CRTrackList[@Name='텍스트']/CRTrackClip[(@ClipIndex=count(//CROwneUnit[.//CRCUnitArr[@Name='금학산 정상에서']]/preceding::CROwneUnit))][@Length='150']",
"ele2": "//CRTrackList[@Name='텍스트']/CRTrackClip[(@ClipIndex=count(//CROwneUnit[1]/preceding-sibling::CROwneUnit))][@Length='150']",
"point": 2
},
"11": {
"ele": "//CRCUnitArr[@Name='{search}']/@VID600 | //CRCUnitArr[@Name='{search}']/@VID601",
"ele2": "//CROwneUnit[1]/CRCUnitArr/@VID600 | //CROwneUnit[1]/CRCUnitArr/@VID601",
"type": "range",
"search": "금학산 정상에서",
"start": [ 0.200, 0.800 ],
"end": [ 0.666, 0.999 ],
"point": 2
},
"12": {
"existEle": "//CRClip[@Path='동영상.mp4']",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='동영상.mp4']/preceding-sibling::*)]/@Mute",
"type": "searchIndex",
"value": "1",
"point": 2
},
"13": {
"existEle": "//CRClip[@Path='이미지1.jpg'] | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지1.jpg']",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지1.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지1.jpg']/../preceding-sibling::CRClip)][1]/@Length",
"type": "searchIndex",
"value": "150",
"point": 2
},
"14": {
"type": "multi",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지1.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지1.jpg']/../preceding-sibling::CRClip)][1]//CRFilter/@*[name()='ID' or name()='VID103']",
"value": [
"67",
"8"
],
"point": 2
},
"15": {
"type": "multi",
"ele": "//CRTransFilter[@ClipIndex=count(//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지1.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지1.jpg']/../preceding-sibling::CRClip)][1]/preceding-sibling::CRTrackClip)]/@*[name()='ID' or name()='Range' or name()='Type']",
"value": [
"10",
"475:535",
"2"
],
"point": 2
},
"16": {
"existEle": "//CRClip[@Path='이미지3.jpg'] | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지3.jpg']",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지3.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지3.jpg']/../preceding-sibling::CRClip)][1]/@Length",
"type": "searchIndex",
"value": "120",
"point": 2
},
"17": {
"type": "multi",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지3.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지3.jpg']/../preceding-sibling::CRClip)][1]//CRFilter/@*[name()='ID' or name()='VID102']",
"value": [
"102",
"9"
],
"point": 2
},
"18": {
"type": "multi",
"ele": "//CRTransFilter[@ClipIndex=count(//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지3.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지3.jpg']/../preceding-sibling::CRClip)][1]/preceding-sibling::CRTrackClip)]/@*[name()='ID' or name()='Range' or name()='Type']",
"value": [
"13",
"595:655",
"2"
],
"point": 2
},
"19": {
"existEle": "//CRClip[@Path='이미지2.jpg'] | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지2.jpg']",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지2.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지2.jpg']/../preceding-sibling::CRClip)][1]/@Length",
"type": "searchIndex",
"value": "180",
"point": 2
},
"20": {
"type": "multi",
"ele": "//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지2.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지2.jpg']/../preceding-sibling::CRClip)][1]//CRFilter/@*[name()='ID' or name()='VID102']",
"value": [
"184",
"25"
],
"point": 2
},
"21": {
"type": "multi",
"ele": "//CRTransFilter[@ClipIndex=count(//CRTrackList[@Name='비디오1']/CRTrackClip[@ClipIndex=count(//CRClip[@Path='이미지2.jpg']/preceding-sibling::CRClip | //CRClip[@Type='11']/CRCUnitArr[@Path='이미지2.jpg']/../preceding-sibling::CRClip)][1]/preceding-sibling::CRTrackClip)]/@*[name()='ID' or name()='Range' or name()='Type']",
"value": [
"19",
"805:835",
"2"
],
"point": 2
},
"22": {
"ele": "//CRCUnitArr[@Name='{search}']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 3
},
"23": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool[@Type='1']/GCUnit[@VID102='돋움체']",
"ele2": "//CROwneUnit[2]/CRCUnitArr//GCUnitPool[@Type='1']/GCUnit[@VID102='돋움체']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"24": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool[@Type='1']/GCUnit[@VID101='150']",
"ele2": "//CROwneUnit[2]/CRCUnitArr//GCUnitPool[@Type='1']/GCUnit[@VID101='150']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"25": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool/GCUnit[@Type='4'][@VID100='-4077760']",
"ele2": "//CROwneUnit[2]/CRCUnitArr//GCUnitPool/GCUnit[@Type='4'][@VID100='-4077760']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"26": {
"ele": "//CRCUnitArr[@Name='{search}']//GCUnitPool/GCUnit[@Type='2'][@VID100='0.30000001'][@VID101='-16777216']",
"ele2": "//CROwneUnit[2]/CRCUnitArr//GCUnitPool/GCUnit[@Type='2'][@VID100='0.30000001'][@VID101='-16777216']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"27": {
"ele": "//CRCUnitArr[@Name='{search}'][@VID505='1'][@VID507='2']",
"ele2": "//CROwneUnit[2]/CRCUnitArr[@VID505='1'][@VID507='2']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 3
},
"28": {
"ele": "//CRTrackList[@Name='텍스트']/CRTrackClip[@ClipIndex=count(//CROwneUnit[.//CRCUnitArr[@Name='{search}']]/preceding::CROwneUnit)][@Pos='0']",
"ele2": "//CRTrackList[@Name='텍스트']/CRTrackClip[@ClipIndex=count(//CROwneUnit[2]/CRCUnitArr/preceding::CROwneUnit)][@Pos='0']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"29": {
"ele": "//CRTrackList[@Name='텍스트']/CRTrackClip[(@ClipIndex=count(//CROwneUnit[.//CRCUnitArr[@Name='{search}']]/preceding::CROwneUnit))][@Length='120']",
"ele2": "//CRTrackList[@Name='텍스트']/CRTrackClip[@ClipIndex=count(//CROwneUnit[2]/CRCUnitArr/preceding::CROwneUnit)][@Length='120']",
"search": "금학산의 기운 (Energy of a Mountain)",
"point": 2
},
"30": {
"ele": "//CRTrackList[@Name='오디오1'][@Count>='1']/CRTrackClip[1][not(@ClipIndex='-1')]",
"point": 2
},
"31": {
"ele": "//CRTrackArr/CRAudioTrackArr/CRTrackList[@Name='오디오1']/CRTrackClip[@Length='830']",
"point": 2
},
"32": {
"ele": "//CRTrackArr/CRAudioTrackArr/CRTrackList[@Name='오디오1']//CRFilter[@Type='2'][@ID='1'][@VID8='90']",
"point": 2
}
}
}