<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>owiewowe</author_name>
  <author_url>https://blog.hatena.ne.jp/owiewowe/</author_url>
  <blog_title>19日に更新してた</blog_title>
  <blog_url>https://owiewowe.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>golang で書いた ffmpeg を使ったダウンローダーを goroutines で並行ダウンロードできるようにしてみました。もともと、ffmpeg のオプションを array に入れて for 文で回していたので、その前に var wg sync.WaitGroup wg.Add(len(array)) と追記、ダウンロード処理部分は関数化して使っていたのをこんな感じで goroutines にして go func(ffmpeg_command string) { defer wg.Done() download(ffmpeg_command) }(ffmpeg_command) 最後に…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fowiewowe.hatenablog.com%2Fentry%2F2022%2F12%2F19%2F000000&quot; title=&quot;既存のコードにちょっと手を加えて goroutines を使ってみた。 - 19日に更新してた&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>2022-12-19 00:00:00</published>
  <title>既存のコードにちょっと手を加えて goroutines を使ってみた。</title>
  <type>rich</type>
  <url>https://owiewowe.hatenablog.com/entry/2022/12/19/000000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
