![]() ![]() ![]() I know that ffmpeg is deprecated in Ubuntu in favour of Libav, but compiling is a good way to get a fully functioning opus encoder/decoder integrated into ffmpeg itself. ![]() On 12.04 (Precise), however, there are dependency problems with installing the opus codecs and tools, so I have found by far the best solution is the one that has become available very recently: compile the opus audio encoder and decoder as noted here, and build ffmpeg with opus support by adding -enable-opus to the configure options of ffmpeg (as listed on the compilation guide). With the package mediainfo installed: $ mediainfo linuxactionshowep309-432p-audio-only.opusĬomplete name : linuxactionshowep309-432p-audio-only.opus Video:0kB audio:53875kB global headers:0kB muxing overhead 0.900602% Output #0, ogg, to 'linuxactionshowep309-432p-audio-only.opus': Encode it with libopus at 100 kbit/s with variable bitrate on: $ avconv -stats -i linuxactionshowep309-432p.mp4 -map 0:1 -c libopus -b 100k linuxactionshowep309-432p-audio-only.opus Take the second stream of the first input ( -map 0:1), which is the audio stream. Expected packet loss percentageĮxample 2: Grab the audio from a video file and encode it as opus Favor improved speech intelligibilityĪudio E.A. Here are all options for libopus: $ avconv -h full | grep opus -A 11Īvconv version 9.11-6:9.11-3+b2, Copyright (c) 2000-2013 the Libav developersīuilt on 17:45:45 with gcc 4.8 (Debian 4.8.2-16) -b:a 100k sets the audio's bitrate to 100 kilobit/s.-codec:a opus selects the opus encoder for the audio streams ( a).-map 0:a will select all audio streams ( a) from the input file 0.With version 9 of libav-tools and libopus0 installed you can simply, for example, do: avconv -i file.mp3 -map 0:a -codec:a opus -b:a 100k -vbr on file.opus Example 1: Reencode an audio file as opus Ubuntu 14.04 and Debian 8 ship with version 9 of libav-tools in their repositories, and it has built-in support for Opus through the package libopus0. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |