Jump to content

Subtitles freeze loading


Recommended Posts

gzbruno
Posted

Hello,

im having some issues with subtitles, first I tried to download the subtitles directly from emby server, i select download and a message appears "added to download que", where is this que? i dont know but they never download, so if i get the file directly and put it in the server, It works, but, if i select the subtitle from roku,when i play the movie, it wont load, it gets stuck around 33%. if I go back and select the "default" subtitle, and play again it loads normally. The same movie,with the same subtitle plays fine on android. Any idea?

gzbruno
Posted

Ok.

Movie A (selected the not default audio, and the not default subtitles, both audio and subs are integrated with mp4) (loading frezze)

http://MYIP:8096/emby/videos/8d3fb9543c63bd1da2715dbffe24e42e/hls1/main/0.ts?DeviceId=61a9a997-bc2c-5b46-ae12-dc1fb2fd0435&MediaSourceId=8d3fb9543c63bd1da2715dbffe24e42e&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=2&VideoBitrate=3071965&AudioBitrate=128035&MaxAudioChannels=6&MaxFramerate=30&MaxWidth=1920&MaxHeight=1080&Level=51&MaxRefFrames=12&MaxVideoBitDepth=8&Profile=high&PlaySessionId=2c79e241a66c48cfafa1a5addc7439d9&api_key=a292a61fbec84c6b9a13c3c4ee9cd5b8&CopyTimestamps=false&EnableSubtitlesInManifest=false&Tag=5850edac1808252eb9ec6d121cfba270&RequireAvc=false&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&BreakOnNonKeyFrames=False

