Jump to content

Unable to sync FLAC files


dom0169

Recommended Posts

dom0169

I'm using Emby Server Version 3.0.5871.0, with last Android App (v 2.3.80, I think).

I was previously able to sync FLAC music files, without transcoding, and now it's not working anymore.

Loogink at the log files, I saw that the Emby server is transcoding the FLAC files to OPUS codec, and there is an error in the transcoding process (Bitrate error).

 

My 2 questions :

- Is there a way to configure Emby, to avoid FLAC transcoding, as the App seems to be able to read them ?

- How to fix the OPUS transcoding error (Specified sample rate 44100 is not supported) ?

 

Here is an extract of the transcoding log :

 

/usr/pbi/emby-amd64/bin/ffmpeg -i file:"/media/musique/Steve Morse/1989 - High Tension Wires/08 - Tumeni Notes.flac" -threads 1 -vn -ab 128000 -ac 2 -ar 44100 -id3v2_version 3 -write_id3v1 1 -y "/var/db/emby-server/sync/a4406d648d5c4cd6a17d4160323a77d1/4f85807ddd7c4e4090cfd067e7dc844b/475261c49bb04ee1a5cf5334f81cf679.opus"


ffmpeg version 2.8.4 Copyright © 2000-2015 the FFmpeg developers
built with gcc 4.2.1 (GCC) 20070831 patched [FreeBSD]
configuration: --prefix=/usr/pbi/emby-amd64 --mandir=/usr/pbi/emby-amd64/man --datadir=/usr/pbi/emby-amd64/share/ffmpeg --pkgconfigdir=/usr/pbi/emby-amd64/libdata/pkgconfig --enable-shared --enable-gpl --enable-postproc --enable-avfilter --enable-avresample --enable-pthreads --disable-libstagefright-h264 --disable-libutvideo --disable-libsoxr --cc=cc --extra-cflags=' -I/usr/pbi/emby-amd64/include' --extra-ldflags='-L/usr/pbi/emby-amd64/lib ' --extra-libs=-lpthread --enable-memalign-hack --disable-libaacplus --disable-indev=alsa --disable-outdev=alsa --disable-libopencore-amrnb --disable-libopencore-amrwb --enable-libass --disable-libbs2b --disable-libcaca --disable-libcdio --disable-libcelt --disable-libdc1394 --disable-debug --disable-htmlpages --disable-libfaac --disable-libfdk-aac --disable-ffserver --disable-libflite --enable-fontconfig --enable-libfreetype --disable-frei0r --disable-libfribidi --disable-libgme --disable-libgsm --enable-iconv --disable-libilbc --disable-indev=jack --disable-ladspa --enable-libmp3lame --disable-libbluray --enable-mmx --disable-libmodplug --disable-openal --disable-indev=openal --disable-opencl --disable-libopencv --disable-opengl --disable-libopenh264 --disable-libopenjpeg --enable-libopus --disable-libpulse --disable-indev=pulse --disable-outdev=pulse --disable-libquvi --enable-runtime-cpudetect --disable-librtmp --enable-libschroedinger --disable-ffplay --disable-outdev=sdl --disable-libsmbclient --disable-libsnappy --disable-libspeex --enable-sse --disable-libssh --enable-libtheora --disable-libtwolame --disable-libv4l2 --disable-indev=v4l2 --disable-outdev=v4l2 --disable-vaapi --disable-vdpau --disable-libvidstab --enable-libvorbis --disable-libvo-aacenc --disable-libvo-amrwbenc --enable-libvpx --disable-libwavpack --disable-libwebp --disable-x11grab --enable-libx264 --enable-libx265 --disable-libxcb --enable-libxvid --disable-outdev=xv --disable-libzmq --disable-libzvbi --enable-gnutls --disable-openssl --disable-version3 --disable-nonfree
libavutil 54. 31.100 / 54. 31.100
libavcodec 56. 60.100 / 56. 60.100
libavformat 56. 40.101 / 56. 40.101
libavdevice 56. 4.100 / 56. 4.100
libavfilter 5. 40.101 / 5. 40.101
libavresample 2. 1. 0 / 2. 1. 0
libswscale 3. 1.101 / 3. 1.101
libswresample 1. 2.101 / 1. 2.101
libpostproc 53. 3.100 / 53. 3.100
[mjpeg @ 0x80a0e5620] Changeing bps to 8
Input #0, flac, from 'file:/media/musique/Steve Morse/1989 - High Tension Wires/08 - Tumeni Notes.flac':

 

...

 

Duration: 00:04:10.97, start: 0.000000, bitrate: 982 kb/s
Stream #0:0: Audio: flac, 44100 Hz, stereo, s16
Stream #0:1: Video: mjpeg, yuvj444p(pc, bt470bg/unknown/unknown), 500x500 [sAR 1:1 DAR 1:1], 90k tbr, 90k tbn, 90k tbc
Metadata:
comment : Cover (front)
[libopus @ 0x80a0e6a20] Specified sample rate 44100 is not supported

 
Link to comment
Share on other sites

