Jump to content

Big problems with subtitles


fbrassin

Recommended Posts

fbrassin

I started the movie and wait about 10 minutes, but it didn't start. I always had the spinner.

Then stopped the movie and started another one that started after a few time.

Link to comment
Share on other sites

fbrassin

Hello,

i have big problems reproducing movies or serie tv with subtitles enabled.

If i try nothing starts.

The only way to play something is by setting subtitles to none.

I tried to make it work and after many minutes emby told me there has been an error.

I'm using ATV4 as client and UBUNTU 16.04 has server with versione 3.2.33.0

 

I think there also have been some kind of crashes, because when i played narcos i made the movie work without stopping it, and i saw more then one ffmpeg-transcode logs has been created.

Moreover the strange thing is that i started playing narcos at 23.15 and it gave me an error after i think 15/20 minutes, but i see other logs at a time after that.

Please can you help me?

 

Here i'm attaching all the logs from yesterday.

Tell me if i have to give more logs.

 

Tnx

 

I see many of these messages in log:

2017-10-15 23:11:18.410 Info SubtitleEncoder: Killing ffmpeg subtitle extraction process
2017-10-15 23:11:18.410 Info SubtitleEncoder: Deleting extracted subtitle due to failure: /var/lib/emby-server/data/subtitles/0/09163f1c-90b9-bac0-7da0-43c09c35f4d1.srt
2017-10-15 23:11:18.410 Error SubtitleEncoder: ffmpeg subtitle extraction failed for file:"/media/google_crypt/crypt/Serie_Tv/Narcos/Season03/Narcos.S03E01.La strategia del capo.mkv" to /var/lib/emby-server/data/subtitles/0/09163f1c-90b9-bac0-7da0-43c09c35f4d1.srt
2017-10-15 23:11:18.410 Info SubtitleEncoder: /var/lib/emby-server/ffmpeg/20170308/ffmpeg -i file:"/media/google_crypt/crypt/Serie_Tv/Narcos/Season03/Narcos.S03E01.La strategia del capo.mkv" -map 0:3 -an -vn -c:s copy "/var/lib/emby-server/data/subtitles/0/09163f1c-90b9-bac0-7da0-43c09c35f4d1.srt"
2017-10-15 23:11:18.440 Error HttpServer: Error processing request
	*** Error Report ***
	Version: 3.2.33.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 3.13.0.24
	64-Bit OS: True
	64-Bit Process: True
	User Interactive: False
	Mono: 4.8.1 (Stable 4.8.1.0/22a39d7 Tue May  2 22:27:58 UTC 2017)
	Processor count: 4
	Program data path: /var/lib/emby-server
	Application directory: /usr/lib/emby-server/bin
	System.Exception: ffmpeg subtitle extraction failed for file:"/media/google_crypt/crypt/Serie_Tv/Narcos/Season03/Narcos.S03E01.La strategia del capo.mkv" to /var/lib/emby-server/data/subtitles/0/09163f1c-90b9-bac0-7da0-43c09c35f4d1.srt
	  at Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder+<ExtractTextSubtitleInternal>d__28.MoveNext () [0x00313] in <ccd2ae8ee598477d88af74c02d3c68b3>: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 Emby.Server.MediaEncoding.Subtitles.SubtitleEncoder+<ExtractTextSubtitle>d__27.MoveNext () [0x00155] in <ccd2ae8ee598477d88af74c02d3c68b3>:0 
	--- End of stack trace from previous location where exception was thrown ---

ffmpeg-transcode-0760d0f0-8c67-44a2-b725-c1b56ca9f097.txt

ffmpeg-transcode-49fd97f4-c4a9-4b9e-a3a7-f0ed226f8f89.txt

ffmpeg-transcode-5d554678-a1ed-43e6-868a-0484e9b878a0.txt

ffmpeg-transcode-59d624ae-b2bc-4b08-afae-b709b5718ae5.txt

ffmpeg-transcode-bf39bc27-87ad-41cb-963d-4d7b9ee47540.txt

server-63643622400.zip

server-63643708800.zip

Edited by fbrassin
Link to comment
Share on other sites

@@fbrassin it appears that on your system extracting subtitles takes a really long time and causes playback to stall.

 

Try going to your Emby Server dashboard -> Transcoding and uncheck the box to allow on the fly subtitle extraction. This will result in more video transcoding but they should work.

Link to comment
Share on other sites

fbrassin

@@fbrassin it appears that on your system extracting subtitles takes a really long time and causes playback to stall.

 

Try going to your Emby Server dashboard -> Transcoding and uncheck the box to allow on the fly subtitle extraction. This will result in more video transcoding but they should work.

 

