Post

MetaClean Video Merger: Sectioned MP4 Joiner with Metadata Removal

MetaClean Video Merger: Sectioned MP4 Joiner with Metadata Removal

MetaClean Video Merger is a Python script that merges multiple .mp4 videos from a folder into a single output file. It automatically removes all metadata from each video and creates chapters (sections) for easy navigation in the final video. All temporary files are cleaned up after processing.

Features

  • Metadata Removal: Strips all metadata from each video before merging.
  • Sectioned Output: Each original video becomes a chapter (section) in the final output.
  • Automatic Sorting: Videos are merged in alphabetical order.
  • Temporary File Cleanup: All intermediate files are deleted after the process.
  • Simple Usage: Just provide the folder path, or press Enter to use the current folder.

Requirements

How to Use

  1. Place join.py in any folder.
  2. Open a terminal in that folder.
  3. Run:

    1
    
     python join.py
    
  4. When prompted, enter the path to your video folder, or press Enter to use the current folder.
  5. The script will:
    • Find all .mp4 files.
    • Remove their metadata.
    • Merge them into output.mp4 with chapters for each video.
    • Delete all temporary files.

Example Output

1
2
3
4
5
Enter the folder path with the videos (leave empty to use current folder): 
5 videos found. Making copies without metadata...
Copying done. Joining videos...
Done: C:\Users\YourName\Videos\output.mp4
Temporary files deleted.

Notes

  • Only .mp4 files are processed.
  • Output file is named output.mp4 and saved in the selected folder.
  • Temporary files (concat_list.txt, metadata.txt, and clean_videos folder) are deleted automatically.
  • Each video becomes a chapter in the merged file for easy navigation.

Troubleshooting

  • FFmpeg not found: Make sure ffmpeg and ffprobe are installed and available in your system PATH.
  • Permission errors: Run the terminal as administrator or check folder permissions.
  • No videos found: Ensure your videos are in .mp4 format and located in the specified folder.

License

This project is licensed under the GNU General Public License v3.0

About

Author: fr0stb1rd

Repo: gitlab/fr0stb1rd/metaclean-video-merger

Blog Post: fr0stb1rd.gitlab.io

This post is licensed under CC BY 4.0 by the author.