Can't figure out transcoding and bitrates

General discussions.

Moderator: moderators

Can't figure out transcoding and bitrates

Postby yanman » Fri Oct 14, 2011 9:27 am

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
yanman
 
Posts: 5
Joined: Fri Oct 14, 2011 7:11 am

Re: Can't figure out transcoding and bitrates

Postby bushman4 » Fri Oct 14, 2011 12:42 pm

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
Glenn Sullivan
Subsonic 6.1.6 (Unraid Docker)
90 regular Subsonic Users

Library as of 2024-10-28:
4,527 artists
19,996 albums
282,151 songs
10201.40 GB
41,583 hours
User avatar
bushman4
 
Posts: 875
Joined: Thu Dec 02, 2010 1:47 pm
Location: Massachusetts, USA

Re: Can't figure out transcoding and bitrates

Postby yanman » Fri Oct 14, 2011 12:58 pm

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%
yanman
 
Posts: 5
Joined: Fri Oct 14, 2011 7:11 am

Re: Can't figure out transcoding and bitrates

Postby BKKKPewsey » Fri Oct 14, 2011 5:35 pm

ffmpeg converts from flac to wav then lame converts that to mp3 which is then streamed out.
:mrgreen:
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: Can't figure out transcoding and bitrates

Postby yanman » Fri Oct 14, 2011 9:27 pm

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 :/
yanman
 
Posts: 5
Joined: Fri Oct 14, 2011 7:11 am

Re: Can't figure out transcoding and bitrates

Postby BKKKPewsey » Fri Oct 14, 2011 10:01 pm

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:
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: Can't figure out transcoding and bitrates

Postby yanman » Fri Oct 14, 2011 11:42 pm

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
yanman
 
Posts: 5
Joined: Fri Oct 14, 2011 7:11 am

Re: Can't figure out transcoding and bitrates

Postby yanman » Sat Oct 22, 2011 2:12 am

Sooo.... any thoughts?
yanman
 
Posts: 5
Joined: Fri Oct 14, 2011 7:11 am

Re: Can't figure out transcoding and bitrates

Postby spookybathtub » Mon Apr 30, 2012 8:48 am

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.
spookybathtub
 
Posts: 110
Joined: Thu Oct 07, 2010 7:13 am


Return to General

Who is online

Users browsing this forum: No registered users and 8 guests