1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

「色 いろいろ」Advent Calendar 2021

Day 6
この記事誰得? 私しか得しないニッチな技術で記事投稿!

@yamasaki1ma「【きれい】RGB色(7)空間の断面図アニメーションをPython(27)+matplotlib+ffmpegで作成した」をdocker(172)で。

Last updated at Posted at 2021-12-12

【きれい】RGB色空間の断面図アニメーションをPython+matplotlib+ffmpegで作成した
https://qiita.com/yamasaki1ma/items/d3a691d69260b7b96f46

Pythonのバージョンは3.6.6、matplotlibのバージョンは2.2.2。

をdockerで実行しようとした。

<この項は書きかけです。順次追記します。>
This article is not completed. I will add some words in order.

環境

docker:ubuntu
Python 3.10.1 (main, Dec 8 2021, 03:30:49) [GCC 10.2.1 20210110] on linux
pip version 21.3.1
matplotlib-3.5.1

bash
$ docker run -it python /bin/bash

pythonのdockerが起動したら。

bash
# apt update; apt -y upgrade
# python -m pip install --upgrade pip
# pip install matplotlib
# apt install -y ffmpeg vim
# vi yama.py

実行。6分たっても終わらない。CTRL+Cで中断してみた。

bash
# python --version
Python 3.10.1
# python yama.py
^CTraceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/PIL/ImageFile.py", line 504, in _save
    fh = fp.fileno()
