21:48
My use case: Extract just the audio from a youtube URL directly to a .wav at 32-bit float 48000.
Preferably without any post process args or secondary passes or after-the-fact conversion or muxing.
I want f32le, aka PCM_f32le, aka PCM 32-bit floating-point little-endian, which is supported by ffmpeg. Also want 48000 sample rate, as stated.
Is this possible?
My current command:
yt-dlp -f bestaudio --extract-audio --audio-format wav --audio-quality 0
What do I need to add to achieve my use case / (...)
21:04
The following code works perfectly as long as I only move the crop rectangle, however as soon as I change its size I no longer get frames out of my filter (av_buffersink_get_frame returns -11). It's crazy, even after the size changes, if it eventually changes to the original size that frame will go through, then it will go back to no longer providing frames.
Would anyone happen to know what I'm doing wrong?
My filter setup (note the crop & scale combination, it should (I think?) scale whatever I crop to the output video size):
// buffer source -> buffer sink (...)