コピペ: Benchmarking - videohash (38M file and ~10 minutes long took 34.9 s to hash)

形式
Shell
投稿日時
2021-10-15 17:23
公開期間
無期限
  1. akamhy at device in ~
  2. $ cd ~/Videos/
  3. akamhy at device in ~/Videos
  4. $ yt-dlp https://www.youtube.com/watch?v=ZNYmK19-d0U
  5. [youtube] ZNYmK19-d0U: Downloading webpage
  6. [youtube] ZNYmK19-d0U: Downloading android player API JSON
  7. [info] ZNYmK19-d0U: Downloading 1 format(s): 247+251
  8. [download] Destination: President Obama on Death of Osama bin Laden [ZNYmK19-d0U].f247.webm
  9. [download] 100% of 29.23MiB in 00:05
  10. [download] Destination: President Obama on Death of Osama bin Laden [ZNYmK19-d0U].f251.webm
  11. [download] 100% of 8.28MiB in 00:01
  12. [Merger] Merging formats into "President Obama on Death of Osama bin Laden [ZNYmK19-d0U].webm"
  13. Deleting original file President Obama on Death of Osama bin Laden [ZNYmK19-d0U].f247.webm (pass -k to keep)
  14. Deleting original file President Obama on Death of Osama bin Laden [ZNYmK19-d0U].f251.webm (pass -k to keep)
  15. akamhy at device in ~/Videos
  16. $ l
  17. 'President Obama on Death of Osama bin Laden [ZNYmK19-d0U].webm'
  18. akamhy at device in ~/Videos
  19. $ npvenv
  20. akamhy at device in ~/Videos
  21. $ apvenv
  22. (venv)
  23. akamhy at device in ~/Videos
  24. $ pip install videohash
  25. Collecting videohash
  26. Using cached videohash-2.0.2-py3-none-any.whl (16 kB)
  27. Collecting yt-dlp
  28. Using cached yt_dlp-2021.10.10-py2.py3-none-any.whl (2.2 MB)
  29. Collecting ImageHash
  30. Using cached ImageHash-4.2.1.tar.gz (812 kB)
  31. Collecting Pillow
  32. Using cached Pillow-8.3.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.0 MB)
  33. Collecting youtube-dl
  34. Using cached youtube_dl-2021.6.6-py2.py3-none-any.whl (1.9 MB)
  35. Collecting mutagen
  36. Using cached mutagen-1.45.1-py3-none-any.whl (218 kB)
  37. Collecting websockets
  38. Using cached websockets-10.0-cp39-cp39-manylinux2010_x86_64.whl (107 kB)
  39. Collecting pycryptodomex
  40. Using cached pycryptodomex-3.11.0-cp35-abi3-manylinux2010_x86_64.whl (1.9 MB)
  41. Collecting six
  42. Using cached six-1.16.0-py2.py3-none-any.whl (11 kB)
  43. Collecting numpy
  44. Using cached numpy-1.21.2-cp39-cp39-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (15.8 MB)
  45. Collecting scipy
  46. Using cached scipy-1.7.1-cp39-cp39-manylinux_2_5_x86_64.manylinux1_x86_64.whl (28.5 MB)
  47. Collecting PyWavelets
  48. Using cached PyWavelets-1.1.1-cp39-cp39-manylinux1_x86_64.whl (4.3 MB)
  49. Using legacy 'setup.py install' for ImageHash, since package 'wheel' is not installed.
  50. Installing collected packages: mutagen, websockets, pycryptodomex, yt-dlp, six, numpy, scipy, Pillow, PyWavelets, ImageHash, youtube-dl, videohash
  51. Running setup.py install for ImageHash ... done
  52. Successfully installed ImageHash-4.2.1 Pillow-8.3.2 PyWavelets-1.1.1 mutagen-1.45.1 numpy-1.21.2 pycryptodomex-3.11.0 scipy-1.7.1 six-1.16.0 videohash-2.0.2 websockets-10.0 youtube-dl-2021.6.6 yt-dlp-2021.10.10
  53. WARNING: You are using pip version 20.2.3; however, version 21.3 is available.
  54. You should consider upgrading via the '/home/akamhy/Videos/venv/bin/python3 -m pip install --upgrade pip' command.
  55. (venv)
  56. akamhy at device in ~/Videos
  57. $ ipython
  58. /home/akamhy/.pyenv/versions/3.9.1/lib/python3.9/site-packages/IPython/core/interactiveshell.py:937: UserWarning: Attempting to work in a virtualenv. If you encounter problems, please install IPython inside the virtualenv.
  59. warn("Attempting to work in a virtualenv. If you encounter problems, please "
  60. Python 3.9.1 (default, Jan 16 2021, 22:31:00)
  61. Type 'copyright', 'credits' or 'license' for more information
  62. IPython 7.22.0 -- An enhanced Interactive Python. Type '?' for help.
  63. In [1]: from videohash import VideoHash
  64. In [2]: %timeit VideoHash(path="/home/akamhy/Videos/President Obama on Death of
  65. ...: Osama bin Laden [ZNYmK19-d0U].webm")
  66. 34.9 s ± 9.11 s per loop (mean ± std. dev. of 7 runs, 1 loop each)
  67. In [3]:
  68. Do you really want to exit ([y]/n)? y
  69. (venv)
  70. akamhy at device in ~/Videos
  71. $ ls -lah
  72. total 38M
  73. drwxr-xr-x 3 akamhy akamhy 12K Oct 15 13:06 .
  74. drwxr-xr-x 64 akamhy akamhy 4.0K Oct 15 12:59 ..
  75. -rw-rw-r-- 1 akamhy akamhy 38M Sep 8 2018 'President Obama on Death of Osama bin Laden [ZNYmK19-d0U].webm'
  76. drwxrwxr-x 8 akamhy akamhy 4.0K Oct 15 13:06 venv
  77. (venv)
  78. akamhy at device in ~/Videos
  79. $ md5sum President\ Obama\ on\ Death\ of\ Osama\ bin\ Laden\ \[ZNYmK19-d0U\].webm
  80. 039389f7d6399b826bd65b986c9bfc83 President Obama on Death of Osama bin Laden [ZNYmK19-d0U].webm
  81. (venv)
  82. akamhy at device in ~/Videos
  83. $ sha512sum President\ Obama\ on\ Death\ of\ Osama\ bin\ Laden\ \[ZNYmK19-d0U\].webm
  84. 2133a543f0d1c745025b04a6706156c46797640fd5cccc377e670da5d8a28cc02e798a3a7316119298869f404f2f4dd3e3b1a68ed6f04a515d9f58030ebfa4da President Obama on Death of Osama bin Laden [ZNYmK19-d0U].webm
  85. (venv)
  86. akamhy at device in ~/Videos
  87. $
ダウンロード 印刷用表示

このコピペの URL

JavaScript での埋め込み

iframe での埋め込み

元のテキスト