Jump to content

Emby server has transcoding error for Android tablet


tgp1994

Recommended Posts

Greetings,

 

I'm dealing with what feels like a rather complicated issue... Please bear with me!

 

I'm trying to stream an MKV video to a Samsung Galaxy Tab 4 (Android 5.0.2). If I use Emby's built-in video player, I always get black/no video while the audio continues playing. This is the case both for direct play and for transcoding to a lower bitrate. But that's not the issue I'm trying to deal with right now. Right now, I'm just trying to get an external video player (VLC) working, which I've had some success with but am ultimately stuck now.

 

With the latest version of VLC player on my tablet (from the Play Store), it will play just about any video from Emby except for the one video that I want to play. There should be nothing different technically with this file compared to any other video file on my server. If I try to start it, a notification says that the video path (long URL to my server) could not be found. If I try any other device (including an HTC Android phone), it works fine. Now if I look at the server logs, I see that it's trying to transcode by default and ffmpeg is having some issues:

2018-12-04 14:05:10.543 Info HttpServer: HTTP Response 500 to 192.168.0.106. Time: 202ms. http://192.168.0.2:8096/emby/Videos/b2dde09859e9ec67104c53c9f8245c9a/stream.mkv%3FStatic=true&mediaSourceId=b2dde09859e9ec67104c53c9f8245c9a&deviceId=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&Tag=6995e52031554027571e0e86f1f6d984
2018-12-04 14:05:10.547 Info HttpServer: HTTP GET http://192.168.0.2:8096/emby/Videos/b2dde09859e9ec67104c53c9f8245c9a/stream.mkv%3FStatic=true&mediaSourceId=b2dde09859e9ec67104c53c9f8245c9a&deviceId=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&Tag=6995e52031554027571e0e86f1f6d984. Host=192.168.0.2:8096, User-Agent=VLC/3.0.4 LibVLC/3.0.4, Icy-MetaData=1
2018-12-04 14:05:10.549 Info App: C:\Users\Administrator\AppData\Roaming\Emby-Server\system\ffmpeg.exe -f matroska,webm -i file:"\\diskstation\VideoStation\video.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 copy -y "C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata\transcoding-temp\b36fcd717315b0ed42a99d34ca5d7a8e.mkv?static=true&mediasourceid=b2dde09859e9ec67104c53c9f8245c9a&deviceid=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&tag=6995e52031554027571e0e86f1f6d984"
2018-12-04 14:05:10.635 Info App: C:\Users\Administrator\AppData\Roaming\Emby-Server\system\ffmpeg.exe -f matroska,webm -i file:"\\diskstation\VideoStation\video.mkv" -map 0:0 -map 0:1 -map -0:s -codec:v:0 copy -vsync -1 -map_metadata -1 -map_chapters -1 -threads 0 -codec:a:0 copy -y "C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata\transcoding-temp\b36fcd717315b0ed42a99d34ca5d7a8e.mkv?static=true&mediasourceid=b2dde09859e9ec67104c53c9f8245c9a&deviceid=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&tag=6995e52031554027571e0e86f1f6d984"
2018-12-04 14:05:10.730 Error HttpServer: Error processing request
    *** Error Report ***
    Version: 3.5.3.0
    Command line: C:\Users\Administrator\AppData\Roaming\Emby-Server\system\EmbyServer.dll -noautorunwebapp
    Operating system: Microsoft Windows NT 6.2.9200.0
    64-Bit OS: True
    64-Bit Process: True
    User Interactive: True
    Processor count: 2
    Program data path: C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata
    Application directory: C:\Users\Administrator\AppData\Roaming\Emby-Server\system
    System.Exception: Error starting ffmpeg
       at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
       at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
       at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.GetStreamResult(StreamState state, IDictionary`2 responseHeaders, Boolean isHeadRequest, CancellationTokenSource cancellationTokenSource)
       at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.ProcessRequest(StreamRequest request, Boolean isHeadRequest)
       at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
       at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
       at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)
    System.Exception
       at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
       at Emby.Server.MediaEncoding.Api.BaseStreamingService.StartFfMpeg(StreamState state, String outputPath, EncodingOptions encodingOptions, CancellationTokenSource cancellationTokenSource, Boolean acquireResources)
       at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.GetStreamResult(StreamState state, IDictionary`2 responseHeaders, Boolean isHeadRequest, CancellationTokenSource cancellationTokenSource)
       at Emby.Server.MediaEncoding.Api.Progressive.BaseProgressiveStreamingService.ProcessRequest(StreamRequest request, Boolean isHeadRequest)
       at Emby.Server.Implementations.Services.ServiceExecGeneral.GetTaskResult(Task task)
       at Emby.Server.Implementations.Services.ServiceHandler.ProcessRequestAsync(HttpListenerHost appHost, IRequest httpReq, IResponse httpRes, ILogger logger, String operationName, CancellationToken cancellationToken)
       at Emby.Server.Implementations.HttpServer.HttpListenerHost.RequestHandler(IHttpRequest httpReq, String urlString, String host, String localPath, CancellationToken cancellationToken)

