Jump to content

Android client and Android TV client - Playback Error/Server Transcoding issue?


api182

Recommended Posts

Playback Error

 

When I try to play a specific movie on either my Android TV box or my OnePlus 3 I get the attached error message, the Android TV client attempts it a couple of times before failing completely... If I navigate to this file directly and play it in VLC for Android or SPMC it plays fine, I've watched the film through and it's not corrupt or anything like that so I don't understand what's going on..?

 

The error log doesn't seem to give much away but I gather it's not transcoding for whatever reason, I have created a custom path to a temp transcoding folder in the hope that would fix it, I've also downloaded the latest version of ffmpeg and pointed Emby to use that version instead as a just in case but nothing works...

 

So I'm here to put it to you guys :-)

 

Attached is the screenshot from Android and the log it produces on the server...

 

Cheers! :-)

post-168711-0-86276900-1479206460_thumb.png

transcode-log.txt

Edited by api182
Link to comment
Share on other sites

Happy2Play

Sorry the log provided just stops with no errors.  Can you post a server log reflecting this issue.  What version of ffmpeg were you using before trying a new version?

 

 

Also it doesn't look like the server knows the Media Information yet, have you tried refreshing the media?

Link to comment
Share on other sites

  • 4 weeks later...

Sorry the log provided just stops with no errors.  Can you post a server log reflecting this issue.  What version of ffmpeg were you using before trying a new version?

 

 

Also it doesn't look like the server knows the Media Information yet, have you tried refreshing the media?

 

Finally getting round to providing more info on this... It's still an issue :-(

 

Attached are more informative logs for those who know what they're looking at?

 

Cheers, Adam.

ffmpeg-transcode-4f4e1048-adc2-40cc-a5d0-3902817a178b.txt

ffmpeg-transcode-57b702a3-b3cc-4d35-b97e-614949304dbb.txt

ServerLogExtract.txt

Link to comment
Share on other sites

Hi, can you try this version of ffmpeg?

https://github.com/MediaBrowser/Emby.Resources/tree/master/ffmpeg/windows

 

You can set it up in the server dashboard under Transcoding. Thanks !

 

Ok, done that, although another film that wasn't working previously is now, 'The Full Monty' is still broken :-(

 

2016-12-11 21:16:03.1344 Info App: C:\TV Supporting Resources\ffmpeg\ffmpeg.exe -fflags +genpts -i file:"\\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv" -sn -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -pix_fmt yuv420p -preset superfast -crf 23 -tune zerolatency -b:v 341141334 -maxrate 341141334 -bufsize 682282668 -vsync -1 -profile:v high -level 4.1 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 192000 -af "aresample=async=1" -y "C:\TV Supporting Resources\TranscodingCache\transcoding-temp\b93d38e7a20c15f2c99fef23b86c139f.mkv"
2016-12-11 21:16:03.2964 Debug App: Disposing stream resources
2016-12-11 21:16:03.2964 Info App: FFMpeg exited with code 1
2016-12-11 21:16:03.3664 Error ServiceStackHost: [::ffff:192.168.1.222]:8096 Request not found: /emby/videos/463cfa0069408e7f961b52d5f8b4d9cd/stream.mkv?DeviceId=3ffefb9bd6814f66&MediaSourceId=463cfa0069408e7f961b52d5f8b4d9cd&VideoCodec=h264&AudioCodec=mp3,aac,ac3&VideoBitrate=341141334&AudioBitrate=192000&Level=41&Profile=high&PlaySessionId=4e5de7a8368c4fccb885824d26d6fb7c&api_key=1cfe8b9189a04962a93776959e11c81b&CopyTimestamps=false&SubtitleMethod=Encode&TranscodingMaxAudioChannels=2&EnableSubtitlesInManifest=false&Tag=ebcfc754586fe0241228eb50b3de3bb4&EnableSplittingOnNonKeyFrames=false
Edited by api182
Link to comment
Share on other sites

Please provide the ffmpeg log. thanks.

 

Hi thanks for the super fast reply :)

 

