Social Icons

Thursday, January 28, 2021

MERGE VIDEOs IN UBUNTU: TWO TERMINAL COMMANDS

Hi guys...no time waste here...I m mentioning two commands to simply merge your multiple videos quickly in an Ubuntu OS.No GUI or other applications to download or use. The ffmpeg command inbuilt to Ubuntu easily merges without hassles.

So,the first command is 

find "$(pwd)" -type f -name '*.mp4' -printf "file '%p'\n" | tee mp4_compile.txt

The above command will simply find your all mp4 files in the directory wherein you run this command in the terminal directory and compile them into one text file. This text file is named here as mp4_compile.txt. You can name it any thing.

The second command is as given below:

ffmpeg -f concat -safe 0 -i mp4_compile.txt -c copy merged.mp4

This command will merge all the files compiled in the txt file and merge into one output file names as merged.mp4

Thats all...I actually went through a lot of softwares and applications...tried online merge too but all had some kind of limitation in size...till I found these commands.So happy sharing and happy merging.

NOTHING BLOCKCHAIN ABOUT IT :-)

0 comments:

Post a Comment

Powered By Blogger