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.3.0.tar.gz (17.6 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.3.0-py3-none-any.whl (8.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: yt_dlp_audio_normalize-0.3.0.tar.gz
  • Upload date:
  • Size: 17.6 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.3.0.tar.gz
Algorithm Hash digest
SHA256 bf4e1b9540aa8dbc72b4f4050652e19c57f8772abc564faf72c35bf52514bd24
MD5 0f6a5ae51fdd47c68481338653151b07
BLAKE2b-256 96c54638c0e5f328eafb7eefea28e0cb4f9819c850c36e3ee61c8aea3e6babde

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_audio_normalize-0.3.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.3.0-py3-none-any.whl.

File metadata

File hashes

Hashes for yt_dlp_audio_normalize-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f5980468b21cecd5ac5d98748de128bfda17a4f6c8506f1e6b56cc39d9bc26f8
MD5 6c7c8d167f534020c0d7e773cf84ecd4
BLAKE2b-256 40d18217a56f3e1100cb6ef701d8485e7dada556095011221d4b9eea97171647

See more details on using hashes here.

Provenance

The following attestation bundles were made for yt_dlp_audio_normalize-0.3.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