{"Protocol":"File","Id":"8d3fb9543c63bd1da2715dbffe24e42e","Path":"/home/plat/peliculas/Office.christmas.party.2016.1080p-dual-lat.mp4","Type":"Default","Container":"mp4","Name":"1080P/H264/AAC","IsRemote":false,"ETag":"5850edac1808252eb9ec6d121cfba270","RunTimeTicks":63135350000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/24000","CodecTimeBase":"1/48","IsInterlaced":false,"BitRate":1899046,"BitDepth":8,"IsDefault":true,"IsForced":false,"Height":808,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"spa","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Spa AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":163624,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":128035,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"mov_text","CodecTag":"tx3g","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Spa Default","IsInterlaced":false,"BitRate":93,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false},{"Codec":"mov_text","CodecTag":"tx3g","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Spa","IsInterlaced":false,"BitRate":1,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":2194659,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -f mp4 -codec:0 h264 -codec:1 aac -codec:2 aac -i file:"/home/plat/peliculas/Office.christmas.party.2016.1080p-dual-lat.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:2 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -copyts -vsync -1 -codec:a:0 copy -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 6  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/b7baa6719d946f6b2cb871c1e8b03e4d.m3u8" -y "/var/lib/emby-server/transcoding-temp/b7baa6719d946f6b2cb871c1e8b03e4d%d.ts"


ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Unrecognized option 'start_at_zero'.
Error splitting the argument list: Option not found

Now, same movie, but with the defaults. (loads ok)

http://MYIP:8096/emby/videos/8d3fb9543c63bd1da2715dbffe24e42e/hls1/main/0.ts?DeviceId=61a9a997-bc2c-5b46-ae12-dc1fb2fd0435&MediaSourceId=8d3fb9543c63bd1da2715dbffe24e42e&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=2&VideoBitrate=3071965&AudioBitrate=128035&MaxAudioChannels=6&MaxFramerate=30&MaxWidth=1920&MaxHeight=1080&Level=51&MaxRefFrames=12&MaxVideoBitDepth=8&Profile=high&PlaySessionId=2c79e241a66c48cfafa1a5addc7439d9&api_key=a292a61fbec84c6b9a13c3c4ee9cd5b8&CopyTimestamps=false&EnableSubtitlesInManifest=false&Tag=5850edac1808252eb9ec6d121cfba270&RequireAvc=false&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&BreakOnNonKeyFrames=False

{"Protocol":"File","Id":"8d3fb9543c63bd1da2715dbffe24e42e","Path":"/home/plat/peliculas/Office.christmas.party.2016.1080p-dual-lat.mp4","Type":"Default","Container":"mp4","Name":"1080P/H264/AAC","IsRemote":false,"ETag":"5850edac1808252eb9ec6d121cfba270","RunTimeTicks":63135350000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","CodecTag":"avc1","Language":"und","TimeBase":"1/24000","CodecTimeBase":"1/48","IsInterlaced":false,"BitRate":1899046,"BitDepth":8,"IsDefault":true,"IsForced":false,"Height":808,"Width":1920,"AverageFrameRate":24,"RealFrameRate":24,"Profile":"High","Type":"Video","AspectRatio":"2.40:1","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":41,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"spa","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Spa AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":163624,"Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"aac","CodecTag":"mp4a","Language":"eng","TimeBase":"1/48000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo","IsInterlaced":false,"ChannelLayout":"stereo","BitRate":128035,"Channels":2,"SampleRate":48000,"IsDefault":false,"IsForced":false,"Type":"Audio","Index":2,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"mov_text","CodecTag":"tx3g","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Spa Default","IsInterlaced":false,"BitRate":93,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":3,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false},{"Codec":"mov_text","CodecTag":"tx3g","Language":"spa","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Spa","IsInterlaced":false,"BitRate":1,"IsDefault":false,"IsForced":false,"Type":"Subtitle","Index":4,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":2194659,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -f mp4 -codec:0 h264 -codec:1 aac -codec:2 aac -i file:"/home/plat/peliculas/Office.christmas.party.2016.1080p-dual-lat.mp4" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:2 -map -0:s -codec:v:0 copy -bsf:v h264_mp4toannexb -copyts -vsync -1 -codec:a:0 copy -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 6  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/b7baa6719d946f6b2cb871c1e8b03e4d.m3u8" -y "/var/lib/emby-server/transcoding-temp/b7baa6719d946f6b2cb871c1e8b03e4d%d.ts"


ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Unrecognized option 'start_at_zero'.
Error splitting the argument list: Option not found

second movie, this one i uplodaded the subtitles by myself and added to the movie directory.

 

If i select the default subtitles (which actually there are none) its Playing Ok, but it doesnt generate a log.

 

 

the second, When selecting the external srt file. it loads 33% and freezes.

http://MYIP:8096/emby/videos/97d4137c58b44808f0c2df2203c9035e/hls1/main/0.ts?DeviceId=61a9a997-bc2c-5b46-ae12-dc1fb2fd0435&MediaSourceId=97d4137c58b44808f0c2df2203c9035e&VideoCodec=h264&AudioCodec=aac&AudioStreamIndex=1&SubtitleStreamIndex=3&VideoBitrate=3008000&AudioBitrate=192000&MaxAudioChannels=6&MaxFramerate=30&MaxWidth=1920&MaxHeight=1080&Level=51&MaxRefFrames=12&MaxVideoBitDepth=8&Profile=high&PlaySessionId=64443e64220c4d0499a2df4bee651367&api_key=a292a61fbec84c6b9a13c3c4ee9cd5b8&CopyTimestamps=false&SubtitleMethod=Encode&EnableSubtitlesInManifest=false&Tag=315b83c8abb18f6c1491fd0928959c26&RequireAvc=false&RequireNonAnamorphic=false&DeInterlace=false&SegmentContainer=ts&BreakOnNonKeyFrames=False

{"Protocol":"File","Id":"97d4137c58b44808f0c2df2203c9035e","Path":"/home/plat/peliculas/Ghost in the Shell (2017) 720p HDRip 800mb.mkv","Type":"Default","Container":"mkv","Name":"720P/H264/AAC","IsRemote":false,"ETag":"315b83c8abb18f6c1491fd0928959c26","RunTimeTicks":64217810000,"ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"RequiresLooping":false,"VideoType":"VideoFile","MediaStreams":[{"Codec":"h264","TimeBase":"1/1000","CodecTimeBase":"1/60","IsInterlaced":false,"BitRate":1044283,"BitDepth":8,"IsDefault":true,"IsForced":false,"Height":720,"Width":1280,"AverageFrameRate":30,"RealFrameRate":30,"Profile":"High","Type":"Video","AspectRatio":"16:9","Index":0,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"PixelFormat":"yuv420p","Level":40,"IsAnamorphic":false},{"Codec":"aac","Language":"eng","TimeBase":"1/1000","CodecTimeBase":"1/48000","DisplayTitle":"Eng AAC stereo Default","IsInterlaced":false,"ChannelLayout":"stereo","Channels":2,"SampleRate":48000,"IsDefault":true,"IsForced":false,"Type":"Audio","Index":1,"IsExternal":false,"IsTextSubtitleStream":false,"SupportsExternalStream":false,"Level":0,"IsAnamorphic":false},{"Codec":"subrip","TimeBase":"1/1000","CodecTimeBase":"1/1000","DisplayTitle":"Und Default","IsInterlaced":false,"IsDefault":true,"IsForced":false,"Type":"Subtitle","Index":2,"IsExternal":false,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Level":0,"IsAnamorphic":false},{"Codec":"srt","Language":"Espanol","DisplayTitle":"Espanol Forced","IsInterlaced":false,"IsDefault":false,"IsForced":true,"Type":"Subtitle","Index":3,"IsExternal":true,"IsTextSubtitleStream":true,"SupportsExternalStream":true,"Path":"/home/plat/peliculas/Ghost in the Shell (2017) 720p HDRip 800mb.Espanol.forced.srt","IsAnamorphic":true}],"PlayableStreamFileNames":[],"Formats":[],"Bitrate":1044283,"RequiredHttpHeaders":{}}

