<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>ke_takahashi</author_name>
  <author_url>https://blog.hatena.ne.jp/ke_takahashi/</author_url>
  <blog_title>memorandums</blog_title>
  <blog_url>https://memorandums.hatenablog.com/</blog_url>
  <categories>
    <anon>つくる</anon>
  </categories>
  <description>少し前に以下を書きました。 memorandums.hatenablog.com いちいちバッチ処理用のシェルを作るの面倒だったのでrubyにしました。pythonでも良かったのですがやはりruby推しなので。 Dir.glob(&quot;*.mp4&quot;).each do |f| d = `exiftool -createdate &quot;#{f}&quot;` f_ = &quot;_#{f.split(&quot;.&quot;)[0]}.mp4&quot; `ffmpeg -i &quot;#{f}&quot; -vf scale=-1:720 -crf 23 -loglevel quiet &quot;#{f_}&quot;` `exiftool -alldates=&quot;#{d}&quot; -ove…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fmemorandums.hatenablog.com%2Fentry%2F2024%2F03%2F24%2F100009&quot; title=&quot;mp4のサイズを小さくするrubyスクリプト - memorandums&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></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-03-24 10:00:09</published>
  <title>mp4のサイズを小さくするrubyスクリプト</title>
  <type>rich</type>
  <url>https://memorandums.hatenablog.com/entry/2024/03/24/100009</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
