Universalmediaserver: Playstation 3 audio changes to static during playback

Created on 1 Mar 2017  路  73Comments  路  Source: UniversalMediaServer/UniversalMediaServer

I am playing back videos to my PS3 from Linux Mint 18.1. All is fine until after a seemingly random time, the audio changes to static noise. I've seen this in ums-6.5.0 and ums-6.6.0. The only way to recover the audio is to restart UMS. The video appears to be replaying at a faster rate as well. I'm running with "TranscodeVideo = MPEGTS-H264-AC3" added to my Sony-PlayStation3.conf (and I can't find any alternative that works).

Before the loss of audio, the playstation reports the audio is Dolby Digital 5.1 48kHz 650kbps. After the glitch, it reports Linear PCM 2.3Mbps.

I've noticed other people posting about similar problems.

Trace logs are attached for two instances... I paused about 5-10 sec after the glitch and saved.
debug.log.txt
debug2.log.txt
UMS.conf.txt
Sony-PlayStation3.conf.txt

Source video:

Input #0, matroska,webm, from 's1e15 Grail.mkv':
  Metadata:
    title           : BABYLON5_SEASON_1
    CREATION_TIME   : 2017-02-22T22:27:04Z
    ENCODER         : Lavf56.40.101
  Duration: 00:41:57.02, start: 0.000000, bitrate: 1402 kb/s
    Chapter #0:0: start 0.000000, end 289.120000
    Metadata:
      title           : Chapter 1
    Chapter #0:1: start 289.200000, end 894.080000
    Metadata:
      title           : Chapter 2
    Chapter #0:2: start 894.160000, end 1198.720000
    Metadata:
      title           : Chapter 3
    Chapter #0:3: start 1198.800000, end 1699.840000
    Metadata:
      title           : Chapter 4
    Chapter #0:4: start 1699.920000, end 2311.680000
    Metadata:
      title           : Chapter 5
    Chapter #0:5: start 2311.760000, end 2516.960000
    Metadata:
      title           : Chapter 6
    Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/bt470bg/bt709), 716x576 [SAR 64:45 DAR 716:405], SAR 209:147 DAR 37411:21168, 25 fps, 25 tbr, 1k tbn, 25 tbc (default)
    Metadata:
      DURATION        : 00:41:57.021000000
    Stream #0:1(eng): Audio: aac (LC), 48000 Hz, 5.1, fltp (default)
    Metadata:
      title           : Surround
      LANGUAGE        : eng
      DURATION        : 00:41:56.970000000

Update: re-encoding the input video to ac3 5.1 audio has the same problem. However, 2 channel ac3 seems (on initial checks) to work fine.

All 73 comments

@TimSC Could you send the full MediaInfo log of one of the file giving you issue ?

In the "View" tab select "Text", and in the "Debug" tab select "Advanced mode", then export the file and post it here.

I saw something that could perhaps explain it, but i will need the informations given MediaInfo log.

@Sami32 Is this right?

General
Count                                    : 322
Count of stream of this kind             : 1
Kind of stream                           : General
Kind of stream                           : General
Stream identifier                        : 0
Inform                                   : Matroska: 421 MiB, 41mn 57s
Unique ID                                : 111094730190831380811220770189731501728
Unique ID                                : 111094730190831380811220770189731501728 (0x53941116C7293D1B30934A536E3D16A0)
Count of video streams                   : 1
Count of audio streams                   : 1
Count of menu streams                    : 1
Video_Format_List                        : HEVC
Video_Format_WithHint_List               : HEVC
Codecs Video                             : V_MPEGH/ISO/HEVC
Audio_Format_List                        : AAC
Audio_Format_WithHint_List               : AAC
Audio codecs                             : AAC LC
Audio_Language_List                      : English
Complete name                            : /media/data/home/tim/Media/Babylon 5/s1e15 Grail.mkv
Folder name                              : /media/data/home/tim/Media/Babylon 5
File name                                : s1e15 Grail
File extension                           : mkv
Format                                   : Matroska
Format                                   : Matroska
Format/Url                               : http://packs.matroska.org/
Format/Extensions usually used           : mkv mk3d mka mks
Commercial name                          : Matroska
Format version                           : Version 4 / Version 2
Codec                                    : Matroska
Codec                                    : Matroska
Codec/Url                                : http://packs.matroska.org/
Codec/Extensions usually used            : mkv mk3d mka mks
File size                                : 441349730
File size                                : 421 MiB
File size                                : 421 MiB
File size                                : 421 MiB
File size                                : 421 MiB
File size                                : 420.9 MiB
Duration                                 : 2517021
Duration                                 : 41mn 57s
Duration                                 : 41mn 57s 21ms
Duration                                 : 41mn 57s
Duration                                 : 00:41:57.021
Duration                                 : 00:41:57.021
Overall bit rate                         : 1402768
Overall bit rate                         : 1 403 Kbps
Title                                    : BABYLON5_SEASON_1
Movie name                               : BABYLON5_SEASON_1
Encoded date                             : UTC 2017-02-22 22:27:04 / UTC 2017-02-22T22:27:04Z
File last modification date              : UTC 2017-02-22 23:06:35
File last modification date (local)      : 2017-02-22 23:06:35
Writing application                      : HandBrake 0.10.2 2016021200
Writing application                      : HandBrake 0.10.2 2016021200
Writing library                          : Lavf56.40.101 / Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101

Video
Count                                    : 333
Count of stream of this kind             : 1
Kind of stream                           : Video
Kind of stream                           : Video
Stream identifier                        : 0
StreamOrder                              : 0
Inform                                   : 716*576 (16:9), HEVC (Main@L3@Main)
ID                                       : 1
ID                                       : 1
Unique ID                                : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format/Url                               : http://www.itu.int
Commercial name                          : HEVC
Format profile                           : Main@L3@Main
Internet media type                      : video/H265
Codec ID                                 : V_MPEGH/ISO/HEVC
Codec                                    : V_MPEGH/ISO/HEVC
Codec                                    : V_MPEGH/ISO/HEVC
Codec profile                            : Main@L3@Main
Width                                    : 716
Width                                    : 716 pixels
Height                                   : 576
Height                                   : 576 pixels
Stored_Width                             : 720
Sampled_Width                            : 716
Sampled_Height                           : 576
Pixel aspect ratio                       : 1.422
Display aspect ratio                     : 1.767
Display aspect ratio                     : 16:9
Original display aspect ratio            : 1.768
Original display aspect ratio            : 16:9
Frame rate mode                          : VFR
Frame rate mode                          : Variable
Original frame rate                      : 25.000
Original frame rate                      : 25.000 fps
Resolution                               : 8
Resolution                               : 8 bits
Colorimetry                              : 4:2:0
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8
Bit depth                                : 8 bits
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Writing library                          : x265 - 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Writing library                          : x265 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Encoded_Library_Name                     : x265
Encoded_Library_Version                  : 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=1 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=25 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=2 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=1200 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No
Color range                              : Limited
colour_description_present               : Yes
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
DURATION                                 : 00:41:57.021000000

