Subsonic 4.6 released

Announcements and discussion of new releases.

Moderator: moderators

Re: Subsonic 4.6 released

Postby germain35 » Fri Dec 09, 2011 7:43 am

hi whimpyjones,

can you tell us how do you transcode from subsonic to iSub app ?

I have the same configuration, Subsonic 4.6 and iSub 3.0.4 (IOS 5.0.1).

My music library contains only AAC files and I try to transcode with theses 3 possibilities with the same issue I explained yesterday (Song stops befeore the end (~5-20 seconds) an go to the next song) :

I use a single SHELL script to transcode for all possible players, it's my 3 shell commands to transcode to iSub :

m4a > mp3 : faad -q -f 2 -w "${INPUT}" | lame -S -h -r --vbr-new -V ${QUALITY} --resample 44.1 --ta "${ARTIST}" --tl "${ALBUM}" --tt "${TITLE}" - -
m4a > m4a : faad -q -f 2 -w "${INPUT}" | faac -P -X --mpeg-vers 4 -q ${AAC_QUALITY} -o - -

and my last possibility consist in using CAT command to transcode without compression : cat "${INPUT}"
germain35
 
Posts: 10
Joined: Mon Sep 12, 2011 12:23 pm

Re: Subsonic 4.6 released

Postby mjones73 » Fri Dec 09, 2011 12:27 pm

It appears with the changes to the transcoding to use ffmpeg, it can no longer transcode wma lossless files, anyone have any suggestions?

I could put the old transcode string back in but I don't remember it fully.

This is what I see in the log.

[12/9/11 7:19:07 AM EST] INFO PlaylistInputStream matt listening to "Midnight Marauders\06 - A Tribe Called Quest - Midnight.wma"
[12/9/11 7:19:07 AM EST] DEBUG TranscodeInputStream Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [\\ratbert\Music\_albums\A Tribe Called Quest\Midnight Marauders\06 - A Tribe Called Quest - Midnight.wma] [-ab] [128k] [-v] [0] [-f] [mp3] [-]
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) built on Jul 28 2011 01:57:12 with gcc 4.6.1
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) configuration: --enable-gpl --enable-version3 --enable-memalign-hack --enable-runtime-cpudetect --enable-avisynth --enable-bzlib --enable-frei0r --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libfreetype --enable-libgsm --enable-libmp3lame --enable-libopenjpeg --enable-librtmp --enable-libschroedinger --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libvpx --enable-libx264 --enable-libxavs --enable-libxvid --enable-zlib
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavutil 51. 11. 0 / 51. 11. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavcodec 53. 9. 0 / 53. 9. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavformat 53. 6. 0 / 53. 6. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavdevice 53. 2. 0 / 53. 2. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libavfilter 2. 27. 3 / 2. 27. 3
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libswscale 2. 0. 0 / 2. 0. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) [asf @ 003DB240] max_analyze_duration 5000000 reached at 5060000
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Input #0, asf, from '\\ratbert\Music\_albums\A Tribe Called Quest\Midnight Marauders\06 - A Tribe Called Quest - Midnight.wma':
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Metadata:
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) album : Midnight Marauders
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) genre : Hip-Hop
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) track : 5
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/Year : 1993
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WMFSDKVersion : 11.0.6001.7001
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WMFSDKNeeded : 0.0.0.0000
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/EncodingTime : 14454845d
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) composer : Ali Shaheed Muhammad
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/Provider : AMG
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) publisher : BMG
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/UniqueFileIdentifier: AMGa_id=R 188457;AMGp_id=P 50081;AMGt_id=T 1037766
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/ProviderRating: 8
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) WM/ProviderStyle: Rap
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) album_artist : A Tribe Called Quest
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) IsVBR : 1
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) MediaFoundationVersion: 2.112
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) title : Midnight
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) artist : A Tribe Called Quest
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) comment : Track 6
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Duration: 00:04:25.02, start: 0.000000, bitrate: 754 kb/s
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0(eng): Audio: c[1][0][0] / 0x0163, 44100 Hz, 2 channels, 1152 kb/s
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Incompatible sample format '(null)' for codec 'libmp3lame', auto-selecting format 's16'
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Output #0, mp3, to 'pipe:':
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0(eng): Audio: libmp3lame, 44100 Hz, 2 channels, s16, 128 kb/s
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream mapping:
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[12/9/11 7:19:07 AM EST] DEBUG InputStreamReaderThread (c:\subsonic\transcode\ffmpeg) Decoder (codec id 86057) not found for input stream #0.0

Matt
mjones73
 
Posts: 35
Joined: Sat Apr 24, 2010 11:08 pm

Re: Subsonic 4.6 released

Postby mjones73 » Fri Dec 09, 2011 3:57 pm

I believe my problem is ffmpeg can't handle WMA Lossless files, I put back the old transcode string and I'm good for now.

Remove wma from Convert From box under the mp3 audio entry
Under Add Transcoding add a name (wma for example), add wma to the Convert From box, mp3 to the Convert To box, "wmadec -b 16 %s -" (without the quotes) to Step 1 and "lame -b %b -r - -" (without the quotes) to Step 2.
Select Save and enjoy.
mjones73
 
Posts: 35
Joined: Sat Apr 24, 2010 11:08 pm

Re: Subsonic 4.6 released

Postby inslee » Sun Dec 11, 2011 9:00 pm

Jukebox mode does not appear to work anymore on my system since upgrading
inslee
 
Posts: 17
Joined: Wed Apr 23, 2008 4:13 am

Re: Subsonic 4.6 released

Postby pdcorcoran » Mon Dec 12, 2011 2:55 am

whimpyjones wrote:Running 4.6 final and isub 3.0.4. Not experiencing any issues at all with isub


Thanks for the heads up. I re-downloaded and reinstalled it, and 4.6 final is working well with the latest versions of iSub and Z-Subsonic.
pdcorcoran
 
Posts: 19
Joined: Mon May 11, 2009 1:52 am

Re: Subsonic 4.6 released

Postby germain35 » Thu Dec 15, 2011 12:03 am

Hi everyone,

I have investigated for an issue which appears in Subsonic 4.6, A lot of my songs stop before the end (5 - 10 seconds) and go to the next song.

I tested by calling API with WGET command like this :
wget "http://subsonic.com/rest/stream.view?u=USERNAME&p=PASSWORD&v=1.2.0&c=iSub&id=song-id"

the result :

--2011-12-14 23:56:04--
Resolving mycloud... 127.0.1.1, 192.168.1.10
Connecting to mycloud|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7960000 (7.6M) [audio/mp4]
Saving to: 'stream'

99% [======================================================================================================================================================================> ] 7,901,155 --.-K/s in 15s

2011-12-14 23:56:20 (532 KB/s) - Connection closed at byte 7901155. Retrying.

--2011-12-14 23:56:21-- (try: 2)
Connecting to mycloud|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 206 Partial Contents
Length: 7960000 (7.6M), 58845 (57K) remaining [audio/mp4]
Saving to: 'stream'

99% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] 7,901,155 --.-K/s in 14s

2011-12-14 23:56:36 (0.00 B/s) - Connection closed at byte 7901155. Retrying.

--2011-12-14 23:56:38-- (try: 3) Connecting to mycloud|127.0.1.1|:80... connected.
HTTP request sent, awaiting response... 206 Partial Contents
Length: 7960000 (7.6M), 58845 (57K) remaining [audio/mp4]
Saving to: 'stream'
99% [+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ] 7,901,155 --.-K/s


I don't know why download stops at a few bytes before the end each times so it creates a loop.

My library contains only AAC files encoded in VBR 320KBS, and it worked very well with subsonic 4.5 so it's a bit strange, I Use the War package on Ubuntu 10.04 with tomcat6.

Another fact is that when I transcode with a bitrate of 128KB/S there is no problems, the problem appears only with higher bitrates.


Sindre could you help me please ?
germain35
 
Posts: 10
Joined: Mon Sep 12, 2011 12:23 pm

Re: Subsonic 4.6 released

Postby whimpyjones » Thu Dec 15, 2011 2:10 am

germain35 wrote:hi whimpyjones,

can you tell us how do you transcode from subsonic to iSub app ?

I have the same configuration, Subsonic 4.6 and iSub 3.0.4 (IOS 5.0.1).

My music library contains only AAC files and I try to transcode with theses 3 possibilities with the same issue I explained yesterday (Song stops befeore the end (~5-20 seconds) an go to the next song) :

I use a single SHELL script to transcode for all possible players, it's my 3 shell commands to transcode to iSub :

m4a > mp3 : faad -q -f 2 -w "${INPUT}" | lame -S -h -r --vbr-new -V ${QUALITY} --resample 44.1 --ta "${ARTIST}" --tl "${ALBUM}" --tt "${TITLE}" - -
m4a > m4a : faad -q -f 2 -w "${INPUT}" | faac -P -X --mpeg-vers 4 -q ${AAC_QUALITY} -o - -

and my last possibility consist in using CAT command to transcode without compression : cat "${INPUT}"


