Page 1 of 1

Problems with some videos when streaming to PS4

Posted: Tue Jan 05, 2016 7:33 am
by Darkstar
Hi and a slightly late happy new year everyone!

I'm using UMS for a while now and I'm generally very happy with its features and functionality. However, I have some trouble streaming a few video files to my PS4. The console just reports that it is "unable to play the media". When I force the video through the ffmpeg transcoder, everything works fine.

Now the annoying thing is that this means that in large playlists/directories I have to play the files one by one (since I have to change the dynamically generated transcode-directory every time a video finishes playing before starting the next) so I am looking for suggestions on how to improve that.
Note that I have not found anything that these videos have in common, except that they all seem to be AVC videos with a "High@..." profile and AAC audio. Some are ISOM, some are MP42. Some are 1080p60 10bit while others are 720p30 8bit.

So what are my options to rectify that?
a) Has anyone had the same experiences and can shed some light on why some of these files won't play properly?

b) is there any way to increase the detection of these files so that they are automatically transcoded when detected? If these videos have indeed something in common, maybe there's a way to force them through the transcoder with a config setting?

c) As last resort, is there a way to force all videos through ffmpeg? I see that I can select a "default renderer" and force all videos through that, but which renderer would I choose in my case? Obviously not "PS4" ;-) Is there something like a "dumb" renderer that accepts basic MPEG2 or something?

For the curious (and/or developers), I have pasted some output from MediaInfo on three sample files which fail to play properly here. Maybe someone can see some similarities?

Regards
-Darkstar

P.S.: I'm using a "clean install" of UMS 6.0.0-b1, and the debug log doesn't show anything interesting related to the videos (it even marks them as "fully played" even though they're obviously not playing at all...)

Code: Select all

General
Complete name                            : G:\AMVs\_INCOMING\Connichi 2014\(Various) AMVDE - All Night (Icona Pop - All Night).mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom)
File size                                : 95.6 MiB
Duration                                 : 3mn 7s
Overall bit rate mode                    : Variable
Overall bit rate                         : 4 287 Kbps
Movie name                               : All Night
Performer                                : pic4arts, JadeCharm, Ceddic, Cenit, Noss, Kiriforce, Chinxize, Lapskaus, Asaliachan
Genre                                    : MEP, Dance, Comedy (Fun)
ContentType                              : Music Video
Description                              : Third fun project organised and edited by the German anime music videos community. Every editor added an 1-10 sec part knowing only the previous part, like in the first project Hello We hope you can enjoy it. ;) /  / ...
Recorded date                            : 2014-05-03T00:00:00+02:00
Encoded date                             : UTC 2014-05-04 03:30:08
Tagged date                              : UTC 2014-05-04 03:30:08
Cover                                    : Yes
Comment                                  : Anime: Princess Lover, AKB0048, Angel Beats, Attack On Titan, Bakemonogatari, Ben-To, Beyond The Boundary, ...  / Music: Icona Pop - All Night  / More at AMVNews.ru
PodcastURL                               : (Binary)

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 3mn 7s
Bit rate                                 : 3 999 Kbps
Maximum bit rate                         : 19.4 Mbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 29.970 (30000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.145
Stream size                              : 89.2 MiB (93%)
Writing library                          : x264 core 136 r2350M 3361d59
Encoding settings                        : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / fade_compensate=0.00 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / lookahead_threads=1 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60
Tagged date                              : UTC 2014-05-04 03:30:11

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 3mn 7s
Bit rate mode                            : Variable
Bit rate                                 : 280 Kbps
Maximum bit rate                         : 352 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 44.1 KHz
Frame rate                               : 43.066 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 6.26 MiB (7%)
Encoded date                             : UTC 2014-05-04 03:30:11
Tagged date                              : UTC 2014-05-04 03:30:11

Code: Select all

General
Complete name                            : G:\AMVs\_INCOMING\Connichi 2014\(Various) Nostromo - Hidden Palace [1080p@60, 10bit] (Zircon feat. Jillian Aversa – Just Hold On (Padilion Remix)).mp4
Format                                   : MPEG-4
Format profile                           : Base Media / Version 2
Codec ID                                 : mp42 (mp42/mp41/M4V /M4A /isom)
File size                                : 205 MiB
Duration                                 : 4mn 0s
Overall bit rate mode                    : Variable
Overall bit rate                         : 7 162 Kbps
Encoded date                             : UTC 2014-07-20 18:50:52
Tagged date                              : UTC 2014-07-20 18:50:52

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High 10@L5
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 4mn 0s
Bit rate                                 : 6 838 Kbps
Maximum bit rate                         : 31.8 Mbps
Width                                    : 1 920 pixels
Height                                   : 804 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 60.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 10 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.074
Stream size                              : 196 MiB (95%)
Writing library                          : x264 core 118 r2085+614 d1cc25d
Encoding settings                        : cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / fade_compensate=0.00 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / fgo=0 / bframes=8 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=19.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Encoded date                             : UTC 2014-07-20 18:50:52
Tagged date                              : UTC 2014-07-20 18:50:52

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 4mn 0s
Bit rate mode                            : Variable
Bit rate                                 : 318 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 9.10 MiB (4%)
Encoded date                             : UTC 2014-07-20 18:50:52
Tagged date                              : UTC 2014-07-20 18:50:52

Code: Select all

General
Complete name                            : G:\AMVs\_INCOMING\Connichi 2014\(Maria Holic) AimoAio - Boxxed (Marina And The Diamonds - Oh No).mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/avc1/mp41)
File size                                : 48.5 MiB
Duration                                 : 2mn 58s
Overall bit rate                         : 2 282 Kbps
Movie name                               : Boxxed
Performer                                : AimoAio
Genre                                    : Character Profile
ContentType                              : Music Video
Description                              : ...
Recorded date                            : 2013-10-27T00:00:00+02:00
Writing application                      : Lavf55.18.102
Cover                                    : Yes
Comment                                  : Anime: Maria Holic, Maria Holic Alive  / Music: Marina And The Diamonds - Oh No  / More at AMVNews.ru
PodcastURL                               : (Binary)

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L5
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 16 frames
Codec ID                                 : avc1
Codec ID/Info                            : Advanced Video Coding
Duration                                 : 2mn 58s
Bit rate                                 : 2 070 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 (24000/1001) fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.094
Stream size                              : 43.9 MiB (91%)
Writing library                          : x264 core 136 r2350M 3361d59
Encoding settings                        : cabac=1 / ref=16 / deblock=1:1:1 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / fade_compensate=0.00 / psy_rd=0.40:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / 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=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:0.60

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 2mn 58s
Duration_LastFrame                       : -17ms
Bit rate mode                            : Constant
Bit rate                                 : 205 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 4.36 MiB (9%)
Default                                  : Yes
Alternate group                          : 1