Audio
Count                                    : 273
Count of stream of this kind             : 1
Kind of stream                           : Audio
Kind of stream                           : Audio
Stream identifier                        : 0
StreamOrder                              : 1
Inform                                   : English, 48.0 KHz, 6 channels, AAC (LC)
ID                                       : 2
ID                                       : 2
Unique ID                                : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Commercial name                          : AAC
Format profile                           : LC
Format settings, SBR                     : No (Explicit)
Format settings, SBR                     : No (Explicit)
Codec ID                                 : A_AAC
Codec                                    : AAC LC
Codec                                    : AAC LC
Codec/Family                             : AAC
Duration                                 : 2517021
Duration                                 : 41mn 57s
Duration                                 : 41mn 57s 21ms
Duration                                 : 41mn 57s
Duration                                 : 00:41:57.021
Duration                                 : 00:41:57.021
Channel(s)                               : 6
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Channel positions                        : 3/2/0.1
ChannelLayout                            : C L R Ls Rs LFE
Samples per frame                        : 1024
Sampling rate                            : 48000
Sampling rate                            : 48.0 KHz
Samples count                            : 120817008
Frame rate                               : 46.875
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Compression mode                         : Lossy
Delay                                    : 0
Delay                                    : 00:00:00.000
Delay, origin                            : Container
Delay, origin                            : Container
Delay relative to video                  : 0
Delay relative to video                  : 00:00:00.000
Video0 delay                             : 0
Video0 delay                             : 00:00:00.000
Title                                    : Surround
Language                                 : en
Language                                 : English
Language                                 : English
Language                                 : en
Language                                 : eng
Language                                 : en
Default                                  : Yes
Default                                  : Yes
Forced                                   : No
Forced                                   : No
DURATION                                 : 00:41:56.970000000

Menu
Count                                    : 96
Count of stream of this kind             : 1
Kind of stream                           : Menu
Kind of stream                           : Menu
Stream identifier                        : 0
Chapters_Pos_Begin                       : 90
Chapters_Pos_End                         : 96
00:00:00.000                             : :Chapter 1
00:04:49.200                             : :Chapter 2
00:14:54.160                             : :Chapter 3
00:19:58.800                             : :Chapter 4
00:28:19.920                             : :Chapter 5
00:38:31.760                             : :Chapter 6

@TimSC :+1:
I was suspecting that.
Could you backup your _ums.jar_ file in your UMS program folder and use that one instead ?
https://we.tl/UA1GkwvZzr

Let's see if that make any improvements with one or two of the video engines (MEncoder or Avisynth/ ?).

Could you post the _FFmpeg_ log as well ? Thank you.
ffmpeg -i s1e15 Grail.mkv -report

Can i ask you why do you use this old MediaInfo version (7.82) ? Any issues with the newest (7.93) ?

@Sami32 The same problem occurred with the updated ums.jar (6.6.1-snapshot) using both the default ffmpeg engine and mencoder transcoding.

I used the older MediaInfo as it was in my linux distro repository. I can try a later version if that would help. The ffmpeg log seems to be identical to what I posted in the original report. Are you referring to something else?

@TimSC Interesting, and sadly i'm not surprise. It's anyway making things a little more clear for us.

Could you post the new data from this log with the UMS version i sended you ? Thanks.
Normally, you'll see the framerate infos in this log, and they wasn't displayed/used in your anterior log.

DEBUG 2017-02-28 22:41:56.741 [New I/O worker #6] Starting transcode/remux of s1e15 Grail.mkv with media info: container: mkv, bitrate: 1402768, size: 441349730, video tracks: 1, audio tracks: 1, video codec: h265, duration: 00:41:57.00, width: 716, height: 576, frame rate: , thumb size: 19861, mime type: video/x-matroska, matrix coefficients: BT.601, file title from metadata: BABYLON5_SEASON_1
    Audio track id: 0, lang: en, audio track title from metadata: Surround, audio codec: AAC, sample frequency:48000, number of channels: 6, bits per sample: 16

My bad, forget about FFmpeg log, i get it from your log.

I don't think that MediaInfo upgrade will solve this issue, only that many improvements was done since then, but it doesn't hurt to upgrade to be sure, IMHO.

DEBUG 2017-02-28 22:42:22.029 [ffmpeg64-26-2]     Stream #0:0: Video: hevc (Main), yuv420p(tv, smpte170m/bt470bg/bt709), 716x576 [SAR 64:45 DAR 716:405], SAR 209:147 DAR 37411:21168, 25 fps, 25 tbr, 1k tbn, 25 tbc (default)

As a side note, this has nothing to do with your issue but i saw that you have a very low bandwidth. Perhaps you should unselect "Use automatic maximum bandwidth" and set your maximum bandwidth to 8Mb/s ?
As the _ping_ estimation could be a little "hazardous" sometimes, depending on the selected address.

ums_dbg.zip
Log generated with the updated ums.jar (6.6.1-snapshot) attached.

I could take a look at my bandwidth, but its not great on my network. I have a powerline system between the PS3 and the UMS server.

@TimSC Sorry but your log don't have the same movie streamed: _s2e10 GROPOS.mkv_
So i cannot compare :(
I need that line in your log : Starting transcode/remux of s1e15 Grail.mkv with media info:

Since the automatic bandwidth have chance to be lowest and that we are halving this bandwidth by 2, meaning that you stream h.265 movie with 2Mb/s !
So should try to set manually your maximum bandwidth in the "General Configuration" tab of UMS, to something like 8 Mb/s and try to increase by step of 10 Mb/s until you see some stuttering while streaming videos.

s2e10 has more or less the same encoding settings and problems. However, I did get a log from s1e15 Grail with the ums.jar (6.6.1-snapshot).
ums_dbg2.zip

Before I did that, I did manage to get things running with maximum_bitrate = 8 but I have a suspicion it won't go much faster (I'll try some tests later).

DEBUG 2017-03-16 22:33:35.578 [New I/O worker #2] Starting transcode/remux of s1e15 Grail.mkv with media info: container: mkv, bitrate: 1402768, size: 441349730, video tracks: 1, audio tracks: 1, video codec: h265, duration: 00:41:57.00, width: 716, height: 576, frame rate: 25.000, thumb size: 20482, mime type: video/x-matroska, matrix coefficients: BT.601, file title from metadata: BABYLON5_SEASON_1
    Audio track id: 0, lang: en, audio track title from metadata: Surround, audio codec: AAC, sample frequency:48000, number of channels: 6, bits per sample: 16

Thank you :+1:
As we disagree on one PR about the way to handle it, i need objective data to put on the table ;)

About your bandwidth, i remember the first time that i tried UMS, it gived me also 4 Mb/s, and i'm actually setting it to 35 Mb/s without issue, so it's why i tell you about that. Now the choice is your :wink:

@Sami32 My videos generally need transcoding to play, which is not a good test as the transcoded stream only seems to want 2-3Mbit/sec. I'll have a look again at this soon.

Let me know if you need any more tests running!

What do you think the problem is, in general terms? (I'm not that familiar with UMS internals but I'm interested.)

@TimSC I'm suspecting the framerates of the video, container/video/codec, to be incorrectly set or incorrectly handled by the video engines when they are not identical, or that some miss.
Such format as Telecine include 2 different framerates inside the video.
Most of the time, the homemade videos done by users with Handbrake seem to be problematic, essentially when they are converted to a different framerate and/or framerate mode.
It seem happen while the framerate mode is changed during the conversion (CFR <==> VFR)

That's said, it will need more searches and tests to figure this out; but we definitively have a framerate issue, though it could always not been directly related to issues like your.

@TimSC If you're still around, i'll appreciate some more informations.

  • Do all your video files having that issue, are from the same kind ? (HEVC/AAC)

Because all the others similar issues met on the forum seem to meet this requirement as well, so i'm wondering if that really the case or just a coincidence.(i don't really belive in coincidence ;))

  • If that the case, do some others video having HEVC video codec and with an audio codec that is not AAC , or no audio, play fine ?
  • Or any video having AAC codec and a video codec not being HEVC play fine ?

