stozher,
I removed the "-ar 44100" from the following mp4 > flv and now get a new error in the subsonic log (in fact removing the -ar switch broke all the movies from playing)...
- Code: Select all
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ac 2 -v 0 -f flv -
- Code: Select all
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.0(und): Video: h264, yuv420p, 720x352 [PAR 6041:5000 DAR 54369:22000], 1698 kb/s, PAR 869:720 DAR 79:32, 23.98 fps, 23.98 tbr, 24k tbn, 47.95 tbc
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.1(und): Audio: aac, 48000 Hz, 5.1, s16, 129 kb/s
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) [adpcm_swf @ 0x8ab0c60]Sample rate must be 11025, 22050 or 44100
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Output #0, flv, to 'pipe:':
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.0(und): Video: flv, yuv420p, 870x352 [PAR 1:1 DAR 435:176], q=2-31, 1000 kb/s, 90k tbn, 23.98 tbc
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.1(und): Audio: adpcm_swf, 48000 Hz, 2 channels, s16, 64 kb/s
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream mapping:
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.0 -> #0.0
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Stream #0.1 -> #0.1
[1/7/11 9:44:38 AM PST] DEBUG InputStreamReaderThread (/var/subsonic/data/transcode/ffmpeg) Error while opening encoder for output stream #0.1 - maybe incorrect parameters such as bit_rate, rate, width or height
After searching around I was led down a path to compile ffmpeg using some optional ./configure parameters using
this page as a guide.
I had to re-compile my lame, faad, faac, libs so "make install" would put everything in the default locations (instead of using the --extra-cflags and --extra-libs switches). I was able to compile ffmpeg with the following ./configure
- Code: Select all
./configure --enable-gpl --enable-nonfree --enable-libfaad --enable-libfaac --enable-libmp3lame
After replacing this new ffmpeg in the subsonic/transcode folder, I tried a movie that was giving me the down-sample error before. It still did not play. In fact none of my movies (mp4 - x264) or shows (avi divx/xvid) would play now
I was only getting this one line in the subsonic log...
- Code: Select all
[1/7/11 12:06:49 PM PST] DEBUG TranscodeInputStream Starting transcoder: [/var/subsonic/data/transcode/ffmpeg] [-ss] [0] [-i] [/mnt/user/VIDEO/_DVD/DVD_Movies/A Bug's Life (1998)/A Bug's Life (1998).mp4] [-async] [1] [-b] [1000k] [-s] [653x272] [-ar] [44100] [-ac] [2] [-v] [0] [-f] [flv] [-]
I know all this doesn't fix the issue, but I hope this information helps someone continue the search. I guess I could re-encode that movie forcing 2-channel audio. It'll only takes an hour.
UPDATE: seems its been known for a long time by the ffmpeg team
https://roundup.ffmpeg.org/issue185