Page 1 of 1

OGG streaming to Chrome on 6.0 beta

PostPosted: Fri Mar 18, 2016 11:49 pm
by melt-apple
I have ffmpeg set-up as per the below, to transcode FLAC:

ffmpeg -i %s -f ogg -vn -ar 44100 -acodec libvorbis -qscale:a 7 -

Problem Description: my ffmpeg ogg streaming appears to work in safari, but not in chrome
Playback Application and version: Standard Subsonic Web Interface (with the new html 5 player)
Subsonic Version: 6.0.beta1 (build 4676) – 04 February 2016
Server Version: jetty-6.1.x, java 1.8.0, Linux (106.5 MB / 145.0 MB)
Hardware Platform: Raspberry Pi, Raspbian

Last few log file lines:

Code: Select all
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) DISCC : 1
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) TOTALDISCS : 1
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) MUSICBRAINZ_ALBUMSTATUS: Official
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ALBUM ARTIST : World Standard
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ALBUMARTIST : World Standard
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) DATE : 2002-04-03
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) YEAR : 2002
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ALBUM : Jump for Joy
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) MEDIA : CD
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ARTISTSORT : World Standard
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) LABEL : Daisyworld Discs
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) PUBLISHER : Daisyworld Discs
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) CATALOGNUMBER : CTCR-14213
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) ORIGINALDATE : 2002-04-03
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) MUSICBRAINZ_ARTISTID: 0c0112d0-7970-4111-ae63-cdd6bcd85525
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) TRACKNUMBER : 8
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) COMPILATION : 0
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) LANGUAGE : eng
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) RELEASECOUNTRY : JP
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) SCRIPT : Latn
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) MUSICBRAINZ_ALBUMTYPE: album
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) encoder : Lavf53.21.1
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0: Audio: libvorbis, 44100 Hz, 2 channels, s16
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream mapping:
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Stream #0.0 -> #0.0
[19/03/16 00:07:27 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) Press ctrl-c to stop encoding
[19/03/16 00:07:28 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 5kB time=2.55 bitrate= 15.7kbits/s
[19/03/16 00:07:28 UTC]   INFO   AudioScrobblerService   Successfully registered now playing for song 'South American Folk Song' for user meltapple at Last.fm: Sat Mar 19 00:07:27 UTC 2016
[19/03/16 00:07:28 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 35kB time=5.09 bitrate= 56.6kbits/s
[19/03/16 00:07:29 UTC]   INFO   AudioScrobblerService   Successfully registered submission for song 'South American Folk Song' for user meltapple at Last.fm: Sat Mar 19 00:07:28 UTC 2016
[19/03/16 00:07:29 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 63kB time=7.57 bitrate= 67.7kbits/s
[19/03/16 00:07:30 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 91kB time=10.06 bitrate= 73.9kbits/s
[19/03/16 00:07:30 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 118kB time=12.49 bitrate= 77.5kbits/s
[19/03/16 00:07:31 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 143kB time=15.00 bitrate= 78.3kbits/s
[19/03/16 00:07:31 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 169kB time=17.41 bitrate= 79.5kbits/s
[19/03/16 00:07:32 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 223kB time=19.92 bitrate= 91.5kbits/s
[19/03/16 00:07:32 UTC]   INFO   InputStreamReaderThread   (/var/subsonic/transcode/ffmpeg) size= 249kB time=22.42 bitrate= 90.8kbits/s


it looks like it's streaming but chrome just isn't playing. If anyone knows how to resolve this (or an alternative transcoder line that would get this done) then that would be greatly appreciated.

Re: OGG streaming to Chrome on 6.0 beta

PostPosted: Sat Mar 19, 2016 12:23 am
by acroyear
Interesting. http://caniuse.com/#search=ogg suggests you shouldn't even have Safari working, as far as the native audio tag goes.

If this is Chrome on a desktop, maybe view the developer's console and see if there is any output there?

Re: OGG streaming to Chrome on 6.0 beta

PostPosted: Sat Mar 19, 2016 6:58 am
by melt-apple
acroyear wrote:Interesting. http://caniuse.com/#search=ogg suggests you shouldn't even have Safari working, as far as the native audio tag goes.

If this is Chrome on a desktop, maybe view the developer's console and see if there is any output there?

yeah, that's my bad. I subsequently realised that safari was defaulting to mp3 as opposed to ogg, so it's actually not working at all :x

if anyone could advise re: setting up ffmpeg to allow for in-browser ogg streaming that would be greatly appreciated.

Re: OGG streaming to Chrome on 6.0 beta

PostPosted: Sat Mar 19, 2016 2:27 pm
by acroyear
My first attempts didn't work.

I guess what is important are also the to/from fields for the transcoder, as well as the ffmpeg line, to be sure it is attempting the right conversion at all.