No, it doesn't work also with this.

Is it possible that the problem is caused by the fact that i'm using a remote folder mounted to store my movies?

 

What does exactly do subtitles extraction? 

Isn't there the possibility to download subtitles of all the movies in backgroud, so that when i play a movie subtitles are available?

I saw there is in scheduled tasks a menu to download missing subtitles, but it seems it does not do anything.

Link to comment
Share on other sites

Why doesn't it work? what happens?

 

In order for the subtitle downloader to do anything you need to first configure it in the Subtitles menu.

Link to comment
Share on other sites

fbrassin

Actually nothing has changed also with uncheck the box to allow on the fly subtitle extraction.

If a play the movie with forced subtitles it never starts.

If i play it with no subtitles it works normally.

I really don't know what else to try.

 

About subtitle download in scheduled task i see as in the picture attached, but if i go in /var/lib/emby-server/data/subtitles i just find 8 files:

./b/bcc5d8ef-dd96-1a15-c247-e08dc1414b63.srt
./7/716c9663-3a65-3523-6b3a-bcf73712c2a0.srt
./8/8e592a2e-297c-3826-ed7f-cba2e8bb8dc7.srt
./e/e8b85bac-aa00-53eb-9682-a3d205222f03.srt
./e/ee7df150-b5ca-c5bf-26ed-d3727ae17c6f.srt
./e/ebf5502b-e9b6-d454-92d3-a530545ee133.srt
./f/fec3374b-6637-079c-1a9a-18eb63e72905.srt
./f/f50f39b7-9ef3-bf2c-7675-fde67c405d45.srt
 
59e5c9e5e6b83_download.png
 
While my subtitles settings are like this:
 
59e5ca5d64d9a_subtitles.png
Edited by fbrassin
Link to comment
Share on other sites

fbrassin

Maybe i found the reason for all this.

I realized i have not write permission to mounted drive, but only read ones. Because i mounted it with plexdrive, which is read-only.

Is it supposed emby writes subtitles to the location where movie file is? Or does it need to have write permission to extract subtitles?

Link to comment
Share on other sites

  • 2 weeks later...
fbrassin

I found a work around that seems to work.

I setted subtitles as smart.

When i play a movie i have to go in menu audio and subtiles had select subtitles none, and make the movie start from that menu, telling emby app to play which those settings.

In this case movie starts almost on the fly and i have subtitles with foreign language.

 

The problem is when i forget to do this and i play from the movie menu.

In this case emby starts transcoding and the movie never starts.

Even if i exit movie and play it disabling sibtitles it doesn't start, because in background emby is transcoding my movie, the second play that is in direct stream seems to be appended to the previous one.

My question is:

is there a way to stop transcoding so that i can play my movie in direct play?

tnx

Link to comment
Share on other sites

Can i have my atv app setted with subtiles smart in playing settings and having by default subtiles none in movies?

 

Hi, use the web app to click your user profile icon -> subtitle settings. Then set your subtitle playback mode to None.

  • Like 1
Link to comment
Share on other sites

fbrassin

Yesterdey i made a new test.

Playing a movie i saw in my dir /var/lib/emby-server/data/subtitles/ that emby was extracting .srt file, but for some reason after some time of increase of size the file desappeared and rebuild again.

It went on for very long time. 

Then i decided to kill the process that was building subtitle with command "kill -9 PID" under terminal.

After doing that, my movie started immediately.

 

I thing there is somethiong worng that i don't understand.

 

Here are my logs:

server log: https://paste2.org/PvjYf3IX

Remux log: https://paste2.org/wmZJW2Cv

Link to comment
Share on other sites

The file disappeared because when it takes too long we kill the extraction and abort it.

 

Use the web app to click your user profile icon -> subtitle settings. Then set your subtitle playback mode to None.

 
For better subtitle performance, consider using the open subtitle to download external srt files.
Link to comment
Share on other sites

fbrassin

I'm downloading all subtitles from open subtitles.

But i see those .srt files are complete subtitles.

With those files in the same dir and with the same name of the mvk file is it possible to display them only for foreign language?
 

Link to comment
Share on other sites

fbrassin

I still did not solve my problems with subtitles.

I can play all movies and series if i set no subtitles, but as soon as i select a subtitle, movie does not start.

I tried playing movie from a remote dir mounted or from a local file.

I tried check and uncheck allow extraction on the fly, but it seems it does nothing.

Logs are always the same as the ones i attached in this thread

I really don't know what to do.

I'm afraid i will have to give up using emby untill i solve this problem.

I'm sorry as i like emby very much and i like support you give.

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