/usr/bin/ffmpeg -f matroska -codec:0 h264 -codec:1 aac -i file:"/home/plat/peliculas/Ghost in the Shell (2017) 720p HDRip 800mb.mkv" -map_metadata -1 -map_chapters -1 -threads 0 -map 0:0 -map 0:1 -codec:v:0 libx264 -pix_fmt yuv420p -preset veryfast -crf 23 -maxrate 1044283 -bufsize 2088566 -profile:v high -level 4.1 -x264opts:0 subme=0:rc_lookahead=10:me_range=4:me=dia:no_chroma_me:8x8dct=0:partitions=none -force_key_frames "expr:gte(t,n_forced*3)" -copyts -vf "scale=trunc(min(max(iw\,ih*dar)\,min(1920\,1080*dar))/2)*2:trunc(min(max(iw/dar\,ih)\,min(1920/dar\,1080))/2)*2,subtitles=filename='/home/plat/peliculas/Ghost in the Shell (2017) 720p HDRip 800mb.Espanol.forced.srt':charenc=utf-8,setpts=PTS -0/TB" -vsync -1 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "asetpts=PTS-0/TB" -f segment -max_delay 5000000 -avoid_negative_ts disabled -start_at_zero -segment_time 3  -individual_header_trailer 0 -segment_format mpegts -segment_list_type m3u8 -segment_start_number 0 -segment_list "/var/lib/emby-server/transcoding-temp/64335109dab20b673bd3cfe3e29239ed.m3u8" -y "/var/lib/emby-server/transcoding-temp/64335109dab20b673bd3cfe3e29239ed%d.ts"


ffmpeg version 2.4.3-1ubuntu1~trusty6 Copyright (c) 2000-2014 the FFmpeg developers
  built on Nov 22 2014 17:07:19 with gcc 4.8 (Ubuntu 4.8.2-19ubuntu1)
  configuration: --prefix=/usr --extra-version='1ubuntu1~trusty6' --build-suffix=-ffmpeg --toolchain=hardened --extra-cflags= --extra-cxxflags= --libdir=/usr/lib/x86_64-linux-gnu --shlibdir=/usr/lib/x86_64-linux-gnu --incdir=/usr/include/x86_64-linux-gnu --enable-gpl --enable-shared --disable-stripping --enable-avresample --enable-avisynth --enable-fontconfig --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libcdio --enable-libflite --enable-libfreetype --enable-libfribidi --enable-libgme --enable-libgsm --enable-libmodplug --enable-libmp3lame --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-librtmp --enable-libschroedinger --enable-libshine --enable-libspeex --enable-libssh --enable-libtheora --enable-libtwolame --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-opengl --enable-x11grab --enable-libxvid --enable-libx265 --enable-libdc1394 --enable-libiec61883 --enable-libzvbi --enable-libzmq --enable-frei0r --enable-libx264 --enable-libsoxr --enable-openal --enable-libopencv
  libavutil      54.  7.100 / 54.  7.100
  libavcodec     56.  1.100 / 56.  1.100
  libavformat    56.  4.101 / 56.  4.101
  libavdevice    56.  0.100 / 56.  0.100
  libavfilter     5.  1.100 /  5.  1.100
  libavresample   2.  1.  0 /  2.  1.  0
  libswscale      3.  0.100 /  3.  0.100
  libswresample   1.  1.100 /  1.  1.100
  libpostproc    53.  0.100 / 53.  0.100
