Programming Audio is Dangerous for Your Hearing!

  Рет қаралды 14,640

Tsoding Daily

Tsoding Daily

Күн бұрын

Streamed Live on Twitch: / tsoding
Panim Playlist: • Panim
- 00:00:00 - Safe zone
- 02:29:28 - LOUD SOUND WARNING
- 02:29:38 - Safe zone
References:
- Tsoding - Musializer github.com/tsoding/musializer
Support:
- BTC: bc1qj820dmeazpeq5pjn89mlh9lhws7ghs9v34x9v9
- Pay for my VPS: zap-hosting.com/en/shop/donat...

Пікірлер: 57
@TsodingDaily
@TsodingDaily 21 күн бұрын
02:29:28 - LOUD SOUND WARNING
@jayshartzer844
@jayshartzer844 21 күн бұрын
What? I can't hear you over the loud sound
@Eugensson
@Eugensson 21 күн бұрын
Clicked the timestamp without hesitation... dunno what i was expecting 💀
@davidensikat4707
@davidensikat4707 21 күн бұрын
kzbin.info/www/bejne/iJq7ZXl3hqhsmck
@seventhtenth
@seventhtenth 21 күн бұрын
a programmer
@generationalgamers8925
@generationalgamers8925 21 күн бұрын
Samples and frames are the same I thought
@duality4y
@duality4y 21 күн бұрын
when developing audio never put the headset on your ears ... it's something you learn quickly ...
@TheMarcsOv
@TheMarcsOv 21 күн бұрын
i once stunned myself so hard with a full amplitude square wave that i got physically dizzy for like 2 minutes
@U20E0
@U20E0 21 күн бұрын
oof. Why can headphone speakers even be that loud
@benjaminquiedeville4476
@benjaminquiedeville4476 21 күн бұрын
As an audio dev I feel that pain I always clip the output signal between -1.0 and 1.0 BEFORE the master volume parameter. It saved me a lot of time
@benjaminquiedeville4476
@benjaminquiedeville4476 21 күн бұрын
And in debug mode, put some assert(abs(x)
@caspianmerlin6434
@caspianmerlin6434 14 күн бұрын
Hey, any tips for resources for learning audio dev concepts?
@berndeckenfels
@berndeckenfels 21 күн бұрын
You can also create many more file descriptors (pipe on fd3) And either use ffmpeg syntax pipe:3 or in Linux /proc/self/fd/3 Advantage is you don’t need with leftover fifos or create unique names for parallel run
@mikoposter
@mikoposter 9 күн бұрын
:3
@z4pp820
@z4pp820 10 күн бұрын
I usually route the output signal into a limiter with a brickwall output at -6 db. Has saved my ears more than once
@ziv132
@ziv132 21 күн бұрын
When you are rendering the video you have args in the output for an audio codec (that are unused since it's only video) Also you might want to add those options to when you are encoding the audio. You can also leave it as a wav and do the encoding when you merge the video and audio together, then you would put the encoding for the audio instead of the copy in -c:a copy
@berndeckenfels
@berndeckenfels 9 күн бұрын
That’s literally what the whole video was about
@Tanger68
@Tanger68 21 күн бұрын
Skipped straight to the loud sound with confidence that it couldn't be that loud. It's quite loud.
@rogo7330
@rogo7330 21 күн бұрын
Since you execve ffmpeg you could just use pipe() to create two new file descriptors that reffer to input and output of the same pipe. After forking and executing ffmpeg you just say it to read from pipe: and on your end you write to input fd. File descriptors, if nothing special was done to them, just pass-on to the next process, execve does not closes them either.
@rogo7330
@rogo7330 21 күн бұрын
Already discussed in the video. (crawling back into the dark corner in shame)
@blackhaze3856
@blackhaze3856 21 күн бұрын
How a struct sounds?
@drdca8263
@drdca8263 21 күн бұрын
How long have the captions included what was said by twitch chat?
@ikeofili355
@ikeofili355 13 күн бұрын
I don't know if you want to hear this but you would need 2 different pipes (and maybe use 2 file descriptors for each ffmpeg instance to read from). The error happens because you only have one p->pipe and it is overwritten by `start_ffmpeg_audio`. So then you send video to the audio pipe. You would probably need a p->video_pipe and p->audio_pipe
@berndeckenfels
@berndeckenfels 9 күн бұрын
He has two (fifo) but one blocks if the other side not opens them in right order (or at all). But I think he could also use two pipes which don’t have the blocking problem, with fem pegs syntax, pipe:3 should work.
@berndeckenfels
@berndeckenfels 21 күн бұрын
47:58 it’s worse since it overcommits you can allocate more than ram+swap. But there might be soft limits
@atiedebee1020
@atiedebee1020 20 күн бұрын
I can vouch for this, I once tried doing audio encoding, and when you create a bug with that shit, youll remember it
@sanjaux
@sanjaux 21 күн бұрын
It really is!
@satchelfrost6531
@satchelfrost6531 21 күн бұрын
Not sure if you mentioned this, but why is panim not open source like many of your other projects? The only reason I ask is because I like to go back and forth between watching the video and looking at the final code. It really helped me understand the ml-notes stream.
@user-uf4rx5ih3v
@user-uf4rx5ih3v 21 күн бұрын
He releases all of his projects on his github page when he feels they're in a finished state for the time being. He rarely works on something for more then a month so expect the code soon.
@user-cx6ec2kp6u
@user-cx6ec2kp6u 21 күн бұрын
Knowing when you are rendering can be used to show a low res preview and render in high res 17:38
@anilgr1111
@anilgr1111 5 күн бұрын
Yes we are alive !
@adrianmanea
@adrianmanea 21 күн бұрын
What do you use to zoom in and highlight your mouse pointer while streaming? 1:18:49
@victordvickie
@victordvickie 16 күн бұрын
tsoding/boomer github
@mkjyt1
@mkjyt1 21 күн бұрын
Hey Tsoding!
@c4llv07e
@c4llv07e 21 күн бұрын
The daily use of OpenBSD was interesting, but sometimes I had to install Linux for some software. I miss these man pages.
@brambasieldev
@brambasieldev 21 күн бұрын
Unsafe C programmer got cocky and flew too close to the sun. Rust borrow checker would have prevented this.
@henrikholst7490
@henrikholst7490 21 күн бұрын
Totally! Btw. I run Arch.
@boccobadz
@boccobadz 21 күн бұрын
Rust would prevent shipping any usable product.
@brambasieldev
@brambasieldev 21 күн бұрын
@@boccobadz me with c++ 😂 (i use c++ btw)
@heejadeetorn753
@heejadeetorn753 21 күн бұрын
Rust, the word "unsafe" and Arch in the same comment thread. The only thing missing is a person of 40% sui rate
@apenaswellignton
@apenaswellignton 21 күн бұрын
Pog
@ratatouillegamer7132
@ratatouillegamer7132 19 күн бұрын
i'm fear about hear, what is the problem? if i hear with headphones is a problem?
@multiarray2320
@multiarray2320 15 күн бұрын
what are you talking about?
@blastygamez
@blastygamez 21 күн бұрын
Oh no...
@anidnmeno
@anidnmeno 18 күн бұрын
the fact that there's an ffmpeg Twitter
@RandomGeometryDashStuff
@RandomGeometryDashStuff 16 күн бұрын
if you only encode video, why not just use x264 instead of ffmpeg?
@seventhtenth
@seventhtenth 21 күн бұрын
25:20 WHAT did he JUST SAY
@marshall00721
@marshall00721 21 күн бұрын
yo dad wassupp
@berndeckenfels
@berndeckenfels 21 күн бұрын
„When we have one pipe we can have two, nobody is stopping us“- unless the child opens them in wrong sequence :) (I would make open nonblocking)
@binitrupakheti4246
@binitrupakheti4246 21 күн бұрын
Thats why u should've used rust
@Eugensson
@Eugensson 21 күн бұрын
Why?
@juan_cb3357
@juan_cb3357 21 күн бұрын
It pretends to be safe ​@@Eugensson
Control Your Dependencies
1:45:07
Tsoding Daily
Рет қаралды 23 М.
Why French fries are ALWAYS better at restaurants
0:57
acooknamedMatt
Рет қаралды 16 МЛН
Super sport🤯
00:15
Lexa_Merin
Рет қаралды 19 МЛН
¡Puaj! No comas piruleta sucia, usa un gadget 😱 #herramienta
00:30
JOON Spanish
Рет қаралды 22 МЛН
格斗裁判暴力执法!#fighting #shorts
00:15
武林之巅
Рет қаралды 73 МЛН
Can You Draw The PERFECT Circle?
00:57
Stokes Twins
Рет қаралды 90 МЛН
Ok I tried Tree-sitter! Here is what I think about it...
1:56:47
Tsoding Daily
Рет қаралды 49 М.
Tomato Slice to Seedling Time Lapse
0:47
eLapse
Рет қаралды 24 МЛН
Linus Torvalds: Why Choose a Career in Linux and Open Source
1:18
OpenTech Institute
Рет қаралды 17 М.
The Very First Apple Watch (1995)
0:47
Vsauce
Рет қаралды 6 МЛН
Hiding Data Inside of Executable Files
1:55:14
Tsoding Daily
Рет қаралды 24 М.
Random Guy Comes Up And Proposes On Stream
0:22
Emiru
Рет қаралды 7 МЛН
Is John Carmack Right about UI?!
1:52:02
Tsoding Daily
Рет қаралды 37 М.
My condolences - The Office US
0:52
The Office
Рет қаралды 6 МЛН
Newton's Method in C
1:33:17
Tsoding Daily
Рет қаралды 17 М.
🤔Почему Samsung ПОМОГАЕТ Apple?
0:48
Technodeus
Рет қаралды 433 М.
😱НОУТБУК СОСЕДКИ😱
0:30
OMG DEN
Рет қаралды 2,2 МЛН
How much charging is in your phone right now? 📱➡️ 🔋VS 🪫
0:11
A4 Reset to zero
0:26
STYLE YT
Рет қаралды 17 М.
Xiaomi Note 13 Pro по безумной цене в России
0:43
Простые Технологии
Рет қаралды 1,8 МЛН
Samsung Android Mobile Battrey
0:39
Gaming zone
Рет қаралды 342 М.