{
    "icon": "🧩",
    "name": "유튜브 곡·사진 감성 영상 제작",
    "steps": [
        {
            "id": "dl-video",
            "tool": "youtube.download",
            "input": {
                "url": "{{input.song_query}}",
                "quality": "{{input.video_quality}}"
            },
            "title": "김상민 You 유튜브 영상 다운로드(화면용)",
            "dependsOn": []
        },
        {
            "id": "dl-audio",
            "tool": "youtube.download",
            "input": {
                "url": "{{input.song_query}}",
                "audioOnly": true,
                "audioFormat": "mp3"
            },
            "title": "같은 곡을 mp3 음성으로 다운로드",
            "dependsOn": []
        },
        {
            "id": "cut",
            "tool": "media.trim",
            "input": {
                "end": "{{input.trim_end}}",
                "out": "out/김상민You_앞부분.mp4",
                "path": "{{steps.dl-video.output.path}}",
                "start": 0
            },
            "title": "영상 앞 0:40만 잘라 화면 일부로 사용",
            "dependsOn": [
                "dl-video"
            ]
        },
        {
            "id": "imgs",
            "tool": "web.images",
            "input": {
                "dir": "{{input.photo_dir}}",
                "count": "{{input.photo_count}}",
                "query": "{{input.photo_query}}",
                "minWidth": "{{input.photo_min_width}}"
            },
            "title": "애절한 감성 슬픈 분위기 사진 10장 다운로드",
            "dependsOn": []
        },
        {
            "id": "slideshow",
            "tool": "media.video_make",
            "input": {
                "fit": "blur",
                "fade": 0.6,
                "path": "out/애절한사진_영상.mp4",
                "size": "{{input.video_size}}",
                "theme": "calm",
                "images": {
                    "$ref": "steps.imgs.output.paths"
                },
                "motion": "zoom",
                "secondsEach": "{{input.seconds_each}}"
            },
            "title": "사진들로 감성 슬라이드 영상 제작",
            "dependsOn": [
                "imgs"
            ]
        },
        {
            "id": "join",
            "tool": "media.concat",
            "input": {
                "out": "{{input.file}}",
                "size": "{{input.video_size}}",
                "audio": "none",
                "paths": [
                    "out/김상민You_앞부분.mp4",
                    "out/애절한사진_영상.mp4"
                ]
            },
            "title": "컷 영상 + 사진 슬라이드를 소리 없이 이어붙이기",
            "dependsOn": []
        },
        {
            "id": "final",
            "tool": "media.add_audio",
            "input": {
                "out": "{{input.final_out}}",
                "mode": "replace",
                "audio": {
                    "$ref": "steps.dl-audio.output.path"
                },
                "video": "{{steps.join.output.path}}",
                "volume": 1
            },
            "title": "완성된 화면에 원곡 음성 입히기",
            "dependsOn": [
                "join",
                "dl-audio"
            ]
        }
    ],
    "format": "pvskill/1",
    "inputs": [
        {
            "key": "song_query",
            "type": "text",
            "label": "유튜브 곡/영상 검색어",
            "default": "김상민 You",
            "required": true
        },
        {
            "key": "video_quality",
            "type": "select",
            "label": "영상 화질",
            "default": "1080",
            "options": [
                "720",
                "1080",
                "1440",
                "2160"
            ],
            "required": true
        },
        {
            "key": "trim_end",
            "type": "text",
            "label": "앞부분 사용 길이",
            "default": "0:40",
            "required": true
        },
        {
            "key": "photo_query",
            "type": "text",
            "label": "사진 검색어",
            "default": "애절한 감성 슬픈 분위기 사진",
            "required": true
        },
        {
            "key": "photo_count",
            "type": "number",
            "label": "사진 개수",
            "default": "10",
            "required": true
        },
        {
            "key": "photo_dir",
            "type": "text",
            "label": "사진 저장 폴더",
            "default": "downloads/애절한사진",
            "required": true
        },
        {
            "key": "photo_min_width",
            "type": "number",
            "label": "사진 최소 너비(px)",
            "default": "1000",
            "required": true
        },
        {
            "key": "seconds_each",
            "type": "number",
            "label": "사진당 표시 시간(초)",
            "default": "4",
            "required": true
        },
        {
            "key": "video_size",
            "type": "text",
            "label": "영상 해상도",
            "default": "1920x1080",
            "required": true
        },
        {
            "key": "final_out",
            "type": "text",
            "label": "완성 영상 저장 경로",
            "required": true
        },
        {
            "key": "file",
            "type": "file",
            "label": "파일(김상민You_사진합성_무음.mp4)",
            "required": true
        }
    ],
    "recover": true,
    "version": "1.0.0",
    "category": "video",
    "requires": {
        "keys": [],
        "sigs": {
            "media.trim": "19w7ggk",
            "web.images": "146mvbs",
            "media.concat": "l02dii",
            "media.add_audio": "2tg0kh",
            "media.video_make": "3tcon4",
            "youtube.download": "ktfxj3"
        },
        "tools": [
            "youtube.download",
            "media.trim",
            "web.images",
            "media.video_make",
            "media.concat",
            "media.add_audio"
        ]
    },
    "description": "유튜브에서 특정 곡을 다운로드해 앞부분 화면을 사용하고, 감성 사진들로 슬라이드 영상을 만들어 원곡 음성과 결합한 완성 영상을 만든다.",
    "author": "테스터",
    "library": {
        "slug": "skill-5fc15",
        "url": "https://passivers.tongkns.kr/skills/skill-5fc15"
    }
}