@tadd 同じっぽいな。
maomao% cat hoge.py import wave import random import struct sample_len = 44100*10 samples = [random.randint(-32768, 32767) for _ in range(sample_len)] with wave.open('a.wav', 'w') as w: w.setparams((1, 2, 44100, sample_len, 'NONE', 'not compressed')) for s in samples: w.writeframes(struct.pack("<h", s)) with wave.open('b.wav', 'w') as w: w.setparams((1, 2, 44100, sample_len, 'NONE', 'not compressed')) for s in samples: w.writeframes(struct.pack("<h", 0)) maomao% python3 hoge.py maomao% for i in a b; do; lame $i.wav $i.mp3; done LAME 3.100 64bits (http://lame.sf.net) Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz Encoding a.wav to a.mp3 Encoding as 44.1 kHz single-ch MPEG-1 Layer III (11x) 64 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 384/384 (100%)| 0:00/ 0:00| 0:00/ 0:00| 181.44x| 0:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ kbps mono % long switch short % 64.0 100.0 99.2 0.5 0.3 Writing LAME Tag...done ReplayGain: -11.5dB LAME 3.100 64bits (http://lame.sf.net) Using polyphase lowpass filter, transition band: 16538 Hz - 17071 Hz Encoding b.wav to b.mp3 Encoding as 44.1 kHz single-ch MPEG-1 Layer III (11x) 64 kbps qval=3 Frame | CPU time/estim | REAL time/estim | play/CPU | ETA 384/384 (100%)| 0:00/ 0:00| 0:00/ 0:00| 210.12x| 0:00 ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ kbps mono % long % 64.0 100.0 100.0 Writing LAME Tag...done ReplayGain: +64.8dB WARNING: ReplayGain exceeds the -51dB to +51dB range. Such a result is too high to be stored in the header. maomao% ls -al 合計 1896K drwxr-xr-x 1 ikeji ikeji 54 8月 18 01:17 . drwxr-xr-x 1 ikeji ikeji 428 8月 18 01:10 .. -rw-r--r-- 1 ikeji ikeji 80456 8月 18 01:18 a.mp3 -rw-r--r-- 1 ikeji ikeji 882044 8月 18 01:17 a.wav -rw-r--r-- 1 ikeji ikeji 80456 8月 18 01:18 b.mp3 -rw-r--r-- 1 ikeji ikeji 882044 8月 18 01:17 b.wav -rw-r--r-- 1 ikeji ikeji 475 8月 18 01:16 hoge.py maomao%Notices by ikeji (ikeji@ostatus.ikeji.ma), page 14
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 01:19:08 JST ikeji -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 01:06:16 JST ikeji @tadd 試してみるか。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:54:09 JST ikeji @tadd 圧縮後のファイルサイズが決まってたらいいんだけどね。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:37:01 JST ikeji @tadd 今回は、同じファイルに別々プロセス/スレッドが別々なFDを取ればいいんじゃない? In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:34:36 JST ikeji N個のファイルを結合してくれるファイルシステムあればいいのにね。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:32:43 JST ikeji zipをfuseする何かがあった気がしたけど、
良く考えたら、zipをマウントするファイルシステムだった。In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:27:49 JST ikeji @tadd なるほど、やりたい事的に、結合もddでやらないといけないのか。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Sunday, 18-Aug-2024 00:24:40 JST ikeji @tadd Rubyを使うまでもなく、ddで切り出してlameで圧縮してcatで結合をgnu parallelでやったらシェルスクリプトでできる? In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Saturday, 17-Aug-2024 20:17:26 JST ikeji https://www.youtube.com/shorts/9uLl6tLDbkk In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Saturday, 17-Aug-2024 13:17:28 JST ikeji https://git.savannah.gnu.org/cgit/parallel.git/tree/doc/citation-notice-faq.txt
モメてるのか。In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Saturday, 17-Aug-2024 12:13:33 JST ikeji https://ostatus.ikeji.ma/notice/Al1B7DeahZl41UIidk
#自宅気象観測所In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Saturday, 17-Aug-2024 12:13:11 JST ikeji 底だった。 In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Saturday, 17-Aug-2024 12:01:42 JST ikeji https://www.printables.com/model/582696-zipper In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Friday, 16-Aug-2024 22:27:29 JST ikeji https://www.youtube.com/@SUGATSUNEKOGYO In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Friday, 16-Aug-2024 16:50:49 JST ikeji もう底を打ったか? In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Friday, 16-Aug-2024 14:45:43 JST ikeji 気圧が下ってきたか? In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Friday, 16-Aug-2024 10:46:55 JST ikeji ADNS5050のブレークアウトボード In conversation from ostatus.ikeji.ma permalink Attachments
-
ikeji (ikeji@ostatus.ikeji.ma)'s status on Thursday, 15-Aug-2024 23:15:53 JST ikeji コロッケ買わないと。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Thursday, 15-Aug-2024 21:52:38 JST ikeji @tadd typoにtypoを返してみた。 In conversation from ostatus.ikeji.ma permalink -
ikeji (ikeji@ostatus.ikeji.ma)'s status on Thursday, 15-Aug-2024 21:15:02 JST ikeji @tadd 1 In conversation from ostatus.ikeji.ma permalink