[Solved] Cant stream any MP4 files using UMS 4.0.2

For help and support with Universal Media Server
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply
jj123
Posts: 38
Joined: Tue Jul 29, 2014 10:33 am

[Solved] Cant stream any MP4 files using UMS 4.0.2

Post by jj123 »

Hi, After upgrading to v4.0.0 (and now tried v4.0.1) I find that none of my mp4 videos will stream to my Bravia W series TV.

If I reinstall version 3.6.4 all the MP4 files stream correctly.

Is this a bug in v4? or is there a setting that I'm missing?
Last edited by jj123 on Sat Aug 23, 2014 9:04 am, edited 2 times in total.
User avatar
Emi
Posts: 6
Joined: Sun May 12, 2013 4:15 am

Cant stream any MP4 files using UMS 4.0.0

Post by Emi »

I was going to make a thread about this, because I am having the same issue.
But I can confirm this happens in my Panasonic TC-P42XT50X too.

when 3.6.0 was released I tested and had to delete this line from Panasonic.conf "MimeTypesChanges=audio/wav=audio/L16|video/mp4=video/mpeg|video/mkv=video/mpeg" to make mp4 stream correctly, because it was displaying every mp4 as "MPEG2-PS", nor working as expected while other formats worked fine, like mkv and flv etc.
everything was again fine as always.

but with UMS4, this problem doesn't seem to get fixed, no matter how many lines I delete or change from Panasonic.conf, mediainfo=off and StreamExtensions=mp4.... deactivate every transcode engine in UMS, using the old UMS.conf or new, using the UMS 4 java 8... etc, it always displays mp4 as MPEG2-PS and it won't even play those files in my tv in most cases.
of course when I drag and drop the ums.jar from 3.6.4 (so I can go back to that version), everything works perfect in a second, and mp4 start working again, but once I put the ums.jar from UMS4 beta or final, and open UMS, the mpeg2-ps troll label appear again in my tv, not letting me watch mp4s again.

at least 3.6.4 seems to work always good, but I hope there is a fix to this mp4 issue.
Gareee
Posts: 71
Joined: Fri Jun 01, 2012 9:12 am

Re: Cant stream any MP4 files using UMS 4.0.0

Post by Gareee »

MP4s unplayable here as well through my ps3
jj123
Posts: 38
Joined: Tue Jul 29, 2014 10:33 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by jj123 »

Please find attached debug log as requested
Attachments
ums_dbg.zip
ums_dbg.zip for UMS 4.0.2
(22.55 KiB) Downloaded 515 times
Paradox
Posts: 151
Joined: Tue Dec 17, 2013 5:50 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by Paradox »

For the braviaw user/s try my suggestion here
viewtopic.php?f=9&t=2075#p11498

For others i suggest you start you own thread relevant to your own problem devices
jj123
Posts: 38
Joined: Tue Jul 29, 2014 10:33 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by jj123 »

Paradox, thanks for your suggestion, however this issue was caused by a bug in UMS.

SubJunk has found and fixed the issue in 4.0.3
Paradox
Posts: 151
Joined: Tue Dec 17, 2013 5:50 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by Paradox »

Theres a version 4.0.3 already? I was not aware of that.
User avatar
SubJunk
Lead Developer
Posts: 3707
Joined: Sun May 27, 2012 4:12 pm

Re: Cant stream any MP4 files using UMS 4.0.x

Post by SubJunk »

There have been some 4.0.3 previews posted as I tracked down the bug and now it's fixed in this version: http://www.spirton.com/uploads/UMS/UMS-3602b2b.exe
Paradox
Posts: 151
Joined: Tue Dec 17, 2013 5:50 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by Paradox »

SubJunk wrote:There have been some 4.0.3 previews posted as I tracked down the bug and now it's fixed in this version: http://www.spirton.com/uploads/UMS/UMS-3602b2b.exe
Cool :) nice work as always subjunk look forward to it going final.
Wolfgan
Posts: 370
Joined: Fri Feb 08, 2013 12:33 am

Re: Cant stream any MP4 files using UMS 4.0.x

Post by Wolfgan »

I'm also seeing the same behaviour where the PS3 is not served the mp4 file but a transcoded/remuxed one without need, and looking at the debug files I think it's related to the parsing of the file metadata, specifically the container part. Ie in a sample file that plays unchanged on UMS3.6 series, when playing on latest 4.0.3 build it behaves as if playing a mov file:

Code: Select all

