When encoding Opus audio, libav 10.2 seems to ignore the -ar option:
-------
avconv version 10.2, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 18:32:28 with Apple LLVM version 5.1
(clang-503.0.40) (based on LLVM 3.4svn)
[aiff @ 0x7f97c0801200] max_analyze_duration reached
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from 'Method.aiff':
Duration: 00:06:00.74, start: 0.000000, bitrate: 1411 kb/s
Stream #0.0: Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
[libopus @ 0x7f97c0911400] Specified sample_rate is not supported
Output #0, ogg, to 'm6444100.opus':
Stream #0.0: Audio: libopus, 44100 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16be -> libopus)
Error while opening encoder for output stream #0:0 - maybe incorrect
parameters such as bit_rate, rate, width or height
-------
When you remove the -ar option, it seems to work fine, but the output is
sampled at 48khz regardless of inputted file's sample rate:
-------
avconv version 10.2, Copyright (c) 2000-2014 the Libav developers
built on Jul 15 2014 18:32:28 with Apple LLVM version 5.1
(clang-503.0.40) (based on LLVM 3.4svn)
[aiff @ 0x7fe302800000] max_analyze_duration reached
Guessed Channel Layout for Input Stream #0.0 : stereo
Input #0, aiff, from 'Method.aiff':
Duration: 00:06:00.74, start: 0.000000, bitrate: 1411 kb/s
Stream #0.0: Audio: pcm_s16be, 44100 Hz, stereo, s16, 1411 kb/s
File 'm6444100.opus' already exists. Overwrite ? [y/N] y
Output #0, ogg, to 'm6444100.opus':
Metadata:
encoder : Lavf55.12.0
Stream #0.0: Audio: libopus, 48000 Hz, stereo, s16, 64 kb/s
Stream mapping:
Stream #0:0 -> #0:0 (pcm_s16be -> libopus)
Press ctrl-c to stop encoding
size= 3115kB time=360.75 bitrate= 70.7kbits/s
video:0kB audio:0kB global headers:0kB muxing overhead 16790674.000000%
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools