Page 1 of 1

Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 9:27 am
by yanman
Hi, new user here :) Absolutely loving Subsonic and iSub on my iPhone - it's revolutionary for me.

My first problem however seems to be with bit rates and transcoding. I have a mixed collection of mp3s and flacs.. and I don't want to be streaming out original bitrate flac files whatsoever. I set the max bit rate on iSub for wifi and 3G to be 160 and 128, and have tried other values, but the flac files seem to come down at their original bitrates :(

I haven't changed any of the default transcode settings - do I need to?

Cheers

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 12:42 pm
by bushman4
What makes you thing that the flac files are coming down at their original bitrate? Your phone would not be able to play straight flac files, so they have to be getting transcoded somehow if they are playing at all, and I bet you will see that it is at the bitrate that you set...

Glenn

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 12:58 pm
by yanman
bushman4 wrote:What makes you thing that the flac files are coming down at their original bitrate? Your phone would not be able to play straight flac files, so they have to be getting transcoded somehow if they are playing at all, and I bet you will see that it is at the bitrate that you set...

Glenn

It's definately saying the files playing on iSub are not the bitrates I set. One file (FLAC original) was 971kbps bitrate and the size that was shown (160MB for 6 songs) made sense for that size.

As you can see below, I play a flac file and it seems to convert it to PCM, but not then to mp3.

The semi-fix I've used for now to prevent me blowing my 3G data use is to block flac -> mp3 conversion for iSub in the Players menu.

Code: Select all
[10/14/11 11:56:15 PM EST]   INFO   PlaylistInputStream   mr listening to "ABBA Gold Greatest Hits\01-Dancing Queen.flac"
[10/14/11 11:56:15 PM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [d:\music\albums\ABBA\ABBA Gold Greatest Hits\01-Dancing Queen.flac] [-v] [0] [-f] [wav] [-]
[10/14/11 11:56:15 PM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\lame] [-b] [160] [--tt] [Dancing Queen] [--ta] [ABBA] [--tl] [ABBA Gold Greatest Hits] [-S] [--resample] [44.1] [-] [-]
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) built on Jul 28 2011 01:57:12 with gcc 4.6.1
[10/14/11 11:56:54 PM 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
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavutil 51. 11. 0 / 51. 11. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavcodec 53. 9. 0 / 53. 9. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavformat 53. 6. 0 / 53. 6. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavdevice 53. 2. 0 / 53. 2. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavfilter 2. 27. 3 / 2. 27. 3
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libswscale 2. 0. 0 / 2. 0. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [flac @ 003F9E60] max_analyze_duration 5000000 reached at 5015510
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Input #0, flac, from 'd:\music\albums\ABBA\ABBA Gold Greatest Hits\01-Dancing Queen.flac':
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) GENRE : Pop
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ARTIST : ABBA
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ALBUM : ABBA Gold Greatest Hits
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) TITLE : Dancing Queen
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) DATE : 1992
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) COMMENT : Exact Audio Copy
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) track : 1
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Duration: 00:03:50.82, bitrate: 1023 kb/s
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: flac, 44100 Hz, stereo, s16
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Output #0, wav, to 'pipe:':
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) GENRE : Pop
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ARTIST : ABBA
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ALBUM : ABBA Gold Greatest Hits
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) TITLE : Dancing Queen
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) DATE : 1992
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) COMMENT : Exact Audio Copy
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) track : 1
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) encoder : Lavf53.6.0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream mapping:
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Press [q] to stop, [?] for help
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) size= 39764kB time=00:03:50.82 bitrate=1411.2kbits/s
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg)
[10/14/11 11:56:54 PM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) video:0kB audio:39764kB global headers:0kB muxing overhead 0.000108%

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 5:35 pm
by BKKKPewsey
ffmpeg converts from flac to wav then lame converts that to mp3 which is then streamed out.
:mrgreen:

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 9:27 pm
by yanman
BKKKPewsey wrote:ffmpeg converts from flac to wav then lame converts that to mp3 which is then streamed out.
:mrgreen:

Yeh I was aware of that. I wonder whether the problem is with the lame encode. There's no way it would generate a 37MB 5 minute mp3 :/

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 10:01 pm
by BKKKPewsey
yanman wrote: There's no way it would generate a 37MB 5 minute mp3 :/

No! I doubt if it would so why do you think it does?
There is nothing in the log to suggest that it is :?
:mrgreen:

Re: Can't figure out transcoding and bitrates

PostPosted: Fri Oct 14, 2011 11:42 pm
by yanman
BKKKPewsey wrote:
yanman wrote: There's no way it would generate a 37MB 5 minute mp3 :/

No! I doubt if it would so why do you think it does?
There is nothing in the log to suggest that it is :?
:mrgreen:

That's what I'm seeing on the iPhone. Look here's the screenshots..

Image
Image
Image

Is that enough? :?

Btw here's the log from that playback.. clearly shows not encoding with lame after the ffmpeg decode and some lame errors.

Code: Select all
[10/15/11 10:35:23 AM EST]   INFO   PlaylistInputStream   mr listening to "ABBA Gold Greatest Hits\01-Dancing Queen.flac"
[10/15/11 10:35:23 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [d:\music\albums\ABBA\ABBA Gold Greatest Hits\01-Dancing Queen.flac] [-v] [0] [-f] [wav] [-]
[10/15/11 10:35:23 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\lame] [-b] [160] [--tt] [Dancing Queen] [--ta] [ABBA] [--tl] [ABBA Gold Greatest Hits] [-S] [--resample] [44.1] [-] [-]
[10/15/11 10:35:55 AM EST]   INFO   PlaylistInputStream   admin listening to "Gold\1 - Dancing Queen.mp3"
[10/15/11 10:37:37 AM EST]   INFO   PlaylistInputStream   mr listening to "ABBA Gold Greatest Hits\02-Knowing Me, Knowing You.flac"
[10/15/11 10:37:37 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [d:\music\albums\ABBA\ABBA Gold Greatest Hits\02-Knowing Me, Knowing You.flac] [-v] [0] [-f] [wav] [-]
[10/15/11 10:37:37 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\lame] [-b] [160] [--tt] [Knowing Me, Knowing You] [--ta] [ABBA] [--tl] [ABBA Gold Greatest Hits] [-S] [--resample] [44.1] [-] [-]
[10/15/11 10:37:37 AM EST]   INFO   PlaylistInputStream   mr listening to "ABBA Gold Greatest Hits\02-Knowing Me, Knowing You.flac"
[10/15/11 10:37:37 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\ffmpeg] [-i] [d:\music\albums\ABBA\ABBA Gold Greatest Hits\02-Knowing Me, Knowing You.flac] [-v] [0] [-f] [wav] [-]
[10/15/11 10:37:37 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\lame) Error writing mp3 output
[10/15/11 10:37:37 AM EST]   DEBUG   TranscodeInputStream   Starting transcoder: [c:\subsonic\transcode\lame] [-b] [160] [--tt] [Knowing Me, Knowing You] [--ta] [ABBA] [--tl] [ABBA Gold Greatest Hits] [-S] [--resample] [44.1] [-] [-]
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ffmpeg version N-31653-gfaa3381, Copyright (c) 2000-2011 the FFmpeg developers
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) built on Jul 28 2011 01:57:12 with gcc 4.6.1
[10/15/11 10:38:18 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
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavutil 51. 11. 0 / 51. 11. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavcodec 53. 9. 0 / 53. 9. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavformat 53. 6. 0 / 53. 6. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavdevice 53. 2. 0 / 53. 2. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libavfilter 2. 27. 3 / 2. 27. 3
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libswscale 2. 0. 0 / 2. 0. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) libpostproc 51. 2. 0 / 51. 2. 0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) [flac @ 00379E80] max_analyze_duration 5000000 reached at 5015510
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Input #0, flac, from 'd:\music\albums\ABBA\ABBA Gold Greatest Hits\02-Knowing Me, Knowing You.flac':
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) GENRE : Pop
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ARTIST : ABBA
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ALBUM : ABBA Gold Greatest Hits
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) TITLE : Knowing Me, Knowing You
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) DATE : 1992
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) COMMENT : Exact Audio Copy
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) track : 2
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Duration: 00:04:03.70, bitrate: 992 kb/s
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: flac, 44100 Hz, stereo, s16
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Output #0, wav, to 'pipe:':
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Metadata:
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) GENRE : Pop
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ARTIST : ABBA
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) ALBUM : ABBA Gold Greatest Hits
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) TITLE : Knowing Me, Knowing You
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) DATE : 1992
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) COMMENT : Exact Audio Copy
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) track : 2
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) encoder : Lavf53.6.0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0: Audio: pcm_s16le, 44100 Hz, stereo, s16, 1411 kb/s
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream mapping:
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Stream #0.0 -> #0.0
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) Press [q] to stop, [?] for help
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) size= 41982kB time=00:04:03.70 bitrate=1411.2kbits/s
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg)
[10/15/11 10:38:18 AM EST]   DEBUG   InputStreamReaderThread   (c:\subsonic\transcode\ffmpeg) video:0kB audio:41982kB global headers:0kB muxing overhead 0.000102%
The complete log is saved in c:\subsonic\subsonic.log.

Refresh

Re: Can't figure out transcoding and bitrates

PostPosted: Sat Oct 22, 2011 2:12 am
by yanman
Sooo.... any thoughts?

Re: Can't figure out transcoding and bitrates

PostPosted: Mon Apr 30, 2012 8:48 am
by spookybathtub
The now playing screen in your second screenshot always shows the bitrate of the original file, regardless of what it's being transcoded to. I'm not sure about the third screenshot though; but I suspect if you go to the "cached" tab it will show you the mp3 size instead.