[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79BTZ7WNZNZAQERWAVK0PQ9":3,"skill-same:01M79BTZ7WNZNZAQERWAVK0PQ9":51},{"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":27,"commitSha":28,"skillDirectory":29,"forksCount":30,"repositoryHtmlUrl":31,"repositoryHomepageUrl":32,"ownerHtmlUrl":33,"ownerBlogUrl":34,"ownerDescription":35,"updatedAt":36,"install":37,"resources":50},"01M79BTZ7WNZNZAQERWAVK0PQ9","ffmpeg-video-transcoding-pipeline",null,"Build automated, production-grade video transcoding pipelines using FFmpeg. Generate multi-bitrate Adaptive Bitrate (ABR) ladders for HLS and MPEG-DASH, optimize two-pass VBR encoding with H.264, HEVC, and AV1, fragment MP4 (fMP4), and normalize audio loudness according to EBU R128 standards. Trigger when processing video uploads, preparing video for streaming, or automating media conversions.","hamzabellouch\u002Fagent-skills","hamzabellouch","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F237856042?v=4","01M79BRYW7XAMK3YDWQEMTWGWS","Hamza Bellouch","01M79BRYWXQV3JK2TGVTX8GN2A",8,"MIT","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FArt\u002FDigital_Media_and_Video_Production\u002Fffmpeg-video-transcoding-pipeline\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: ffmpeg-video-transcoding-pipeline\nmetadata:\n  category: Video Streaming and Media Engineering\ndescription: Build automated, production-grade video transcoding pipelines using FFmpeg. Generate multi-bitrate Adaptive Bitrate (ABR) ladders for HLS and MPEG-DASH, optimize two-pass VBR encoding with H.264, HEVC, and AV1, fragment MP4 (fMP4), and normalize audio loudness according to EBU R128 standards. Trigger when processing video uploads, preparing video for streaming, or automating media conversions.\ncompatibility: FFmpeg 6.0+, HLS v7+, MPEG-DASH ISO\u002FIEC 23009-1\n---\n\n# FFmpeg Video Transcoding Pipeline Skill Guide\n\nThis skill standardizes automated multi-bitrate transcoding pipelines for video-on-demand (VOD) streaming infrastructure.\n\n---\n\n## 1. Adaptive Bitrate (ABR) Transcoding Ladder\n\n```text\n[ Raw Master Video ] (ProRes \u002F High-Bitrate MP4)\n         |\n         +---> FFmpeg Multi-Output Transcoder\n                 |\n                 |-- 1080p @ 4500 kbps (fMP4 \u002F H.264)\n                 |-- 720p  @ 2500 kbps (fMP4 \u002F H.264)\n                 |-- 480p  @ 1200 kbps (fMP4 \u002F H.264)\n                 |-- 360p  @ 600 kbps  (fMP4 \u002F H.264)\n                 |-- Audio: AAC 128 kbps (EBU R128 Normalized)\n                 |\n                 v\n[ Master Playlist: master.m3u8 \u002F manifest.mpd ]\n```\n\n---\n\n## 2. Production FFmpeg Commands & Scripts\n\n### A. Production Multi-Bitrate HLS Generation Script\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nINPUT_FILE=\"${1:?Usage: $0 \u003Cinput_video.mp4> \u003Coutput_dir>}\"\nOUT_DIR=\"${2:?Usage: $0 \u003Cinput_video.mp4> \u003Coutput_dir>}\"\n\nmkdir -p \"${OUT_DIR}\"\n\nffmpeg -hide_banner -y -i \"${INPUT_FILE}\" \\\n  # Video filter: scale and keyframe alignment (2-second GOP at 30fps = 60 frames)\n  -filter_complex \\\n  \"[0:v]split=3[v1080][v720][v480]; \\\n   [v1080]scale=w=1920:h=1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)\u002F2:(oh-ih)\u002F2[v1080out]; \\\n   [v720]scale=w=1280:h=720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)\u002F2:(oh-ih)\u002F2[v720out]; \\\n   [v480]scale=w=854:h=480:force_original_aspect_ratio=decrease,pad=854:480:(ow-iw)\u002F2:(oh-ih)\u002F2[v480out]\" \\\n  \\\n  # 1080p Stream\n  -map \"[v1080out]\" -c:v:0 libx264 -preset slow -b:v:0 4500k -maxrate:v:0 4800k -bufsize:v:0 9000k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # 720p Stream\n  -map \"[v720out]\" -c:v:1 libx264 -preset slow -b:v:1 2500k -maxrate:v:1 2700k -bufsize:v:1 5000k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # 480p Stream\n  -map \"[v480out]\" -c:v:2 libx264 -preset slow -b:v:2 1200k -maxrate:v:2 1350k -bufsize:v:2 2400k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # Audio Stream (Normalized)\n  -map a:0 -c:a aac -b:a 128k -ar 48000 -ac 2 \\\n  -af \"loudnorm=I=-16:TP=-1.5:LRA=11\" \\\n  \\\n  # HLS Output Packaging\n  -f hls \\\n  -hls_time 4 \\\n  -hls_playlist_type vod \\\n  -hls_flags independent_segments \\\n  -hls_segment_type fmp4 \\\n  -hls_segment_filename \"${OUT_DIR}\u002Fstream_%v_data%03d.m4s\" \\\n  -master_pl_name master.m3u8 \\\n  -var_stream_map \"v:0,a:0 v:1,a:0 v:2,a:0\" \\\n  \"${OUT_DIR}\u002Fstream_%v.m3u8\"\n\necho \"Transcoding completed. Manifest at: ${OUT_DIR}\u002Fmaster.m3u8\"\n```\n\n### B. Python Automated Transcoder Worker\n\n```python\nimport subprocess\nimport json\nfrom pathlib import Path\n\n\ndef probe_video(file_path: str) -> dict:\n    cmd = [\n        \"ffprobe\",\n        \"-v\", \"quiet\",\n        \"-print_format\", \"json\",\n        \"-show_format\",\n        \"-show_streams\",\n        file_path,\n    ]\n    result = subprocess.run(cmd, capture_output=True, text=True, check=True)\n    return json.loads(result.stdout)\n\n\ndef transcode_to_web_optimized_mp4(input_path: str, output_path: str):\n    # Encodes a single web-compatible MP4 with faststart for instant streaming.\n    cmd = [\n        \"ffmpeg\", \"-y\",\n        \"-i\", input_path,\n        \"-c:v\", \"libx264\",\n        \"-preset\", \"medium\",\n        \"-crf\", \"23\",\n        \"-c:a\", \"aac\",\n        \"-b:a\", \"128k\",\n        \"-movflags\", \"+faststart\",  # Moves moov atom to beginning of file\n        output_path,\n    ]\n    subprocess.run(cmd, check=True)\n```\n\n---\n\n## 3. Best Practices Checklist\n\n- [ ] **Aligned Keyframes (GOP):** Set strict GOP size (`-g \u003Cframes> -keyint_min \u003Cframes> -sc_threshold 0`) to ensure seamless stream switching in HLS\u002FDASH.\n- [ ] **Faststart for MP4:** Always add `-movflags +faststart` when generating standalone MP4 files so browsers start playback before full download.\n- [ ] **Loudness Normalization:** Apply `-af loudnorm=I=-16:TP=-1.5` to meet standard broadcast\u002Fweb loudness targets (EBU R128 \u002F ITU-R BS.1770).\n","# FFmpeg Video Transcoding Pipeline Skill Guide\n\nThis skill standardizes automated multi-bitrate transcoding pipelines for video-on-demand (VOD) streaming infrastructure.\n\n---\n\n## 1. Adaptive Bitrate (ABR) Transcoding Ladder\n\n```text\n[ Raw Master Video ] (ProRes \u002F High-Bitrate MP4)\n         |\n         +---> FFmpeg Multi-Output Transcoder\n                 |\n                 |-- 1080p @ 4500 kbps (fMP4 \u002F H.264)\n                 |-- 720p  @ 2500 kbps (fMP4 \u002F H.264)\n                 |-- 480p  @ 1200 kbps (fMP4 \u002F H.264)\n                 |-- 360p  @ 600 kbps  (fMP4 \u002F H.264)\n                 |-- Audio: AAC 128 kbps (EBU R128 Normalized)\n                 |\n                 v\n[ Master Playlist: master.m3u8 \u002F manifest.mpd ]\n```\n\n---\n\n## 2. Production FFmpeg Commands & Scripts\n\n### A. Production Multi-Bitrate HLS Generation Script\n\n```bash\n#!\u002Fusr\u002Fbin\u002Fenv bash\nset -euo pipefail\n\nINPUT_FILE=\"${1:?Usage: $0 \u003Cinput_video.mp4> \u003Coutput_dir>}\"\nOUT_DIR=\"${2:?Usage: $0 \u003Cinput_video.mp4> \u003Coutput_dir>}\"\n\nmkdir -p \"${OUT_DIR}\"\n\nffmpeg -hide_banner -y -i \"${INPUT_FILE}\" \\\n  # Video filter: scale and keyframe alignment (2-second GOP at 30fps = 60 frames)\n  -filter_complex \\\n  \"[0:v]split=3[v1080][v720][v480]; \\\n   [v1080]scale=w=1920:h=1080:force_original_aspect_ratio=decrease,pad=1920:1080:(ow-iw)\u002F2:(oh-ih)\u002F2[v1080out]; \\\n   [v720]scale=w=1280:h=720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)\u002F2:(oh-ih)\u002F2[v720out]; \\\n   [v480]scale=w=854:h=480:force_original_aspect_ratio=decrease,pad=854:480:(ow-iw)\u002F2:(oh-ih)\u002F2[v480out]\" \\\n  \\\n  # 1080p Stream\n  -map \"[v1080out]\" -c:v:0 libx264 -preset slow -b:v:0 4500k -maxrate:v:0 4800k -bufsize:v:0 9000k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # 720p Stream\n  -map \"[v720out]\" -c:v:1 libx264 -preset slow -b:v:1 2500k -maxrate:v:1 2700k -bufsize:v:1 5000k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # 480p Stream\n  -map \"[v480out]\" -c:v:2 libx264 -preset slow -b:v:2 1200k -maxrate:v:2 1350k -bufsize:v:2 2400k \\\n  -g 60 -keyint_min 60 -sc_threshold 0 \\\n  \\\n  # Audio Stream (Normalized)\n  -map a:0 -c:a aac -b:a 128k -ar 48000 -ac 2 \\\n  -af \"loudnorm=I=-16:TP=-1.5:LRA=11\" \\\n  \\\n  # HLS Output Packaging\n  -f hls \\\n  -hls_time 4 \\\n  -hls_playlist_type vod \\\n  -hls_flags independent_segments \\\n  -hls_segment_type fmp4 \\\n  -hls_segment_filename \"${OUT_DIR}\u002Fstream_%v_data%03d.m4s\" \\\n  -master_pl_name master.m3u8 \\\n  -var_stream_map \"v:0,a:0 v:1,a:0 v:2,a:0\" \\\n  \"${OUT_DIR}\u002Fstream_%v.m3u8\"\n\necho \"Transcoding completed. Manifest at: ${OUT_DIR}\u002Fmaster.m3u8\"\n```\n\n### B. Python Automated Transcoder Worker\n\n```python\nimport subprocess\nimport json\nfrom pathlib import Path\n\n\ndef probe_video(file_path: str) -> dict:\n    cmd = [\n        \"ffprobe\",\n        \"-v\", \"quiet\",\n        \"-print_format\", \"json\",\n        \"-show_format\",\n        \"-show_streams\",\n        file_path,\n    ]\n    result = subprocess.run(cmd, capture_output=True, text=True, check=True)\n    return json.loads(result.stdout)\n\n\ndef transcode_to_web_optimized_mp4(input_path: str, output_path: str):\n    # Encodes a single web-compatible MP4 with faststart for instant streaming.\n    cmd = [\n        \"ffmpeg\", \"-y\",\n        \"-i\", input_path,\n        \"-c:v\", \"libx264\",\n        \"-preset\", \"medium\",\n        \"-crf\", \"23\",\n        \"-c:a\", \"aac\",\n        \"-b:a\", \"128k\",\n        \"-movflags\", \"+faststart\",  # Moves moov atom to beginning of file\n        output_path,\n    ]\n    subprocess.run(cmd, check=True)\n```\n\n---\n\n## 3. Best Practices Checklist\n\n- [ ] **Aligned Keyframes (GOP):** Set strict GOP size (`-g \u003Cframes> -keyint_min \u003Cframes> -sc_threshold 0`) to ensure seamless stream switching in HLS\u002FDASH.\n- [ ] **Faststart for MP4:** Always add `-movflags +faststart` when generating standalone MP4 files so browsers start playback before full download.\n- [ ] **Loudness Normalization:** Apply `-af loudnorm=I=-16:TP=-1.5` to meet standard broadcast\u002Fweb loudness targets (EBU R128 \u002F ITU-R BS.1770).\n",{"name":5,"metadata":24,"description":7,"compatibility":26},{"category":25},"Video Streaming and Media Engineering","FFmpeg 6.0+, HLS v7+, MPEG-DASH ISO\u002FIEC 23009-1","main","e905af21e5f1e1c3ca605e9656c3a7930360a84e","Art\u002FDigital_Media_and_Video_Production\u002Fffmpeg-video-transcoding-pipeline",1,"https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills","https:\u002F\u002Fhamzabellouch.github.io\u002F","https:\u002F\u002Fgithub.com\u002Fhamzabellouch","hamzabellouch.github.io","CEO & Founder of @tknoglobal | Researcher in Technology & Applied Sciences.","2026-10-17 03:20:19",{"source":8,"skillName":5,"commands":38,"prompt":48,"zipAvailable":49},[39,42,45],{"tool":40,"command":41},"npx","npx skills add hamzabellouch\u002Fagent-skills --skill ffmpeg-video-transcoding-pipeline",{"tool":43,"command":44},"bunx","bunx skills add hamzabellouch\u002Fagent-skills --skill ffmpeg-video-transcoding-pipeline",{"tool":46,"command":47},"pnpm","pnpm dlx skills add hamzabellouch\u002Fagent-skills --skill ffmpeg-video-transcoding-pipeline","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FArt\u002FDigital_Media_and_Video_Production\u002Fffmpeg-video-transcoding-pipeline\u002FSKILL.md",true,[],[52,59,66,73,80,87],{"skillNo":53,"name":54,"nameZh":6,"description":55,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":56,"categories":57,"keywords":58,"publishedAt":19},"01M79FHH2H815A9TAP6WNKH4Q8","security-audit","Comprehensive security guidance, source code audit, vulnerability assessment, and penetration test review for codebases, APIs, microservices, CLI tools, libraries, and LLM-backed applications. Triggers on requests to audit a codebase, conduct security reviews, find vulnerabilities or flaws, pen-test source code, or when the user asks in Arabic (فحص أمني، تدقيق الكود أمنياً، مراجعة الثغرات، فحص أمان المشروع). Supports Guidance mode (focused review) and Full Audit mode (deterministic 6-phase harness).","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FSecurity_Audit_and_Code_Review\u002Fsecurity-audit\u002FSKILL.md",[],[],{"skillNo":60,"name":61,"nameZh":6,"description":62,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":63,"categories":64,"keywords":65,"publishedAt":19},"01M79FHBGXVBY6VQ1X7ETAZMF1","malware-analysis-reversing","Production malware analysis workflows, reverse engineering methodologies, isolated sandbox triage, static\u002Fdynamic binary analysis, memory forensics, and YARA detection rule authoring.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fmalware-analysis-reversing\u002FSKILL.md",[],[],{"skillNo":67,"name":68,"nameZh":6,"description":69,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":70,"categories":71,"keywords":72,"publishedAt":19},"01M79FH6EACDR801TZCE4R8SAC","application-security-pentesting","Production Application Security (AppSec) standards, OWASP Top 10 vulnerability remediation, SAST\u002FDAST pipeline integration, secure code review, threat modeling, and defensive security posture.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FOffensive_Security_and_Pentesting\u002Fapplication-security-pentesting\u002FSKILL.md",[],[],{"skillNo":74,"name":75,"nameZh":6,"description":76,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":77,"categories":78,"keywords":79,"publishedAt":19},"01M79FH0VKVT44FK923K520ZQA","oauth2-oidc-security-flows","Implement enterprise OAuth 2.1 and OpenID Connect (OIDC) authorization code flow with Proof Key for Code Exchange (PKCE), state and nonce verification, refresh token rotation, token revocation, and centralized IdP federation (Keycloak, Auth0, Okta). Trigger when building secure authentication, single sign-on (SSO), or third-party delegated authorization.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Foauth2-oidc-security-flows\u002FSKILL.md",[],[],{"skillNo":81,"name":82,"nameZh":6,"description":83,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":84,"categories":85,"keywords":86,"publishedAt":19},"01M79FGVVB3R4T88XXD8FRSV5B","jwt-session-management-hardening","Harden JWT-based authentication and session lifecycles using asymmetric signing (RS256\u002FEdDSA), JWKS rotation, strict claims validation, Redis-backed sliding window sessions, revocation lists, and secure HttpOnly cookie storage. Trigger when implementing token validation, session revocation, or hardening API authentication.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FIdentity_and_Access_Management_IAM\u002Fjwt-session-management-hardening\u002FSKILL.md",[],[],{"skillNo":88,"name":89,"nameZh":6,"description":90,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":91,"categories":92,"keywords":93,"publishedAt":19},"01M79FGNCPZ85CVEY0B3NE4H3B","soc2-compliance-automation","Best practices for implementing SOC 2 Type II compliance controls, continuous evidence collection, infrastructure policy-as-code, and automated security monitoring. Use when automating Trust Services Criteria (Security, Availability, Confidentiality, Processing Integrity, Privacy), audit logging, IAM least privilege, or CI\u002FCD security gates.","https:\u002F\u002Fgithub.com\u002Fhamzabellouch\u002Fagent-skills\u002Fblob\u002Fmain\u002FSecurity\u002FGovernance_Compliance_and_Legal_Tech\u002Fsoc2-compliance-automation\u002FSKILL.md",[],[]]