@Sami32 I'll have a look at this and get back to you.

@TimSC I tried a fix, while waiting for your additional informations ;)
As i cannot test it myself, i'll rely on PS3 user feedback to know if it's OK.
https://we.tl/T8q9ge8bzE~~

EDIT: Updated.
https://wetransfer.com/downloads/7c9c984093f61a56beb1dfb8e25b084a20170523122741/7ef2ec8af5c4d3ba1f6ed7cea1595e9d20170523122741/dc483b

I was really busy for the last few weeks, but I'm getting back on top of things at last.

This file has the audio problem (h264-AAC encoded):

Unique ID                                : 95457647423517156748352197696379198927 (0x47D07962822FDD9F7E4792CC56149DCF)
Complete name                            : s4e06 Into the Fire-h264.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 251 MiB
Duration                                 : 41mn 58s
Overall bit rate                         : 835 Kbps
Movie name                               : BABYLON5_S4_DISC2
Writing application                      : Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 41mn 58s
Width                                    : 716 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Writing library                          : x264 core 148 r2643 5c65704
Encoding settings                        : cabac=1 / ref=3 / deblock=1:0:0 / analyse=0x3:0x113 / me=hex / subme=7 / 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=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=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.280000000

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 41mn 58s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Title                                    : Surround
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.122000000

Menu
00:00:00.000                             : :Chapter 1
00:04:33.400                             : :Chapter 2
00:13:38.200                             : :Chapter 3
00:19:21.240                             : :Chapter 4
00:27:08.040                             : :Chapter 5
00:38:08.600                             : :Chapter 6

Vidoes with H265-AC3 had the audio problem:

General
Unique ID                                : 330383771668018238695376082353467088681 (0xF88D9993038AF4E1E74B7B5047EEDF29)
Complete name                            : s4e06 Into the Fire-ac3.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 496 MiB
Duration                                 : 41mn 58s
Overall bit rate                         : 1 651 Kbps
Movie name                               : BABYLON5_S4_DISC2
Writing application                      : Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L3@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Bit rate                                 : 1 170 Kbps
Width                                    : 716 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 16:9
Frame rate mode                          : Variable
Original frame rate                      : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Writing library                          : x265 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=1 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=25 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=2 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=1200 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
DURATION                                 : 00:41:58.266000000

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                                 : 41mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 448 Kbps
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                                : 32 bits
Compression mode                         : Lossy
Stream size                              : 134 MiB (27%)
Title                                    : Surround
Writing library                          : Lavc56.60.100 ac3
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.144000000

Menu
00:00:00.000                             : :Chapter 1
00:04:33.400                             : :Chapter 2
00:13:38.200                             : :Chapter 3
00:19:21.240                             : :Chapter 4
00:27:08.040                             : :Chapter 5
00:38:08.600                             : :Chapter 6

@Sami32 Unfortunately the wetransfer link has expired. Can you try sending it again?

Update: This H265-PCM encoded file also has the audio problem:

General
Unique ID                                : 55989590617873215551016791094033434914 (0x2A1F33F2344D9E2136BBF25B2CDCC922)
Complete name                            : s4e06 Into the Fire-pcm.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 1.70 GiB
Duration                                 : 41mn 58s
Overall bit rate                         : 5 812 Kbps
Movie name                               : BABYLON5_S4_DISC2
Writing application                      : Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L3@Main
Codec ID                                 : V_MPEGH/ISO/HEVC
Width                                    : 716 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Original display aspect ratio            : 16:9
Frame rate mode                          : Variable
Original frame rate                      : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Writing library                          : x265 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=1 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=25 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=2 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=1200 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Default                                  : Yes
Forced                                   : No
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
DURATION                                 : 00:41:58.261000000

Audio
ID                                       : 2
Format                                   : PCM
Codec ID                                 : A_PCM/INT/LIT
Duration                                 : 41mn 58s
Bit rate mode                            : Constant
Channel(s)                               : 6 channels
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Title                                    : Surround
Writing library                          : Lavc56.60.100 pcm_s16le
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.122000000

Menu
00:00:00.000                             : :Chapter 1
00:04:33.400                             : :Chapter 2
00:13:38.200                             : :Chapter 3
00:19:21.240                             : :Chapter 4
00:27:08.040                             : :Chapter 5
00:38:08.600                             : :Chapter 6

And another with the problem (MPEG4-AAC):