If I try to run the command directly from my desktop, this is the result:

ffmpeg version 4.0.1 Copyright (c) 2000-2018 the FFmpeg developers
  built with gcc 7.3.1 (GCC) 20180710
  configuration: --enable-gpl --enable-version3 --enable-sdl2 --enable-bzlib --enable-fontconfig --enable-gnutls --enabl
e-iconv --enable-libass --enable-libbluray --enable-libfreetype --enable-libmp3lame --enable-libopencore-amrnb --enable-
libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-libshine --enable-libsnappy --enable-libsoxr --enable-l
ibtheora --enable-libtwolame --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --en
able-libxml2 --enable-libzimg --enable-lzma --enable-zlib --enable-gmp --enable-libvidstab --enable-libvorbis --enable-l
ibvo-amrwbenc --enable-libmysofa --enable-libspeex --enable-libxvid --enable-libaom --enable-libmfx --enable-amf --enabl
e-ffnvcodec --enable-cuvid --enable-d3d11va --enable-nvenc --enable-nvdec --enable-dxva2 --enable-avisynth
  libavutil      56. 14.100 / 56. 14.100
  libavcodec     58. 18.100 / 58. 18.100
  libavformat    58. 12.100 / 58. 12.100
  libavdevice    58.  3.100 / 58.  3.100
  libavfilter     7. 16.100 /  7. 16.100
  libswscale      5.  1.100 /  5.  1.100
  libswresample   3.  1.100 /  3.  1.100
  libpostproc    55.  1.100 / 55.  1.100
Input #0, matroska,webm, from 'file:\\diskstation\VideoStation\video.mkv':
  Metadata:
    encoder         : libmakemkv v1.12.2 (1.3.5/1.4.7) win(x64-release)
    creation_time   : 2018-05-17T00:54:54.000000Z
  Duration: 00:43:01.11, start: 0.000000, bitrate: 6257 kb/s
    Chapter #0:0: start 0.000000, end 266.599667
    Metadata:
      title           : Chapter 01
    Chapter #0:1: start 266.599667, end 455.288167
    Metadata:
      title           : Chapter 02
    Chapter #0:2: start 455.288167, end 792.958833
    Metadata:
      title           : Chapter 03
    Chapter #0:3: start 792.958833, end 1088.087000
    Metadata:
      title           : Chapter 04
    Chapter #0:4: start 1088.087000, end 1192.191000
    Metadata:
      title           : Chapter 05
    Chapter #0:5: start 1192.191000, end 1581.246333
    Metadata:
      title           : Chapter 06
    Chapter #0:6: start 1581.246333, end 1627.459167
    Metadata:
      title           : Chapter 07
    Chapter #0:7: start 1627.459167, end 1919.951367
    Metadata:
      title           : Chapter 08
    Chapter #0:8: start 1919.951367, end 2185.550033
    Metadata:
      title           : Chapter 09
    Chapter #0:9: start 2185.550033, end 2282.947333
    Metadata:
      title           : Chapter 10
    Chapter #0:10: start 2282.947333, end 2544.909033
    Metadata:
      title           : Chapter 11
    Chapter #0:11: start 2544.909033, end 2581.111867
    Metadata:
      title           : Chapter 12
    Stream #0:0(eng): Video: mpeg2video (Main), yuv420p(tv, progressive), 720x480 [SAR 32:27 DAR 16:9], SAR 186:157 DAR
