2023,江端さんの忘備録

大麻が、また世間を騒がしているようです。

Marijuana seems to be making the rounds again.

私は、大麻を、鎮痛効果としての薬用としての使用に賛成ですが、日常的嗜好品としての使用は「やめておいた方がいい」と思います。

I favor using marijuana as a pain reliever for medicinal purposes, but I think it "should not" be used as an everyday luxury item.

大麻は、感情の反動(幻覚作用を含む)が怖いんですよ ―― 結構、簡単に自殺スイッチが入ってしまうらしいので。

I'm afraid of the emotional repercussions (including hallucinogenic effects) of marijuana -- I hear it can turn on the suicide switch pretty quickly.

とはいえ、ぶっちゃけ、私は、大麻については、調べていないので、コメントできる立場にありません。

However, I cannot comment on marijuana as I have not researched it.

-----

という訳で、本日は、世間とは違った方向で、論じてみたいと思います。

Therefore, today, I would like to discuss it differently from the public.

―― 大麻を試したいなら、なぜ、栽培、乾燥、製粉までの全行程を、DIYで実現しようとしないのか?

"If you want to try cannabis, why not try to achieve the whole process of growing, drying, and milling as a DIY project?"

もちろん、我が国においては、大麻は栽培だけでも犯罪です。

Of course, in our country, marijuana cultivation alone is a crime.

しかし、私が知る限り、100%のDIYを実施した人が、逮捕されたというニュースを聞いたことがありません。

However, as far as I know, I have never heard of anyone being arrested for carrying out 100% DIY.

大抵は、作った大麻を"売り"に出して、パクられている。

Most of the time, they "sell" the marijuana they have made and get busted.

なんで、インターネットとかの流通ルートに乗せようとするかなぁ?

Why would they try putting it on the Internet or another distribution channel?

ネットなんか出したら、バレるに決まっているじゃんか。

Of course, the police would find out if you put it on the Internet, right?

スケベ心を出すから、逮捕されるんですよ。

You will be arrested because you have a passionate heart.

やるなら、一人で、黙って、モクモクしていればいいんですよ。

If you're going to do it, just be alone, shut up, and smoke it.

-----

ただ、自家栽培の大麻で逮捕された人も、(少ないですが)いるようです。

However, some (but few) people have been arrested for home-grown marijuana.

自宅の庭に、ビニールハウスを設置して、不信に思われた近所の人に通報されて、パクられる、と。

They set up a plastic greenhouse in their yard, and the neighbors, who were disbelieving, reported them to the police, and they got arrested.

そんな怪しげなビニールハウスを設置すれば、不信に思われるのは当然です。

If they install such a dubious plastic greenhouse in their yard, it is only natural that people will distrust them.

栽培するなら、自宅の部屋を一つ潰して、屋内設備を設営するくらいの覚悟が必要です。

If you want to grow them, you must be prepared to destroy one room in your home and set up indoor facilities.

室内栽培となれば、温度管理、土壌管理、給水管理など、結構なコストがかかるとは思いますが。

I know indoor growing would be pretty costly regarding temperature control, soil management, water supply management, etc.

-----

我が国では、一部の人から『大麻より健康被害が大きい』といわれている、"たばこ"が合法です。

In Japan, "cigarettes," which are said by some to be "more harmful to health than marijuana," are legal.

一日100本吸っても、1000本吸っても、合法です。

Whether you smoke 100 or 1000 cigarettes a day, it is legal.

ところで、昨日、たばこの値段を知って、びっくりしました ―― もう、たばこは、すでに贅沢品の範疇に入っているのしょう。

By the way, I was surprised yesterday to learn the price of cigarettes -- I guess cigarettes are already in the luxury category.

大麻の製造コスト、たばこの値段、他人への健康加害、世間の喫煙者への憎悪 ――

The cost of producing marijuana, the price of cigarettes, the health hazards to others, the public's hatred of smokers--