General
Unique ID                                : 326976020514621421975876949497311177708 (0xF5FD4A7875ABE421E590FB13E92CABEC)
Complete name                            : s4e06 Into the Fire-mpeg4.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 149 MiB
Duration                                 : 41mn 58s
Overall bit rate                         : 498 Kbps
Movie name                               : BABYLON5_S4_DISC2
Writing application                      : Lavf56.40.101
Writing library                          : Lavf56.40.101 / Lavf56.40.101

Video
ID                                       : 1
Format                                   : MPEG-4 Visual
Format profile                           : Simple@L1
Format settings, BVOP                    : No
Format settings, QPel                    : No
Format settings, GMC                     : No warppoints
Format settings, Matrix                  : Default (H.263)
Codec ID                                 : V_MPEG4/ISO/ASP
Codec ID/Info                            : Advanced Simple Profile
Duration                                 : 41mn 58s
Width                                    : 716 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 25.000 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Compression mode                         : Lossy
Writing library                          : Lavc56.60.100
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.280000000

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : A_AAC
Duration                                 : 41mn 58s
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Title                                    : Surround
Language                                 : English
Default                                  : Yes
Forced                                   : No
DURATION                                 : 00:41:58.122000000

Menu
00:00:00.000                             : :Chapter 1
00:04:33.400                             : :Chapter 2
00:13:38.200                             : :Chapter 3
00:19:21.240                             : :Chapter 4
00:27:08.040                             : :Chapter 5
00:38:08.600                             : :Chapter 6

Changing the container format doesn't help either:

General
Complete name                            : s4e06 Into the Fire-mp4.mp4
Format                                   : MPEG-4
Format profile                           : Base Media
Codec ID                                 : isom (isom/iso2/mp41)
File size                                : 421 MiB
Duration                                 : 41mn 58s
Overall bit rate                         : 1 404 Kbps
Movie name                               : BABYLON5_S4_DISC2
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Writing application                      : Lavf56.40.101

Video
ID                                       : 1
Format                                   : HEVC
Format/Info                              : High Efficiency Video Coding
Format profile                           : Main@L3@Main
Codec ID                                 : hev1
Codec ID/Info                            : High Efficiency Video Coding
Duration                                 : 41mn 58s
Bit rate                                 : 1 200 Kbps
Width                                    : 716 pixels
Height                                   : 576 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Variable
Frame rate                               : 25.000 fps
Minimum frame rate                       : 16.393 fps
Maximum frame rate                       : 52.632 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Bits/(Pixel*Frame)                       : 0.116
Stream size                              : 360 MiB (86%)
Writing library                          : x265 1.9:[Linux][GCC 5.3.1][64 bit] 8bit+10bit+12bit
Encoding settings                        : wpp / ctu=64 / min-cu-size=8 / max-tu-size=32 / tu-intra-depth=1 / tu-inter-depth=1 / me=1 / subme=1 / merange=57 / no-rect / no-amp / max-merge=2 / temporal-mvp / early-skip / rdpenalty=0 / no-tskip / no-tskip-fast / strong-intra-smoothing / no-lossless / no-cu-lossless / no-constrained-intra / fast-intra / open-gop / no-temporal-layers / interlace=0 / keyint=250 / min-keyint=25 / scenecut=40 / rc-lookahead=15 / lookahead-slices=0 / bframes=4 / bframe-bias=0 / b-adapt=0 / ref=2 / limit-refs=3 / no-limit-modes / weightp / no-weightb / aq-mode=1 / qg-size=32 / aq-strength=1.00 / cbqpoffs=0 / crqpoffs=0 / rd=2 / psy-rd=2.00 / rdoq-level=0 / psy-rdoq=0.00 / signhide / deblock / sao / no-sao-non-deblock / b-pyramid / cutree / no-intra-refresh / rc=2 / pass / bitrate=1200 / qcomp=0.60 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ipratio=1.40 / pbratio=1.30
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Color range                              : Limited
Color primaries                          : BT.601 PAL
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.601
Menus                                    : 3

Audio
ID                                       : 2
Format                                   : AAC
Format/Info                              : Advanced Audio Codec
Format profile                           : LC
Codec ID                                 : 40
Duration                                 : 41mn 58s
Bit rate mode                            : Constant
Bit rate                                 : 198 Kbps
Channel(s)                               : 2 channels
Channel(s)_Original                      : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Frame rate                               : 46.875 fps (1024 spf)
Compression mode                         : Lossy
Stream size                              : 59.4 MiB (14%)
Title                                    : Surround
Language                                 : English
Default                                  : Yes
Alternate group                          : 1
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Menus                                    : 3

Menu #1
ID                                       : 3
Codec ID                                 : text
Duration                                 : 41mn 58s
Language                                 : English
Encoded date                             : UTC 1904-01-01 00:00:00
Tagged date                              : UTC 1904-01-01 00:00:00
Bit rate mode                            : CBR
Menu For                                 : 1,2
00:00:00.000                             : Chapter 1
00:04:33.400                             : Chapter 2
00:13:38.200                             : Chapter 3
00:19:21.240                             : Chapter 4
00:27:08.040                             : Chapter 5
00:38:08.600                             : Chapter 6

Menu #2
00:00:00.000                             : Chapter 1
00:04:33.400                             : Chapter 2
00:13:38.200                             : Chapter 3
00:19:21.240                             : Chapter 4
00:27:08.040                             : Chapter 5
00:38:08.600                             : Chapter 6

Reproduced on ums-6.7.1

@TimSC Sorry for being late.
Thank you for the log ;)

Could you try that version: (1 week validity)
https://we.tl/iogPPj7H0f

Could confirm me that you cannot play any HEVC/H265 videos without issue ?
Do you have some videos with H264/AAC that you can play without any issue ?

EDIT: If it doesn't helped, try to go in "Transcoding Settings" then in "Audio Settings" and set the "Maximum number of audio channels to output for AC-3 re-encoding" to 2 channels.

I tried the ums-6.7.2-SNAPSHOT (ums.jar md5 is a910b7e30fda414cb08d694a7ed59589) but it has the same with audio changing to static. My files are mostly stored in HEVC/H265 and I'm still using "TranscodeVideo = MPEGTS-H264-AC3". No H265/AC3 files seem to work, although they are all from the handbrake encoder. The PS3 doesn't handle HEVC/H265 natively.

I have only tried some videos encoded with H264/AAC but they are transcoded to AC3 and so far they all fail.

