Page 1 of 1

Issue streaming music with 4.9Beta4 / new version of FFMPEG

PostPosted: Thu Jan 16, 2014 8:56 pm
by andu_
Problem Description: I have a fresh install of Subsonic 4.9Beta4. After the install was complete I replaced the version of FFMPEG with a new version, as certain movies would not stream with the delivered version of FFMPEG, and a newer version allowed them to stream as expected. I have noticed that certain MP3 files will not downsample and therefore not stream.

Troubleshooting Steps: I reinstalled Subsonic (Beta 4 version). I have two players set up, one that reduces the bitrate to 256K and one with no limit. The MP3 files work with the no limit player and do not play with the 256K limit player.

Playback Application and version: I am experiencing the problem in Chrome (From Staus)
Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/31.0.1650.63 Safari/537.36)


Subsonic Version: 4.9.beta4 (build 3810) – January 4, 2014
Server Version: jetty-6.1.x, java 1.7.0_45, Windows 7 (76.4 MB / 154.0 MB)
Hardware Platform:: Windows 7
Java Memory Limit: 512MB
Problem Filename: Many, but they do not contain special characters
Output from ffmpeg -i:
Code: Select all
C:\Users\Andy>c:\subsonic\transcode\ffmpeg -i "f:\music\Clams Casino\Instrumenta
l Mixtape 3\01 Crystals [GTA V].mp3"
ffmpeg version N-59480-g8feaa83 Copyright (c) 2000-2014 the FFmpeg developers
  built on Jan  1 2014 22:07:10 with gcc 4.8.2 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-av
isynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enab
le-iconv --enable-libass --enable-libbluray --enable-libcaca --enable-libfreetyp
e --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmp3lame --ena
ble-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-l
ibopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libsp
eex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aa
cenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavp
ack --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
  libavutil      52. 59.100 / 52. 59.100
  libavcodec     55. 47.100 / 55. 47.100
  libavformat    55. 22.102 / 55. 22.102
  libavdevice    55.  5.102 / 55.  5.102
  libavfilter     4.  0.103 /  4.  0.103
  libswscale      2.  5.101 /  2.  5.101
  libswresample   0. 17.104 /  0. 17.104
  libpostproc    52.  3.100 / 52.  3.100
[mp3 @ 0000000002876980] Estimating duration from bitrate, this may be inaccurat
e
Input #0, mp3, from 'f:\music\Clams Casino\Instrumental Mixtape 3\01 Crystals [G
TA V].mp3':
  Metadata:
    title           : Crystals
    artist          : Clams Casino
    album           : Instrumentals 3
    track           : 1/13
    encoded_by      : iTunes 11.0.4.4
    album_artist    : Clams Casino
    date            : 2013
  Duration: 00:03:28.66, start: 0.000000, bitrate: 319 kb/s
    Stream #0:0: Audio: mp3, 44100 Hz, stereo, s16p, 320 kb/s
    Stream #0:1: Video: mjpeg, yuvj444p(pc), 500x500 [SAR 1:1 DAR 1:1], 90k tbr,
90k tbn, 90k tbc
    Metadata:
      title           :
      comment         : Other
At least one output file must be specified

Last ten log file lines:
Code: Select all
[1/16/14 2:37:10 PM CST]   INFO   PlayQueueInputStream   andu_ listening to "A Saucerful of Secrets\07 - Pink Floyd - Jugband Blues.mp3"
[1/16/14 2:37:10 PM CST]   DEBUG   AudioScrobblerService   Successfully registered now playing for song 'Jugband Blues' for user andu_ at Last.fm: Thu Jan 16 14:37:10 CST 2014
[1/16/14 2:37:17 PM CST]   DEBUG   AudioScrobblerService   Successfully registered submission for song 'Jugband Blues' for user andu_ at Last.fm: Thu Jan 16 14:37:17 CST 2014
[1/16/14 2:43:10 PM CST]   INFO   PlayQueueInputStream   andu_ listening to "Inindependence\01 - The Dutch Fist.mp3"
[1/16/14 2:43:12 PM CST]   DEBUG   AudioScrobblerService   Successfully registered now playing for song 'The Dutch Fist' for user andu_ at Last.fm: Thu Jan 16 14:43:10 CST 2014
[1/16/14 2:43:28 PM CST]   DEBUG   AudioScrobblerService   Successfully registered submission for song 'The Dutch Fist' for user andu_ at Last.fm: Thu Jan 16 14:43:28 CST 2014
[1/16/14 2:47:56 PM CST]   INFO   PlayQueueInputStream   andu_ listening to "Instrumental Mixtape 3\01 Crystals [GTA V].mp3"
[1/16/14 2:47:56 PM CST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [f:\music\Clams Casino\Instrumental Mixtape 3\01 Crystals [GTA V].mp3] [-ab] [256k] [-v] [0] [-f] [mp3] [-ac] [1] [-]
[1/16/14 2:47:56 PM CST]   DEBUG   AudioScrobblerService   Successfully registered now playing for song 'Crystals' for user andu_ at Last.fm: Thu Jan 16 14:47:56 CST 2014
[1/16/14 2:48:12 PM CST]   DEBUG   AudioScrobblerService   Successfully registered submission for song 'Crystals' for user andu_ at Last.fm: Thu Jan 16 14:48:11 CST 2014

Re: Issue streaming music with 4.9Beta4 / new version of FFM

PostPosted: Tue Jan 28, 2014 3:23 pm
by andu_
Upgrading to 4.9 non-Beta did not change the behavior. I figured out a solution. I changed the settings in Settings -> Transcoding so that audio streams use the delivered version of FFMPEG and video streams use the newest version of FFMPEG. Here is what I did for those looking for a similar solution:

In my C:\Subsonic\Transcode folder I have two copies of FFMPEG. FFMPEG is the newest version. FFMPEGA is the delivered version.

In the first two Transcode lines in Settings -> Transcoding, my "Step 1" coding looks like this:

ffmpega -i %s -ab %bk -v 0 -f mp3 -ac 1 -
ffmpeg -ss %o -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 1 -v 0 -f flv -vcodec libx264 -preset superfast -threads 0 -


(Note: I downsample from Stereo to Mono, hence the "-ac 1")

In the lower part of the settings, they look like this:

Downsample command: ffmpega -i %s -ab %bk -v 0 -f mp3 -ac 1 -
HTTP Live Streaming command: ffmpeg -ss %o -t %d -i %s -async 1 -b %bk -s %wx%h -ar 44100 -ac 1 -v 0 -f mpegts -vcodec libx264 -preset superfast -acodec libmp3lame -threads 0 -

Hopefully someone else finds this useful!