これらを総合的に勘案して、私(江端)に迷惑をかけない範囲なら、何をやってもらっても、私は構いません。

Considering all of the above, I am okay with whatever you do as long as it does not cause me (Ebata) any trouble.

あなたの「ウンコの匂い」を嗅がされる人の「苦痛」に想いを馳せましょう

2023,江端さんの技術メモ

https://github.com/BtbN/FFmpeg-Builds/releases から、

をダウンロードして、解凍して、binにパスを通して、

カメラ繋げて、以下のコマンドを投入する。

C:\Users\ebata>ffplay -i rtsp://192.168.0.2/ONVIF/Streaming/channels/3

と、こんな感じで、動画が出てくる。

C:\Users\ebata>ffprobe -v error -show_entries stream=codec_type,width,height -i rtsp://192.168.0.2/ONVIF/Streaming/channels/3
[STREAM]
codec_type=video
width=640
height=360
[/STREAM]
[STREAM]
codec_type=audio
[/STREAM]
[STREAM]
codec_type=data
[/STREAM]

C:\Users\ebata>ffprobe -v error -show_entries stream=codec_type,width,height -i rtsp://192.168.0.2/ONVIF/Streaming/channels/0
[h264 @ 00000168d79bc9c0] left block unavailable for requested intra4x4 mode -1
[h264 @ 00000168d79bc9c0] error while decoding MB 0 27, bytestream 59839
[STREAM]
codec_type=video
width=1920
height=1080
[/STREAM]
[STREAM]
codec_type=audio
[/STREAM]
[STREAM]
codec_type=data
[/STREAM]

 

C:\Users\ebata>ffprobe -v error -show_format -show_streams -i rtsp://192.168.0.2/ONVIF/Streaming/channels/3
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=640
height=360
coded_width=640
coded_height=360
closed_captions=0
film_grain=0
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=31
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=false
nal_length_size=0
id=N/A
r_frame_rate=5/1
avg_frame_rate=5/1
time_base=1/90000
start_pts=17635
start_time=0.195944
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=58
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[STREAM]
index=1
codec_name=pcm_mulaw
codec_long_name=PCM mu-law / G.711 mu-law
profile=unknown
codec_type=audio
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_fmt=s16
sample_rate=8000
channels=1
channel_layout=unknown
bits_per_sample=8
initial_padding=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/8000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=64000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[STREAM]
index=2
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[FORMAT]
filename=rtsp://192.168.0.2/ONVIF/Streaming/channels/3
nb_streams=3
nb_programs=0
format_name=rtsp
format_long_name=RTSP input
start_time=0.000000
duration=N/A
size=N/A
bit_rate=N/A
probe_score=100
TAG:title=RTSP/RTP stream from HDIPCam
[/FORMAT]

