Can anyone tell me the commands to transcode flac to m4a? Mainly for use on android device. Also is it necessary to change the downsample command as well?
Thanks.
Moderator: moderators
stozher@stozher:~$ ffmpeg
FFmpeg version SVN-r25838, Copyright (c) 2000-2010 the FFmpeg developers
built on Nov 29 2010 15:39:30 with gcc 4.4.5
configuration: --enable-libdc1394 --prefix=/usr --extra-cflags='-Wall -g ' --cc='ccache cc' --enable-shared --enable-libmp3lame --enable-gpl --enable-libvorbis --enable-pthreads --enable-libfaac --enable-libxvid --enable-postproc --enable-x11grab --enable-libgsm --enable-libtheora --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libx264 --enable-libspeex --enable-nonfree --disable-stripping --enable-avfilter --enable-libdirac --disable-decoder=libdirac --enable-libschroedinger --disable-encoder=libschroedinger --enable-version3 --enable-libopenjpeg --enable-libvpx --enable-librtmp --extra-libs=-lgcrypt --disable-altivec --disable-armv5te --disable-armv6 --disable-vis
libavutil 50.33. 0 / 50.33. 0
libavcore 0.14. 0 / 0.14. 0
libavcodec 52.97. 2 / 52.97. 2
libavformat 52.87. 1 / 52.87. 1
libavdevice 52. 2. 2 / 52. 2. 2
libavfilter 1.65. 0 / 1.65. 0
libswscale 0.12. 0 / 0.12. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
root@Media02:/boot/subsonic/data/transcode# ffmpeg
FFmpeg version 0.6, Copyright (c) 2000-2010 the FFmpeg developers
built on Jun 18 2010 17:09:12 with gcc 4.4.4
configuration: --prefix=/usr --libdir=/usr/lib --shlibdir=/usr/lib --mandir=/usr/man --enable-gpl --enable-version3 --enable-postproc --enable-avfilter --enable-libdc1394 --enable-libfaad --enable-libgsm --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libx264 --enable-libvpx --enable-runtime-cpudetect --enable-vaapi --disable-vdpau --enable-memalign-hack --enable-pthreads --enable-x11grab --enable-bzlib --enable-zlib --enable-shared --enable-static --disable-debug --extra-cflags='-I/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/include -DRUNTIME_CPUDETECT' --extra-ldflags='-L/tmp/build/tmp-ffmpeg/ffmpegdeps/usr/lib -lssl -lcrypto -lz -lusb'
libavutil 50.15. 1 / 50.15. 1
libavcodec 52.72. 2 / 52.72. 2
libavformat 52.64. 2 / 52.64. 2
libavdevice 52. 2. 0 / 52. 2. 0
libavfilter 1.19. 0 / 1.19. 0
libswscale 0.11. 0 / 0.11. 0
libpostproc 51. 2. 0 / 51. 2. 0
Hyper fast Audio and Video encoder
usage: ffmpeg [options] [[infile options] -i infile]... {[outfile options] outfile}...
Use -h to get full help or, even better, run 'man ffmpeg'
root@Media02:/boot/subsonic/data/transcode# oggenc -h
oggenc from vorbis-tools 1.3.0 by the Xiph.Org Foundation (http://www.xiph.org/)
stozher wrote:FLAC > OGG:
ffmpeg -loglevel error -v 0 -i %s -f ogg -acodec flac -ar 44100 -aq 4.5 -ac 2 -map_meta_data 0:0 -
ffmpeg -loglevel error -v 0 -i %s -f ogg -acodec libvorbis -ar 44100 -aq 4.5 -ac 2 -map_meta_data 0:0 -
For "-aq" option value see "Wikipedia: Vorbis - Technical details". If you specify only "-f ogg" (not "-acodec") FFmpeg use "-acodec vorbis" - better variant is a libvorbis. Option "-map_meta_data 0:0" used to transfer vorbis tags from FLAC to OGG.
oggenc -Q -q 4.5 --resample 44100 -o - -a %a -t %t -l %l %s
-q n, --quality=n
Sets encoding quality to n, between -1 (very low) and 10 (very high). This is the default mode of operation, with a default quality level of 3. Fractional quality levels such as 2.5 are permitted. Using this option allows the encoder to select an appropriate bitrate based on your desired quality level.
Users browsing this forum: No registered users and 9 guests