Here are the logs, one of these is through Windows 10 Chrome Browser and one is through the Emby Android App...

 

 
{"Protocol":"File","Id":"463cfa0069408e7f961b52d5f8b4d9cd","Path":"\\\\192.168.1.221\\Movies\\The Full Monty (1997)\\The Full Monty (1997).mkv","Type":"Default","Container":"mkv","Name":"","ETag":"ebcfc754586fe0241228eb50b3de3bb4","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}
 
C:\TV Supporting Resources\ffmpeg\ffmpeg.exe -fflags +genpts -i file:"\\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv" -sn -codec:v:0 libx264 -force_key_frames "expr:gte(t,n_forced*5)" -pix_fmt yuv420p -preset superfast -crf 23 -tune zerolatency -b:v 341141334 -maxrate 341141334 -bufsize 682282668 -vsync -1 -profile:v high -level 4.1 -map_metadata -1 -threads 0 -codec:a:0 libmp3lame -ac 2 -ab 192000 -af "aresample=async=1" -y "C:\TV Supporting Resources\TranscodingCache\transcoding-temp\b93d38e7a20c15f2c99fef23b86c139f.mkv"
 
 
ffmpeg version N-79277-g0c90b2e Copyright © 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
 
 
 
 
{"Protocol":"File","Id":"463cfa0069408e7f961b52d5f8b4d9cd","Path":"\\\\192.168.1.221\\Movies\\The Full Monty (1997)\\The Full Monty (1997).mkv","Type":"Default","Container":"mkv","Name":"","ETag":"ebcfc754586fe0241228eb50b3de3bb4","ReadAtNativeFramerate":false,"SupportsTranscoding":true,"SupportsDirectStream":true,"SupportsDirectPlay":true,"IsInfiniteStream":false,"RequiresOpening":false,"RequiresClosing":false,"SupportsProbing":true,"VideoType":"VideoFile","MediaStreams":[],"PlayableStreamFileNames":[],"Formats":[],"RequiredHttpHeaders":{}}
 
C:\TV Supporting Resources\ffmpeg\ffmpeg.exe -fflags +genpts -i file:"\\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv" -map_metadata -1 -threads 0 -sn -codec:v:0 libx264 -pix_fmt yuv420p -preset superfast -crf 23 -tune zerolatency -b:v 731236571 -maxrate 731236571 -bufsize 1462473142 -vsync -1 -profile:v high -level 4.1 -force_key_frames "expr:gte(t,n_forced*3)" -flags -global_header -sc_threshold 0 -codec:a:0 aac -strict experimental -ac 2 -ab 192000 -af "adelay=1,aresample=async=1" -hls_time 3 -start_number 0 -hls_list_size 0 -hls_base_url "hls/afaacea78ab7e109cdd9e1764188fc0d/" -y "C:\TV Supporting Resources\TranscodingCache\transcoding-temp\afaacea78ab7e109cdd9e1764188fc0d.m3u8"
 
 
ffmpeg version N-79277-g0c90b2e Copyright © 2000-2016 the FFmpeg developers
  built with gcc 5.3.0 (GCC)
  configuration: --enable-gpl --enable-version3 --disable-w32threads --enable-avisynth --enable-bzlib --enable-fontconfig --enable-frei0r --enable-gnutls --enable-iconv --enable-libass --enable-libbluray --enable-libbs2b --enable-libcaca --enable-libfreetype --enable-libgme --enable-libgsm --enable-libilbc --enable-libmodplug --enable-libmfx --enable-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsnappy --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-libzimg --enable-lzma --enable-decklink --enable-zlib
  libavutil      55. 20.100 / 55. 20.100
  libavcodec     57. 34.100 / 57. 34.100
  libavformat    57. 32.100 / 57. 32.100
 
 
Thanks, Adam.
Link to comment
Share on other sites

Happy2Play

Does the web client show Media Info for this movie?  Can you post a log after Refreshing that movie.

Link to comment
Share on other sites

Does the web client show Media Info for this movie?  Can you post a log after Refreshing that movie.

 

I guess this is the problem?

 

I wonder if it shouldn't be an MKV? Or is there any way of me figuring out what the container should be..? :-S

 

Media Info

Containermkv
Path\\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
Edited by api182
Link to comment
Share on other sites

MKV is not a problem.

 

That is the complete media info?  Did you try refreshing it as Happy suggested?

Yep did the refresh, verified that it did it in the server log, and it's still looking like that...

Link to comment
Share on other sites

Then we are not able to probe that file for proper info for some reason.  You should post the server log from when you refreshed it.

Link to comment
Share on other sites

Then we are not able to probe that file for proper info for some reason.  You should post the server log from when you refreshed it.

 

2016-12-13 12:56:33.2770 Debug App: Running FFProbeProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:33.2770 Debug MediaEncoder: C:\TV Supporting Resources\ffmpeg\ffprobe.exe -i file:"\\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv" -threads 0 -v info -print_format json -show_streams -show_chapters -show_format
2016-12-13 12:56:33.9973 Info MediaEncoder: Killing ffmpeg process
2016-12-13 12:56:34.0159 Error MediaEncoder: Error in WaitForExit
2016-12-13 12:56:34.0847 Error MediaEncoder: Error killing process
*** Error Report ***
Version: 3.0.8500.0
Command line: C:\Users\Admin\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 2
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\Admin\AppData\Roaming\Emby-Server
Application Path: C:\Users\Admin\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
No process is associated with this object.
System.InvalidOperationException
  at System.Diagnostics.Process.EnsureState(State state)
  at System.Diagnostics.Process.EnsureState(State state)
  at System.Diagnostics.Process.GetProcessHandle(Int32 access, Boolean throwIfExited)
  at System.Diagnostics.Process.Kill()
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.StopProcess(ProcessWrapper process, Int32 waitTimeMs, Boolean enableForceKill)
 
2016-12-13 12:56:34.0847 Error App: Error in ffprobe
*** Error Report ***
Version: 3.0.8500.0
Command line: C:\Users\Admin\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
Operating system: Microsoft Windows NT 6.2.9200.0
Processor count: 2
64-Bit OS: True
64-Bit Process: True
Program data path: C:\Users\Admin\AppData\Roaming\Emby-Server
Application Path: C:\Users\Admin\AppData\Roaming\Emby-Server\System\MediaBrowser.ServerApplication.exe
ffprobe failed - streams and format are both null.
System.ApplicationException
  at MediaBrowser.MediaEncoding.Encoder.MediaEncoder.<GetMediaInfoInternal>d__59.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.<GetMediaInfo>d__18.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Providers.MediaInfo.FFProbeVideoInfo.<ProbeVideo>d__16`1.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
  at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
  at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
  at MediaBrowser.Providers.Manager.MetadataService`2.<RunCustomProvider>d__23.MoveNext()
 
2016-12-13 12:56:34.0847 Debug App: Running OmdbItemProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.1447 Debug App: Running MovieDbProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.1447 Debug JsonSerializer: Deserializing file C:\Users\Admin\AppData\Roaming\Emby-Server\cache\tmdb-movies2\9427\all-en.json
2016-12-13 12:56:34.1672 Debug App: Running MovieNfoProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.1672 Debug App: MovieNfoProvider returned no metadata for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.1672 Debug App: Running MovieXmlProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.4057 Debug App: Running MovieDbImageProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:34.8328 Debug JsonSerializer: Deserializing file C:\Users\Admin\AppData\Roaming\Emby-Server\cache\tmdb-movies2\9427\all-alllang.json
2016-12-13 12:56:34.8328 Info HttpClient: HttpClientManager GET: https://image.tmdb.org/t/p/original/9InDDhNGnwZGOQHrX2AhEo0ZmcL.jpg
2016-12-13 12:56:35.0392 Debug ProviderManager: Saving image to C:\Users\Admin\AppData\Roaming\Emby-Server\metadata\library\46\463cfa0069408e7f961b52d5f8b4d9cd\poster.jpg
2016-12-13 12:56:35.0392 Debug ProviderManager: Deleting previous image \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).jpg
2016-12-13 12:56:35.0392 Info HttpClient: HttpClientManager GET: https://image.tmdb.org/t/p/original/7ZTrCAbUMz4I5IeyXIGquxinaKr.jpg
2016-12-13 12:56:35.1744 Debug ProviderManager: Saving image to C:\Users\Admin\AppData\Roaming\Emby-Server\metadata\library\46\463cfa0069408e7f961b52d5f8b4d9cd\backdrop.jpg
2016-12-13 12:56:35.1744 Debug App: Running FanartMovieImageProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:35.2071 Debug JsonSerializer: Deserializing file C:\Users\Admin\AppData\Roaming\Emby-Server\cache\fanart-movies\9427\fanart.json
2016-12-13 12:56:35.2071 Info HttpClient: HttpClientManager GET: https://assets.fanart.tv/fanart/movies/9427/hdmovielogo/the-full-monty-561fcc58aa319.png
2016-12-13 12:56:35.7657 Debug ProviderManager: Saving image to C:\Users\Admin\AppData\Roaming\Emby-Server\metadata\library\46\463cfa0069408e7f961b52d5f8b4d9cd\logo.png
2016-12-13 12:56:35.7657 Info HttpClient: HttpClientManager GET: https://assets.fanart.tv/fanart/movies/9427/moviethumb/the-full-monty-56c220026bc60.jpg
2016-12-13 12:56:35.9688 Debug ProviderManager: Saving image to C:\Users\Admin\AppData\Roaming\Emby-Server\metadata\library\46\463cfa0069408e7f961b52d5f8b4d9cd\landscape.jpg
2016-12-13 12:56:35.9688 Debug App: Running OmdbImageProvider for \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv
2016-12-13 12:56:36.1725 Debug App: Saving \\192.168.1.221\Movies\The Full Monty (1997)\The Full Monty (1997).mkv to database.
 
 
Is the file somehow knackered?
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...