C:\Users\ebata>ffprobe -v error -show_format -show_streams -i rtsp://192.168.0.2/ONVIF/Streaming/channels/0
[STREAM]
index=0
codec_name=h264
codec_long_name=H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10
profile=High
codec_type=video
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
width=1920
height=1080
coded_width=1920
coded_height=1080
closed_captions=0
film_grain=0
has_b_frames=0
sample_aspect_ratio=1:1
display_aspect_ratio=16:9
pix_fmt=yuv420p
level=40
color_range=tv
color_space=bt709
color_transfer=bt709
color_primaries=bt709
chroma_location=left
field_order=progressive
refs=1
is_avc=false
nal_length_size=0
id=N/A
r_frame_rate=30/1
avg_frame_rate=30/1
time_base=1/90000
start_pts=4354
start_time=0.048378
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=8
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
extradata_size=61
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[STREAM]
index=1
codec_name=pcm_mulaw
codec_long_name=PCM mu-law / G.711 mu-law
profile=unknown
codec_type=audio
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
sample_fmt=s16
sample_rate=8000
channels=1
channel_layout=unknown
bits_per_sample=8
initial_padding=0
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/8000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=64000
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[STREAM]
index=2
codec_name=unknown
codec_long_name=unknown
profile=unknown
codec_type=data
codec_tag_string=[0][0][0][0]
codec_tag=0x0000
id=N/A
r_frame_rate=0/0
avg_frame_rate=0/0
time_base=1/90000
start_pts=0
start_time=0.000000
duration_ts=N/A
duration=N/A
bit_rate=N/A
max_bit_rate=N/A
bits_per_raw_sample=N/A
nb_frames=N/A
nb_read_frames=N/A
nb_read_packets=N/A
DISPOSITION:default=0
DISPOSITION:dub=0
DISPOSITION:original=0
DISPOSITION:comment=0
DISPOSITION:lyrics=0
DISPOSITION:karaoke=0
DISPOSITION:forced=0
DISPOSITION:hearing_impaired=0
DISPOSITION:visual_impaired=0
DISPOSITION:clean_effects=0
DISPOSITION:attached_pic=0
DISPOSITION:timed_thumbnails=0
DISPOSITION:captions=0
DISPOSITION:descriptions=0
DISPOSITION:metadata=0
DISPOSITION:dependent=0
DISPOSITION:still_image=0
[/STREAM]
[FORMAT]
filename=rtsp://192.168.0.2/ONVIF/Streaming/channels/0
nb_streams=3
nb_programs=0
format_name=rtsp
format_long_name=RTSP input
start_time=0.000000
duration=N/A
size=N/A
bit_rate=N/A
probe_score=100
TAG:title=RTSP/RTP stream from HDIPCam
[/FORMAT]

ffplayは、これでかなり描画が早くなる。(VLCと同程度になった→ ということは、VLCもフレーム落しをしているんだな、多分)

ffplay -fflags nobuffer -flags low_delay -framedrop -i srt://192.168.1.15:12345

■ffmpegでSRTストリームを10秒間録画する方法

ffmpeg -i "srt://192.168.1.15:12345" -t 10 output.mp4

#3 30/1 max=30 3543KB
#3 10/1 max=10 4529KB
#3 5/1 max=5 


2023,江端さんの忘備録

ふと思い出したのですが、私の(亡き)母は、『鶏が締められるのを見てから、鶏肉が嫌いになった』と言っていました。

I suddenly remembered that my (late) mother used to say, 'I hated chicken after I saw it being slaughtered.

魚を締めるところは、結構テレビでも放映されていますが、鶏が締められるところは、あまり見たことがありません。

The process of slaughtering fish has been televised quite a bit, but I have not seen a chicken being slaughtered often.

豚とか牛についての屠殺もそうです。

The same is valid for slaughtering pigs and cows.

-----

食用とさせて頂いている動物の命を頂くプロセスを自分で体験することは、大切ではないか、と思うのです。

I think it is essential to experience the process of taking an animal's life for food.

特に、我が家においては、鶏肉の消費量は、他の食材と比べて多いです。

Especially in our family, the consumption of chicken is higher than that of other foods.

さすがに、『鶏が締め方』を夏休みの自由研究にしては、とは言いませんが(高い確率で、母と同じトラウマを持つことになる)、私のようなシニアであれば、大丈夫でしょう。

As I said, I'm not suggesting that "How to Slaughter a Chicken" should be a free summer study (there is a high probability you will have the same trauma as my mother), but if you are a senior like me, you should be fine.

多分。

Maybe.

-----

体験が難しいのであれば、先ずは見学をしてみたいなぁ、と思い、ググってみたら、簡単に出てきました。

If it is challenging to experience, I would like to visit first, so I googled it and found it easy to find.

これを「遠足」でやれ、というのは無理だとしても、「学会のツアーイベント」でやるというのは良いと思うのですが、いかがでしょうか?

Even if it's impossible to ask people to do this on a "field trip," I think it's a good idea to do it on a "conference tour event," don't you?

