[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7C0YTYHSSSETTF9YG535J6V":3,"skill-same:01M7C0YTYHSSSETTF9YG535J6V":45},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":24,"commitSha":25,"skillDirectory":26,"forksCount":27,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":30,"install":31,"resources":44},"01M7C0YTYHSSSETTF9YG535J6V","ffmpeg-video-editing",null,"Cut, trim, concatenate, and split video files - basic video editing operations","linyouxue\u002Fskill-repair-benchmark","linyouxue","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F216151464?v=4","01M7BJEVCXKD74KH6FG9CBVSQB","林宥学","01M7BJEVE02NP217V93BKZFC0J",0,"Apache-2.0","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillOpt-adapted-gpt52-n3L4R2-v25\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Fffmpeg-video-editing\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ffmpeg-video-editing\ndescription: Cut, trim, concatenate, and split video files - basic video editing operations\n---\n\n# FFmpeg Video Editing Skill\n\nBasic video editing operations: cutting, trimming, concatenating, and splitting videos.\n\n## When to Use\n\n- Cut segments from video\n- Trim video length\n- Concatenate multiple videos\n- Split video into parts\n- Extract specific time ranges\n\n## Cutting and Trimming\n\n```bash\n# Cut from 10s to 30s (using -ss and -to)\nffmpeg -ss 00:00:10 -to 00:00:30 -i input.mp4 -c copy output.mp4\n\n# Cut from 10s for 20 seconds duration\nffmpeg -ss 00:00:10 -t 20 -i input.mp4 -c copy output.mp4\n\n# First 60 seconds\nffmpeg -t 60 -i input.mp4 -c copy output.mp4\n\n# Last 30 seconds (need duration first)\nffmpeg -sseof -30 -i input.mp4 -c copy output.mp4\n```\n\n## Precise Cutting\n\n```bash\n# With re-encoding (more precise)\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 -c:v libx264 -c:a aac output.mp4\n\n# Keyframe-accurate (faster, may be less precise)\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 -c copy output.mp4\n```\n\n## Concatenation\n\n### Method 1: File List (Recommended)\n\n```bash\n# Create list.txt file:\n# file 'video1.mp4'\n# file 'video2.mp4'\n# file 'video3.mp4'\n\nffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4\n```\n\n### Method 2: Same Codec Files\n\n```bash\n# If all videos have same codec\u002Fformat\nffmpeg -i \"concat:video1.mp4|video2.mp4|video3.mp4\" -c copy output.mp4\n```\n\n### Method 3: Re-encode (Different Codecs)\n\n```bash\n# Re-encode for compatibility\nffmpeg -f concat -safe 0 -i list.txt -c:v libx264 -c:a aac output.mp4\n```\n\n## Splitting Video\n\n```bash\n# Split into 60-second segments\nffmpeg -i input.mp4 -c copy -f segment -segment_time 60 \\\n  -reset_timestamps 1 output_%03d.mp4\n\n# Split at specific timestamps\nffmpeg -i input.mp4 -ss 00:00:00 -t 00:01:00 -c copy part1.mp4\nffmpeg -i input.mp4 -ss 00:01:00 -t 00:01:00 -c copy part2.mp4\n```\n\n## Extract Segment with Re-encoding\n\n```bash\n# When you need to change quality\u002Fcodec\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 \\\n  -c:v libx264 -crf 23 -c:a aac -b:a 192k output.mp4\n```\n\n## Multiple Segments\n\n```bash\n# Extract multiple segments\nffmpeg -i input.mp4 \\\n  -ss 00:00:10 -t 00:00:05 -c copy segment1.mp4 \\\n  -ss 00:01:00 -t 00:00:10 -c copy segment2.mp4\n```\n\n## Notes\n\n- Use `-c copy` for speed (no re-encoding)\n- `-ss` before `-i` is faster but less precise\n- `-ss` after `-i` is more precise but slower\n- Concatenation requires same codec\u002Fformat for `-c copy`\n- Use file list method for best concatenation results\n\n\n## Multilingual Dubbing Mux and Delivery\n\nWhen replacing the audio of a video with a prepared dubbed track, use explicit stream maps so the source audio cannot be included accidentally:\n\n1. Obtain the source container duration and the first video stream properties before muxing:\n\n```bash\nSOURCE_DURATION_SEC=$(ffprobe -v error -show_entries format=duration \\\n  -of default=noprint_wrappers=1:nokey=1 \u002Froot\u002Finput.mp4)\nffprobe -v error -show_entries format=duration:stream=index,codec_type,codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Froot\u002Finput.mp4 > \u002Foutputs\u002Fsource_mux_probe.json\n```\n\nThe prepared dubbed WAV must represent the complete source timeline, start at timeline zero, and already be 48000 Hz mono. If its timestamps are not zero-based, normalize them before muxing with `asetpts=PTS-STARTPTS`; do not apply an input offset unless the offset is explicitly part of the verified timeline. The source audio is not an input to the mux operation.\n\n2. Mux the original visual stream with only the prepared dubbed audio. Stream-copy the video when its codec is compatible with the target MP4, and encode only the audio to a broadly compatible MP4 codec:\n\n```bash\nffmpeg -y \\\n  -i \u002Froot\u002Finput.mp4 \\\n  -i \u002Foutputs\u002Ftts_segments\u002Fseg_0.wav \\\n  -map 0:v:0 -map 1:a:0 \\\n  -c:v copy \\\n  -c:a aac -b:a 192k -ar 48000 -ac 1 \\\n  -t \"$SOURCE_DURATION_SEC\" \\\n  -avoid_negative_ts make_zero \\\n  \u002Foutputs\u002Fdubbed.mp4\n```\n\nDo not use `-shortest` for this delivery: the source duration is authoritative, and the assembled dubbed track must be padded or otherwise prepared to cover that duration. The explicit maps must produce exactly one video stream and exactly one audio stream; no default stream selection is permitted. Do not re-encode the video unless MP4 compatibility requires it, and do not alter its dimensions, pixel format, frame rate, or codec unnecessarily.\n\n3. Verify the mux result before writing the report. Compare source and final format durations, and compare the selected video stream's codec, dimensions, pixel format, frame rate, and duration. Count streams explicitly and reject the output unless it has one intended video stream and one audio stream. Verify that the final audio has sample rate 48000, one channel, a mono layout, and the expected AAC codec. Record and compare the final audio `start_time`; it must use the same zero-based timestamp convention as the prepared timeline rather than being shifted by an unnoticed input offset.\n\n```bash\nffprobe -v error -show_format -show_streams -of json \\\n  \u002Froot\u002Finput.mp4 > \u002Foutputs\u002Fsource_mux_probe.json\nffprobe -v error -show_format -show_streams -of json \\\n  \u002Foutputs\u002Fdubbed.mp4 > \u002Foutputs\u002Ffinal_mux_probe.json\n\nvideo_count=$(ffprobe -v error -select_streams v \\\n  -show_entries stream=index -of csv=p=0 \u002Foutputs\u002Fdubbed.mp4 | sed '\u002F^$\u002Fd' | wc -l)\naudio_count=$(ffprobe -v error -select_streams a \\\n  -show_entries stream=index -of csv=p=0 \u002Foutputs\u002Fdubbed.mp4 | sed '\u002F^$\u002Fd' | wc -l)\ntest \"$video_count\" -eq 1 && test \"$audio_count\" -eq 1\n\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Froot\u002Finput.mp4\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Foutputs\u002Fdubbed.mp4\nffprobe -v error -select_streams a:0 \\\n  -show_entries stream=index,codec_name,sample_rate,channels,channel_layout,start_time,duration \\\n  -of json \u002Foutputs\u002Fdubbed.mp4\n```\n\nUse the measured final values for `audio_sample_rate_hz`, `audio_channels`, `original_duration_sec`, and `new_duration_sec` in `\u002Foutputs\u002Freport.json`. Validate the final file and all segment timing checks before declaring the delivery complete; never report planned mux properties as measured values.\n","# FFmpeg Video Editing Skill\n\nBasic video editing operations: cutting, trimming, concatenating, and splitting videos.\n\n## When to Use\n\n- Cut segments from video\n- Trim video length\n- Concatenate multiple videos\n- Split video into parts\n- Extract specific time ranges\n\n## Cutting and Trimming\n\n```bash\n# Cut from 10s to 30s (using -ss and -to)\nffmpeg -ss 00:00:10 -to 00:00:30 -i input.mp4 -c copy output.mp4\n\n# Cut from 10s for 20 seconds duration\nffmpeg -ss 00:00:10 -t 20 -i input.mp4 -c copy output.mp4\n\n# First 60 seconds\nffmpeg -t 60 -i input.mp4 -c copy output.mp4\n\n# Last 30 seconds (need duration first)\nffmpeg -sseof -30 -i input.mp4 -c copy output.mp4\n```\n\n## Precise Cutting\n\n```bash\n# With re-encoding (more precise)\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 -c:v libx264 -c:a aac output.mp4\n\n# Keyframe-accurate (faster, may be less precise)\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 -c copy output.mp4\n```\n\n## Concatenation\n\n### Method 1: File List (Recommended)\n\n```bash\n# Create list.txt file:\n# file 'video1.mp4'\n# file 'video2.mp4'\n# file 'video3.mp4'\n\nffmpeg -f concat -safe 0 -i list.txt -c copy output.mp4\n```\n\n### Method 2: Same Codec Files\n\n```bash\n# If all videos have same codec\u002Fformat\nffmpeg -i \"concat:video1.mp4|video2.mp4|video3.mp4\" -c copy output.mp4\n```\n\n### Method 3: Re-encode (Different Codecs)\n\n```bash\n# Re-encode for compatibility\nffmpeg -f concat -safe 0 -i list.txt -c:v libx264 -c:a aac output.mp4\n```\n\n## Splitting Video\n\n```bash\n# Split into 60-second segments\nffmpeg -i input.mp4 -c copy -f segment -segment_time 60 \\\n  -reset_timestamps 1 output_%03d.mp4\n\n# Split at specific timestamps\nffmpeg -i input.mp4 -ss 00:00:00 -t 00:01:00 -c copy part1.mp4\nffmpeg -i input.mp4 -ss 00:01:00 -t 00:01:00 -c copy part2.mp4\n```\n\n## Extract Segment with Re-encoding\n\n```bash\n# When you need to change quality\u002Fcodec\nffmpeg -ss 00:00:10 -i input.mp4 -t 20 \\\n  -c:v libx264 -crf 23 -c:a aac -b:a 192k output.mp4\n```\n\n## Multiple Segments\n\n```bash\n# Extract multiple segments\nffmpeg -i input.mp4 \\\n  -ss 00:00:10 -t 00:00:05 -c copy segment1.mp4 \\\n  -ss 00:01:00 -t 00:00:10 -c copy segment2.mp4\n```\n\n## Notes\n\n- Use `-c copy` for speed (no re-encoding)\n- `-ss` before `-i` is faster but less precise\n- `-ss` after `-i` is more precise but slower\n- Concatenation requires same codec\u002Fformat for `-c copy`\n- Use file list method for best concatenation results\n\n\n## Multilingual Dubbing Mux and Delivery\n\nWhen replacing the audio of a video with a prepared dubbed track, use explicit stream maps so the source audio cannot be included accidentally:\n\n1. Obtain the source container duration and the first video stream properties before muxing:\n\n```bash\nSOURCE_DURATION_SEC=$(ffprobe -v error -show_entries format=duration \\\n  -of default=noprint_wrappers=1:nokey=1 \u002Froot\u002Finput.mp4)\nffprobe -v error -show_entries format=duration:stream=index,codec_type,codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Froot\u002Finput.mp4 > \u002Foutputs\u002Fsource_mux_probe.json\n```\n\nThe prepared dubbed WAV must represent the complete source timeline, start at timeline zero, and already be 48000 Hz mono. If its timestamps are not zero-based, normalize them before muxing with `asetpts=PTS-STARTPTS`; do not apply an input offset unless the offset is explicitly part of the verified timeline. The source audio is not an input to the mux operation.\n\n2. Mux the original visual stream with only the prepared dubbed audio. Stream-copy the video when its codec is compatible with the target MP4, and encode only the audio to a broadly compatible MP4 codec:\n\n```bash\nffmpeg -y \\\n  -i \u002Froot\u002Finput.mp4 \\\n  -i \u002Foutputs\u002Ftts_segments\u002Fseg_0.wav \\\n  -map 0:v:0 -map 1:a:0 \\\n  -c:v copy \\\n  -c:a aac -b:a 192k -ar 48000 -ac 1 \\\n  -t \"$SOURCE_DURATION_SEC\" \\\n  -avoid_negative_ts make_zero \\\n  \u002Foutputs\u002Fdubbed.mp4\n```\n\nDo not use `-shortest` for this delivery: the source duration is authoritative, and the assembled dubbed track must be padded or otherwise prepared to cover that duration. The explicit maps must produce exactly one video stream and exactly one audio stream; no default stream selection is permitted. Do not re-encode the video unless MP4 compatibility requires it, and do not alter its dimensions, pixel format, frame rate, or codec unnecessarily.\n\n3. Verify the mux result before writing the report. Compare source and final format durations, and compare the selected video stream's codec, dimensions, pixel format, frame rate, and duration. Count streams explicitly and reject the output unless it has one intended video stream and one audio stream. Verify that the final audio has sample rate 48000, one channel, a mono layout, and the expected AAC codec. Record and compare the final audio `start_time`; it must use the same zero-based timestamp convention as the prepared timeline rather than being shifted by an unnoticed input offset.\n\n```bash\nffprobe -v error -show_format -show_streams -of json \\\n  \u002Froot\u002Finput.mp4 > \u002Foutputs\u002Fsource_mux_probe.json\nffprobe -v error -show_format -show_streams -of json \\\n  \u002Foutputs\u002Fdubbed.mp4 > \u002Foutputs\u002Ffinal_mux_probe.json\n\nvideo_count=$(ffprobe -v error -select_streams v \\\n  -show_entries stream=index -of csv=p=0 \u002Foutputs\u002Fdubbed.mp4 | sed '\u002F^$\u002Fd' | wc -l)\naudio_count=$(ffprobe -v error -select_streams a \\\n  -show_entries stream=index -of csv=p=0 \u002Foutputs\u002Fdubbed.mp4 | sed '\u002F^$\u002Fd' | wc -l)\ntest \"$video_count\" -eq 1 && test \"$audio_count\" -eq 1\n\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Froot\u002Finput.mp4\nffprobe -v error -select_streams v:0 \\\n  -show_entries stream=codec_name,width,height,pix_fmt,r_frame_rate,start_time,duration \\\n  -of json \u002Foutputs\u002Fdubbed.mp4\nffprobe -v error -select_streams a:0 \\\n  -show_entries stream=index,codec_name,sample_rate,channels,channel_layout,start_time,duration \\\n  -of json \u002Foutputs\u002Fdubbed.mp4\n```\n\nUse the measured final values for `audio_sample_rate_hz`, `audio_channels`, `original_duration_sec`, and `new_duration_sec` in `\u002Foutputs\u002Freport.json`. Validate the final file and all segment timing checks before declaring the delivery complete; never report planned mux properties as measured values.\n",{"name":5,"description":7},"main","cdcb6d230f3b15c3c33f8a2bdd16439f43602cbe","evaluation\u002Fresults\u002FSkillOpt-adapted-gpt52-n3L4R2-v25\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Fffmpeg-video-editing",1,"https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark","https:\u002F\u002Fgithub.com\u002Flinyouxue","2026-11-14 20:28:35",{"source":8,"skillName":5,"commands":32,"prompt":42,"zipAvailable":43},[33,36,39],{"tool":34,"command":35},"npx","npx skills add linyouxue\u002Fskill-repair-benchmark --skill ffmpeg-video-editing",{"tool":37,"command":38},"bunx","bunx skills add linyouxue\u002Fskill-repair-benchmark --skill ffmpeg-video-editing",{"tool":40,"command":41},"pnpm","pnpm dlx skills add linyouxue\u002Fskill-repair-benchmark --skill ffmpeg-video-editing","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fevaluation\u002Fresults\u002FSkillOpt-adapted-gpt52-n3L4R2-v25\u002Ftasks\u002Fmultilingual-video-dubbing\u002Frepaired_skill\u002Fffmpeg-video-editing\u002FSKILL.md",true,[],[46,53,60,67,72,77],{"skillNo":47,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":50,"categories":51,"keywords":52,"publishedAt":19},"01M7E1HGVRY73NBJ022CJG13X6","video-frame-extraction","Extract frames from video files and save them as images using OpenCV","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":54,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":57,"categories":58,"keywords":59,"publishedAt":19},"01M7E1HAG5R7CJ9C8NYJS771MB","openai-vision","Analyze images and multi-frame sequences using OpenAI GPT vision models","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":61,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":64,"categories":65,"keywords":66,"publishedAt":19},"01M7E1H7DADKB6QBWKC2KQ63SZ","image-ocr","Extract text content from images using Tesseract OCR via Python, including structured field extraction from receipts and forms","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_03\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[],{"skillNo":68,"name":48,"nameZh":6,"description":49,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":69,"categories":70,"keywords":71,"publishedAt":19},"01M7E1H0WBNT43TENGQY7AVZHD","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fvideo-frame-extraction\u002FSKILL.md",[],[],{"skillNo":73,"name":55,"nameZh":6,"description":56,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":74,"categories":75,"keywords":76,"publishedAt":19},"01M7E1GTC7D4N4Q2EF03875J9E","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fopenai-vision\u002FSKILL.md",[],[],{"skillNo":78,"name":62,"nameZh":6,"description":63,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":79,"categories":80,"keywords":81,"publishedAt":19},"01M7E1GQ92CWFMGH53KSSE4WER","https:\u002F\u002Fgithub.com\u002Flinyouxue\u002Fskill-repair-benchmark\u002Fblob\u002Fmain\u002Fjpg-ocr-stat\u002Fresult\u002Fskilltta-claude4.7\u002Fgroup_03\u002Frun_02\u002Finputs\u002Fskills\u002Fimage-ocr\u002FSKILL.md",[],[]]