Although this is not about mpv, I would write this too anyway. I use these ffmpeg options to convert flac into opus. I use flac to preserve audios. But the latency of flac is very high and that of opus is very low. So when I listen to music, I use opus instead.
336 kbps bitrate is because I need more bitrate when I use 2.5 frame duration. As I remember, that corresponds to 192 kbps opus with the default setting. That is surely transparent.
Excuse my potentially dumb question, but why does latency matter when listening to music?
It is not a dumb question at all. :) I regard latency as something like screen resolution. Though technically it is more like screen fps. Low-latency is like more fps for audios and thus more sensitive. Think of a game with no lag vs a game with full of lags. The former is more sensitive. No latency as the ideal means you can hear the sound at the exact same time the computer starts to produce the output.
Although it depends, humans can percieve even small latency. Especially in a large space. Because sounds are waves so that they need time to propagate. Usually experienced musicians start to notice at 10ms. Performers themselves could notice even at 5ms.
It is not a dumb question at all. I regard latency as something like screen resolution. Though technically it is more like screen fps. Low-latency is like more fps for audios and thus more sensitive. Think of a game with no lag vs a game with full of lags. The former is more sensitive. No latency as the ideal means you can hear the sound at the exact same time the computer starts to produce the output.
Oh sure, latency in audio matters. It is a delay, but we must ask delay in respect to what, right? In a video game you want the latency low because you want to have a quick audio feedback to your actions -- you press a mouse button and ideally you should immediately hear a gunshot. This is even more important with musical instruments, I have to set the buffer size to very small values when I play my keyboard through my computer because even 200 ms latency is too much for drumming for example. With movies it isn't even necessary to decrease buffer size to better sync audio with video, the audio track can simply be arbitrarily offset so that it starts to play slightly earlier or later than the video.
However what I don't understand is what latency means when you are only listening to music. The only effect of latency here is how quickly the music starts to play or stops when you press a button, or how quickly it reacts to volume changes and so on, but I don't see how it would matter whether music starts to play 100 or 300 milliseconds after you press the play button. I may be missing something, but aren't you actually talking about something else than latency? When you say "resolution" (or FPS, which is temporal resolution), the analogue to that in audio is sampling frequency (and possibly quantization), and although 48 KHz is pretty much the standard beyond which most people can't tell the difference, this can actually have some effect that trained ears can recognize. Lossless compression can have an effect too.
It is not a dumb question at all. :) I regard latency as something like screen resolution. Though technically it is more like screen fps. Low-latency is like more fps for audios and thus more sensitive. Think of a game with no lag vs a game with full of lags. The former is more sensitive. No latency as the ideal means you can hear the sound at the exact same time the computer starts to produce the output.
Oh sure, latency in audio matters. It is a delay, but we must ask delay in respect to what, right? In a video game you want the latency low because you want to have a quick audio feedback to your actions -- you press a mouse button and ideally you should immediately hear a gunshot. This is even more important with musical instruments, I have to set the buffer size to very small values when I play my keyboard through my computer because even 200 ms latency is too much for drumming for example. With movies it isn't even necessary to decrease buffer size to better sync audio with video, the audio track can simply be arbitrarily offset so that it starts to play slightly earlier or later than the video.
However what I don't understand is what latency means when you are only listening to music. The only effect of latency here is how quickly the music starts to play or stops when you press a button, or how quickly it reacts to volume changes and so on, but I don't see how it would matter whether music starts to play 100 or 300 milliseconds after you press the play button. I may be missing something, but aren't you actually talking about something else than latency? When you say "resolution" (or FPS, which is temporal resolution), the analogue to that in audio is sampling frequency (and possibly quantization), and although 48 KHz is pretty much the standard beyond which most people can't tell the difference, this can actually have some effect that trained ears can recognize. Lossless compression can have an effect too.
Your explanation makes sense while in fact I rather found that latency matters experimentally. What I wrote is a theory to support the results which was invented years ago and I remember it only vaguely now.
Maybe I have been remembering incorrectly, or that was simply false and there are other reasons for the results.
Thank you for the explanation. I will rethink of why latency matters experimentally.
thats the weirdest shit i've ever read also i'm not sure what -c:v copy is supposed to do in a FLAC file conversion
all I change in my mpv settings is set the cache size to like a gigabyte so that when I remotely play videos it wouldn't just stop playing if my network crashed, also sometimes i change settings to allow hardware decoding but most of the time i can't be bothered
thats the weirdest shit i've ever read also i'm not sure what -c:v copy is supposed to do in a FLAC file conversion
Since some anime BD Rips contain FLAC files as their audios, I use it for those video files too. Though the example was a simple flac->opus. I made it as a function in the shell.