Jump to content
FredFrin

Embedded image causing playback error on flac audio

Recommended Posts

FredFrin
Posted (edited)

Hi,

 

I'm often playing shuffled libs quietly & continuously in the background while working - and annoyingly it stops every now & then. 

I usually run a browser ( eg chromium / chrome ) as emby client - the server is running in docker.

 

Today I was annoyed enough to take a closer look ;)  On this occasion I found it to be reproducible for all songs in an album

(all flac).

 

Browsewr UI pops up a window with  'Playback error - No compatible streams are currently available. Please try again or contact your system administrator for details.'

 

 

Browser console shows 204 & 206 Status with msg:

 

playing url: http://192.168.43.9:8096/emby/Audio/42240/universal?UserId=53fdc847e3b04f3b8281b03619eb463d&DeviceId=TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBVYnVudHUgQ2hyb21pdW0vODAuMC4zOTg3LjE2MyBDaHJvbWUvODAuMC4zOTg3LjE2MyBTYWZhcmkvNTM3LjM2fDE1ODc2MjgyNTk3MjM1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Cmp2%2Cmp3%7Cmp2%2Caac%7Caac%2Cm4a%7Caac%2Cmp4%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav%7CPCM_S16LE%2Cogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=0827f942e5f643549b913694eaf345a4&PlaySessionId=1588098545010&StartTimeTicks=0&EnableRedirection=true

playbackmanager.js?v=4.4.2.0:1 Active player: {"name":"Web Audio Player","id":"htmlaudioplayer","playerName":"Web Audio Player","playableMediaTypes":["Audio"],"isLocalPlayer":true,"supportedCommands":["GoHome","GoToSettings","VolumeUp","VolumeDown","Mute","Unmute","ToggleMute","SetVolume","SetAudioStreamIndex","SetSubtitleStreamIndex","SetMaxStreamingBitrate","DisplayContent","GoToSearch","DisplayMessage","SetRepeatMode","PlayMediaSource","PlayTrailers","ToggleFullscreen"]}
playbackmanager.js?v=4.4.2.0:1 playbackmanager playback error type: mediadecodeerror
 
 
I believe this corresponds to the following in the server logs:
 
2020-04-28 20:30:41.306 Info MediaInfoService: User policy for Fred. EnableAudioPlaybackTranscoding: True

2020-04-28 20:30:41.387 Info HttpServer: HTTP POST http://192.168.43.9:8096/emby/Sessions/Playing. UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Ubuntu Chromium/80.0.3987.163 Chrome/80.0.3987.163 Safari/537.36
2020-04-28 20:30:41.389 Info SessionManager: Playback start reported by app Emby Web 4.4.2.0 playing Have You Come To Stay. Started at 0 ms
2020-04-28 20:30:41.390 Info HttpServer: HTTP Response 204 to 192.168.42.4. Time: 3ms. http://192.168.43.9:8096/emby/Sessions/Playing
2020-04-28 20:30:41.411 Info HttpServer: SocketException: http://192.168.43.9:8096/emby/Audio/42237/universal?UserId=53fdc847e3b04f3b8281b03619eb463d&DeviceId=TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBVYnVudHUgQ2hyb21pdW0vODAuMC4zOTg3LjE2MyBDaHJvbWUvODAuMC4zOTg3LjE2MyBTYWZhcmkvNTM3LjM2fDE1ODc2MjgyNTk3MjM1&MaxStreamingBitrate=140000000&Container=opus%2Cmp3%7Cmp3%2Cmp2%2Cmp3%7Cmp2%2Caac%7Caac%2Cm4a%7Caac%2Cmp4%7Caac%2Cflac%2Cwebma%2Cwebm%2Cwav%7CPCM_S16LE%2Cogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&api_key=0827f942e5f643549b913694eaf345a4&PlaySessionId=1588098544997&StartTimeTicks=0&EnableRedirection=true
2020-04-28 20:30:41.411 Info HttpServer: HTTP Response 206 to 192.168.42.4. Time: 109ms. http://192.168.43.9:8096/emby/Audio/42237/universal?UserId=53fdc847e3b04f3b8281b03619eb463d&DeviceId=TW96aWxsYS81LjAgKFgxMTsgTGludXggeDg2XzY0KSBBcHBsZVdlYktpdC81MzcuMzYgKEtIVE1MLCBsaWtlIEdlY2tvKSBVYnVudHUgQ2hyb21pdW0vODAuMC4zOTg3LjE2MyBDaHJvbWUvODAuMC4zOTg3LjE2MyBTYWZhcmkvNTM3LjM2fDE1ODc2MjgyNTk3MjM1&MaxStreamingBitrate=140000000&Container=opus,mp3|mp3,mp2,mp3|mp2,aac|aac,m4a|aac,mp4|aac,flac,webma,webm,wav|PCM_S16LE,ogg&TranscodingContainer=aac&TranscodingProtocol=hls&AudioCodec=aac&PlaySessionId=1588098544997&StartTimeTicks=0&EnableRedirection=true

 

 

Now I started looking closer at the flac file. Using metaflac I saw the file contains 4 blocks:

 

Block#0 STREAMINFO

Block#1 PICTURE

Block#2 VORBIS_COMMENT

Block#3 PADDING

 

Trying various combinations of removing meta data, I found that deletion of the image fixes the issue:

metaflac --remove --block-number=1 Test.flac

That removes the block without the --dont-use-padding option - ie the image space is padded and the file is the same size before & after the command.

 

I attach Test.flac before block removal.

 

Is this likely a browser issue or something that can be handled in emby?

 

cheers,

ff

Test.flac.gz

embyserver.txt.gz

Edited by FredFrin

Share this post


Link to post
Share on other sites
Luke

Hi, it's an issue with the browser video player. What we need to do in this situation is handle the failure and automatically switch to transcoding. We have this in place already for video playback but we haven't added it for music just yet. We will get there though. Thanks for reporting.

Share this post


Link to post
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...