Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- README.txt
- ==========
- Script Name: merge_dji_files.py
- Description:
- This Python script merges DJI video (MP4) and audio (WAV) files with matching identifiers (e.g., DJI_20250530075349_0003_D.MP4 and DJI_20250530075349_0003_D.WAV) into a single MP4 file. The output includes:
- - The original video stream (HEVC, 3840x2160) from the MP4.
- - Two stereo audio tracks:
- - The original AAC stereo audio from the MP4.
- - The WAV stereo audio, converted to AAC.
- Usage:
- 1. Place the script in a folder containing your DJI MP4 and WAV files (e.g., C:\test).
- 2. Run the script using: python merge_dji_files.py
- 3. Press Enter to use the current directory, or enter a different folder path.
- 4. The merged files will be saved in a 'merged_output' subfolder.
- Output:
- - Merged files are saved as DJI_<identifier>_D_merged.MP4.
- - The script confirms each successful merge with a message (e.g., "Successfully merged: DJI_20250530075349_0003_D_merged.MP4").
- Requirements:
- - Python 3.x
- - FFmpeg installed and added to system PATH
- Notes:
- - The script excludes timecode and metadata to avoid extra tracks in video editors like Premiere Pro.
- - Errors, if any, will be displayed for troubleshooting.
Add Comment
Please, Sign In to add comment