FLAC and Web Player [SOLVED]

Need help? Post your questions here.

Moderator: moderators

FLAC and Web Player [SOLVED]

Postby betasub » Mon Oct 19, 2015 6:17 pm

Hi!
Sorry for my poor English.

I've a small problem with my subsonic server, I haven't found a solution in the forum.

I've installed Subsonic on my Raspberry Pi 2 with Opensuse.
All my music is in Flac. I can play my music on my mobile (with the subsonic app) or with the script for Amarok ; Subsonic transcode my music on the Fly very well (with flac and oggenc).

BUT I can't play my music with my web browser (Firefox) ; Subsonic transcode the song entirely and then play it. I've the same problem with Chromium or Konqueror.

An idea?

Thx, Tristan.
Last edited by betasub on Thu Oct 22, 2015 5:20 pm, edited 1 time in total.
betasub
 
Posts: 5
Joined: Mon Oct 19, 2015 6:11 pm

Re: FLAC and Web Player

Postby mrfloppy » Wed Oct 21, 2015 1:14 pm

betasub wrote:BUT I can't play my music with my web browser (Firefox) ; Subsonic transcode the song entirely and then play it. I've the same problem with Chromium or Konqueror.

Okay, you say that SubSonic transcode the complete song and plays it, but you hear nothing?
Could you post a log of the transcoding process? Do you get any error messages?
mrfloppy
 
Posts: 48
Joined: Thu Apr 16, 2015 10:12 am

Re: FLAC and Web Player

Postby betasub » Wed Oct 21, 2015 5:22 pm

Thanks for your reply.
I can hear the song, but I have to wait, 1, 2, sometimes 5 minutes! And many times, the player no play nothing.

All looks Ok in the .log

Code: Select all
[21/10/15 19:20:15 CEST]    INFO   PlayQueueInputStream   tristan listening to "The Silent Force/01 - Within Temptation _ Intro.flac"
[21/10/15 19:20:15 CEST]    INFO   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/flac] [--silent] [--decode] [--stdout] [/mnt/Rasp_media/Musique/Within Temptation/The Silent Force/01 - Within Temptation _ Intro.flac]
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 2,4%] [ 0m34s remaining] -
[21/10/15 19:20:15 CEST]    INFO   TranscodeInputStream   Starting transcoder: [/var/subsonic/transcode/oggenc] [-q6] [-s] [1] [-o] [-] [-]
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Opening with wav module: WAV file reader
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Encoding standard input to
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) standard output
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) at quality 6,00
[21/10/15 19:20:15 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 3,2%] [ 0m32s remaining] \
[21/10/15 19:20:16 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc)
[21/10/15 19:20:16 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 0,8%] [ 0m47s remaining] |
[21/10/15 19:20:16 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 1,6%] [ 0m40s remaining] /
[21/10/15 19:20:17 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 2,4%] [ 0m37s remaining] -
...
...
[21/10/15 19:20:48 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 94,8%] [ 0m01s remaining] /
[21/10/15 19:20:48 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 95,6%] [ 0m01s remaining] -
[21/10/15 19:20:49 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 96,4%] [ 0m01s remaining] \
[21/10/15 19:20:49 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 97,2%] [ 0m00s remaining] |
[21/10/15 19:20:49 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 98,0%] [ 0m00s remaining] /
[21/10/15 19:20:49 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 98,8%] [ 0m00s remaining] -
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) [ 99,6%] [ 0m00s remaining] \
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc)
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Done encoding.
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc)
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) File length: 1m 58,0s
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Elapsed time: 0m 34,1s
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Rate: 3,4600
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc) Average bitrate: 178,7 kb/s
[21/10/15 19:20:50 CEST]    INFO   InputStreamReaderThread   (/var/subsonic/transcode/oggenc)


And now I see it doesn't play anything...

Thx, Tristan.
betasub
 
Posts: 5
Joined: Mon Oct 19, 2015 6:11 pm

Re: FLAC and Web Player

Postby cclecle » Thu Oct 22, 2015 7:39 am

Hi betasub,

You should try to tune your 'oggenc' transcoding command:
- do not use '-s', this serial option has nothing to do with streaming
- use raw mode with '-r'
- make it silent with '-Q'
- change arguments order, you should try putting the '-' in first place

If thoses tips didnt work you could try this option : '--managed ' and set a bitrate with '-b %###' (and of course remove '-q6').
(I think the software have to read the whole file to guess the "quality" information and then define a bitrate. )

Try the first trick, the second one, and then both :) It must work 8)

Regards,

Cclecle
cclecle
 
Posts: 9
Joined: Tue Oct 13, 2015 10:57 am

Re: FLAC and Web Player

Postby mrfloppy » Thu Oct 22, 2015 7:59 am

betasub wrote:I can hear the song, but I have to wait, 1, 2, sometimes 5 minutes! And many times, the player no play nothing.

Okay, you are encoding a flac file to ogg on a very small device.
Afaik the encoding is a single threaded process, and with the 900 MHz of the Raspi is takes a while to finish it. In your case from 19:20:15 to 19:20:50 for a short file with the length of 1m 58,0s and an average bitrate 178,7 kb/s.

Maybe you should change you encoding command, you could change the quality level to 3 (-q=3)which is the default value and enable the raw modus. See man page for more details.
mrfloppy
 
Posts: 48
Joined: Thu Apr 16, 2015 10:12 am

Re: FLAC and Web Player

Postby betasub » Thu Oct 22, 2015 10:13 am

I'll do what you're saying about encoding parameters. I'll tell you if it changes or no.
But no problem with The Raspberry Pi 2 ; I can stream hours of music with Clementine on Linux or the Subsonic app on my mobile without a problem, I have to wait, one or 2 seconds.

Thx for your reply, Tristan.
betasub
 
Posts: 5
Joined: Mon Oct 19, 2015 6:11 pm

Re: FLAC and Web Player

Postby betasub » Thu Oct 22, 2015 11:13 am

I've tried all that things. Nothing changes.
The -Q is not a good idea because my player Clementine doesn't want to play with that.

I'll still search my problem and I'll ask you if I have more precisions.

Thx very much, Tristan.
betasub
 
Posts: 5
Joined: Mon Oct 19, 2015 6:11 pm

Re: FLAC and Web Player

Postby mrfloppy » Thu Oct 22, 2015 12:18 pm

betasub wrote:I'll still search my problem and I'll ask you if I have more precisions.


Well, you don't have a real problem, everything works - only a bit too slow. :wink:
The difference between the web and the mobile version is, i guess, that the mobile client starts playing the song after receiving the first seconds of a song and the web version waits for the entire file? :?

Have you tried to use mp3 instead of ogg?
mrfloppy
 
Posts: 48
Joined: Thu Apr 16, 2015 10:12 am

Re: FLAC and Web Player

Postby betasub » Thu Oct 22, 2015 5:09 pm

I don't find lame in the Opensuse repo for the Raspberry.
I've changed the player for "external player". Opening automatically with "cvlc", all is fine, vlc is quiet (there is no frame).
I'll can do the same thing at work. It's what I wanted.

Thx for your help. Tristan.
betasub
 
Posts: 5
Joined: Mon Oct 19, 2015 6:11 pm


Return to Help

Who is online

Users browsing this forum: No registered users and 10 guests