remember, the file formats have to be in .htaccess, and maybe in httpd.conf soon
AddType audio/wav wav
AddType audio/ogg oga ogg opus
ffmpeg:
notice how we disable the native vorbis and use one installed directly from vorbis:
./configure —disable-encoder=vorbis —enable-libvorbis —enable-libopus ;live one:
export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig ; ## 2015-03-01
./configure --disable-shared --enable-static --enable-libopus --enable-libspeex --enable-libvorbis ;
make && make check && make install ;
ogg, ogg-tools, vorbis, vorbis-tools, and opus: (all five seemed to install pretty easily)
one needed this, but the ./configure will complain and tell you
./configure —disable-flac ;
to get information on a file:
ffmpeg -i marksFile.whatever ; ### will just give us codec information
ffmpeg create wav:
ffmpeg -i marksFile.whatever marksFile.wav ;
ffmpeg create opus:
ffmpeg -i marksFile.whatever -c:a libopus -b:a 64k -ar 48000 -ac 2 ./please_work.opus ;
ffmpeg create ogg:
ffmpeg -i please_work.flv -f ogg -acodec libvorbis -ac 2 please_work.ogg ;
ffmpeg -i please_work.flv -f ogg -acodec libvorbis -ac 1 please_work.ogg ;
ffmpeg -i please_work.flv -f ogg -acodec libvorbis -ac 2 -ab 128k -vn y please_work.ogg ;
-ac – channels
??
ffmpeg -i $file -f ogg -acodec libvorbis -ab 192k outputFile ;
ffmpeg -i $file -f ogg -acodec libvorbis -aq 6 outputFile ;
??
determine volume level:
/usr/local/bin/ffmpeg -i /blah/blah/clement.flv -af volumedetect -f null – ; ### volume
opusenc:
opusenc inputfile.wav outputfile.opus
opusdec:
opusdec inputfile.opus outputfile.wav
oggenc:
oggenc inputfile.wav -o outputfile.opus
oggdec inputfile.opus -o outputfile.wav