#TIL 30 - Merge to videos from CLI with ffmpeg
![blog_hero_#TIL 30 - Merge to videos from CLI with ffmpeg](/_next/image?url=%2Fstatic%2Ftil.jpeg&w=2048&q=75)
Step 1: Create a text file for merge. For instance: list.txt
file 'video1.mp4'
file 'video2.mp4'
Step 2: Run the below command
ffmpeg -f concat -safe 0 -i list.txt -c copy video.mp4
More usage on https://trac.ffmpeg.org/wiki/Concatenate