応募者少数で、企画倒れになるかもしれませんが。

You may have a small number of applicants, and the project may fall through.

「自由研究」の意義

2011,江端さんの忘備録

中学1年と小学3年の二人の娘達の自由研究に、今年初めて、私は、

「一切、手を出さない」

という方針を、貫き通しました。

-----

理由は2つあります。

(1)研究のプロ(私のこと)の手を借りることなく、自力でどれくらいの研究を成し遂げうるかを、客観的に確認する為。

私は、これまでの夏の全てで、ずっと手を貸してきたので、彼女らの実力(研究力)を知らないのです。

(2)このまま手を貸し続けたら、恐しい未来が待っているから。

最近、大学生の親が、教授に対してクレームをしているそうです。

なんでも、「課題の内容が難しいので、もっと簡単にしてくれ」というクレームだそうです。

-----

何のことか分からないでしょう?
私も分からなかったんです。

娘や息子の大学のレポートを親が代筆していて、その親が、課題の内容が難しくて、レポートが作成できない、と文句を言っているのだそうです。

大学に合格する程度の学力はあっても、自分でレポートを構成する力がない。
で、親に泣きつく、という訳です。

これが冗談ではなく、そして、レアケースでもないらしい、ということに、私は、心底恐怖を覚えました。

このまま、私が自由研究に手を差し延べれば、間違いなく、「レポートすら構成できない人間を、二人作ってしまう」

と。

-----

レポートとは、
「起承転結の創作小説」であり、
「客観性を条件とした自己主張」であり、
「他人を説得する武器」です。

レポートも書けないような人間が、どの世界であれ、必要とされる訳がない。

少くとも私は、そんな奴、部下にはいらない。

-----

そのような訳で、今回は、私は全てオブザーバとなっていました。

求められれば、アドバイスはしましたが、レポートの構成を教えたり、実験の結論を誘導することは、止めました。

事実、次女の実験結果は、「エネルギー保存法則」に反しており、誤認に基づく結論となってしまったのですが、私は、敢えてそれを「看過」することにしました。

研究の結果よりは、今は、レポートを最後まで書き切る力を伸ばすことの方が、はるかに重要だ、と考えたからです。

-----

でも、嫁さんの顔色が悪い。
凄い憂鬱そうです。

研究の考察が、

「いろいろなことが分った」
「これからも、もっと色々な研究をやっていきたい」

では、無理もありません。

-----

嫁さん;『これって、考察と呼ぶものなの』
私:『うん、感想にすらなっていない』

嫁さんは、『書き直しさせる』と言っていました。

2023,江端さんの技術メモ

今度のターゲットはVN-H68(カメラ)です。

で、取り敢えず、RTSPを取得できるかの確認作業に入りました。

VN-H68の初期設定IPアドレスは、192.168.0.2/24 になっており、私の自宅ネットワークのIPアドレスと見事にバッティングしていましたので、カメラのMACアドレスを使って、ルータに固定DHCPアドレスとして設定しなおして、ルータを再起動させました(ルータの再起動は、いつでもドキドキします)。

問題は、RTSPで転送したデータをどうやって表示するかですが、いつも通りVLCを使おうと思ったのですが、以下が失敗例です。

rtsp://192.168.0.2

rtsp://192.168.0.2:554

rtsp://192.168.0.2:544/XXXXX(適当なファイル名)

で、結局、製品の箱に入っていたCDファイルの中の
E:\VN-H68_VN-U78\VN-H68_VN-U78_ネットワークカメラAPIガイドV1.02.pdf

の中にあった以下の記載から、

VLCに以下の設定をしてみました。

rtsp://192.168.0.2/ONVIF/Streaming/channels/0

を設定しました。

なんか、レンズの配置を間違えたのか、逆さに写っているようですが、先ずは成功です。

次は、VLCを使わずに、Gstreamerを使って、直接RTSPを受信しました。
(結構すったもんだしましたが)結果として、以下のコマンドでラズパイで表示させることができました。