jamvids

Hi, same problem here, as well as streaming flac.

 

Sent from my E6853 using Tapatalk

Link to comment
Share on other sites

dom0169

Yes, I realize that FLAC streaming is also broken now ... not only syncing

But it could be a difefrent issue.

 

Here is a server log when trying to stream a FLAC file :

the transcoding is OK (and I noticed that the ffmpeg option -ar 44100 is not used in this case)

 

2016-03-05 15:35:25.1526 Info HttpServer: HTTP GET http://192.168.1.14:8096/emby/Users/fb82af291cf14feab356b410c524db35/Items/6fe479047f66dd44bc6d8f09f2b54a1b. UserAgent: Mozilla/5.0 (Linux; Android 5.1; XT1039 Build/LPB23.13-17.6; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36
2016-03-05 15:35:25.1645 Info HttpServer: HTTP Response 200 to 192.168.1.22. Time: 12ms. http://192.168.1.14:8096/emby/Users/fb82af291cf14feab356b410c524db35/Items/6fe479047f66dd44bc6d8f09f2b54a1b
2016-03-05 15:35:25.2122 Info HttpServer: HTTP POST http://192.168.1.14:8096/emby/Sessions/Playing/Stopped. UserAgent: Mozilla/5.0 (Linux; Android 5.1; XT1039 Build/LPB23.13-17.6; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36
2016-03-05 15:35:25.2153 Info App: Deleting partial stream file(s) /var/db/emby-server/transcoding-temp/952244d838f8eab5fdac6300ae7c5589.opus
2016-03-05 15:35:25.2179 Info HttpServer: HTTP Response 204 to 192.168.1.22. Time: 6ms. http://192.168.1.14:8096/emby/Sessions/Playing/Stopped
2016-03-05 15:35:25.2860 Info HttpServer: HTTP POST http://192.168.1.14:8096/emby/Items/6fe479047f66dd44bc6d8f09f2b54a1b/PlaybackInfo?UserId=fb82af291cf14feab356b410c524db35&StartTimeTicks=0. UserAgent: Mozilla/5.0 (Linux; Android 5.1; XT1039 Build/LPB23.13-17.6; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36
2016-03-05 15:35:25.3285 Info App: Profile: Unknown Profile, No direct play profiles found for Path: /media/musique/Steve Morse/1989 - High Tension Wires/01 - Ghostwind.flac
2016-03-05 15:35:25.3285 Info App: Profile: Unknown Profile, No direct play profiles found for Path: /media/musique/Steve Morse/1989 - High Tension Wires/01 - Ghostwind.flac
2016-03-05 15:35:25.3285 Info App: Profile: Unknown Profile, No direct play profiles found for Path: /media/musique/Steve Morse/1989 - High Tension Wires/01 - Ghostwind.flac
2016-03-05 15:35:25.4163 Info HttpServer: HTTP GET http://192.168.1.14:8096/emby/audio/6fe479047f66dd44bc6d8f09f2b54a1b/stream.opus?DeviceId=2658adb3-6923-93ef-3592-900513591848&MediaSourceId=6fe479047f66dd44bc6d8f09f2b54a1b&AudioCodec=opus&AudioBitrate=192000&MaxAudioChannels=2&PlaySessionId=4bb73183eb004fb5a7f92d74d99734a5&api_key=4d292456459b4cc19887f6bd0dd7229f. UserAgent: Mozilla/5.0 (Linux; Android 5.1; XT1039 Build/LPB23.13-17.6; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36
2016-03-05 15:35:25.4210 Info App: /usr/pbi/emby-amd64/bin/ffmpeg -i file:"/media/musique/Steve Morse/1989 - High Tension Wires/01 - Ghostwind.flac" -threads 0 -vn -ab 192000 -ac 2 -id3v2_version 3 -write_id3v1 1 -y "/var/db/emby-server/transcoding-temp/4b7fbfa59609faa537a01876f9507338.opus"
2016-03-05 15:35:26.0286 Error App: Error streaming media. The client has most likely disconnected or transcoding has failed.
2016-03-05 15:35:26.0319 Error HttpServer: Error in HttpListenerResponseWrapper: Write failure
        *** Error Report ***
        Version: 3.0.5871.0
        Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
        Operating system: Unix 9.1.0.0
        Processor count: 4
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/db/emby-server
        Mono: 4.2.1 (Stable 4.2.1.124/39edf24 Sun Jan 10 05:27:13 UTC 2016)
        Application Path: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe
        Write failure
        System.IO.IOException
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x8141a8810 + 0x0013c> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x8141a86b0 + 0x0009a> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Close () <0x8141a9720 + 0x00169> in <filename unknown>:0
          at MediaBrowser.Server.Implementations.HttpServer.SocketSharp.Extensions.CloseOutputStream (SocketHttpListener.Net.HttpListenerResponse response, ILogger logger) <0x8141a9410 + 0x0005a> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        The socket has been shut down
          at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x8141a8ce0 + 0x00103> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x8141a8810 + 0x000ad> in <filename unknown>:0
 
