I've searched the forum, but I didn't find much regarding AAC transcoding using the FDK AAC code. I've been using OGG Vorbis successfully and I've been happy with the audio quality on my mobile devices, but unfortunately OGG doesn't work well in browsers. I want to avoid using MP3 for low bitrates, so the obvious choice should be AAC. It's my understanding that the FDK AAC encoder is considered the "best" among the free alternatives that can be used with Subsonic (please correct me, if I'm wrong).
It shouldn't matter, but I'm running this on linux. I've compiled ffmpeg with libfdk_aac support.
I'm trying this right now (step 1, no step 2):
ffmpeg -i %s -f adts -acodec libfdk_aac -map 0:0 -movflags +faststart -b:a %bk -
This gives me working audio in DSub (though a bit weird, it often stays saying "Buffering", when I hit pause and play, then it starts playing). The web player still doesn't play anything at all and this is what I'm seeing in the log when I hit "play":
- Code: Select all
[12/7/15 11:56:52 PM UTC] INFO TranscodeInputStream Starting transcoder: [/mnt/redacted/subsonic/transcode/ffmpeg] [-i] [/home/redacted/files/adolf plays the jazz - muzzle the birds e.p/adolf plays the jazz - muzzle the birds e.p. - 06 ∞.flac] [-f] [adts] [-acodec] [libfdk_aac] [-map] [0:0] [-movflags] [+faststart] [-b:a] [192k] [-]
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) ffmpeg version N-77130-ga8bb81a Copyright (c) 2000-2015 the FFmpeg developers
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) built with gcc 4.9.2 (Gentoo Hardened 4.9.2 p1.4, pie-0.6.2)
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) configuration: --prefix=/home/redacted/ffmpeg_build --pkg-config-flags=--static --extra-cflags=-I/home/redacted/ffmpeg_build/include --extra-ldflags=-L/home/redacted/ffmpeg_build/lib --bindir=/home/redacted/bin --enable-gpl --enable-libfdk-aac --enable-libmp3lame --enable-libopus --enable-libvorbis --enable-libx264 --enable-nonfree
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libavutil 55. 10.100 / 55. 10.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libavcodec 57. 17.100 / 57. 17.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libavformat 57. 19.100 / 57. 19.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libavdevice 57. 0.100 / 57. 0.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libavfilter 6. 20.100 / 6. 20.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libswscale 4. 0.100 / 4. 0.100
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libswresample 2. 0.101 / 2. 0.101
[12/7/15 11:56:52 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) libpostproc 54. 0.100 / 54. 0.100
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) [mjpeg @ 0x7f5de7284fa0] Changing bps to 8
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Input #0, flac, from '/home/redacted/files/adolf plays the jazz - muzzle the birds e.p/adolf plays the jazz - muzzle the birds e.p. - 06 ∞.flac':
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Metadata:
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) TITLE : ∞
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) ARTIST : adolf plays the jazz
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) DATE : 2005
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) COMMENT : Visit http://adolfplaysthejazz1.bandcamp.com
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) ALBUM : muzzle the birds e.p.
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) track : 6
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) album_artist : adolf plays the jazz
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Duration: 00:00:34.23, start: 0.000000, bitrate: 433 kb/s
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Stream #0:1: Video: mjpeg, yuvj420p(pc, bt470bg/unknown/unknown), 480x480 [SAR 72:72 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Metadata:
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) comment : Cover (front)
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Output #0, adts, to 'pipe:':
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Metadata:
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) TITLE : ∞
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) ARTIST : adolf plays the jazz
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) DATE : 2005
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) COMMENT : Visit http://adolfplaysthejazz1.bandcamp.com
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) ALBUM : muzzle the birds e.p.
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) track : 6
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) album_artist : adolf plays the jazz
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) encoder : Lavf57.19.100
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Stream #0:0: Audio: aac (libfdk_aac), 44100 Hz, stereo, s16, 192 kb/s
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Metadata:
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) encoder : Lavc57.17.100 libfdk_aac
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Stream mapping:
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Stream #0:0 -> #0:0 (flac (native) -> aac (libfdk_aac))
[12/7/15 11:56:53 PM UTC] INFO InputStreamReaderThread (/mnt/redacted/subsonic/transcode/ffmpeg) Press [q] to stop, [?] for help
I've played around with the command line switches for ffmpeg, but that mostly resulted in error messages. I don't see why the above isn't working. Am I doing something wrong? Are there other commands I could try?
I'm assuming there isn't anything fundamentally wrong with my ffmpeg build, since I don't see any error messages and DSub receives proper audio.
Any tips or links to more (noob-friendly) documentation would be appreciated.
Thanks!