Changing to use "TranscodeVideo = MPEGTS-H264-AAC" and enabling AAC on PS3 results in silence. The status bar on the PS3 has no audio info. I'm not sure my HIFI decoder supports AAC - it's probably just AC3 and DTS. This might be a separate bug but I don't really have the tools to track it down.

Reducing channels by "audio_channels = 2", seems to work without problems (at least on initial tests) with ums-6.7.2-SNAPSHOT, but I think workaround applied to 6.6.1 as well.

Thank you for your feedback.
I leave the HEVC part to @SubJunk , as i cannot even test it on my old CPU. He have PS3 and video skill as no one here.

Please, could you make sure that reducing to 2 channels also work in other UMS version ? Thanks.

Any log while using TranscodeVideo = MPEGTS-H264-AAC will be useful to see if something get wrong or it's only come from your HiFi decoder limitation.

Please, could you provide the log when you tried _ums-6.7.2-SNAPSHOT_ ? Thank you.

Maybe bullshit but does PS3 support multichannel AAC via DLNA?

Log of error from ums-6.7.2-SNAPSHOT
ums_dbg3.zip

I will look into the other UMS versions using "audio_channels = 2".

@TimSC Thanks :+1:
It seem to work correctly now, except that i've forgotten to verify the _FFmpeg_ options order :(

The reason why i prefer that you test with H264/AAC and not H265, is because _FFmpeg_ seem to have issue with it. I mean that _FFmpeg_ errors are throwed.
If you want, you can upgrade your _FFmpeg_ to the latest version, as they worked a lot on H265 support since then. Here some download links for Linux:

https://www.ffmpeg.org/download.html
https://johnvansickle.com/ffmpeg/
https://www.videohelp.com/software/ffmpeg

@TimSC I guess that you've connected your HiFi system to the PS3's HDMI, and set the correct output settings.
Could you share with us the exact model of your HiFi system, for looking at its AAC specifications ?

@Sami32 I have a Sherwood rd-6106r connected via Toslink fiber optic cable from the PS3. The manual only mentions "Dolby Digital", which I assume means AC3.

@TimSC Joker :wink:
Your _Sherwood RD-6106R_ do not support AAC 5.1, if i believe these users.
That's said, from your user manual, we cannot guess, as it is undocumented...

Here a new version to test with TranscodeVideo = MPEGTS-H264-AC3 for your H264 / AAC files (and HEVC, preferably if you've updaded your _FFmpeg_ version):
https://we.tl/unlVKYydAs

Please, don't forget to post your log. Thank you for your understanding.

I reencoded the video with ffmpeg -i input.mkv -c:v libx264 -c:a copy -preset ultrafast test.mkv ran it with ums-PS3-dde97af. Static sound glitch occurred again after about 10 minutes. I noticed the video started replaying much faster after the static glitch - I'm not sure if that is new or not. ums_dbg4.zip

I think you are right about AAC and Sherwood RD-6106R not supporting it.

@TimSC Could try with that version with your s4e06 Into the Fire-h264.mkv file ? Thank you.
https://we.tl/i3c4bO1yMi

The fact that all your transcoded videos work fine with 2 channels, if i understood you correctly, and not with 5.1 channels, make me suspicious about your weak bandwidth or your PS3 output settings.
Do any AC-3 5.1, in a natively PS3 supported format, play fine on your renderer ?

I could suggest you to try with an AC-3 re-encoding bitrate set to 384, or even 192, in the UMS transcoding audio settings.
And an other test, that will use more bandwidth !, with TranscodeVideo = MPEGPS-MPEG2-AC3 and TranscodeVideo = MPEGTS-MPEG2-AC3

Note: From what i read only AAC stereo is supported by your renderer, and we still don't know which maximum bitrate is supported, so i guess that you would prefer use AC3 5.1 ?

EDIT: In the very possible case where FFmpeg is the culprit, the manually transcoded file:
ffmpeg64 -y -loglevel info -ss 0 -i INPUT -bufsize 4000k -maxrate 3000k -crf 19 -c:v libx264 -tune zerolatency -preset ultrafast -level 31 -pix_fmt yuv420p -c:a ac3 -f mpegts -ab 640k -ar 48000 -ac 6 output.ts should also not play directly from your PS3 (USB/CD/DVD) to your Sherwood.
https://trac.ffmpeg.org/ticket/2330
https://trac.ffmpeg.org/ticket/2173
http://ffmpeg.org/pipermail/ffmpeg-user/2016-September/033536.html
https://trac.ffmpeg.org/ticket/2162

@TimSC Considering that your PS3 output settings are correctly set, you could try that new version:
https://we.tl/02EBvxIuSS

EDIT: If that still doesn't work, add this line into your renderer configuration file:
CustomFFmpegOptions = -af aresample=async=1:min_hard_comp=0.100000:first_pts=0

or that one:
CustomFFmpegOptions = -af aresample=async=1000

I was testing the version you sent on 16 June (c4e2dedab). I noticed something strange. I run UMS in both headless and GUI modes. I used different configurations for each. With this 16 June version, I noticed the static glitch seems to have disappeared with my headless configuration. I copied the config to my GUI config file, and that seems to work fine as well. I was hoping to try to narrow down which specific part of the config file was causing the difference but that will take time. Do you want me to move to the latest build (18th June)?

@TimSC Don't mix headless and GUI UMS at the same time, or it will not work correctly..., running them separately should ask to configure the path of their profile and configuration files...

I don't know about which configurations you're talking about, UMS.conf ?, but if you post them here i could compare them.

Yes, please, try the one sended 13H ago, and that new one as well: (do a clean install on the GUI for example, just to be sure that it work as it should by default, except for your maximum_bitrate = 8 setting)
https://we.tl/6yHDANj7OD

I set the FFmpeg options in a more correct order, and added the ones that should make MPEG-TS over UDP more standard compliant.

Please, test it with as many videos and as many renderers that you can, and report back, thank you :wink:

@Sami32 It's no problem to run UMS headless and GUI simultaneously as long as he has different configurations for them (different folders with different databases, and different ports configured).

@nadahar Yes, but the problem is that i cannot know how the users configure them, so i prefer avoid unecessary troubles by saying it that way.
As you already know, when you ask to the users on the forum to uninstall them and install only one.
Same same here.

@Sami32 It's a bit special with the Windows service because people are most often not aware that they are running simultaneously - and the fact that you can't change the profile for a Windows service (AFAIK).

@nadahar You can change the profile on Windows, AFAIK.

I'm not Linux or Mac aware, so that could explain why... :wink:

@Sami32 What do you mean? You can change the profile when running UMS "normally", but how do you change the profile used by the Windows service? You can't change the command line of a Windows service without hacking in the registry AFAIK, which is what I meant.

@Sami32 The last two builds you sent me seem to be the same thing (commit 9f8545b81). It errors out with "This content cannot be played (800288E1)" when I attempt to play a file.

I only run headless or GUI - not at the same time though!

I will continue to test c4e2ded. I have not had a chance to try your extra FFMPEG suggestions.

Edit: Looks like c4e2ded really has the static glitch. I didn't notice audio_channels = 2 was set.

Edit 2: Initial tests on TranscodeVideo = MPEGPS-MPEG2-AC3 with c4e2ded seems to work without problems.

@TimSC That's strange, the last one shouldn't refer to that commit. I'll re-send you tomorrow.

@TimSC Here is the one that should have have been sent:
https://we.tl/aESa20dZv2

And a new one ;)
https://we.tl/qAM0ntbHbQ