$ gst-launch-1.0 rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0 ! rtph264depay ! h264parse ! avdec_h264 ! queue ! autovideosink

  1. gst-launch-1.0: GStreamerのコマンドラインユーティリティの実行ファイル名です。1.0はGStreamerのバージョン番号で、バージョン1.0を使用していることを示します。
  2. rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0: RTSPソースを指定しています。locationパラメータには、ストリーミング元のURL(この場合はRTSPストリームのURL)を指定します。rtsp://192.168.0.2/ONVIF/Streaming/channels/0は、カメラなどのデバイスが提供するRTSPストリームのアドレスを表します。
  3. ! rtph264depay: RTP(Real-time Transport Protocol)パケットからH.264ビデオデータを取り出すデパケット化(デマルチプレクサ)エレメントです。
  4. ! h264parse: H.264ビデオストリームを解析して必要なメタデータを抽出するエレメントです。
  5. ! avdec_h264: H.264形式のビデオをデコードするためのエレメントです。avdec_h264は、GStreamer内部で使用されるデコーダの一つです。
  6. ! queue: デコードされたビデオデータを一時的にキューイング(バッファリング)するエレメントです。これにより、デコードと表示の間でのタイミングのずれを最小限に抑えることができます。
  7. ! autovideosink: 自動的に適切なビデオ出力を選択し、デコードされたビデオを表示するエレメントです。環境によっては、X Window System上で動作するxvimagesinkなどのビデオ出力プラグインが選択されることがあります。

ちなみに

cam@cam-desktop:~$ gst-launch-1.0 rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0 ! rtph264depay ! "video/x-h264, framerate=1/1" ! h264parse ! avdec_h264 !  autovideosink
cam@cam-desktop:~$ gst-launch-1.0 rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0 ! rtph264depay ! "video/x-h264, width=1920, height=1080, framerate=1/1" ! h264parse ! avdec_h264 !  autovideosink
gst-launch-1.0 rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0 ! rtph264depay ! "video/x-h264, width=640, height=480, framerate=30/1" ! h264parse ! avdec_h264 !  autovideosink
これらは、表示側の問題であって、送信元のカメラのレートコントロールはできないみたい。
送信元カメラの送信制御は、

VN-H68(カメラ)の設定方法

のほうでやる必要がある。

 $ gst-launch-1.0 rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0 ! rtph264depay ! h264parse ! avdec_h264 ! videoconvert ! x264enc tune=zerolatency key-int-max=30 ! mpegtsmux ! srtserversink uri="srt://:12345" latency=500

  • gst-launch-1.0: GStreamerのコマンドラインユーティリティの実行ファイル名です。
  • rtspsrc location=rtsp://192.168.0.2/ONVIF/Streaming/channels/0: RTSPソースを指定しています。locationパラメータには、ストリーミング元のURL(この場合はRTSPストリームのURL)を指定します。rtsp://192.168.0.2/ONVIF/Streaming/channels/0は、カメラなどのデバイスが提供するRTSPストリームのアドレスを表します。
  • ! rtph264depay: RTP(Real-time Transport Protocol)パケットからH.264ビデオデータを取り出すデパケット化(デマルチプレクサ)エレメントです。
  • ! h264parse: H.264ビデオストリームを解析して必要なメタデータを抽出するエレメントです。
  • ! avdec_h264: H.264形式のビデオをデコードするためのエレメントです。avdec_h264は、GStreamer内部で使用されるデコーダの一つです。
  • ! videoconvert: ビデオのピクセルフォーマットを変換するためのエレメントです。必要な場合にビデオストリームのフォーマットを変換します。
  • ! x264enc tune=zerolatency key-int-max=30: H.264形式のビデオをエンコードするエレメントです。x264encは、x264エンコーダを使用してビデオをエンコードします。tune=zerolatencyは、低遅延を設定してストリーミングに適したエンコード設定を指定しています。key-int-max=30は、キーフレームの最大間隔を設定して、頻繁にキーフレームを生成し、エラーの影響を最小限に抑えます。
  • ! mpegtsmux: エンコードされたビデオをMPEG-TSコンテナにパケット化するエレメントです。
  • ! srtserversink uri="srt://:12345" latency=500: SRTストリームを送信するためのエレメントです。uri="srt://:12345"でポート番号が12345のSRTストリームを待ち受ける設定になっています。latency=500は、500ミリ秒のバッファリングを指定しています。つまり、送信時にストリームに500ミリ秒の遅延がかかります。

