Jump to content

Strange working


gnubibi

Recommended Posts

gnubibi

Hi,

 

I am using Emby 3.2.60 on FreeBSD 11, and I have questions for you.

 

Server is a shuttle atom fanless (http://global.shuttle.com/main/productsSpec?productId=1488) , 4GB, SSD HD, and data (movies) are on a NAS (NFS mount).

 

Example, I am trying to watch a movie (h264, AC3) on :

 

- cellphone (P8 Huawei) android with emby application => working well (direct) on wifi

 

- my computer (very recent) => transcoding is on (firefox or chrome) - wired connection (1Gb) - and so it's not working well

 

- chromecast (on FR Freebox 4k with 1GB wired connection) => direct play but no sound (DTS or AC3)

 

- ipad with application => need to pay for embyPremiere

- ipad with player on server => movies are not played (maybe because transcoding is needed)

 

What am I missing ?

 

Maybe my Freebox player get an update for the chromecast, because few days ago the same movie was working on it.

 

But why transcoding is on when watvhing on my computer (debian SID) ?

 

++

Link to comment
Share on other sites

gnubibi

Video stop for 1 or 2 second during the file opening/writing when playing on the computer (chrome)

 

[segment @ 0x80c267c00] Opening '/var/db/emby-server/transcoding-temp/85e90f02c085844c432b999d35a8fc1d.m3u8.tmp' for writing
[segment @ 0x80c267c00] Opening '/var/db/emby-server/transcoding-temp/85e90f02c085844c432b999d35a8fc1d123.ts' for writing
frame=  735 fps= 21 q=-1.0 size=N/A time=00:12:18.32 bitrate=N/A speed=21.3x    
frame=  747 fps= 21 q=-1.0 size=N/A time=00:12:18.75 bitrate=N/A speed=  21x    
frame=  759 fps= 21 q=-1.0 size=N/A time=00:12:19.19 bitrate=N/A speed=20.7x    
frame=  768 fps= 21 q=-1.0 size=N/A time=00:12:19.62 bitrate=N/A speed=20.4x    
frame=  779 fps= 21 q=-1.0 size=N/A time=00:12:20.05 bitrate=N/A speed=20.1x    
frame=  789 fps= 21 q=-1.0 size=N/A time=00:12:20.50 bitrate=N/A speed=19.9x    
frame=  801 fps= 21 q=-1.0 size=N/A time=00:12:20.92 bitrate=N/A speed=19.6x    
frame=  812 fps= 21 q=-1.0 size=N/A time=00:12:21.37 bitrate=N/A speed=19.4x    
frame=  821 fps= 21 q=-1.0 size=N/A time=00:12:21.80 bitrate=N/A speed=19.1x    
frame=  832 fps= 21 q=-1.0 size=N/A time=00:12:22.22 bitrate=N/A speed=18.9x    
frame=  842 fps= 21 q=-1.0 size=N/A time=00:12:22.67 bitrate=N/A speed=18.7x    
frame=  852 fps= 21 q=-1.0 size=N/A time=00:12:23.16 bitrate=N/A speed=18.4x    
frame=  864 fps= 21 q=-1.0 size=N/A time=00:12:23.61 bitrate=N/A speed=18.2x    
[segment @ 0x80c267c00] Opening '/var/db/emby-server/transcoding-temp/85e90f02c085844c432b999d35a8fc1d.m3u8.tmp' for writing
[segment @ 0x80c267c00] Opening '/var/db/emby-server/transcoding-temp/85e90f02c085844c432b999d35a8fc1d124.ts' for writing
 
file : ffmpeg-remux-ff5bb211-5d01-4c18-b73f-69f47c1fb583.txt
Link to comment
Share on other sites

Hi @@gnubibi, a remux is not a full transcode. I would need to see the complete log to tell you what happened, but most likely we preserved the original video stream as-is, and just converted the audio.

 

This is necessary because Chrome and Firefox do not support AC3 or DTS. In fact, there is no browser that currently supports DTS, and only Microsoft Edge supports AC3. But Edge doesn't support the mkv container, so it would have to be mp4. The reason this is not playing very well for you is because you're only getting 21fps on the remux process, and that's not going to be fast enough to be playable.

 

Again if you can provide complete log file examples then I can provide more detailed information. 

 

Does this answer your question about the browser? Thanks.

Link to comment
Share on other sites

gnubibi

Hey thanks for you quick answer :)

 