AttributeError: '_idat' object has no attribute 'fileno'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "//yama.py", line 104, in <module>
    plt.savefig("RGB_color_space" + '{:0>3}'.format(pos) + ".png", dpi=300)
  File "/usr/local/lib/python3.10/site-packages/matplotlib/pyplot.py", line 958, in savefig
    res = fig.savefig(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/matplotlib/figure.py", line 3019, in savefig
    self.canvas.print_figure(fname, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 2319, in print_figure
    result = print_method(
  File "/usr/local/lib/python3.10/site-packages/matplotlib/backend_bases.py", line 1648, in wrapper
    return func(*args, **kwargs)
  File "/usr/local/lib/python3.10/site-packages/matplotlib/_api/deprecation.py", line 412, in wrapper
    return func(*inner_args, **inner_kwargs)
  File "/usr/local/lib/python3.10/site-packages/matplotlib/backends/backend_agg.py", line 541, in print_png
    mpl.image.imsave(
  File "/usr/local/lib/python3.10/site-packages/matplotlib/image.py", line 1675, in imsave
    image.save(fname, **pil_kwargs)
  File "/usr/local/lib/python3.10/site-packages/PIL/Image.py", line 2240, in save
    save_handler(self, fp, filename)
  File "/usr/local/lib/python3.10/site-packages/PIL/PngImagePlugin.py", line 1348, in _save
    ImageFile._save(im, _idat(fp, chunk), [("zip", (0, 0) + im.size, 0, rawmode)])
  File "/usr/local/lib/python3.10/site-packages/PIL/ImageFile.py", line 518, in _save
    l, s, d = e.encode(bufsize)
KeyboardInterrupt

# ls
RGB_color_space000.png	RGB_color_space031.png	RGB_color_space062.png	RGB_color_space093.png
RGB_color_space001.png	RGB_color_space032.png	RGB_color_space063.png	RGB_color_space094.png
RGB_color_space002.png	RGB_color_space033.png	RGB_color_space064.png	RGB_color_space095.png
RGB_color_space003.png	RGB_color_space034.png	RGB_color_space065.png	RGB_color_space096.png
RGB_color_space004.png	RGB_color_space035.png	RGB_color_space066.png	RGB_color_space097.png
RGB_color_space005.png	RGB_color_space036.png	RGB_color_space067.png	RGB_color_space098.png
RGB_color_space006.png	RGB_color_space037.png	RGB_color_space068.png	RGB_color_space099.png
RGB_color_space007.png	RGB_color_space038.png	RGB_color_space069.png	RGB_color_space100.png
RGB_color_space008.png	RGB_color_space039.png	RGB_color_space070.png	RGB_color_space101.png
RGB_color_space009.png	RGB_color_space040.png	RGB_color_space071.png	RGB_color_space102.png
RGB_color_space010.png	RGB_color_space041.png	RGB_color_space072.png	RGB_color_space103.png
RGB_color_space011.png	RGB_color_space042.png	RGB_color_space073.png	bin
RGB_color_space012.png	RGB_color_space043.png	RGB_color_space074.png	boot
RGB_color_space013.png	RGB_color_space044.png	RGB_color_space075.png	dev
RGB_color_space014.png	RGB_color_space045.png	RGB_color_space076.png	etc
RGB_color_space015.png	RGB_color_space046.png	RGB_color_space077.png	home
RGB_color_space016.png	RGB_color_space047.png	RGB_color_space078.png	lib
RGB_color_space017.png	RGB_color_space048.png	RGB_color_space079.png	lib64
RGB_color_space018.png	RGB_color_space049.png	RGB_color_space080.png	media
RGB_color_space019.png	RGB_color_space050.png	RGB_color_space081.png	mnt
RGB_color_space020.png	RGB_color_space051.png	RGB_color_space082.png	opt
RGB_color_space021.png	RGB_color_space052.png	RGB_color_space083.png	proc
RGB_color_space022.png	RGB_color_space053.png	RGB_color_space084.png	root
RGB_color_space023.png	RGB_color_space054.png	RGB_color_space085.png	run
RGB_color_space024.png	RGB_color_space055.png	RGB_color_space086.png	sbin
RGB_color_space025.png	RGB_color_space056.png	RGB_color_space087.png	srv
RGB_color_space026.png	RGB_color_space057.png	RGB_color_space088.png	sys
RGB_color_space027.png	RGB_color_space058.png	RGB_color_space089.png	tmp
RGB_color_space028.png	RGB_color_space059.png	RGB_color_space090.png	usr
RGB_color_space029.png	RGB_color_space060.png	RGB_color_space091.png	var
RGB_color_space030.png	RGB_color_space061.png	RGB_color_space092.png	yama.py

あ、100個ちょいで6分かかるなら、256個作るのは15分はかかるはず。次は少し待ってみる。

bash
# vi yama.sh
# chmod 0777 yama.sh
# ./yama.sh
Sun Dec 12 06:44:40 UTC 2021
Sun Dec 12 06:59:39 UTC 2021
# ./yama.sh
Sun Dec 12 10:43:26 UTC 2021
Sun Dec 12 10:59:14 UTC 2021

1回目と2回目であまり差はない。
測定用のシェル記述 yama.shは

yama.sh
#!/bin/bash
# https://qiita.com/kaizen_nagoya/items/b1703072d26335725a28
date
ffmpeg -framerate 30 -i RGB_color_space%03d.png -vcodec libx264 -b 2500k -an -pix_fmt yuv420p Rdir.mp4
date

測定用のもう一つのシェル記述

ffmpeg.sh
#!/bin/bash
# https://qiita.com/kaizen_nagoya/items/b1703072d26335725a28
date
python yama.py
date

実行した

# ./ffmpeg.sh
Sun Dec 12 07:57:03 UTC 2021
ffmpeg version 4.3.3-0+deb11u1 Copyright (c) 2000-2021 the FFmpeg developers
  built with gcc 10 (Debian 10.2.1-6)
  configuration: --prefix=/usr --extra-version=0+deb11u1 --toolchain=hardened --libdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --arch=amd64 --enable-gpl --disable-stripping --enable-avresample --disable-filter=resample --enable-gnutls --enable-ladspa --enable-libaom --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libcodec2 --enable-libdav1d --enable-libflite --enable-libfontconfig --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libjack --enable-libmp3lame --enable-libmysofa --enable-libopenjpeg --enable-libopenmpt --enable-libopus --enable-libpulse --enable-librabbitmq --enable-librsvg --enable-librubberband --enable-libshine --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libsrt --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx265 --enable-libxml2 --enable-libxvid --enable-libzmq --enable-libzvbi --enable-lv2 --enable-omx --enable-openal --enable-opencl --enable-opengl --enable-sdl2 --enable-pocketsphinx --enable-libmfx --enable-libdc1394 --enable-libdrm --enable-libiec61883 --enable-chromaprint --enable-frei0r --enable-libx264 --enable-shared
  libavutil      56. 51.100 / 56. 51.100
  libavcodec     58. 91.100 / 58. 91.100
  libavformat    58. 45.100 / 58. 45.100
  libavdevice    58. 10.100 / 58. 10.100
  libavfilter     7. 85.100 /  7. 85.100
  libavresample   4.  0.  0 /  4.  0.  0
  libswscale      5.  7.100 /  5.  7.100
  libswresample   3.  7.100 /  3.  7.100
  libpostproc    55.  7.100 / 55.  7.100
Input #0, image2, from 'RGB_color_space%03d.png':
  Duration: 00:00:08.53, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, rgba(pc), 4800x2700 [SAR 11811:11811 DAR 16:9], 30 fps, 30 tbr, 30 tbn, 30 tbc
Please use -b:a or -b:v, -b is ambiguous
Stream mapping:
  Stream #0:0 -> #0:0 (png (native) -> h264 (libx264))
Press [q] to stop, [?] for help
[libx264 @ 0x5642b69085c0] using SAR=1/1
[libx264 @ 0x5642b69085c0] using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
[libx264 @ 0x5642b69085c0] profile High, level 6.0, 4:2:0, 8-bit
[libx264 @ 0x5642b69085c0] 264 - core 160 r3011 cde9a93 - H.264/MPEG-4 AVC codec - Copyleft 2003-2020 - http://www.videolan.org/x264.html - options: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=3 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=2500 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
Output #0, mp4, to 'Rdir.mp4':
  Metadata:
    encoder         : Lavf58.45.100
    Stream #0:0: Video: h264 (libx264) (avc1 / 0x31637661), yuv420p, 4800x2700 [SAR 1:1 DAR 16:9], q=-1--1, 2500 kb/s, 30 fps, 15360 tbn, 30 tbc
    Metadata:
      encoder         : Lavc58.91.100 libx264
    Side data:
      cpb: bitrate max/min/avg: 0/0/2500000 buffer size: 0 vbv_delay: N/A
frame=   50 fps=2.0 q=48.0 size=       0kB time=00:00:00.00 bitrate=5907.7kbits/s speed=2.54e-0frame=   51 fps=1.9 q=47.0 size=       0kB time=00:00:00.03 bitrate=  11.5kbits/s speed=0.00126frame=   52 fps=1.8 q=44.0 size=       0kB time=00:00:00.06 bitrate=   5.8kbits/s speed=0.00237frame=   53 fps=1.8 q=46.0 size=       0kB time=00:00:00.10 bitrate=   3.8kbits/s speed=0.00338

...

frame=  256 fps=0.5 q=-1.0 Lsize=    2475kB time=00:00:08.43 bitrate=2404.0kbits/s speed=0.0176x    
video:2471kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.140554%
[libx264 @ 0x5642b69085c0] frame I:2     Avg QP:25.56  size: 90552
[libx264 @ 0x5642b69085c0] frame P:170   Avg QP:26.00  size: 11956
[libx264 @ 0x5642b69085c0] frame B:84    Avg QP:25.95  size:  3767
[libx264 @ 0x5642b69085c0] consecutive B-frames: 35.2% 63.3%  0.0%  1.6%
[libx264 @ 0x5642b69085c0] mb I  I16..4: 32.4% 62.8%  4.8%
[libx264 @ 0x5642b69085c0] mb P  I16..4:  6.0%  1.3%  0.0%  P16..4:  9.1%  0.2%  0.2%  0.0%  0.0%    skip:83.3%
[libx264 @ 0x5642b69085c0] mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  6.2%  0.1%  0.0%  direct: 0.0%  skip:93.6%  L0:90.8% L1: 8.9% BI: 0.2%
[libx264 @ 0x5642b69085c0] final ratefactor: 27.90
[libx264 @ 0x5642b69085c0] 8x8 transform intra:23.7% inter:75.9%
[libx264 @ 0x5642b69085c0] coded y,uvDC,uvAC intra: 1.0% 58.2% 0.3% inter: 0.1% 6.2% 0.0%
[libx264 @ 0x5642b69085c0] i16 v,h,dc,p: 89%  2%  4%  5%
[libx264 @ 0x5642b69085c0] i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23%  2% 74%  0%  0%  0%  0%  0%  0%
[libx264 @ 0x5642b69085c0] i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 40% 14% 22%  5%  7%  2%  7%  1%  3%
[libx264 @ 0x5642b69085c0] i8c dc,h,v,p: 54% 29% 14%  2%
[libx264 @ 0x5642b69085c0] Weighted P-Frames: Y:0.0% UV:0.0%
[libx264 @ 0x5642b69085c0] ref P L0: 95.6%  0.5%  3.2%  0.6%
[libx264 @ 0x5642b69085c0] ref B L0: 98.2%  1.8%  0.0%
[libx264 @ 0x5642b69085c0] ref B L1: 99.7%  0.3%
[libx264 @ 0x5642b69085c0] kb/s:2371.87
Sun Dec 12 08:05:03 UTC 2021

1回目
Sun Dec 12 07:57:03 UTC 2021
Sun Dec 12 08:05:03 UTC 2021
2回目
Sun Dec 12 14:08:50 UTC 2021
Sun Dec 12 14:18:21 UTC 2021

1回目8分で処理したらしい。2回目はなぜか9分30秒かかっている。

動画をYoutubeに上げました。

一部意図通りでないようなところがあるかもしれません。
どうしたらいいか、順次調べたい。

docker hubに登録しました。
/home/yama
にファイルは保存してあります。

bash
$ docker commit ce24d790d857  kaizenjapan/pythonffmpeg
$ docker push kaizenjapan/pythonffmpeg
The push refers to repository [docker.io/kaizenjapan/pythonffmpeg]
---

ご自身の機材で動画を見たい場合には、もし、/tmp/yamaが空であれば、

```macOS:bash
$ docker run -v /tmp/yama:/tmp/yama -it  kaizenjapan/pythonffmpeg /bin/bash

と起動していただくと、/home/yamaから/tmp/yamaに必要なファイルを複写すれば、端末のソフトでも閲覧できます。

失敗例

最初の作業は手順がちぐはぐだった。やり直したのが上記。

bash
$ docker run -it python /bin/bash
Unable to find image 'python:latest' locally
latest: Pulling from library/python
5e0b432e8ba9: Pull complete 
a84cfd68b5ce: Pull complete 
e8b8f2315954: Pull complete 
0598fa43a7e7: Pull complete 
83098237b6d3: Pull complete 
b92c73d4de9a: Pull complete 
c387e200448c: Pull complete 
2a8d9e948b85: Pull complete 
b32ac80c02a3: Pull complete 
Digest: sha256:7537c2092cdd042405001f8534b417bb276fa44303b7d1736769941907f2a19e
Status: Downloaded newer image for python:latest

pythonが起動したら。

bash
root@d5898421eab6:/# pip install matplotlib
Collecting matplotlib
  Downloading matplotlib-3.5.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (11.9 MB)
     |████████████████████████████████| 11.9 MB 15.8 MB/s 
Collecting kiwisolver>=1.0.1
  Downloading kiwisolver-1.3.2-cp310-cp310-manylinux_2_12_x86_64.manylinux2010_x86_64.whl (1.6 MB)
     |████████████████████████████████| 1.6 MB 9.6 MB/s 
Collecting packaging>=20.0
  Downloading packaging-21.3-py3-none-any.whl (40 kB)
     |████████████████████████████████| 40 kB 4.7 MB/s 
Collecting pillow>=6.2.0
  Downloading Pillow-8.4.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (3.1 MB)
     |████████████████████████████████| 3.1 MB 13.6 MB/s 
Collecting pyparsing>=2.2.1
  Downloading pyparsing-3.0.6-py3-none-any.whl (97 kB)
     |████████████████████████████████| 97 kB 4.4 MB/s 
Collecting cycler>=0.10
  Downloading cycler-0.11.0-py3-none-any.whl (6.4 kB)
Collecting python-dateutil>=2.7
  Downloading python_dateutil-2.8.2-py2.py3-none-any.whl (247 kB)
     |████████████████████████████████| 247 kB 13.0 MB/s 
Collecting numpy>=1.17
  Downloading numpy-1.21.4-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (15.9 MB)
     |████████████████████████████████| 15.9 MB 14.7 MB/s 
Collecting fonttools>=4.22.0
  Downloading fonttools-4.28.3-py3-none-any.whl (884 kB)
     |████████████████████████████████| 884 kB 4.8 MB/s 
Collecting six>=1.5
  Downloading six-1.16.0-py2.py3-none-any.whl (11 kB)
Installing collected packages: six, pyparsing, python-dateutil, pillow, packaging, numpy, kiwisolver, fonttools, cycler, matplotlib
Successfully installed cycler-0.11.0 fonttools-4.28.3 kiwisolver-1.3.2 matplotlib-3.5.1 numpy-1.21.4 packaging-21.3 pillow-8.4.0 pyparsing-3.0.6 python-dateutil-2.8.2 six-1.16.0
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
WARNING: You are using pip version 21.2.4; however, version 21.3.1 is available.
You should consider upgrading via the '/usr/local/bin/python -m pip install --upgrade pip' command.
root@d5898421eab6:/# python -m pip install --upgrade pip
Requirement already satisfied: pip in /usr/local/lib/python3.10/site-packages (21.2.4)
Collecting pip
  Downloading pip-21.3.1-py3-none-any.whl (1.7 MB)
     |████████████████████████████████| 1.7 MB 3.2 MB/s 
Installing collected packages: pip
  Attempting uninstall: pip
    Found existing installation: pip 21.2.4
    Uninstalling pip-21.2.4:
      Successfully uninstalled pip-21.2.4
Successfully installed pip-21.3.1
WARNING: Running pip as the 'root' user can result in broken permissions and conflicting behaviour with the system package manager. It is recommended to use a virtual environment instead: https://pip.pypa.io/warnings/venv
# apt update; apt -y upgrade
Get:1 http://security.debian.org/debian-security bullseye-security InRelease [44.1 kB]
Get:2 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [39.4 kB]
Get:4 http://security.debian.org/debian-security bullseye-security/main amd64 Packages [99.5 kB]
Get:5 http://deb.debian.org/debian bullseye/main amd64 Packages [8180 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main amd64 Packages [2592 B]
Fetched 8481 kB in 2s (3972 kB/s)                    
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
All packages are up to date.
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
Calculating upgrade... Done
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.

# apt install -y ffmpeg
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
The following additional packages will be installed:
  alsa-topology-conf alsa-ucm-conf dbus i965-va-driver intel-media-va-driver
  libaacs0 libapparmor1 libasound2 libasound2-data libass9 libasyncns0
  libavc1394-0 libavcodec58 libavdevice58 libavfilter7 libavformat58
  libavresample4 libavutil56 libbdplus0 libblas3 libbluray2 libbs2b0 libcaca0
  libcdio-cdda2 libcdio-paranoia2 libcdio19 libchromaprint1 libcodec2-0.9
  libdbus-1-3 libdc1394-25 libdrm-amdgpu1 libdrm-common libdrm-intel1
  libdrm-nouveau2 libdrm-radeon1 libdrm2 libflac8 libflite1 libgbm1
  libgfortran5 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0 libglx-mesa0
  libglx0 libgme0 libgsm1 libiec61883-0 libigdgmm11 libjack-jackd2-0
  liblapack3 liblilv-0-0 libllvm11 libmfx1 libmp3lame0 libmpg123-0 libmysofa1
  libnorm1 libogg0 libopenal-data libopenal1 libopenmpt0 libopus0
  libpciaccess0 libpgm-5.3-0 libpocketsphinx3 libpostproc55 libpulse0
  librabbitmq4 libraw1394-11 librubberband2 libsamplerate0 libsdl2-2.0-0
  libsensors-config libsensors5 libserd-0-0 libshine3 libslang2 libsnappy1v5
  libsndfile1 libsndio7.0 libsodium23 libsord-0-0 libsoxr0 libspeex1
  libsphinxbase3 libsratom-0-0 libsrt1.4-gnutls libssh-gcrypt-4
  libswresample3 libswscale5 libtheora0 libtwolame0 libudfread0 libusb-1.0-0
  libva-drm2 libva-x11-2 libva2 libvdpau-va-gl1 libvdpau1 libvidstab1.1
  libvorbis0a libvorbisenc2 libvorbisfile3 libvpx6 libvulkan1 libwavpack1
  libwayland-client0 libwayland-cursor0 libwayland-egl1 libwayland-server0
  libwrap0 libx11-xcb1 libx264-160 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0
  libxcb-present0 libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcb-xfixes0
  libxcursor1 libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0
  libxrandr2 libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libz3-4 libzmq5
  libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers
  mesa-vulkan-drivers ocl-icd-libopencl1 pocketsphinx-en-us va-driver-all
  vdpau-driver-all xkb-data
Suggested packages:
  default-dbus-session-bus | dbus-session-bus ffmpeg-doc
  i965-va-driver-shaders libasound2-plugins alsa-utils libbluray-bdj jackd2
  libportaudio2 opus-tools pciutils pulseaudio libraw1394-doc xdg-utils
  lm-sensors serdi sndiod sordi speex opencl-icd nvidia-vdpau-driver
  nvidia-tesla-440-vdpau-driver nvidia-tesla-418-vdpau-driver
  nvidia-legacy-390xx-vdpau-driver nvidia-legacy-340xx-vdpau-driver
The following NEW packages will be installed:
  alsa-topology-conf alsa-ucm-conf dbus ffmpeg i965-va-driver
  intel-media-va-driver libaacs0 libapparmor1 libasound2 libasound2-data
  libass9 libasyncns0 libavc1394-0 libavcodec58 libavdevice58 libavfilter7
  libavformat58 libavresample4 libavutil56 libbdplus0 libblas3 libbluray2
  libbs2b0 libcaca0 libcdio-cdda2 libcdio-paranoia2 libcdio19 libchromaprint1
  libcodec2-0.9 libdbus-1-3 libdc1394-25 libdrm-amdgpu1 libdrm-common
  libdrm-intel1 libdrm-nouveau2 libdrm-radeon1 libdrm2 libflac8 libflite1
  libgbm1 libgfortran5 libgl1 libgl1-mesa-dri libglapi-mesa libglvnd0
  libglx-mesa0 libglx0 libgme0 libgsm1 libiec61883-0 libigdgmm11
  libjack-jackd2-0 liblapack3 liblilv-0-0 libllvm11 libmfx1 libmp3lame0
  libmpg123-0 libmysofa1 libnorm1 libogg0 libopenal-data libopenal1
  libopenmpt0 libopus0 libpciaccess0 libpgm-5.3-0 libpocketsphinx3
  libpostproc55 libpulse0 librabbitmq4 libraw1394-11 librubberband2
  libsamplerate0 libsdl2-2.0-0 libsensors-config libsensors5 libserd-0-0
  libshine3 libslang2 libsnappy1v5 libsndfile1 libsndio7.0 libsodium23
  libsord-0-0 libsoxr0 libspeex1 libsphinxbase3 libsratom-0-0
  libsrt1.4-gnutls libssh-gcrypt-4 libswresample3 libswscale5 libtheora0
  libtwolame0 libudfread0 libusb-1.0-0 libva-drm2 libva-x11-2 libva2
  libvdpau-va-gl1 libvdpau1 libvidstab1.1 libvorbis0a libvorbisenc2
  libvorbisfile3 libvpx6 libvulkan1 libwavpack1 libwayland-client0
  libwayland-cursor0 libwayland-egl1 libwayland-server0 libwrap0 libx11-xcb1
  libx264-160 libxcb-dri2-0 libxcb-dri3-0 libxcb-glx0 libxcb-present0
  libxcb-randr0 libxcb-shape0 libxcb-sync1 libxcb-xfixes0 libxcursor1
  libxdamage1 libxfixes3 libxi6 libxinerama1 libxkbcommon0 libxrandr2
  libxshmfence1 libxv1 libxvidcore4 libxxf86vm1 libz3-4 libzmq5
  libzvbi-common libzvbi0 mesa-va-drivers mesa-vdpau-drivers
  mesa-vulkan-drivers ocl-icd-libopencl1 pocketsphinx-en-us va-driver-all
  vdpau-driver-all xkb-data
0 upgraded, 147 newly installed, 0 to remove and 0 not upgraded.
Need to get 124 MB of archives.
After this operation, 386 MB of add

update-alternatives: using /usr/lib/x86_64-linux-gnu/blas/libblas.so.3 to provide /usr/lib/x86_64-linux-gnu/libblas.so.3 (libblas.so.3-x86_64-linux-gnu) in auto mode

update-alternatives: using /usr/lib/x86_64-linux-gnu/lapack/liblapack.so.3 to provide /usr/lib/x86_64-linux-gnu/liblapack.so.3 (liblapack.so.3-x86_64-linux-gnu) in auto mode

関連資料

' @kazuo_reve 私が効果を確認した「小川メソッド」
https://qiita.com/kazuo_reve/items/a3ea1d9171deeccc04da

' @kazuo_reve 新人の方によく展開している有益な情報
https://qiita.com/kazuo_reve/items/d1a3f0ee48e24bba38f1

' @kazuo_reve Vモデルについて勘違いしていたと思ったこと
https://qiita.com/kazuo_reve/items/46fddb094563bd9b2e1e

Engineering Festa 2024前に必読記事一覧

登壇直後版 色使い(JIS安全色) Qiita Engineer Festa 2023〜私しか得しないニッチな技術でLT〜 スライド編 0.15
https://qiita.com/kaizen_nagoya/items/f0d3070d839f4f735b2b

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

逆も真:社会人が最初に確かめるとよいこと。OSEK(69)、Ethernet(59)
https://qiita.com/kaizen_nagoya/items/39afe4a728a31b903ddc

統計の嘘。仮説(127)
https://qiita.com/kaizen_nagoya/items/63b48ecf258a3471c51b

自分の言葉だけで論理展開できるのが天才なら、文章の引用だけで論理展開できるのが秀才だ。仮説(136)
https://qiita.com/kaizen_nagoya/items/97cf07b9e24f860624dd

参考文献駆動執筆(references driven writing)・デンソークリエイト編
https://qiita.com/kaizen_nagoya/items/b27b3f58b8bf265a5cd1

「何を」よりも「誰を」。10年後のために今見習いたい人たち
https://qiita.com/kaizen_nagoya/items/8045978b16eb49d572b2

Qiitaの記事に3段階または5段階で到達するための方法
https://qiita.com/kaizen_nagoya/items/6e9298296852325adc5e

出力(output)と呼ばないで。これは状態(state)です。
https://qiita.com/kaizen_nagoya/items/80b8b5913b2748867840

coding (101) 一覧を作成し始めた。omake:最近のQiitaで表示しない5つの事象
https://qiita.com/kaizen_nagoya/items/20667f09f19598aedb68

あなたは「勘違いまとめ」から、勘違いだと言っていることが勘違いだといくつ見つけられますか。人間の間違い(human error(125))の種類と対策
https://qiita.com/kaizen_nagoya/items/ae391b77fffb098b8fb4

プログラマの「プログラムが書ける」思い込みは強みだ。3つの理由。仮説(168)統計と確率(17) , OSEK(79)
https://qiita.com/kaizen_nagoya/items/bc5dd86e414de402ec29

出力(output)と呼ばないで。これは状態(state)です。
https://qiita.com/kaizen_nagoya/items/80b8b5913b2748867840

これからの情報伝達手段の在り方について考えてみよう。炎上と便乗。
https://qiita.com/kaizen_nagoya/items/71a09077ac195214f0db

ISO/IEC JTC1 SC7 Software and System Engineering
https://qiita.com/kaizen_nagoya/items/48b43f0f6976a078d907

アクセシビリティの知見を発信しよう!(再び)
https://qiita.com/kaizen_nagoya/items/03457eb9ee74105ee618

統計論及確率論輪講(再び)
https://qiita.com/kaizen_nagoya/items/590874ccfca988e85ea3

読者の心をグッと惹き寄せる7つの魔法
https://qiita.com/kaizen_nagoya/items/b1b5e89bd5c0a211d862

@kazuo_reve 新人の方によく展開している有益な情報」確認一覧
https://qiita.com/kaizen_nagoya/items/b9380888d1e5a042646b

ソースコードで議論しよう。日本語で議論するの止めましょう(あるプログラミング技術の議論報告)
https://qiita.com/kaizen_nagoya/items/8b9811c80f3338c6c0b0

脳内コンパイラの3つの危険
https://qiita.com/kaizen_nagoya/items/7025cf2d7bd9f276e382

心理学の本を読むよりはコンパイラ書いた方がよくね。仮説(34)
https://qiita.com/kaizen_nagoya/items/fa715732cc148e48880e

NASAを超えるつもりがあれば読んでください。
https://qiita.com/kaizen_nagoya/items/e81669f9cb53109157f6

データサイエンティストの気づき!「勉強して仕事に役立てない人。大嫌い!!」『それ自分かも?』ってなった!!!
https://qiita.com/kaizen_nagoya/items/d85830d58d8dd7f71d07

「ぼくの好きな先生」「人がやらないことをやれ」プログラマになるまで。仮説(37) 
https://qiita.com/kaizen_nagoya/items/53e4bded9fe5f724b3c4

なぜ経済学徒を辞め、計算機屋になったか(経済学部入学前・入学後・卒業後対応) 転職(1)
https://qiita.com/kaizen_nagoya/items/06335a1d24c099733f64

プログラミング言語教育のXYZ。 仮説(52)
https://qiita.com/kaizen_nagoya/items/1950c5810fb5c0b07be4

【24卒向け】9ヶ月後に年収1000万円を目指す。二つの関門と三つの道。
https://qiita.com/kaizen_nagoya/items/fb5bff147193f726ad25

「【25卒向け】Qiita Career Meetup for STUDENT」予習の勧め
https://qiita.com/kaizen_nagoya/items/00eadb8a6e738cb6336f

大学入試不合格でも筆記試験のない大学に入って卒業できる。卒業しなくても博士になれる。
https://qiita.com/kaizen_nagoya/items/74adec99f396d64b5fd5

全世界の不登校の子供たち「博士論文」を書こう。世界子供博士論文遠隔実践中心 安全(99)
https://qiita.com/kaizen_nagoya/items/912d69032c012bcc84f2

小川メソッド 覚え(書きかけ)
https://qiita.com/kaizen_nagoya/items/3593d72eca551742df68

DoCAP(ドゥーキャップ)って何ですか?
https://qiita.com/kaizen_nagoya/items/47e0e6509ab792c43327

views 20,000越え自己記事一覧
https://qiita.com/kaizen_nagoya/items/58e8bd6450957cdecd81

Views1万越え、もうすぐ1万記事一覧 最近いいねをいただいた213記事
https://qiita.com/kaizen_nagoya/items/d2b805717a92459ce853

自己記事一覧

Qiitaで逆リンクを表示しなくなったような気がする。時々、スマフォで表示するとあらわっることがあり、完全に削除したのではなさそう。

4月以降、せっせとリンクリストを作り、統計を取って確率を説明しようとしている。
2025年2月末を目標にしている。

物理記事 上位100
https://qiita.com/kaizen_nagoya/items/66e90fe31fbe3facc6ff

量子(0) 計算機, 量子力学
https://qiita.com/kaizen_nagoya/items/1cd954cb0eed92879fd4

数学関連記事100
https://qiita.com/kaizen_nagoya/items/d8dadb49a6397e854c6d

統計(0)一覧
https://qiita.com/kaizen_nagoya/items/80d3b221807e53e88aba

図(0) state, sequence and timing. UML and お絵描き
https://qiita.com/kaizen_nagoya/items/60440a882146aeee9e8f

品質一覧
https://qiita.com/kaizen_nagoya/items/2b99b8e9db6d94b2e971

言語・文学記事 100
https://qiita.com/kaizen_nagoya/items/42d58d5ef7fb53c407d6

医工連携関連記事一覧
https://qiita.com/kaizen_nagoya/items/6ab51c12ba51bc260a82

自動車 記事 100
https://qiita.com/kaizen_nagoya/items/f7f0b9ab36569ad409c5

通信記事100
https://qiita.com/kaizen_nagoya/items/1d67de5e1cd207b05ef7

日本語(0)一欄
https://qiita.com/kaizen_nagoya/items/7498dcfa3a9ba7fd1e68

英語(0) 一覧
https://qiita.com/kaizen_nagoya/items/680e3f5cbf9430486c7d

転職(0)一覧
https://qiita.com/kaizen_nagoya/items/f77520d378d33451d6fe

仮説(0)一覧(目標100現在40)
https://qiita.com/kaizen_nagoya/items/f000506fe1837b3590df

音楽 一覧(0)
https://qiita.com/kaizen_nagoya/items/b6e5f42bbfe3bbe40f5d

@kazuo_reve 新人の方によく展開している有益な情報」確認一覧
https://qiita.com/kaizen_nagoya/items/b9380888d1e5a042646b

Qiita(0)Qiita関連記事一覧(自分)
https://qiita.com/kaizen_nagoya/items/58db5fbf036b28e9dfa6

鉄道(0)鉄道のシステム考察はてっちゃんがてつだってくれる
https://qiita.com/kaizen_nagoya/items/26bda595f341a27901a0

安全(0)安全工学シンポジウムに向けて: 21
https://qiita.com/kaizen_nagoya/items/c5d78f3def8195cb2409

一覧の一覧( The directory of directories of mine.) Qiita(100)
https://qiita.com/kaizen_nagoya/items/7eb0e006543886138f39

Ethernet 記事一覧 Ethernet(0)
https://qiita.com/kaizen_nagoya/items/88d35e99f74aefc98794

Wireshark 一覧 wireshark(0)、Ethernet(48)
https://qiita.com/kaizen_nagoya/items/fbed841f61875c4731d0

線網(Wi-Fi)空中線(antenna)(0) 記事一覧(118/300目標)
https://qiita.com/kaizen_nagoya/items/5e5464ac2b24bd4cd001

OSEK OS設計の基礎 OSEK(100)
https://qiita.com/kaizen_nagoya/items/7528a22a14242d2d58a3

Error一覧 error(0)
https://qiita.com/kaizen_nagoya/items/48b6cbc8d68eae2c42b8

++ Support(0) 
https://qiita.com/kaizen_nagoya/items/8720d26f762369a80514

Coding(0) Rules, C, Secure, MISRA and so on
https://qiita.com/kaizen_nagoya/items/400725644a8a0e90fbb0

coding (101) 一覧を作成し始めた。omake:最近のQiitaで表示しない5つの事象
https://qiita.com/kaizen_nagoya/items/20667f09f19598aedb68

プログラマによる、プログラマのための、統計(0)と確率のプログラミングとその後
https://qiita.com/kaizen_nagoya/items/6e9897eb641268766909

なぜdockerで機械学習するか 書籍・ソース一覧作成中 (目標100)
https://qiita.com/kaizen_nagoya/items/ddd12477544bf5ba85e2

言語処理100本ノックをdockerで。python覚えるのに最適。:10+12
https://qiita.com/kaizen_nagoya/items/7e7eb7c543e0c18438c4

プログラムちょい替え(0)一覧:4件
https://qiita.com/kaizen_nagoya/items/296d87ef4bfd516bc394

Python(0)記事をまとめたい。
https://qiita.com/kaizen_nagoya/items/088c57d70ab6904ebb53

官公庁・学校・公的団体(NPOを含む)システムの課題、官(0)
https://qiita.com/kaizen_nagoya/items/04ee6eaf7ec13d3af4c3

「はじめての」シリーズ  ベクタージャパン 
https://qiita.com/kaizen_nagoya/items/2e41634f6e21a3cf74eb

AUTOSAR(0)Qiita記事一覧, OSEK(75)
https://qiita.com/kaizen_nagoya/items/89c07961b59a8754c869

プログラマが知っていると良い「公序良俗」
https://qiita.com/kaizen_nagoya/items/9fe7c0dfac2fbd77a945

LaTeX(0) 一覧 
https://qiita.com/kaizen_nagoya/items/e3f7dafacab58c499792

自動制御、制御工学一覧(0)
https://qiita.com/kaizen_nagoya/items/7767a4e19a6ae1479e6b

Rust(0) 一覧 
https://qiita.com/kaizen_nagoya/items/5e8bb080ba6ca0281927

100以上いいねをいただいた記事16選
https://qiita.com/kaizen_nagoya/items/f8d958d9084ffbd15d2a

小川清最終講義、最終講義(再)計画, Ethernet(100) 英語(100) 安全(100)
https://qiita.com/kaizen_nagoya/items/e2df642e3951e35e6a53

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
This article is an individual impression based on my individual experience. It has nothing to do with the organization or business to which I currently belong.

文書履歴(document history)

ver. 0.01 初稿  20240808

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

<この記事は個人の過去の経験に基づく個人の感想です。現在所属する組織、業務とは関係がありません。>
This article is an individual impression based on my individual experience. It has nothing to do with the organization or business to which I currently belong.

文書履歴

ver. 0.01 初稿 20211212 昼
ver. 0.02 動画をYoutubeに 20211212 夜

最後までおよみいただきありがとうございました。

いいね 💚、フォローをお願いします。

Thank you very much for reading to the last sentence.

Please press the like icon 💚 and follow me for your happy life.

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?