2023,江端さんの忘備録

「ライバルの存在が、自分を高める」というのは良く聞く話です。

It is often heard that "the presence of rivals makes you better."

しかし、私は、『誰かと競う』という感情を持った記憶がありません。

However, I don't recall ever having the feeling of 'competing with someone else.

あるいは『すでに負けていることに、気がつかない』だけのかもしれません。

Or maybe I am already losing and don't even know it.

-----

私が、努力をする理由は、他人との競争ではなくて、世間体 ―― つまり、多くの人の前で恥をかくのが嫌だからです。

I make an effort not because I compete with others but because I don't want to be embarrassed in front of the world -- that is, in front of many people.

小学校の時、朝早く起きて、近くの川の橋にゴム紐を張って、飛び越える練習をしていたのは、

In elementary school, I used to get up early in the morning and practice jumping over a nearby river bridge with a rubber strap. The reason was that

「100cmもある途方もない高さのハードルを飛び跳ねながら走る、けったいな競争の選手にさられたから」であって、

I was made to compete in a tremendous competition, jumping over hurdles as high as 100 centimeters.

夏休みのほとんどを「背泳ぎ」の練習に費したのは、

I spent most of my summer vacation practicing the "backstroke." The reason was that

「泳げない背泳ぎを、50メートルも泳がされる選手にさせられたから」です。

I was made to swim 50 meters in the backstroke, which I can't swim."

『誰かと競う』のではなく、『他人から笑われるのが嫌』で、私は努力をしてきたのです。

I've been working hard, not to 'compete with someone else,' but because I don't like to be laughed at by others."

-----

はっきりいって、これは、学校行事の名を借りた『イジメ』です。

This is "bullying" in the name of a school event.

私を「運動会を憎悪する子ども」として完成させたのは、この『イジメ』です。

This "bullying" made me a "child who hates athletic events."

教師も、このイジメに加担していたと思います ―― 私が、どんなに「できない」と繰り返しても、教師たちは私を無視しました。

I think the teachers were also complicit in this bullying -- no matter how many times I repeated that I couldn't do it, they ignored me.

『練習すればできるようになる』と、気楽に言われたものです。

They used to say with ease, 'If you practice, you will be able to do it.'

-----

人間には得手、不得手があるものです。

We all have strengths and weaknesses.

仮に『夏休みの自由研究を10本提出しろ』と言われても、小学生の私は軽くこなしたと思います。

Even if I had been asked to submit ten free research projects for the summer vacation, I would have done it lightly as an elementary school student.

しかし、普通の子どもは、こんなことを言われたら、真っ青になるのでしょう? ―― 知らんけど。

But would an average child turn blue if someone said something like this? -- I don't know.

『夏休みの自由研究を10本提出』と『背泳ぎ50メートル』が、バーターであることを、どうして、この世の中は理解できないのかと ―― 世界を、運動会を、そして水泳大会を恨み続けた子ども。

I wondered why the world could not understand that "submitting ten free research projects during the summer vacation" and "swimming 50 meters in the backstroke" was equivalent -- a child who continued to resent the world, athletic meets, and swimming competitions.

それが、この私です。

That's what I am.

-----

そして、私は、「運動会」や「マラソン大会」を休みたいという自分の娘に対して、

