Jump to content

Chromecast aspect ratio wrong


sle118

Recommended Posts

You uploaded another file? I still only see the 4GB file. If that's the one you meant, I already tested that and it was fine here. I will test it on android mobile.

Link to comment
Share on other sites

The file is still uploading.

 

I've been wondering; I have been using emby for a long time, when it was called something else. Any chance that an old transcoding seeing could be lingering in the config somewhere?

Link to comment
Share on other sites

Tolotos

Same problem on Ubuntu after update (installed ffmpeg 3.2.2). 

 

2016-12-24 22:23:31.5380 Error TaskManager: Error
    *** Error Report ***
    Version: 3.1.1.0
    Command line: /usr/lib/emby-server/bin/MediaBrowser.Server.Mono.exe -programdata /var/lib/emby-server -restartpath /usr/lib/emby-server/restart.sh
    Operating system: Unix 4.4.0.57
    64-Bit OS: True
    64-Bit Process: True
    Mono: 4.6.2 (Stable 4.6.2.7/08fd525 Mon Nov 28 20:49:26 UTC 2016)
    Processor count: 12
    Program data path: /var/lib/emby-server
    Application directory: /usr/lib/emby-server/bin
    System.InvalidOperationException: Unexpected ProfileConditionType
     at MediaBrowser.Model.Dlna.ConditionProcessor.IsConditionSatisfied (MediaBrowser.Model.Dlna.ProfileCondition condition, System.Nullable`1[T] currentValue) [0x00095] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.ConditionProcessor.IsVideoConditionSatisfied (MediaBrowser.Model.Dlna.ProfileCondition condition, System.Nullable`1[T] width, System.Nullable`1[T] height, System.Nullable`1[T] bitDepth, System.Nullable`1[T] videoBitrate, System.String videoProfile, System.Nullable`1[T] videoLevel, System.Nullable`1[T] videoFramerate, System.Nullable`1[T] packetLength, System.Nullable`1[T] timestamp, System.Nullable`1[T] isAnamorphic, System.Nullable`1[T] refFrames, System.Nullable`1[T] numVideoStreams, System.Nullable`1[T] numAudioStreams, System.String videoCodecTag, System.Nullable`1[T] isAvc) [0x000dc] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.GetVideoDirectPlayProfile (MediaBrowser.Model.Dlna.VideoOptions options, MediaBrowser.Model.Dto.MediaSourceInfo mediaSource, MediaBrowser.Model.Entities.MediaStream videoStream, MediaBrowser.Model.Entities.MediaStream audioStream, System.Boolean isEligibleForDirectPlay, System.Boolean isEligibleForDirectStream, System.Collections.Generic.List`1[T] allMediaStreams) [0x0039d] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.BuildVideoItem (MediaBrowser.Model.Dto.MediaSourceInfo item, MediaBrowser.Model.Dlna.VideoOptions options) [0x001c9] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.BuildVideoItem (MediaBrowser.Model.Dlna.VideoOptions options) [0x0008e] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__asyncB.MoveNext () [0x0017f] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<ProcessJobItem>c__asyncA.MoveNext () [0x004e0] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<SyncJobItems>c__async9.MoveNext () [0x00234] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__async6.MoveNext () [0x00180] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00181] in <9922445e90a448f2a17d005b1cc33d56>:0
    System.InvalidOperationException
     at MediaBrowser.Model.Dlna.ConditionProcessor.IsConditionSatisfied (MediaBrowser.Model.Dlna.ProfileCondition condition, System.Nullable`1[T] currentValue) [0x00095] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.ConditionProcessor.IsVideoConditionSatisfied (MediaBrowser.Model.Dlna.ProfileCondition condition, System.Nullable`1[T] width, System.Nullable`1[T] height, System.Nullable`1[T] bitDepth, System.Nullable`1[T] videoBitrate, System.String videoProfile, System.Nullable`1[T] videoLevel, System.Nullable`1[T] videoFramerate, System.Nullable`1[T] packetLength, System.Nullable`1[T] timestamp, System.Nullable`1[T] isAnamorphic, System.Nullable`1[T] refFrames, System.Nullable`1[T] numVideoStreams, System.Nullable`1[T] numAudioStreams, System.String videoCodecTag, System.Nullable`1[T] isAvc) [0x000dc] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.GetVideoDirectPlayProfile (MediaBrowser.Model.Dlna.VideoOptions options, MediaBrowser.Model.Dto.MediaSourceInfo mediaSource, MediaBrowser.Model.Entities.MediaStream videoStream, MediaBrowser.Model.Entities.MediaStream audioStream, System.Boolean isEligibleForDirectPlay, System.Boolean isEligibleForDirectStream, System.Collections.Generic.List`1[T] allMediaStreams) [0x0039d] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.BuildVideoItem (MediaBrowser.Model.Dto.MediaSourceInfo item, MediaBrowser.Model.Dlna.VideoOptions options) [0x001c9] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at MediaBrowser.Model.Dlna.StreamBuilder.BuildVideoItem (MediaBrowser.Model.Dlna.VideoOptions options) [0x0008e] in <ddba47e7c85845fc8bf611e33eace7e5>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__asyncB.MoveNext () [0x0017f] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<ProcessJobItem>c__asyncA.MoveNext () [0x004e0] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<SyncJobItems>c__async9.MoveNext () [0x00234] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Server.Implementations.Sync.SyncJobProcessor+<Sync>c__async6.MoveNext () [0x00180] in <4d10c6f314a1415093d5e36c325ea280>:0
    --- End of stack trace from previous location where exception was thrown ---
     at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <8f2c484307284b51944a1a13a14c0266>:0
     at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0
     at Emby.Common.Implementations.ScheduledTasks.ScheduledTaskWorker+<ExecuteInternal>d__68.MoveNext () [0x00181] in <9922445e90a448f2a17d005b1cc33d56>:0 

 

 

