Guest User

Untitled

a guest
May 31st, 2025
9
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.19 KB | None | 0 0
  1.  
  2.  
  3. README.txt
  4. ==========
  5.  
  6. Script Name: merge_dji_files.py
  7.  
  8. Description:
  9. 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:
  10. - The original video stream (HEVC, 3840x2160) from the MP4.
  11. - Two stereo audio tracks:
  12. - The original AAC stereo audio from the MP4.
  13. - The WAV stereo audio, converted to AAC.
  14.  
  15. Usage:
  16. 1. Place the script in a folder containing your DJI MP4 and WAV files (e.g., C:\test).
  17. 2. Run the script using: python merge_dji_files.py
  18. 3. Press Enter to use the current directory, or enter a different folder path.
  19. 4. The merged files will be saved in a 'merged_output' subfolder.
  20.  
  21. Output:
  22. - Merged files are saved as DJI_<identifier>_D_merged.MP4.
  23. - The script confirms each successful merge with a message (e.g., "Successfully merged: DJI_20250530075349_0003_D_merged.MP4").
  24.  
  25. Requirements:
  26. - Python 3.x
  27. - FFmpeg installed and added to system PATH
  28.  
  29. Notes:
  30. - The script excludes timecode and metadata to avoid extra tracks in video editors like Premiere Pro.
  31. - Errors, if any, will be displayed for troubleshooting.
  32.  
Add Comment
Please, Sign In to add comment