@Sami32 Build 26ec38a errors out with "This content cannot be played (800288E1)"

Build 2ceb5925c lasted 50 minutes before the static glitch, which is longer than the usual 10-20 minutes before the glitch. I was not running in trace debugging at the time. I'll attach a log file when it happens again.

Edit It happened within 10 minutes the second time for 2ceb5925c
ums_dbg9.zip

@TimSC Thanks for feedback :+1:
It look as expected. You renderer seem very sync sensible.

So, i'll wait for more feedback on it before going further:

EDIT: If that still doesn't work, add this line into your renderer configuration file:
CustomFFmpegOptions = -af aresample=async=1:min_hard_comp=0.100000:first_pts=0

or that one:
CustomFFmpegOptions = -af aresample=async=1000

More log files for you from two CustomFFmpegOptions cases with 2ceb5925c. I added the line to Sony-PlayStation3.conf.

CustomFFmpegOptions = -af aresample=async=1:min_hard_comp=0.100000:first_pts=0 ums_dbg10-min_hard_comp.zip

CustomFFmpegOptions = -af aresample=async=1000 ums_dbg11-aresample=async=1000.zip

I just tried TranscodeVideo = MPEGTS-MPEG2-AC3 and it glitched.
ums_dbg12-MPEGTS-MPEG2-AC3.zip All previous tests with MPEGPS-MPEG2-AC3 work fine.

Setting TranscodeVideo = MPEGPS-H264-AC3 just seems to send MPEG2 video to the Playstation 3.

:+1:

So, do that mean that you didn't saw any difference with the CustomFFmpegOptions ?

I was sure about that, as it the default configuration for the PS3, and it has been well tested.
I'm sure they sticked to MPEG2 for a reason...But without PS3 to test myself i'm blind.

Do setting the AC3 transcoding bitrate to 384, instead of 640, make any difference ?

EDIT: Aarrrg I was not sure if i did changed the options order in the version that i sended you. And i didn't :(
So, i'll send a new version later to test the 2 CustomFFmpegOptions again.

The CustomFFmpegOptions with f97b402 or (2ceb592) don't seem to make a difference. I can upload the TRACE logs if that would help.

Setting audio_bitrate = 384 has an interesting effect: the PS3 froze (crashed) twice. The console running UMS had the following:

INFO  23:25:28.493 [StopPlaying Event] Stopped playing s5e08.mkv on your PlayStation 3
WARN  23:25:36.992 [Process Destroyer] Sending kill -14 to the Unix process: 1449

It may be that the PS3 simple has a flawed streaming implementation? I've moved house and my home network bandwidth is now ~12Mb/s, so I don't rely so much on transcoding to H264 (although it looks much better than MPEG2) I'll certainly keep testing if you are still interested.

@TimSC Thank you. Yes that would be nice :smile: , as if we can solve it, all the Playstations users could benefit of it, instead of stick to MPEG2.

  • You can try with an AC-3 bitrate value of 192 and 448 as well..
  • Since now you've a better bandwidth, set it to 24 Mb and 70 Mb to test if you get some improvements (it'll trigger the CRF value)

And you can also try these:
CustomFFmpegOptions = -vsync 2
CustomFFmpegOptions = -vsync drop
CustomFFmpegOptions = -vsync 1
or CustomFFmpegOptions = -vsync 1 -async 1
Hopefully, one of them should solve that issue ?

@TimSC CustomFFmpegOptions = -r 25
Should also be a good one to test.

@Sami32 I've done a fairly comprehensive test of the above options (with f97b402ff). Unfortunately it either glitches or is unwatchable. (The latter in the case of -vsync drop). The options are doing something, because I tried -r 5 and the frame rate difference was obvious. Is there any thing else we can try to narrow down the problem?

@TimSC I guess that it'll need many test and try. Though i could use, a new version of, tsMuxeR and it should solve this issue, but i would prefer try to use only FFmpeg, as it could make MEncoder only used for DVD, until FFmpeg play them or that an other video engine as MPV replace it.

You can try that:
OverrideFFmpegVideoFilter = fps=25
or
CustomFFmpegOptions = -avoid_negative_ts make_zero -mpegts_m2ts_mode 1

EDIT: the thing that could help to narrow down without pain, will be to find a such file that play fine to your PS3, to compare its characteristic / specifications.

@Sami32 The first option had the glitch. The second had no audio. I'll take a look for other files that might have different behaviors.

@TimSC Any feed back on this ?

  • You can try with an AC-3 bitrate value of 192 and 448 as well..
  • Since now you've a better bandwidth, set it to 24 Mb/s and 70 Mb/s to test if you get some improvements (it'll trigger the CRF value)

Do using TranscodeVideo = MPEGTS-MPEG2-AC3 work fine as well ?

You can also try:

TranscodeVideo = MPEGTS-H264-AC3
CustomFFmpegOptions = -c:v h264

EDIT:
or
OverrideFFmpegVideoFilter = setpts=PTS-STARTPTS
or

OverrideFFmpegVideoFilter = setpts=N/(25*TB)
CustomFFmpegOptions = -r 25 -af atempo=25

or

OverrideFFmpegVideoFilter = setpts=25*PTS
CustomFFmpegOptions = -r 25 -af atempo=25 -map_metadata -1

@TimSC

The second had no audio. I'll take a look for other files that might have different behaviors.

But the video play correctly without speed issue, right ?

