Jump to content

404 Error when trying to Direct Stream some MKVs with AC3 audio


kingargyle
Go to solution Solved by Luke,

Recommended Posts

kingargyle

I have a couple of MKVs that I created with Handbrake.  One with 1.0.3 and another with an older version of Handbrake.   Both will direct stream fine from Plex through my Serenity client, but neither will direct stream through the same client but using Emby as the server.  Emby is able to Transcode the files and I can get them to play that way.   When I direct Stream, I get a 404 returned.

 

I've have several others that do work correctly.  Here is the MediaInfo from one of the backups of a dvd I own that does not work.   My EmbyServer versions is unfortunately stuck at 3.3.x due to the server it is running on.:

 

General
Unique ID                                : 168834847036156318455275332920746828792 (0x7F0468A440B08334967DCF6AB191E3F8)
Complete name                            : Popeye.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 999 MiB
Duration                                 : 1 h 53 min
Overall bit rate                         : 1 225 kb/s
Movie name                               : Popeye  
Encoded date                             : UTC 2018-11-29 00:50:22
Writing application                      : HandBrake 1.0.3 2017030500
Writing library                          : Lavf57.56.101 / Lavf57.56.101
ErrorDetectionType                       : Per level 1
 
Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : Main@L4
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Bit rate                                 : 753 kb/s
Width                                    : 720 pixels
Height                                   : 364 pixels
Display aspect ratio                     : 2.35:1
Original display aspect ratio            : 2.35:1
Frame rate mode                          : Variable
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 148 r2748 97eaef2
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x1:0x111 / me=hex / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=22.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=20000 / vbv_bufsize=25000 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 NTSC
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
DURATION                                 : 01:53:58.873000000
 
Audio
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Codec ID                                 : A_AC3
Duration                                 : 1 h 53 min
Bit rate mode                            : Constant
Bit rate                                 : 448 kb/s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 kHz
Frame rate                               : 31.250 FPS (1536 spf)
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 365 MiB (37%)
Title                                    : Surround
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 01:53:58.336000000
 
Menu
00:00:00.000                             : :Chapter 1
00:10:57.023                             : :Chapter 2
00:18:00.454                             : :Chapter 3
00:29:27.441                             : :Chapter 4
00:36:36.236                             : :Chapter 5
00:43:09.295                             : :Chapter 6
00:47:53.379                             : :Chapter 7
00:57:45.470                             : :Chapter 8
01:11:38.469                             : :Chapter 9
01:21:31.895                             : :Chapter 10
01:33:56.639                             : :Chapter 11
01:43:51.734                             : :Chapter 12
 
Link to comment
Share on other sites

kingargyle

Luke, here is the relevant portion of the server log where it wasn't able to Direct Stream the above MKV.
 

2018-11-28 21:27:58.022 Error HttpServer: Could not find handler for /emby/Videos/e3a6dbaf34f28b776872309e57695796/stream.mkv,webm2018-11-28 21:27:58.022 Info HttpServer: HTTP Response 404 to 192.168.86.113. Time: 1ms. http://192.168.86.93:8096/emby/Videos/e3a6dbaf34f28b776872309e57695796/stream.mkv,webm?static=true 2018-11-28 21:27:58.032 Info HttpServer: HTTP GET http://192.168.86.93:8096/emby/Videos/e3a6dbaf34f28b776872309e57695796/stream.mkv,webm?static=true. User-Agent=SerenityAndroid, Accept-Encoding=identity, Host=192.168.86.93:8096, Connection=Keep-Alive2018-11-28 21:27:58.033 Error HttpServer: Could not find handler for /emby/Videos/e3a6dbaf34f28b776872309e57695796/stream.mkv,webm2018-11-28 21:27:58.033 Info HttpServer: HTTP Response 404 to 192.168.86.113. Time: 1ms. http://192.168.86.93:8096/emby/Videos/e3a6dbaf34f28b776872309e57695796/stream.mkv,webm?static=true

Here is a link to the full file as well:

 

https://drive.google.com/file/d/1PnokWGljVm2lAly8r40cd-J9TCXLbzyR/view?usp=sharing

Link to comment
Share on other sites

  • Solution

Older versions of the server would sometimes return multiple formats in the Container property because this is what ffmpeg reported to us. So that's why your url has an extension:

mkv,webm

This will not happen anymore with newer versions of the server. If you refresh metadata on that title i think it will be fixed. You can also safe-guard client-side if you wish by splitting the Container property by commas and then using the first value.

  • Like 1
Link to comment
Share on other sites

kingargyle

Older versions of the server would sometimes return multiple formats in the Container property because this is what ffmpeg reported to us. So that's why your url has an extension:

mkv,webm

This will not happen anymore with newer versions of the server. If you refresh metadata on that title i think it will be fixed. You can also safe-guard client-side if you wish by splitting the Container property by commas and then using the first value.

 

Thanks, I'll make a change in my app's mapping so that if the container contains.  MKV or MP4, it only uses that format instead of just passing the container property directly.

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