And to my daughter who wants to take time off from "field day" and "marathon, I said,

『当然だ。嫌なら休め』

'No problem. If you don't like it, take the day off.'

と言って、学校に娘の病欠の連絡を入れた保護者です。

I was a parent who notified my daughter's school that my daughter was sick.

幸せな人生

2010,江端さんの忘備録

サッカーワールドカップを見るために、会社を定時で退社したことなどはありませんし、甲子園の高校野球の中継になれば、チャンネルを替えます。

大相撲の人気がどうなろうが全然興味ないし、もし廃止となっても何も感じないだろうことに、自信があります。

夏季オリンピックには、夜の23時くらいから始まる「ダイジェスト版」が、短い時間で、結果を知ることができて、効率的という理由で好きです。

-----

それなのに、冬季オリンピックについては、これほどに一喜一憂する自分が不思議です。

国籍不問で、凄い滑りや演技をする選手には感動してしまうし、日本の選手がメダルに届いた場合には、思わずシャドウガッツポーズが出てしまいます。

こんな自分を、自分が見たことがない。

-----

『歳をとった』というのが答えなのかもしれません。

しかし、それ以上に、

幼少の頃から、運動音痴を「運動会」という悪夢のイベントで晒され続け、または、チームプレイという名で弱者の排除を正当化する、悪夢の時間と

と、

なんの成果も求められることなく、たった一人で、大自然の雪原の中に解け込むことが許された、解放の時間

の差かな、と、思ったりしています。

-----

自分の経験した範囲内でしか、物事に興味を持てない人生は、寂しい人生なのだと思います。

自分と縁もゆかりもないプロ野球チームに、あれほど狂える人達を、私は全く理解できませんが、彼らはきっと私よりは幸せな人生を生きていると思います。

2023,江端さんの忘備録

子どものころ、私は夏休みの宿題の「課題図書」というのが嫌いで、自分で本を選んでいました。

I hated the "assigned reading" for my summer homework as a child, so I chose my books.

その後「課題図書」の本の内容は、結構面白いことが分かりましたので、選者も結構考えているんだなぁ、と感心したことを覚えています。

Later, I found the contents of the "assigned" books quite interesting, and I remember being impressed that the selectors had put a lot of thought into them.

他方で、『自分で選んだ本は、その要約を記載しないと、感想に繋がらない』という点で、非常に苦労しました。

On the other hand, I had a tough time because I assumed that a book I chose must include a summary of the book to lead to my opinion of it.

しかし、読書感想文は、自分の感想『だけ』を記載すれば良く、本の内容まで説明する必要はなかった、ということに、随分後になって知りました。

However, I learned much later that it was only necessary to write about one's impressions of the book, and it was not required to explain the contents of the book.

「いらん苦労をしたものだ」と、今になって後悔しています。

I regret it now, saying, "I went through a lot of unnecessary trouble."

-----

ところで、私の時代には、いわゆる「ラノベ」と呼ばれているものがありませんでした。

In my time, there was no such thing as a so-called "light novel."

今の「ラノベ」、本当に面白いですよね。

Today's "light novel" is interesting.

私なんて、「ラノベ」から「地政学」、「ラノベ」から「量子力学」に入ったくらいです。

I, for example, even became interested in "geopolitics" from "a light novel" and "quantum mechanics" from "a light novel."

ラノベの英語翻訳版を手に入れて、英語の勉強もしているくらいです(見たことがない単語が山ほど出てきます)。

