On Mon, 24 Oct 2011, Justin Ruggles wrote:
My original plan was to make it a private option, but it didn't work
properly. I didn't think of restoring the original sample_rate in
close() though. I'll try it out.
The only way I can get this to work is to leave it as lowres and change
the input sample rate in avconv instead of in open().
Private option doesn't work in avconv because the decoder is not opened
until after the encoder has been opened. Therefore, it resamples from
half-rate to full-rate.
Btw - again out of curiosity - isn't it the other way around for video,
where the resolution often isn't known until the decoder has been opened?
Not saying that it would be worth to restructure it just for this though.
// Martin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel