Kütüphane / Görüntü, Video ve Ses
Görüntü, Video ve Ses
Bozuk biçimli video kliplerini form yüklemesinden FFmpeg ile tek bir MP4'e birleştir
Her form gönderiminde çalışır, farklı çözünürlük ve kare hızına sahip iki veya daha fazla video klibini kabul eder ve FFmpeg'in concat filtresiyle, ücretli API kullanmadan yerel olarak tek bir MP4'te birleştirir.
Ne yapar
## Combine any number of video clips into one MP4 with FFmpeg (free, no API) Upload two or more video clips - even mismatched ones, different resolutions, aspect ratios, frame rates - and get back one combined MP4. No API key, no account, no paid service: FFmpeg's concat filter does the real work, running for free on your own machine. This is the clip-joining step from a larger faceless-video pipeline, pulled out on its own because "just concatenate these files" is one of the most common FFmpeg questions there is, and the naive approach (the concat demuxer) silently produces a broken or out-of-sync file the moment two clips don't share the exact same codec settings. ### How it works 1. A form takes two or more video files and a target output size (1920x1080 landscape, 1080x1920 vertical, or 1080x1080 square). 2. Every clip is saved to a per-run temp folder in upload order - that order is the concat order. 3. FFmpeg's concat filter (not the concat demuxer) is used: each clip is scaled to fit inside the target frame without stretching or cropping, letterboxed if needed, normalized to 30fps, and its audio is reformatted to a common sample rate - so mismatched clips still join cleanly instead of desyncing. 4. The combined MP4 is read back off disk and returned with a short report (clip count, output size). ### Setup Self-hosted n8n only - this uses Execute Command, which n8n Cloud disables. Install FFmpeg on the PATH of the process running n8n, and start n8n with NODES_EXCLUDE="[]" and N8N_RESTRICT_FILE_ACCESS_TO="/tmp" - both are required or the file steps fail without a clear error.
Adımlar
- Video clips and output format form
- Prepare Run
- Create the temp folder
- Restore the uploaded clips
- Split into one item per clip
- Save each clip to disk
- Build the FFmpeg command
- Combine all clips (FFmpeg)
- Verify the combine succeeded
- Read the combined video back
- Attach the combine report to the file
Benzer otomasyonlar
Görüntü, Video ve SesFFmpeg ve FFprobe ile videolara kelime vurgulamalı karaoke altyazıları gömme12 adımGörüntü, Video ve SesFFmpeg ile ses dosyalarındaki sessizlik ve konuşma bölümlerini tespit et17 adımDosyalar ve Bulut DepolamaConvert Instagram carousels into TikTok and Reels videos with ffmpeg and SocialRobot26 adımGörüntü, Video ve SesElevenLabs API ile MP4 Videolarını Yazıya Dökme3 adım