<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>S_E_Hyphen</author_name>
  <author_url>https://blog.hatena.ne.jp/S_E_Hyphen/</author_url>
  <blog_title>あるStray Engineer の日記</blog_title>
  <blog_url>https://s-e-hyphen.hatenadiary.jp/</blog_url>
  <categories>
  </categories>
  <description>下記のような、30個の音声ファイルが存在します。それぞれの再生時間を表示したいと思います。 コアとなるコマンドは ffprobe というものです。このコマンドを叩くと、下記のように長々と情報が表示されます。欲しいのはこの中の 下から2行目 Duration の次に表示されている時間です。ちなみにこれらの情報は標準エラーに出力されています。 そこで、下記のコマンド get_duration.sh を作成しました。ディレクトリ内の全てのmp3ファイルを対象として再生時間を取得してくれます。 #!/bin/bash declare -a mp3files=( ` ls *.mp3` ) for mp…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fs-e-hyphen.hatenadiary.jp%2Fentry%2F2022%2F10%2F22%2F095441&quot; title=&quot;mp3形式音声ファイルの再生時間取得 - あるStray Engineer の日記&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/S/S_E_Hyphen/20221022/20221022094602.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2022-10-22 09:54:41</published>
  <title>mp3形式音声ファイルの再生時間取得</title>
  <type>rich</type>
  <url>https://s-e-hyphen.hatenadiary.jp/entry/2022/10/22/095441</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