Ok for the sound issue, it was a mistake on my side, I did not give enough permission (in emby) to the user used for watching movie...

 

About the fps, does it mean my server is not enough powerful (CPU) ?

 

I have recompile ffmpeg this night, and it looks better, I'll make more test and let you know.

 

++

Link to comment
Share on other sites

gnubibi

More informations with same movie  :

 

on Firefox 57.0.3 (quantum) = 21 fps

on google-chrome  63.0.3239.108 = 115 fps

Link to comment
Share on other sites

More informations with same movie  :

 

on Firefox 57.0.3 (quantum) = 21 fps

on google-chrome  63.0.3239.108 = 115 fps

 

The browsers each support different formats, therefore the transcoding methods will vary between them. Again with complete log files I can supply more detailed information.

 

Please let us know if this helps. Thanks.

Link to comment
Share on other sites

gnubibi

Yes, you helped me a lot, and I have a last questions, about subtitles.

When I am trying to download subtitles from emby, it's not working and I am getting a message like : download in queue.

 

And this is the error in the log file :

2018-01-05 09:53:59.648 Info HttpClient: HttpClientManager POST: https://api.opensubtitles.org/xml-rpc2018-01-05 09:54:07.694 Info SubtitleManager: Saving subtitles to /var/db/emby-server/metadata/library/85/851aa72cd5c4b22d9636f4207d8ad8e9/my-movie.eng.srt2018-01-05 09:54:07.700 Error App: Error downloading subtitles	*** Error Report ***	Version: 3.2.60.0	Command line: /usr/local/lib/emby-server/MediaBrowser.Server.Mono.exe -os freebsd -ffmpeg /usr/local/bin/ffmpeg -ffprobe /usr/local/bin/ffprobe -programdata /var/db/emby-server	Operating system: Unix 11.1.0.0	64-Bit OS: True	64-Bit Process: True	User Interactive: False	Mono: 4.8.1 (4.8.1.0 Thu Jan  4 18:37:21 UTC 2018)	Processor count: 4	Program data path: /var/db/emby-server	Application directory: /usr/local/lib/emby-server	System.IO.DirectoryNotFoundException: Could not find a part of the path "/var/db/emby-server/metadata/library/85/851aa72cd5c4b22d9636f4207d8ad8e9/my-movie.eng.srt".	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<TrySaveToFiles>c__async2.MoveNext () [0x001d4] in <7095f8574e0845a79c33ffbee512a43c>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x002fa] in <7095f8574e0845a79c33ffbee512a43c>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyB+<Post>c__asyncA.MoveNext () [0x000ab] in <4aa1483226094a21828df71c908d75e0>:0 	System.IO.DirectoryNotFoundException	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<TrySaveToFiles>c__async2.MoveNext () [0x001d4] in <7095f8574e0845a79c33ffbee512a43c>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x002fa] in <7095f8574e0845a79c33ffbee512a43c>:0 	--- End of stack trace from previous location where exception was thrown ---	  at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000c] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess (System.Threading.Tasks.Task task) [0x0004e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification (System.Threading.Tasks.Task task) [0x0002e] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.TaskAwaiter.ValidateEnd (System.Threading.Tasks.Task task) [0x0000b] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at System.Runtime.CompilerServices.ConfiguredTaskAwaitable+ConfiguredTaskAwaiter.GetResult () [0x00000] in <dbb16e0bacdc4a0f87478e401bc29b6c>:0 	  at MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyB+<Post>c__asyncA.MoveNext () [0x000ab] in <4aa1483226094a21828df71c908d75e0>:0

If you have an idea :)

/var/db/emby-server/metadata/library/85/851aa72cd5c4b22d9636f4207d8ad8e9/ directory exists (there is a poster.jpg inside)

++

Link to comment
Share on other sites

gnubibi

ok, in fact directory 851aa72cd5c4b22d9636f4207d8ad8e9 was missing.

If I created it, I am able to download subtitles.

 

Any idea of why the directory was missing or not created ?

 

Or, is it possible to download the subtitle in the same directory of the movie ?

Edited by gnubibi
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...