2016-03-05 15:35:26.0333 Error HttpAsyncTaskHandler: Error occured while Processing Request: Write failure
        *** Error Report ***
        Version: 3.0.5871.0
        Command line: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe -ffmpeg /usr/pbi/emby-amd64/bin/ffmpeg -ffprobe /usr/pbi/emby-amd64/bin/ffprobe -programdata /var/db/emby-server
        Operating system: Unix 9.1.0.0
        Processor count: 4
        64-Bit OS: True
        64-Bit Process: True
        Program data path: /var/db/emby-server
        Mono: 4.2.1 (Stable 4.2.1.124/39edf24 Sun Jan 10 05:27:13 UTC 2016)
        Application Path: /usr/pbi/emby-amd64/lib/emby-server/MediaBrowser.Server.Mono.exe
        Write failure
        System.IO.IOException
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x8141a8810 + 0x0013c> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.InternalWrite (System.Byte[] buffer, Int32 offset, Int32 count) <0x8141a86b0 + 0x0009a> in <filename unknown>:0
          at SocketHttpListener.Net.ResponseStream.Write (System.Byte[] buffer, Int32 offset, Int32 count) <0x8141a58e0 + 0x001d7> in <filename unknown>:0
          at ServiceStack.Formats.HtmlFormat.SerializeToStream (IRequest request, System.Object response, IResponse httpRes) <0x81d2a96d0 + 0x00d05> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteErrorToResponse (IResponse httpRes, IRequest httpReq, System.String contentType, System.String operationName, System.String errorMessage, System.Exception ex, Int32 statusCode) <0x81c3b8bc0 + 0x0021f> in <filename unknown>:0
          at ServiceStack.ServiceStackHost.OnUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81c3b83d0 + 0x002a7> in <filename unknown>:0
          at ServiceStack.HostContext.RaiseUncaughtException (IRequest httpReq, IResponse httpRes, System.String operationName, System.Exception ex) <0x81c3b8380 + 0x00042> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse response, System.Object result, ServiceStack.Web.ResponseSerializerDelegate defaultAction, IRequest request, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x8141a2020 + 0x0112a> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result, System.Byte[] bodyPrefix, System.Byte[] bodySuffix) <0x8141a0190 + 0x002a9> in <filename unknown>:0
          at ServiceStack.HttpResponseExtensionsInternal.WriteToResponse (IResponse httpRes, IRequest httpReq, System.Object result) <0x81418ffa0 + 0x00023> in <filename unknown>:0
          at ServiceStack.Host.RestHandler+<>c__DisplayClass5.<ProcessRequestAsync>b__0 (System.Object response) <0x81419be50 + 0x001e9> in <filename unknown>:0
          at ServiceStack.Host.Handlers.ServiceStackHandlerBase.HandleResponse (System.Object response, System.Func`2 callback, System.Func`2 errorCallback) <0x81419b8a0 + 0x00221> in <filename unknown>:0
        InnerException: System.Net.Sockets.SocketException
        The socket has been shut down
          at System.Net.Sockets.Socket.Send (System.Byte[] buffer, Int32 offset, Int32 size, SocketFlags flags) <0x8141a8ce0 + 0x00103> in <filename unknown>:0
          at System.Net.Sockets.NetworkStream.Write (System.Byte[] buffer, Int32 offset, Int32 size) <0x8141a8810 + 0x000ad> in <filename unknown>:0
 
2016-03-05 15:35:26.5235 Info HttpServer: HTTP POST http://192.168.1.14:8096/emby/Sessions/Playing. UserAgent: Mozilla/5.0 (Linux; Android 5.1; XT1039 Build/LPB23.13-17.6; wv) AppleWebKit/537.36 (KHTML, like Gecko) Version/4.0 Chrome/48.0.2564.106 Mobile Safari/537.36
2016-03-05 15:35:26.5347 Info HttpServer: HTTP Response 204 to 192.168.1.22. Time: 11ms. http://192.168.1.14:8096/emby/Sessions/Playing
 
 
2016-03-05 15:35:36.5095 Info App: FFMpeg exited with code 0
Link to comment
Share on other sites

dom0169

Ok, thanks.

Will you fix the transcoding problem, and the next release still will convert to OPUS ?

I would personnaly prefer to keep the FLAC files without transcoding, but It's only my opinion...

What would be really perfect I think, is a device profile which could be associated to each android device on server side, and be able to configure transcoding prefs (or inside the Android app preferences ?). Perhaps this function already exists, but in this case, I didn't find how to configure it.

 

Thanks again for your work and your support.

(I purchased the Premium version one month ago, to support the project)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...