P.S. That's said, it has never been mentioned as supported into your PS3 manual, so it's always good to know that you can use AC-3 stereo in MPEG-TS and H.264, and since you never reported if you was able to play media having AC-3 and 5.1 channels while not using UPnP / DLNA, i'll consider that your PS3 is not able to play correctly H.264 / AC-3 5.1 in MPEG-TS container.

@TimSC I've never saw this configuration file...

I was testing the version you sent on 16 June (c4e2ded). I noticed something strange. I run UMS in both headless and GUI modes. I used different configurations for each. With this 16 June version, I noticed the static glitch seems to have disappeared with my headless configuration. I copied the config to my GUI config file, and that seems to work fine as well. I was hoping to try to narrow down which specific part of the config file was causing the difference but that will take time.

@Sami32 I'll answer your recent questions when I get a chance.

I've been trying to find a video that plays correctly. I think I may have found one: Unfold (MP4 H.264 1080p, Dolby AC3 5.1 640 kbps) available here https://thedigitaltheater.com/index.php/dolby-trailers/ I put it on infinite repeat and it runs for hours. In contrast, DOLBY_CINEMA_ELEMENT_1080_AC3_51-thedigitaltheater.mkv (from the same site) glitches. (This is with f97b402 and TranscodeVideo = MPEGTS-H264-AC3)

I don't see any obvious differences apart from the container format which doesn't seem to help, based on previous tests. I will continue to search for good videos.

@TimSC As i said, i was suspecting that, it not supported by your renderer with this format.
That's said, AC3 was not declared as supported in MPEG-TS with H.264, so having only 2 channels supported is already good.

I was waiting for your answer before post others parameters for different formats.
I did write it for MP4, without any better hope as it's not advertised as supported, but after your recent comment i post it now: (though i think the DivX and M2TS should have a better support)
CustomFFmpegOptions = -f mp4
or
CustomFFmpegOptions = -c:v libx264 -tune zerolatency -level 40 -f mp4
or
CustomFFmpegOptions = -c:v libx264 -level 41 -flags +global_header -f mp4
or
CustomFFmpegOptions = -c:v libx264 -level 41 -flags +global_header -movflags frag_keyframe+empty_moov -f mp4
or
CustomFFmpegOptions = -c:v libx264 -level 41 -movflags frag_keyframe+empty_moov -f mp4

EDIT: Thank you very much for your testing :+1: , i'll check at your working sample.
You can stop searching, one video is suffisant, except if you meet MP4 videos that doesn't work ?
You can also try DIVX, AVI and M2TS videos with H.264 / AC3 codecs, as some of them should work (my guess ;-))

EDIT 2: Try also with -preset superfast, -preset veryfast and -preset fast added after the -c:v libx264 in all these lines.

@TimSC BTW, i never asked you what is your PS3 firmware version ?

Happy testing :wink:

EDIT:
Do _DOLBY_CINEMA_ELEMENT_1080_AC3_51-thedigitaltheater.mp4_ work fine as well ?

I'm away for the next week, but I'll get back to testing after then!

Most of these error out immediately when I start play back:
CustomFFmpegOptions = -f mp4
"This content cannot be played. (800288E1)" ums_dbg14.zip

CustomFFmpegOptions = -c:v libx264 -tune zerolatency -level 40 -f mp4
"This content cannot be played. (800288E1)"

CustomFFmpegOptions = -c:v libx264 -level 41 -flags +global_header -f mp4
"This content cannot be played. (800288E1)"

CustomFFmpegOptions = -c:v libx264 -level 41 -flags +global_header -movflags frag_keyframe+empty_moov -f mp4
"An HTTP error (-2147284794) has occurred."

CustomFFmpegOptions = -c:v libx264 -level 41 -movflags frag_keyframe+empty_moov -f mp4
"An HTTP error (-2147284794) has occurred."

My System Software Version is 4.81 (the latest at the time of writing).

I'll double check DOLBY_CINEMA_ELEMENT_1080_AC3_51-thedigitaltheater.mp4 soon.

UPDATE: I can confirm DOLBY_CINEMA_ELEMENT_1080_AC3_51-thedigitaltheater.mp4 _does_ have the glitch.

Thank you.
It would be nice to get a log though with a file that work and one other that doesn't, as the PS3, or any renderers, message are not useful to us to try to understand what happen with the MP4 on PS3.

@TimSC

EDIT 2: Try also with -preset superfast, -preset veryfast and -preset fast added after the -c:v libx264 in all these lines.

I just become suspicious, as i don't see that you mention it in your tests, as the first lines given was expected to not play, i given these preset to add for tests.

Did you tested with them as well ?
Ex. with the first line to test:
CustomFFmpegOptions = -preset superfast -f mp4
CustomFFmpegOptions = -preset veryfast -f mp4
CustomFFmpegOptions = -preset fast -f mp4

(same with the others lines.)

EDIT: That's said you can only test them with -preset fast if you want save time.

CustomFFmpegOptions = -preset fast -f mp4
Errors out before playback ums_dbg15.zip

CustomFFmpegOptions = -c:v libx264 -preset fast
Eventually hit by the static sound glitch. ums_dbg16.zip

Let me know if you have ideas for further tests. I'll try DIVX, AVI and M2TS videos with H.264 / AC3 codecs as well.

UPDATE: I re-encoded a file to M2TS using "ffmpeg -i s5e19\ The\ Wheel\ of\ Fire.mkv -acodec copy -c:v libx264 -bsf h264_mp4toannexb -preset fast s5e19.m2ts" but it has the audio glitch.

UPDATE 2: Similar situation with AVI encoded with "ffmpeg -i s5e20\ Objects\ in\ Motion.mkv -acodec copy -c:v libx264 -preset fast s5e20.avi".

Thank you :+1:
You can try these ones:
TranscodeVideo = MPEGTS-H264-AC3

CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3:weightb=1:weightp=2 -dn -f mp4
or
CustomFFmpegOptions = -maxrate 5000k -buzsize 10000k -c:v libx264 -preset fast -profile:v high -level 41 -x264-params trellis=0:bframes=3:weightb=1:weightp=2 -dn
or
CustomFFmpegOptions = -maxrate 5000k -buzsize 10000k -c:v libx264 -preset fast -level 41 -x264-params trellis=0:bframes=3 -dn
or
CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3 -dn -movflags frag_keyframe+empty_moov -f mp4
or
CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3:weightb=1:weightp=2 -dn -movflags frag_keyframe+empty_moov -f mp4

NOTE: As your FFmpeg version crashed, try to test with videos not having HEVC codec.
Fixing the FFmpeg issue, seem to give you "An HTTP error (-2147284794) has occurred.", so i hope that your log with the latest command line will give me some more informations.

