<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Ffmpeg on サブカル科学研究会のブログ</title>
    <link>https://www.subcul-science.com/tags/ffmpeg/</link>
    <description>Recent content in Ffmpeg on サブカル科学研究会のブログ</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 05 Jul 2025 21:05:51 +0900</lastBuildDate>
    <atom:link href="https://www.subcul-science.com/tags/ffmpeg/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to Solve Audio File Volume Inconsistency and Quality Unification Issues with ffmpeg Normalization</title>
      <link>https://www.subcul-science.com/post/20250705audio-volume-normalization-solution/</link>
      <pubDate>Sat, 05 Jul 2025 21:05:51 +0900</pubDate>
      <guid>https://www.subcul-science.com/post/20250705audio-volume-normalization-solution/</guid>
      <description>&lt;h2 id=&#34;audio-volume-issues-in-audio-file-processing&#34;&gt;Audio Volume Issues in Audio File Processing&lt;/h2&gt;&#xA;&lt;p&gt;When producing and distributing audio content, do you face these problems?&lt;/p&gt;&#xA;&lt;h3 id=&#34;1-volume-inconsistency-issues&#34;&gt;1. Volume Inconsistency Issues&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Volume levels are not unified across multiple audio files&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Volume differences occur due to different recording environments and equipment&lt;/li&gt;&#xA;&lt;li&gt;Listeners need to frequently adjust volume levels&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;2-quality-inconsistency-issues&#34;&gt;2. Quality Inconsistency Issues&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Noise and unwanted frequencies are mixed in&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Silent sections are too long and difficult to listen to&lt;/li&gt;&#xA;&lt;li&gt;Unable to achieve professional-quality audio&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h3 id=&#34;3-manual-processing-limitations&#34;&gt;3. Manual Processing Limitations&lt;/h3&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;&lt;strong&gt;Processing large numbers of audio files individually is inefficient&lt;/strong&gt;&lt;/li&gt;&#xA;&lt;li&gt;Automation is difficult with GUI audio editing software&lt;/li&gt;&#xA;&lt;li&gt;Applying consistent processing standards is challenging&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;real-world-audio-quality-challenge-cases&#34;&gt;Real-world Audio Quality Challenge Cases&lt;/h2&gt;&#xA;&lt;h3 id=&#34;failure-case-limitations-of-manual-adjustment&#34;&gt;Failure Case: Limitations of Manual Adjustment&lt;/h3&gt;&#xA;&lt;div class=&#34;highlight&#34;&gt;&lt;pre tabindex=&#34;0&#34; class=&#34;chroma&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Traditional approach&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# 1. Open each file in audio editing software&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# 2. Visually and auditorily adjust levels&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# 3. Manually apply noise reduction&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# 4. Manually cut silent sections&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# Problems:&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# - Time-consuming for processing large numbers of files&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# - Processing standards are subjective and inconsistent&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;span class=&#34;line&#34;&gt;&lt;span class=&#34;cl&#34;&gt;&lt;span class=&#34;c1&#34;&gt;# - Quality variations due to human errors&lt;/span&gt;&#xA;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The solution to this problem is &lt;strong&gt;automated volume normalization with ffmpeg&lt;/strong&gt;.&lt;/p&gt;</description>
    </item>
    <item>
      <title>Dockerfileでffmpegをインストールするときのメモ</title>
      <link>https://www.subcul-science.com/post/20230819ffmpeg/</link>
      <pubDate>Sat, 19 Aug 2023 11:01:33 +0900</pubDate>
      <guid>https://www.subcul-science.com/post/20230819ffmpeg/</guid>
      <description>&lt;h2 id=&#34;失敗例&#34;&gt;失敗例&lt;/h2&gt;&#xA;&lt;p&gt;&lt;code&gt;RUN apt update &amp;amp;&amp;amp; apt install -y ffmpeg&lt;/code&gt;&lt;/p&gt;&#xA;&lt;p&gt;updateとinstallは同じタイミングで行わないとupdateの状態が引き継がれない。Dockerfileでは行ごとにshが初期化されるため。&lt;/p&gt;</description>
    </item>
    <item>
      <title>ffmpegで音声ファイルの音量の正規化(ノーマライゼーション)</title>
      <link>https://www.subcul-science.com/post/20210522ffmpegnorm/</link>
      <pubDate>Sat, 22 May 2021 17:41:25 +0900</pubDate>
      <guid>https://www.subcul-science.com/post/20210522ffmpegnorm/</guid>
      <description>&lt;ul&gt;&#xA;&lt;li&gt;ffmpegで音声ファイルの音量を調整する方法&lt;/li&gt;&#xA;&lt;li&gt;音量の正規化のためにffmpegを用いた&#xA;&lt;ul&gt;&#xA;&lt;li&gt;ffmpegはコマンドラインで利用できるメディアの加工ができる&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;後々のために使用方法を記録しておく&#xA;&lt;ul&gt;&#xA;&lt;li&gt;たまに使うときにコマンドを忘れやすい&lt;/li&gt;&#xA;&lt;li&gt;似たような処理をしたくなることが多いのでメモが役に立つ気がする&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;h2 id=&#34;ffmpegのインストール&#34;&gt;ffmpegのインストール&lt;/h2&gt;&#xA;&lt;p&gt;ubuntu 系の場合、以下のコマンドでffmpegのダウンロードとインストールが完了する&#xA;sudo apt update&#xA;sudo apt install ffmpeg&lt;/p&gt;</description>
    </item>
    <item>
      <title>chromebookでスクリーンショットを撮影してニコニコ動画に投稿する</title>
      <link>https://www.subcul-science.com/post/20210427screenshot/</link>
      <pubDate>Tue, 27 Apr 2021 21:08:23 +0900</pubDate>
      <guid>https://www.subcul-science.com/post/20210427screenshot/</guid>
      <description>&lt;p&gt;tux guitarで譜面を作成した。&lt;/p&gt;&#xA;&lt;p&gt;しかし直接音声や動画で出力する機能がtux guitarになかったのでchromebookの機能でスクリーンショットを取ることにした。&lt;/p&gt;</description>
    </item>
    <item>
      <title>ffmpegを用いて一枚の画像と音声から動画を作成</title>
      <link>https://www.subcul-science.com/post/20210420ffmpeg/</link>
      <pubDate>Tue, 20 Apr 2021 19:16:26 +0900</pubDate>
      <guid>https://www.subcul-science.com/post/20210420ffmpeg/</guid>
      <description>&lt;p&gt;Youtubeに投稿するにあたって、&#xA;音声ファイルは投稿できない。&lt;/p&gt;&#xA;&lt;p&gt;そこで音声ファイルを動画形式に変換する。&lt;/p&gt;&#xA;&lt;p&gt;そこまで手間のかかる作業はしたくないという前提から、&#xA;コマンドラインで処理をすることにした。&lt;/p&gt;</description>
    </item>
  </channel>
</rss>
