Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

arogan178/aac-converter

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aac-converter

Small script to detect AAC audio in video files and transcode the audio stream to LPCM (pcm_s16le) while copying the video stream. Useful for editing in tools that don't support AAC audio (e.g. DaVinci Resolve on some Linux setups).

Files

  • convert.sh — main script. Run with -h to see usage.
  • converter_gui.py — GUI wrapper for the converter script using tkinter.

Usage

GUI Mode (Recommended for beginners)

Simply run the GUI application:

python3 converter_gui.py

The graphical interface allows you to:

  • Browse and select input/output directories
  • Choose audio codec and output format from dropdowns
  • Configure parallel jobs
  • Enable options like dry-run, keep originals, and force conversion
  • View real-time conversion progress and output
  • Start, stop, and monitor conversions

Command Line Mode

Basic usage from the project root:

chmod +x convert.sh
./convert.sh -i /path/to/videos -o /path/to/output

Key options:

  • -i INPUT_DIR — directory to search for .mp4 files (default: current directory)
  • -o OUTPUT_DIR — where converted files are written (defaults to input dir)
  • -a AUDIO_CODEC — audio codec for ffmpeg (default: pcm_s16le; accepts lpcm shorthand)
  • -f FORMAT — container format/extension for output files (default: mov)
  • -n — dry-run (prints actions, does not run ffmpeg or delete originals)
  • -k — keep originals (don't delete source .mp4 after successful conversion)
  • -F — force conversion even if audio codec isn't aac

Run ./convert.sh -h for the full help text.

Notes:

  • Make sure convert.sh is executable before running: chmod +x convert.sh.
  • The script depends on ffmpeg / ffprobe being installed and available in PATH.
  • The GUI requires Python 3 with tkinter (usually included with Python installations).
  • If a video file has multiple audio tracks, all tracks will be preserved without transcoding.

About

Script to transcode AAC audio in videos to LPMC

Topics

Resources

License

Stars

Watchers

Forks

Contributors

Morty Proxy This is a proxified and sanitized view of the page, visit original site.