DEBUG 2014-08-10 14:30:26.146 [New I/O worker #2] Starting transcode/remux of MythBusters.S14E05.Laws.of.Attraction.HDTV.x264-FUM.mp4 with media info: container: mov, bitrate: 972800, size: 292594748, video codec: h264 (High) (avc1 / 0x31637661), duration: 00:41:01.95, width: 720, height: 404, frame rate: 29.97, muxing mode: null, mime type: video/mp4
	Audio track id: 0, lang: und, flavor: null, audio codec: aac (mp4a / 0x6134706D), sample frequency:48000, number of channels: 2, bits per sample: 16, artist: , album: , song name: , year: 0, track: 0
And when analysing what ffmpeg is detecting:

Code: Select all

DEBUG 2014-08-10 14:30:26.287 [New I/O worker #2] Starting D:\Program Files\Universal Media Server test\win32\ffmpeg.exe -i E:\zInetTransfer\!(0TV) Various\MythBusters.S14E05.Laws.of.Attraction.HDTV.x264-FUM.mp4 -vframes 1 -c:v copy -f h264 -bsf h264_mp4toannexb -an -y pipe:
DEBUG 2014-08-10 14:30:27.568 [New I/O worker #2] Attaching thread: ffmpeg.exe-1
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2] ffmpeg version N-64711-gfa6716c Copyright (c) 2000-2014 the FFmpeg developers
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   built on Jul 16 2014 22:02:05 with gcc 4.8.3 (GCC)
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   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-libmp3lame --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libopenjpeg --enable-libopus --enable-librtmp --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libtwolame --enable-libvidstab --enable-libvo-aacenc --enable-libvo-amrwbenc --enable-libvorbis --enable-libvpx --enable-libwavpack --enable-libwebp --enable-libx264 --enable-libx265 --enable-libxavs --enable-libxvid --enable-decklink --enable-zlib
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   libavutil      52. 92.100 / 52. 92.100
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   libavcodec     55. 69.100 / 55. 69.100
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   libavformat    55. 48.101 / 55. 48.101
DEBUG 2014-08-10 14:30:28.240 [ffmpeg.exe-1-2]   libavdevice    55. 13.102 / 55. 13.102
DEBUG 2014-08-10 14:30:28.255 [ffmpeg.exe-1-2]   libavfilter     4. 11.100 /  4. 11.100
DEBUG 2014-08-10 14:30:28.255 [ffmpeg.exe-1-2]   libswscale      2.  6.100 /  2.  6.100
DEBUG 2014-08-10 14:30:28.255 [ffmpeg.exe-1-2]   libswresample   0. 19.100 /  0. 19.100
DEBUG 2014-08-10 14:30:28.255 [ffmpeg.exe-1-2]   libpostproc    52.  3.100 / 52.  3.100
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2] Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'E:\zInetTransfer\!(0TV) Various\MythBusters.S14E05.Laws.of.Attraction.HDTV.x264-FUM.mp4':
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]   Metadata:
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]     major_brand     : isom
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]     minor_version   : 1
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]     compatible_brands: isomavc1
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]     creation_time   : 2014-08-08 03:24:42
DEBUG 2014-08-10 14:30:28.365 [ffmpeg.exe-1-2]   Duration: 00:41:01.95, start: 0.000000, bitrate: 950 kb/s
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]     Stream #0:0(und): Video: h264 (High) (avc1 / 0x31637661), yuv420p(tv, bt709), 720x404, 826 kb/s, 29.97 fps, 29.97 tbr, 30k tbn, 59.94 tbc (default)
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]     Metadata:
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]       creation_time   : 2014-08-08 03:24:42
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]     Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 48000 Hz, stereo, fltp, 119 kb/s (default)
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]     Metadata:
DEBUG 2014-08-10 14:30:28.380 [ffmpeg.exe-1-2]       creation_time   : 2014-08-08 03:07:30
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2] Output #0, h264, to 'pipe:':
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]   Metadata:
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     major_brand     : isom
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     minor_version   : 1
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     compatible_brands: isomavc1
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     encoder         : Lavf55.48.101
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 720x404, q=2-31, 826 kb/s, 29.97 fps, 29.97 tbn, 29.97 tbc (default)
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]     Metadata:
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]       creation_time   : 2014-08-08 03:24:42
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2] Stream mapping:
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2]   Stream #0:0 -> #0:0 (copy)
DEBUG 2014-08-10 14:30:28.396 [ffmpeg.exe-1-2] Press [q] to stop, [?] for help
DEBUG 2014-08-10 14:30:28.412 [ffmpeg.exe-1-2] frame=    1 fps=0.0 q=-1.0 Lsize=       1kB time=00:00:00.03 bitrate= 217.2kbits/s    
DEBUG 2014-08-10 14:30:28.412 [ffmpeg.exe-1-2] 
DEBUG 2014-08-10 14:30:28.412 [ffmpeg.exe-1-2] video:1kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: 0.000000%
When analyzed by latest Mediainfo it matches what ffmpeg is detecting (MPEG4 ISOM container instead of MOV), but somehow goes interpreted wrong on the supported format decision later:

Code: Select all

General
Complete name                            : E:\zInetTransfer\!(0TV) Various\MythBusters.S14E05.Laws.of.Attraction.HDTV.x264-FUM.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom
File size                                : 279 MiB
Duration                                 : 41mn 1s
Overall bit rate mode                    : Variable
Overall bit rate                         : 951 Kbps
Encoded date                             : UTC 2014-08-08 03:24:42
Tagged date                              : UTC 2014-08-08 03:24:42

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : [email protected]
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 41mn 1s
Bit rate                                 : 826 Kbps
Maximum bit rate                         : 4 056 Kbps
Width                                    : 720 pixels
Height                                   : 404 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.095
Stream size                              : 242 MiB (87%)
Writing library                          : x264 core 142 r2453 ea0ca51
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=2 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=300 / keyint_min=29 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=17500 / vbv_bufsize=17500 / crf_max=0.0 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2014-08-08 03:24:42
Tagged date                              : UTC 2014-08-08 03:26:02
Matrix coefficients                      : BT.709

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 41mn 1s
Bit rate mode                            : Variable
Bit rate                                 : 120 Kbps
Maximum bit rate                         : 153 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Compression mode                         : Lossy
Stream size                              : 35.2 MiB (13%)
Encoded date                             : UTC 2014-08-08 03:07:30
Tagged date                              : UTC 2014-08-08 03:26:02
I hope it helps, Wolf
-- UMS serving PS3, WDTV, Samsung H6400 + J5500 and Kalemsoft renderers! (no video transcoding but remuxing accepted :D )
Post Reply