I even got the English translation of the light novel and am studying English (there are a lot of words I've never seen before).

これだけ読み易いラノベを作成する為に、どれだけの努力をしているのだろうかと、作者や編集の方に敬意を示します。

I admire the authors and editors for the amount of effort they put in to create such an easy-to-read light novel.

-----

ところで、

By the way,

(1)今もまだ、小学校の夏休みに「読書感想文」という宿題があるのか?

(1) Is there still a homework assignment called "book report" during summer vacation in elementary school?

(2)上記(1)が「ある」の場合、いわゆる「ラノベ」の感想文を提出しても良いのか?

(2) If (1) above is "Yes," is it acceptable to submit a so-called "light novel" report?

を、ご存知の方は、ご一報頂ければ幸いです。

If you know of any, I would appreciate it if you could let me know.

太宰や芥川でなくてもいいけど、私の大好きな井上靖先生のご著書であれば、私は、今日一日、ご機嫌でいられるんだけどなー

2023,江端さんの忘備録

今回参加している国際学会では、自分に「1発表-1質問」という無茶な課題を課しました。

At the international conference, I set myself the absurd task of "1 presentation - 1 question."

ですので、今回の学会全体を通じて、ざっくり30~40の質問をしたことになります。

So, I have asked roughly 30-40 questions throughout this conference.

なぜ、このような無茶な課題を課したかというと ―― 今、自分の研究が行き詰まっているからです。

The reason why I have assigned myself such a crazy task is -- I am at a standstill in my research.

ですので、

Therefore,

―― 盗めるものがあれば、なんだって盗む

"If there's anything I can steal, I'll steal it."

という、ドス黒く意地汚い思惑で、質問を繰り返していました。

My questions were repeatedly asked with the dusky and nasty intention of it.

私には、会場を盛り上げる意図はなく、ましてや、カンファレンスのチェアを助けよう、などという殊勝な気持ちは1mmもありませんでした。

I did not intend to enliven the venue, much less the auspicious desire to help the conference chairs.

『見苦しい英語であろうが、そんなこと構っていられるか』と振り切れるくらい、正直、今の私は追い込まれているのです。

I'm in a corner right now, so much so that I can't afford to be bothered with 'unsightly my English.

-----

今回の学会では、「江端さんは、次のセッションもご出席されますよね?」とチェアの方から、確認されることが多かったように思います。

At this year's conference, the chair repeatedly confirmed, "Ebata-san, you will attend the next session, right?"

チェアの方からは、私は『質問製造機』として期待されていたのだと思います。

I think the chair expected me to be a 'question maker."

お役に立てていたかどうかは、分かりませんが。

I am not sure if I was helpful or not.

それはさておき。

Aside from that.

-----

今回、私、ウェルカムパーティ兼アワードプレゼンテーション(表彰式)で、食事を食べた後、速攻で離席して、宿泊先のホテルに戻りました。

This time, I left the Welcome Party and Awards Presentation as soon as I ate my meal and returned to the hotel where I was staying.

次の日に予定されていた、私の講演の資料の修正と、発表練習をしたかったからです。

Because I wanted to revise my presentation material and practice my presentation, which was scheduled for the next day.

ところが、翌日の朝、レセプションデスクの所に張り出されていたボードで、私の論文の受賞を知り ―― 真っ青になりました。

However, the next morning, I saw a board posted at the reception desk and knew that my paper had won an award -- so I turned pale.

『アワードプレゼンテーション(表彰式)で、私の名前が呼ばれた時、私はその場にいなかった』からです。

That means I was not there at the awards presentation ceremony when my name was called.

本当に申し訳なくて、運営を担当されている方に平謝りして、その表彰状を頂いてきました。

I was sorry and apologized flatly to the person in charge of the operation and received that certificate of commendation.

-----

嫁さんとの会話です。

This was a conversation with my wife.

江端:「事前に、メールで授賞の連絡してくれれば、このような失態を晒さなくて済んだんだけどなぁ」

Ebata: "If they had informed me of the award in advance by e-mail, I wouldn't have had to make this blunder."

嫁さん:「いや、それ以前に、人として、表彰式を途中離席するな」

Wife: "No, before that, as a human being, don't leave the awards ceremony halfway through."

と、嫁さんに嗜められました。

My wife chid me.

『英語に愛されないエンジニアの、国際学会プレゼンテーションのリアル』