EDIT: I found a old version of ffmpeg (N-81470-gc752733-static -- git 20160827). But I get the same error ?!

 

EDIT2: Sample file: https://emby.media/community/index.php?/topic/42904-synctranscode-fails-unexpected-profileconditiontype/&do=findComment&comment=400247

Edited by Tolotos
Link to comment
Share on other sites

@@Tolotos, this thread is about chromecast playback, which appears unrelated to this stack trace. I have already resolved the issue in that stack trace for the next release though.

  • Like 1
Link to comment
Share on other sites

Luke,

 

Here are some more details. I played with the settings in the emby Android client for both local playback as well as chrome cast playback.

 

It looks like, in both cases, that capping to 1080p 4mbps fixes the aspect ratio on Chromecast and the green interlaced picture on the tablet. I get a shitty image quality, though, as ffmpeg is setup, I believe, to sacrifice quality to real time performance.

 

Not sure what to do from here. Any thoughts?

Link to comment
Share on other sites

When direct playing to chromecast, we have no control over the aspect ratio. You probably need to look at your TV settings in order to resolve it. 

 

By forcing transcoding that will probably resolve it, but may reduce quality as you've noted. Try increasing the bitrate to the highest value available that is still less than the overall media bitrate.

Link to comment
Share on other sites

This new

What does this mean?

This was bad autocorrect from my tablet.

 

I meant that I'm ruling out TV settings. I'll record the UI as it starts playing the video so you get a better idea of what's going on.

 

When I tweaked max bandwidth settings, I did so by increment, from the Max to the lowest. At all levels where ffmpeg ran on my server, the ratio was wrong. I tried each possible value available in emby, and for 1080p, only 4mbps wasn't green on my tablet or compressed horizontally on the Chromecast.

 

Something at the 4mbps setting must be kicking in which fixes whatever doesn't compute with these files?

Link to comment
Share on other sites

@@Luke, I uploaded another video to the shared folder, hoping it would play as badly as it does here on every single one of my devices.

 

I also found other people reporting similar issues with interlaced mp4.

 

https://forums.plex.tv/discussion/240732/interlaced-video-playback-issue-on-chromecast-v2

Did you not have issue playing back? If so, was emby transcoding?

 

I think emby should not identify these files, interlaced mp4, as directly playable. Also, choosing profile high on folder sync should force a transcode of the video to progressive rather than performing a direct copy.

 

Thank you for your continued support!

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...