Skip to main content

yt-dlp postprocessor plugin for audio normalization using ffmpeg-normalize

Project description

yt-dlp-audio-normalize

ffmpeg-normalize を使用した音声正規化のための yt-dlp PostProcessor プラグイン

要件

  • Python >= 3.10
  • yt-dlp >= 2026.2.4
  • ffmpeg (システムにインストール済みであること)

インストール

pip install -U yt-dlp-audio-normalize

使い方

--use-postprocessor

# デフォルトの正規化
yt-dlp --use-postprocessor AudioNormalize URL

# パラメータを指定
yt-dlp --use-postprocessor "AudioNormalize:target_level=-14.0;audio_codec=aac" URL

# 実行タイミングを指定
yt-dlp --use-postprocessor "AudioNormalize:when=after_move" URL

--ppa (PostProcessor Arguments)

yt-dlp --ppa "AudioNormalize:-t -14.0 -c:a aac -b:a 128k" URL

--use-postprocessor の kwargs と --ppa の両方が指定された場合、PPA が優先される。

Python API

import yt_dlp
from yt_dlp_plugins.postprocessor.audio_normalize import AudioNormalizePP

with yt_dlp.YoutubeDL(opts) as ydl:
    ydl.add_post_processor(AudioNormalizePP(), when="after_move")
    ydl.download([url])

サポートされるパラメータ

FFmpegNormalize.__init__() のすべてのスカラーパラメータは、ロングフラグ(例: --target-level, --audio-codec)で自動的にサポートされる

ショートフラグ

フラグ パラメータ 説明
-nt normalization_type 正規化タイプ
-t target_level ターゲットレベル
-p print_stats 統計情報の表示
-lrt loudness_range_target ラウドネス範囲ターゲット
-tp true_peak トゥルーピーク
-c:a audio_codec 音声コーデック
-b:a audio_bitrate 音声ビットレート
-ar sample_rate サンプルレート
-ac audio_channels 音声チャンネル数
-koa keep_original_audio 元の音声を保持
-prf pre_filter プリフィルター
-pof post_filter ポストフィルター
-vn video_disable 映像を無効化
-c:v video_codec 映像コーデック
-sn subtitle_disable 字幕を無効化
-mn metadata_disable メタデータを無効化
-cn chapters_disable チャプターを無効化
-ofmt output_format 出力フォーマット
-ext extension 拡張子
-d debug デバッグモード
-n dry_run ドライラン
-pr progress 進捗表示

ライセンス

Unlicense

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

yt_dlp_audio_normalize-0.2.0.tar.gz (16.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

yt_dlp_audio_normalize-0.2.0-py3-none-any.whl (7.9 kB view details)

Uploaded Python 3

File details

Details for the file yt_dlp_audio_normalize-0.2.0.tar.gz.

File metadata

  • Download URL: yt_dlp_audio_normalize-0.2.0.tar.gz
  • Upload date:
  • Size: 16.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for yt_dlp_audio_normalize-0.2.0.tar.gz
Algorithm Hash digest
SHA256 b1edcd9980c9bbfc934256da8d87532715d9b02f67583b5705d612f931cf29b8
MD5 388aee032fff74efc8c79b902a310f12
BLAKE2b-256 55bc0f32d266216ea308b9f4002116bb8bbb8e31e006d192c6cdc8a8561cf85a

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_audio_normalize-0.2.0.tar.gz:

Publisher: publish.yml on 9c5s/yt-dlp-AudioNormalize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file yt_dlp_audio_normalize-0.2.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yt_dlp_audio_normalize-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 a7a93d2e4142878b4dd4fbc76459ad63ad9a5dd3673b6ec17827f6ca8f69df72
MD5 3b751e430919ff404be60681c31c8912
BLAKE2b-256 a956dc5f907fa41569f4cd0df258ba05c1b95fd83604cedad5cacb8ed9fe82dd

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_audio_normalize-0.2.0-py3-none-any.whl:

Publisher: publish.yml on 9c5s/yt-dlp-AudioNormalize

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page