On 06/14/2011 10:44 AM, Ronald S. Bultje wrote:

> Hi,
> 
> On Tue, Jun 14, 2011 at 4:23 AM, Anton Khirnov <[email protected]> wrote:
>> On Sun, 12 Jun 2011 19:33:05 -0400, "Ronald S. Bultje" <[email protected]> 
>> wrote:
>>> On Fri, Jun 10, 2011 at 4:13 PM, Anton Khirnov <[email protected]> wrote:
>>>> -do_ffmpeg $pcm_ref -ab 128k -ac 2 -ar 44100 -f s16le -i $pcm_src -f wav
>>>> +do_ffmpeg $pcm_ref -ab 128k -channels 2 -sample_rate 44100 -f s16le -i 
>>>> $pcm_src -f wav
>>>
>>> I'm uncomfortable with removing old options. Or do they still work? We
>>> need a transition time for them at least. Plus changelog entries etc.
>>
>> I'd add a compat layer, but the way all those globals interact is a mystery 
>> to me.
>> We should do it though sooner or later, it's not very user-friendly to have
>> -ar for output and -sample_rate for input.
> 
> I agree the name changes are fine. I just want the old names to
> continue working for a transitionary period.


I think a compatibility layer would work if we just modify e.g.
opt_audio_channels() to also add (or replace) a "channels" entry in
avformat_opts. For muxing it shouldn't make any difference that the key
is not found, and for demuxing it should work like AVFormatParameters.

-Justin
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel

Reply via email to