279:157, 29.97 fps, 29.97 tbr, 1k tbn, 59.94 tbc
    Metadata:
      BPS-eng         : 5796702
      DURATION-eng    : 00:43:01.111866666
      NUMBER_OF_FRAMES-eng: 61885
      NUMBER_OF_BYTES-eng: 1870241462
      SOURCE_ID-eng   : 0100E0
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-05-17 00:54:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:1(eng): Audio: ac3, 48000 Hz, 5.1(side), fltp, 448 kb/s (default)
    Metadata:
      title           : Surround 5.1
      BPS-eng         : 448000
      DURATION-eng    : 00:43:01.088000000
      NUMBER_OF_FRAMES-eng: 80659
      NUMBER_OF_BYTES-eng: 144540928
      SOURCE_ID-eng   : 0180BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-05-17 00:54:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
    Stream #0:2(eng): Subtitle: dvd_subtitle, 720x480 (default)
    Metadata:
      BPS-eng         : 7857
      DURATION-eng    : 00:41:53.969544444
      NUMBER_OF_FRAMES-eng: 902
      NUMBER_OF_BYTES-eng: 2469112
      SOURCE_ID-eng   : 0120BD
      _STATISTICS_WRITING_APP-eng: MakeMKV v1.12.2 win(x64-release)
      _STATISTICS_WRITING_DATE_UTC-eng: 2018-05-17 00:54:54
      _STATISTICS_TAGS-eng: BPS DURATION NUMBER_OF_FRAMES NUMBER_OF_BYTES SOURCE_ID
[NULL @ 0000006863a61580] Unable to find a suitable output format for 'C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata\transcoding-temp\b36fcd717315b0ed42a99d34ca5d7a8e.mkv?static=true&mediasourceid=b2dde09859e9ec67104c53c9f8245c9a&deviceid=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&tag=6995e52031554027571e0e86f1f6d984'
C:\Users\Administrator\AppData\Roaming\Emby-Server\programdata\transcoding-temp\b36fcd717315b0ed42a99d34ca5d7a8e.mkv?static=true&mediasourceid=b2dde09859e9ec67104c53c9f8245c9a&deviceid=be5b4e4144fa11d5&api_key=8b60ce6d0fca4401bd7bb4abaeb35248&tag=6995e52031554027571e0e86f1f6d984: Invalid argument

Any ideas why it's giving an invalid argument?

Link to comment
Share on other sites

  • 2 weeks later...

Hi Luke,

 

Unfortunately, the ffmpeg log included in my OP is the only one I have. Just like last time, it looks like I've run into an intermittent issue that I can no longer reproduce. :rolleyes:

 

I am still having issues with the built-in player only showing a black screen, should I create a separate post for this?

 

Thank you!

Link to comment
Share on other sites

Right, but these are only portions of the log files. Can you please attach the complete log files? Thanks !

 

 

 

I am still having issues with the built-in player only showing a black screen, should I create a separate post for this?

 

We can stay here, it might be related. Thanks.

Link to comment
Share on other sites

Ok, no problem. So here's my embyserver log, which shows me starting up the server, connecting with the tablet, then trying to play an H264 MP4 video with the native player and seeing the black screen. As usual, audio and UI still work, just no video. I only changed the filename in the log for privacy's sake. Interestingly, the server did not generate an ffmpeg log during this session. Please let me know if there's anything else I can get!

embyserver.txt

Link to comment
Share on other sites

Thank you for posting that build, Luke. When I try to run it on my tablet though, it immediately hits some kind of error and has to close. Want me to see if I can grab an ADB log?

Link to comment
Share on other sites

I believe this is already resolved for the next server release. You can always jump on the beta channel if you need immediate relief. Thanks.

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