I wish I could give you some ideas, but I am using the default transcoding. I also am serving AAC files along with a number of mp3. Maybe try the isub forum (http://isub.einsteinx2.com) or pm einsteinx2.
whimpyjones
 
Posts: 32
Joined: Sun May 10, 2009 6:33 pm

Re: Subsonic 4.6 released

Postby asayler » Sat Dec 17, 2011 5:05 am

I seem to be having issues transcoding to and then streaming wav files on 4.6 (viewtopic.php?f=2&t=8533). This worked fine on 4.5. Any ideas?

-Andy
asayler
 
Posts: 29
Joined: Sat Nov 12, 2011 11:12 pm

Re: Subsonic 4.6 released

Postby pemholder » Sat Dec 17, 2011 1:24 pm

Changelog of 4.6 Beta says:
Bugfix: Remove link to lyrics. chartlyrics.com no longer exists.

I still have a (seeming dead) link to lyrics in the right frame.
pemholder
 
Posts: 97
Joined: Wed Dec 09, 2009 1:28 pm

Re: Subsonic 4.6 released

Postby BKKKPewsey » Sat Dec 17, 2011 2:15 pm

pemholder wrote:Changelog of 4.6 Beta says:
Bugfix: Remove link to lyrics. chartlyrics.com no longer exists.

I still have a (seeming dead) link to lyrics in the right frame.

Chartlyrics site came back on line so I assume Sindre re-instated the link on the final release.
I did manage to get a song lyric once but now it seems back to its usual no lyrics found
I wonder if they may have changed the api :?
Everyone is entitled to be stupid, Image but some abuse the privilege!

Due to the confusion from too many genres of music, we have decided to put both country music and rap music into the genre of Crap music.
User avatar
BKKKPewsey
 
Posts: 2080
Joined: Mon May 23, 2011 12:16 pm
Location: United Kingdom

Re: Subsonic 4.6 released

Postby erik » Sun Dec 18, 2011 11:54 am

I love the jukebox mode using the android app, but I wondered if it was possible to turn off transcoding when playing in jukebox mode. I see no reason to transcode my FLACs to mp3 when the server is capable of playing the FLAC files as is.
erik
 
Posts: 74
Joined: Thu Oct 14, 2010 8:20 pm

Re: Subsonic 4.6 released

Postby GJ51 » Sun Dec 18, 2011 12:55 pm

You bring up one of the reasons I don't like the new transcoding framework. You can do it but not as easily as you could under the old setup. When the transcodings were listed seperately, you could just uncheck a transcoding on any player to make it inactive for any player. you also had the ability to make any setting "default" or not.

To do what you want to do now you would have to remove flac from the default definitions and then redefine a seperate transcoding, uncheck the definition as being enabled for all players, then reactivate the new definition for players individually.

The old setup was far more flexible and powerful for defining, testing, and using custom settings on different players.

It might work better if there were a way to define player category settings so you could define settings for each category of player, ie. Web Player, External, Jukebox, Android. Overall, I think just going back to the ols scheme would be better.
Gary J

http://bios-mods.com
http://www.maplegrovepartners.com
http://theaverageguy.tv/category/tagpodcasts/cyberfrontiers/
User avatar
GJ51
 
Posts: 3492
Joined: Wed Oct 20, 2010 11:58 pm
Location: Western New York

Re: Subsonic 4.6 released

Postby erik » Sun Dec 18, 2011 5:22 pm

I've never taken a close look at how the players work. Does subsonic generate a separate player for playing in jukebox mode that is different from using my android app to play from the phone? I use the app both to play from my headphones connected to the phone and for jukebox mode, so if those two are the same player, I can't see how the old system would fare any better. Different settings for different types of players (wi-fi, jukebox etc) would help a lot, though, as long as subsonic would switch settings when I toggle the RC button on/off.
erik
 
Posts: 74
Joined: Thu Oct 14, 2010 8:20 pm

Re: Subsonic 4.6 released

Postby wraithdu » Wed Dec 28, 2011 9:46 pm

germain35 wrote:I don't know why download stops at a few bytes before the end each times so it creates a loop.

Very interesting test. I've got a similar setup, Tomcat 6 w/ Subsonic 4.6 WAR package on Win7. Using wget like you and a faux external player w/ playlist, it seems Subsonic is NOT setting the correct file length in the http header. This seems to happen on any VBR transcode, ie lame w/ the -V x presets, or any oggenc2 encode. This causes one of two things to happen. If the estimation is low, then an incomplete transocde is downloaded and the song cuts off. If the estimation is high, then the download hangs since it doesn't think it has finished and behavior depends on the player (wget will retry, the Android player will retry, etc). On my phone this makes the caching get hung up until the Android player GIVES UP, and finally moves to the next song.

I'm not sure what the solution is here since there's no way to estimate the file length of a VBR transcode. Maybe it is possible to just not send content length in the header and signal the end of the stream in some other way? That would potentially create problems for poor network conditions like cellular though.

There might be some crazy transcode workaround like using a batch file or app that would pre-convert the file to a temp file and just cat it to stdout, then delete the temp file...
wraithdu
 
Posts: 50
Joined: Thu Apr 01, 2010 10:34 pm

Re: Subsonic 4.6 released

Postby wraithdu » Wed Dec 28, 2011 10:20 pm

Well, that didn't work. I tried a batch file with the whole temp file thing, and Subsonic still gets the wrong file size.
wraithdu
 
Posts: 50
Joined: Thu Apr 01, 2010 10:34 pm

PreviousNext

Return to Announcements

Who is online

Users browsing this forum: Bing [Bot] and 4 guests