Skip to content

LogoScan 0.2.0

Choose a tag to compare

@DeepRegular DeepRegular released this 05 Oct 12:49
· 12 commits to main since this release

番組の頭でアニメーションしながら出てくるロゴを解析できるようになりました。

動くロゴ

アニメーションの 1 フレームごとにロゴを 1 つずつ求めて、AviSynth の delogomod がそのまま読める .ldp に書きます。

  • 画面では「解析」の欄を 動くロゴ に切り替え、同じ局の録画を何本も開いて、ロゴが動き回る範囲を枠で囲みます。コマンドなら lgdscan anim 録画… --rect X,Y,W,H -o anim.ldp です。
  • 録画はそれぞれ、アニメーションが始まる少し前から、ロゴが画面から消えるまでを切り出してください(10 秒ほど)。30 本ほどあると安定します。
  • アニメーションの始まる位置が録画ごとに違っていても、自分で合わせます。録画ごとに何フレーム目から始まったかを表示します。
  • 動きが止まったあとのロゴも求めて、.lgd に書けます(画面では「止まったロゴを保存」、コマンドでは --still)。
  • 止まったロゴが消えていく様子も録画から測り、delogomod の end と fadeout に入れる値を出します。
  • 結果の欄では、アニメーションを 1 フレームずつ、ロゴを消した絵で確かめられます。保存した .ldp を開いて中を見ることもできます。

サンプルスクリプト

ロゴデータを保存するとき、AviSynth での使い方を同じ名前の .avs に書きます。.ldp には delogomod の EraseLogomod、.lgd には delogo の EraseLOGO の呼び出しを、そのまま書き写せる形で入れます。あとから作るなら lgdscan avs ロゴ.ldp です。

直したこと

  • 読む範囲を指定したとき(画面の「範囲を指定」、コマンドの --start)に、指定より数フレーム早いところから読んでいました。録画の頭に近いところでは、1 秒近く早くなることがありました。指定した時刻のフレームから読むようにしました。

ダウンロード

  • Windows:LogoScan-0.2.0-windows-x86_64.zip を展開して lgdscan-gui.exe を起動してください。FFmpeg 8.1 を ffmpeg フォルダーに同梱しています。
  • Linux:LogoScan-0.2.0-linux-x86_64.tar.gz。Ubuntu 22.04 以降など、glibc 2.35 以上で動きます。FFmpeg はディストリビューションのものを入れてください。

LogoScan can now analyse a logo that comes in with an animation at the start of a programme.

A logo that moves

One logo is found for every frame of the animation and written to an .ldp that AviSynth's delogomod reads as it is.

  • In the window, switch the analysis to 動くロゴ (moving logo), open many recordings from the same channel, and draw the box round the area the logo moves about in. From the command line: lgdscan anim recordings… --rect X,Y,W,H -o anim.ldp.
  • Cut each recording from a little before the animation starts to after the logo has gone from the picture (ten seconds or so). About thirty recordings give a steady result.
  • The animation need not start at the same point in every recording; the shift is found, and the frame each recording starts on is shown.
  • The logo the animation settles into is found too and can be saved as an .lgd (止まったロゴを保存 in the window, --still on the command line).
  • How that logo fades away is measured from the recordings, giving the values for delogomod's end and fadeout.
  • The result can be stepped through a frame at a time, on the picture with the logo removed. A saved .ldp can be opened to look inside.

Sample scripts

Saving a logo file also writes an .avs of the same name showing how to use it in AviSynth: a call of delogomod's EraseLogomod for an .ldp, of delogo's EraseLOGO for an .lgd, ready to copy. lgdscan avs logo.ldp writes one afterwards.

Fixed

  • With a range to read (範囲を指定 in the window, --start on the command line), reading began some frames before the time given, and up to nearly a second before it close to the start of a recording. It now begins at the frame of that time.

Download

  • Windows: unpack LogoScan-0.2.0-windows-x86_64.zip and run lgdscan-gui.exe. FFmpeg 8.1 comes with it, in the ffmpeg folder.
  • Linux: LogoScan-0.2.0-linux-x86_64.tar.gz, for Ubuntu 22.04 or later and the like (glibc 2.35). Install FFmpeg from your distribution.