UPDATE: I can confirm DOLBY_CINEMA_ELEMENT_1080_AC3_51-thedigitaltheater.mp4 does have the glitch.

That interesting, because they are very similar.

Testing with a H264 avi file:

CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3:weightb=1:weightp=2 -dn -f mp4
ums_dbg17.zip

CustomFFmpegOptions = -maxrate 5000k -buzsize 10000k -c:v libx264 -preset fast -profile:v high -level 41 -x264-params trellis=0:bframes=3:weightb=1:weightp=2 -dn ums_dbg18.zip

CustomFFmpegOptions = -maxrate 5000k -buzsize 10000k -c:v libx264 -preset fast -level 41 -x264-params trellis=0:bframes=3 -dn ums_dbg19.zip

CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3 -dn -movflags frag_keyframe+empty_moov -f mp4 ums_dbg20.zip
"An HTTP error (-2147284704) has occurred."

CustomFFmpegOptions = -c:v libx264 -preset fast -profile:v high -x264-params level=41:vbv-maxrate=5000:vbv-bufsize=10000:trellis=0:bframes=3:weightb=1:weightp=2 -dn -movflags frag_keyframe+empty_moov -f mp4 ums_dbg21.zip
"An HTTP error (-2147284704) has occurred."

Is it possible to change my ffmpeg version? Would that help?

@TimSC Sorry, i did two mistyping, one is one of the command line parameters :-/ copy / haste...
Please, use that version: (it include an older FFmpeg version)
https://we.tl/kfE0llLdNA

And try these new command lines:

  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -bsf:v h264_mp4toannexb -c:v libx264 -preset fast -level 41 -c:a ac3_fixed
  • CustomFFmpegOptions = -bufsize 4M -maxrate 4M -c:v libx264 -x264-params nal-hrd=cbr -b:v 4M
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -x264-params nal-hrd=cbr:force-cfr=1 -b:v 4000k -c:a ac3_fixed
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -mpegts_flags +system_b
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a ac3_fixed -mpegts_flags +system_b
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a aac -ab 192000 -ac 2 -mpegts_flags +latm
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a aac -ab 192000 -ac 2
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a ac3_fixed -mpegts_flags +system_b -avoid_negative_ts make_zero -mpegts_m2ts_mode 1
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -x264-params bluray-compat -crf 24 -c:a ac3_fixed -mpegts_flags +system_b
  • CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -x264-params bluray-compat -crf 24 -avoid_negative_ts make_zero -mpegts_m2ts_mode 1 -c:a ac3_fixed -mpegts_flags +system_b
  • CustomFFmpegOptions = -bufsize 12000k -maxrate 12000k -c:v libx264 -preset fast -level 41 -x264-params bluray-compat -crf 24
  • CustomFFmpegOptions = -bufsize 3M -maxrate 3M -c:v libx264 -x264-params nal-hrd=cbr -b:v 3M -preset fast -level 41
  • CustomFFmpegOptions = -bufsize 3000k -maxrate 3000k -c:v libx264 -preset fast -level 41 -x264-params nal-hrd=cbr:force-cfr=1 -b:v 3000k -c:a ac3_fixed

I don't remember you having returned feedback on them:

OverrideFFmpegVideoFilter = setpts=PTS-STARTPTS

or

OverrideFFmpegVideoFilter = setpts=N/(25*TB)

or

OverrideFFmpegVideoFilter = setpts=25*PTS
CustomFFmpegOptions = -r 25 -af atempo=25 -map_metadata -1

Happy testing :wink:

@Sami32 I'll update this post as I get further with testing. I'm using build 27997ba17 that you provided.

CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -bsf:v h264_mp4toannexb -c:v libx264 -preset fast -level 41 -c:a ac3_fixed ums_dbg22.zip

@TimSC Wait a moment, i'll post a new UMS version to test. Thank you for your understanding.

@TimSC Here it is:
https://we.tl/XAIvab2Zrr

58f5737dc CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -bsf:v h264_mp4toannexb -c:v libx264 -preset fast -level 41 -c:a ac3_fixed
ums_dbg23.zip

58f5737dc CustomFFmpegOptions = -bufsize 4M -maxrate 4M -c:v libx264 -x264-params nal-hrd=cbr -b:v 4M ums_dbg24.zip

58f5737dc CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -x264-params nal-hrd=cbr:force-cfr=1 -b:v 4000k -c:a ac3_fixed ums_dbg25.zip

58f5737dc CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -mpegts_flags +system_b ums_dbg26.zip

Testing continues...

When you don't comment, do that mean that you get glitch or that nothing is displayed ?

That's said, trying to get it work with 2 Mb/s bandwidth on PS3 is a challenge by itself ;-)

@Sami32 Yes, I'll add a comment with the log if something unexpected happens. Otherwise, assume the static glitch.

I didn't realize my bandwidth is that low at the moment... I'll look into that as well. It should be about 10Mb/sec... (I have a powerline network segment that is often troublesome.)

@TimSC I saw that sometimes you make search in the file while testing. I will say that for now, we just try to make it play without glitch, and no bother about the search. So no "search", no "resume".
As video is not my confort zone, i prefer just concentrate on one issue at the time. Search in the media imply DLNA implementation as well, and it is not well implemented in our code.

@TimSC It will be nice to get your log while you play Unfold (MP4 H.264 1080p, Dolby AC3 5.1 640 kbps)

@Sami32 I'm doing testing by watching TV shows. It makes it very repetitive if the audio keeps failing and I can't use seeking!

CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a ac3_fixed -mpegts_flags +system_b ums_dbg27.zip

CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a aac -ab 192000 -ac 2 -mpegts_flags +latm (slow to start playback, no audio) ums_dbg28b.zip

CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a aac -ab 192000 -ac 2 (slow to start playback, no audio) ums_dbg29.zip

CustomFFmpegOptions = -bufsize 4000k -maxrate 4000k -c:v libx264 -preset fast -level 41 -crf 24 -c:a ac3_fixed -mpegts_flags +system_b -avoid_negative_ts make_zero -mpegts_m2ts_mode 1 (slow to start playback, no audio) ums_dbg30.zip

Was this page helpful?
0 / 5 - 0 ratings

Related issues

444nonymous picture 444nonymous  路  33Comments

Lincoln-G picture Lincoln-G  路  71Comments

Sami32 picture Sami32  路  35Comments

ExSport picture ExSport  路  38Comments

javieryi picture javieryi  路  78Comments