Re: Problems with some videos when streaming to PS4

Posted: Tue Jan 05, 2016 7:40 am
by Nadahar
You need to post debug files as descibed above in red. Capture trying to play several of the files that doesn't play, and we can probably see why.

Re: Problems with some videos when streaming to PS4

Posted: Tue Jan 05, 2016 7:44 am
by Darkstar
Here are the logs. Still not a lot of information in them (like, no info on the video formats and such) but if it helps you then all the better.

I played the same 3 videos posted in my first post (but you already saw that from the logs I guess ;-) )

Re: Problems with some videos when streaming to PS4

Posted: Thu Jan 07, 2016 3:51 am
by Darkstar
So, Nadahar, were you able to see anything from these logs I attached? If not, do you have any suggestions for my third workaround (namely: forcing a default "dumb" renderer for everything)? I tried a few but then either the videos look crappy (i.e. scaled down) or don't play at all on the PS4

If it helps I can send you links where to download the videos in question, but I guess you'd need a PS4 to test them yourself... But if it would help just say the word and you'll get the links

thanks
-Darkstar

Re: Problems with some videos when streaming to PS4

Posted: Sat Jan 09, 2016 4:58 pm
by Supermanfan77
Darkstar wrote:Hi and a slightly late happy new year everyone!

I'm using UMS for a while now and I'm generally very happy with its features and functionality. However, I have some trouble streaming a few video files to my PS4. The console just reports that it is "unable to play the media". When I force the video through the ffmpeg transcoder, everything works fine.

Now the annoying thing is that this means that in large playlists/directories I have to play the files one by one (since I have to change the dynamically generated transcode-directory every time a video finishes playing before starting the next) so I am looking for suggestions on how to improve that.
Note that I have not found anything that these videos have in common, except that they all seem to be AVC videos with a "High@..." profile and AAC audio. Some are ISOM, some are MP42. Some are 1080p60 10bit while others are 720p30 8bit.

So what are my options to rectify that?
a) Has anyone had the same experiences and can shed some light on why some of these files won't play properly?

b) is there any way to increase the detection of these files so that they are automatically transcoded when detected? If these videos have indeed something in common, maybe there's a way to force them through the transcoder with a config setting?

c) As last resort, is there a way to force all videos through ffmpeg? I see that I can select a "default renderer" and force all videos through that, but which renderer would I choose in my case? Obviously not "PS4" ;-) Is there something like a "dumb" renderer that accepts basic MPEG2 or something?

For the curious (and/or developers), I have pasted some output from MediaInfo on three sample files which fail to play properly here. Maybe someone can see some similarities?

Regards
-Darkstar
Try deselecting "Remux videos with tsMuxeR when possible instead of transcoding" under the "Transcoding Settings" tab.

Re: Problems with some videos when streaming to PS4

Posted: Sat Jan 09, 2016 6:58 pm
by Madoka
For streaming, I think the PS4 only goes to level 4.2, so those 3 Level 5 videos can't be streamed.

Re: Problems with some videos when streaming to PS4

Posted: Sat Jan 09, 2016 11:36 pm
by Darkstar
Hi Guys, thanks for the suggestions.

First, the remux checkbox is of course already unchecked (this was the first thing I suspected as well)
Image

Next, for the levels. Yes, something like this was already what I was thinking as well, however, I'm not so sure about what these levels actually mean (I'm not a video codec guy). As I understand it, it's what features are (or can be) used by the encoder in the bitstream? Shouldn't then be level 4.2 a superset of level 3, so everywhere Level 4.2 works, level 3 should also work?

Now the more interesting question: is it possible to somehow specify that all streams that don't conform to this 4.2 level should be transcoded? I couldn't find anything for this in the renderer config file, so I'm guessing it's not possible to set it there. I *think* it might be possible with the MEncoder "Expert Settings" but I don't know how I would check for the MPEG level in this file (the examples only show container and codec related selection):
Image

Does anyone actually know how this config works and if it's possible to filter by MPEG level there?