Unrecognized option 'start_at_zero'.
Error splitting the argument list: Option not found

As I said the strange thing is that on android both movies play fine with or without subs, and whatever audio i want to choose.

gzbruno
Posted

For the subtitle download issue here is the log

System.UnauthorizedAccessException: Access to the path "/home/plat/peliculas/Allied.2016.720p.BluRay.x264.spa.srt" is denied.
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
	  at Emby.Common.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, System.Boolean isAsync) [0x00041] in <03972079d9624fd9b6aafe44e9dc95af>:0 
	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x001f0] in <5da41aaab6eb4eafa1c2841188be5a3e>: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 MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyA+<Post>c__async9.MoveNext () [0x000ab] in <00f6c4a7c02344ee80292218d58bdb3f>:0 
	System.UnauthorizedAccessException
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
	  at Emby.Common.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, System.Boolean isAsync) [0x00041] in <03972079d9624fd9b6aafe44e9dc95af>:0 
	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x001f0] in <5da41aaab6eb4eafa1c2841188be5a3e>: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 MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyA+<Post>c__async9.MoveNext () [0x000ab] in <00f6c4a7c02344ee80292218d58bdb3f>:0 
	

seems like emby is not authorized to put the subtitle file in the folder. any idea how can i enable it? with chmod? or what user does emby uses in linux to grant access for it to that folder?

Posted

For the subtitle download issue here is the log

System.UnauthorizedAccessException: Access to the path "/home/plat/peliculas/Allied.2016.720p.BluRay.x264.spa.srt" is denied.
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
	  at Emby.Common.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, System.Boolean isAsync) [0x00041] in <03972079d9624fd9b6aafe44e9dc95af>:0 
	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x001f0] in <5da41aaab6eb4eafa1c2841188be5a3e>: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 MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyA+<Post>c__async9.MoveNext () [0x000ab] in <00f6c4a7c02344ee80292218d58bdb3f>:0 
	System.UnauthorizedAccessException
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) [0x0025f] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean useAsync) [0x00000] in <8f2c484307284b51944a1a13a14c0266>:0 
	  at (wrapper remoting-invoke-with-check) System.IO.FileStream:.ctor (string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,bool)
	  at Emby.Common.Implementations.IO.ManagedFileSystem.GetFileStream (System.String path, MediaBrowser.Model.IO.FileOpenMode mode, MediaBrowser.Model.IO.FileAccessMode access, MediaBrowser.Model.IO.FileShareMode share, System.Boolean isAsync) [0x00041] in <03972079d9624fd9b6aafe44e9dc95af>:0 
	  at MediaBrowser.Providers.Subtitles.SubtitleManager+<DownloadSubtitles>c__async1.MoveNext () [0x001f0] in <5da41aaab6eb4eafa1c2841188be5a3e>: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 MediaBrowser.Api.Subtitles.SubtitleService+<Post>c__AnonStoreyA+<Post>c__async9.MoveNext () [0x000ab] in <00f6c4a7c02344ee80292218d58bdb3f>:0 
	

seems like emby is not authorized to put the subtitle file in the folder. any idea how can i enable it? with chmod? or what user does emby uses in linux to grant access for it to that folder?

 

As far at this goes, think about what you just said. Emby can't self-grant access to your folders. That's something you need to manage for the Emby system user.

Posted

You have a really old version of ffmpeg installed on your machine. Can you update to a newer version?

Posted

Thanks Luke.

yes those were the problems, now the subtitles and audio work But i still have a little detail with subtitles.

In pc, the subtitles play ok.

In roku,if you play the episode from the beggining the subtitles are a little in advance (1 sec) but if you exit the streaming and resume it, lets say minute 25, the subtitles are now 3-4 secs ahead of the audio. any idea why?

Posted

can we look at a specific example? thanks !

nagetech
Posted

Thanks Luke.

yes those were the problems, now the subtitles and audio work But i still have a little detail with subtitles.

In pc, the subtitles play ok.

In roku,if you play the episode from the beggining the subtitles are a little in advance (1 sec) but if you exit the streaming and resume it, lets say minute 25, the subtitles are now 3-4 secs ahead of the audio. any idea why?

 

Howdy, I'm just curious, Luke said you had an older version of FFmpeg installed on the system. Do you have the version that came with Emby or your install your own version? Just asking as I've thought about upgrading to a newer version of FFmpeg, but wasn't sure if it was a good idea or even recommended.

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