Certain .mkv videos not playing

For help and support with PS3 Media Server in general
Forum rules
Please make sure you follow the Problem Reporting Guidelines before posting if you want a reply.

Re: Certain .mkv videos not playing

Postby mazey » Fri Aug 30, 2013 9:46 am

ziatonic wrote:
mazey wrote:yeah im not really sure as i havent tested it alot, just a few mkv (avc/ac3 6chan files) but from what i did it remux seemed to work atleast to ps3.


What version are you using? I'm on 1.90.1 right now. When you get some free time, if you could see if your stuff remuxes and let me know your config I would greatly appreciate it.


im using 1.90.2 SNAPSHOT but nothing new that is related to ffmpeg muxing has been commited in some time so it would work the same as 1.90.1, umm the only mkv's i have are all basically the same enc settings. for video i found if its mkv (mpeg4/avc type) it would remux it basically a straight v:copy, for audio all i know is if its ac3 surround it would remux the audio a:copy if its dts it would transcode the audio only to ac3. the remux works to ps3 with the files i have. sample below.

Code: Select all
ideo
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : No
Format settings, ReFrames                : 2 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 43mn 30s
Bit rate                                 : 3 986 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.180
Stream size                              : 1.21 GiB (89%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
Color primaries                          : BT.709
Transfer characteristics                 : BT.709
Matrix coefficients                      : BT.709

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                                 : 43mn 30s
Bit rate mode                            : Constant
Bit rate                                 : 384 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 120 MiB (9%)
Language                                 : English
Default                                  : Yes
Forced                                   : No
PMS 1.90.2 Snapshot - Intel Celeron G1840 2.8Ghz / Asus Z97m-plus / Corsair Vengeance 8GB / Windows 8.1 Pro (64 bit)
mazey
 
Posts: 783
Joined: Sat Oct 24, 2009 9:07 am

Re: Certain .mkv videos not playing

Postby ziatonic » Fri Aug 30, 2013 11:34 am

mazey wrote:im using 1.90.2 LATEST SNAPSHOT but nothing new that is related to ffmpeg muxing has been commited in some time so it would work the same as 1.90.1, umm the only mkv's i have are webdl's which are all basically avc 6 chan. i dont have any movies, as for the webdl's i have they are all basically the same format it seems standard to do them with the same parameters as for movies they are vastly different. for video i found if its mkv (mpeg4/avc type) it would remux it basically a straight v:copy, for audio all i know is if its ac3 surround it would remux the audio a:copy if its dts it would transcode the audio only to ac3. it works to ps3 with the files i have they are all webdl's. sample below.

Interesting, I'm gonna have to compare your movie's info to mine. Can you paste your config?

I did some testing before I read your reply and I think I discovered a few things. For starters, after installing 1.90.1 or deleting your PMS.conf, the 'ffmpeg_mux_compatible = true' string does not appear in the config, even though the option to 'Remux vids when possible' is checked by default. You have to deselect and then reselect and save. Is this a bug? Or does the string not need to be included in the config since it's the default?

Either way, with that string in the config, and with FFmpeg as default engine, some of my DTS movies play with mux and some transcode. Actually, thus far, I was only able to find one that muxed: Wreck it Ralph.

So now, with both DTS and AC3 movies still transcoding, why does Wreck it Ralph mux when all the others transcode? What are the parameters that PMS looks for to decide what to mux and what not to? I'm thinking it might be video related now. Also, is FFmpeg doing the muxing? Or is it just handing it off to tsMuxeR? I seems to be giving it to tsMuxeR, from what it looks like in debug, but I could be wrong.

MediaInfo for Wreck it Ralph, which muxes
Code: Select all
General
Unique ID                                : 192177271043186158554725656162351666353 (0x9093FEFFF7EFF4559D4C351CB13354B1)
Complete name                            : G:\Movies\Wreck-It.Ralph.2012.BluRay.720p.DTS.x264-CHD\Wreck-It.Ralph.2012.BluRay.720p.DTS.x264-CHD.mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 3.51 GiB
Duration                                 : 1h 41mn
Overall bit rate                         : 4 958 Kbps
Encoded date                             : UTC 2010-02-22 21:41:31
Writing application                      : mkvmerge v5.9.0 ('On The Loose') built on Dec  9 2012 15:37:01
Writing library                          : libebml v1.3.0 + libmatroska v1.4.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 10 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 41mn
Bit rate                                 : 3 447 Kbps
Width                                    : 1 280 pixels
Height                                   : 536 pixels
Display aspect ratio                     : 2.40:1
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.210
Stream size                              : 2.37 GiB (68%)
Title                                    : Wreck.It.Ralph.2012.BluRay.720p.DTS.x264-CHD
Writing library                          : x264 core 120 r2146 bcd41db
Encoding settings                        : cabac=1 / ref=10 / deblock=1:-3:-3 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.05 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=8 / 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=2pass / mbtree=0 / bitrate=3447 / ratetol=1.0 / qcomp=0.70 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=2:0.90
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 41mn
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.07 GiB (30%)
Title                                    : dts 5.1 1536kbps
Language                                 : English
Default                                  : Yes
Forced                                   : No



MediaInfo for 2 movies that transcode. One DTS, one AC3.

Code: Select all
General
Unique ID                                : 187475658599991348969639874973225463966 (0x8D0A7F9C00632282A4910CA0B1C8309E)
Complete name                            : G:\Movies\The.African.Queen.1951.720p.BluRay.x264-SiNNERS\The.African.Queen.1951.720p.BluRay.x264-SiNNERS.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 4.37 GiB
Duration                                 : 1h 45mn
Overall bit rate                         : 5 948 Kbps
Encoded date                             : UTC 2010-03-18 02:07:16
Writing application                      : mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Dec 12 2009 15:20:35
Writing library                          : libebml v0.7.9 + libmatroska v0.8.1

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L3.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 4 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 45mn
Bit rate                                 : 5 720 Kbps
Width                                    : 992 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 1.378
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.334
Stream size                              : 4.12 GiB (94%)
Writing library                          : x264 core 88 r1471 1144615
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / 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=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / mbaff=0 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / wpredp=2 / keyint=250 / keyint_min=25 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=5720 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language                                 : English
Default                                  : No
Forced                                   : No

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                                 : 1h 45mn
Bit rate mode                            : Constant
Bit rate                                 : 224 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 169 MiB (4%)
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Language                                 : English
Default                                  : No
Forced                                   : No



Code: Select all
General
Unique ID                                : 223179486462016924568207025662207011935 (0xA7E6CE3B79994E90B8A633F15E9D2C5F)
Complete name                            : G:\Movies\Jackie.Brown.1997.720p.BluRay.DTS.dxva.x264-FLAWL3SS\Jackie.Brown.1997.720p.BluRay.DTS.dxva.x264-FLAWL3SS.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 8.53 GiB
Duration                                 : 2h 34mn
Overall bit rate                         : 7 912 Kbps
Encoded date                             : UTC 2011-03-16 22:36:26
Writing application                      : mkvmerge v4.4.0 ('Die Wiederkehr') built on Oct 31 2010 21:52:48
Writing library                          : libebml v1.0.0 + libmatroska v1.0.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 9 frames
Muxing mode                              : Header stripping
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 2h 34mn
Bit rate                                 : 6 400 Kbps
Width                                    : 1 280 pixels
Height                                   : 720 pixels
Display aspect ratio                     : 16:9
Frame rate mode                          : Constant
Frame rate                               : 23.976 fps
Color space                              : YUV
Chroma subsampling                       : 4:2:0
Bit depth                                : 8 bits
Scan type                                : Progressive
Bits/(Pixel*Frame)                       : 0.290
Stream size                              : 6.73 GiB (79%)
Writing library                          : x264 core 114 r1913 5fd3dce
Encoding settings                        : cabac=1 / ref=9 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=10 / psy=1 / psy_rd=1.05:0.10 / mixed_ref=1 / me_range=64 / 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 / constrained_intra=0 / bframes=12 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=24 / scenecut=50 / intra_refresh=0 / rc_lookahead=160 / rc=2pass / mbtree=1 / bitrate=6400 / ratetol=1.0 / qcomp=0.70 / qpmin=0 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=48000 / vbv_bufsize=40000 / nal_hrd=none / ip_ratio=1.30 / aq=1:1.10
Language                                 : English
Default                                  : Yes
Forced                                   : No

Audio
ID                                       : 2
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 2h 34mn
Bit rate mode                            : Constant
Bit rate                                 : 1 509 Kbps
Channel(s)                               : 6 channels
Channel positions                        : Front: L C R, Side: L R, LFE
Sampling rate                            : 48.0 KHz
Bit depth                                : 24 bits
Compression mode                         : Lossy
Stream size                              : 1.63 GiB (19%)
Default                                  : Yes
Forced                                   : No

Text
ID                                       : 3
Format                                   : VobSub
Muxing mode                              : zlib
Codec ID                                 : S_VOBSUB
Codec ID/Info                            : The same subtitle format used on DVDs
Language                                 : Dutch
Default                                  : Yes
Forced                                   : No

Menu
00:00:00.000                             : en:00:00:00.000
00:15:31.139                             : en:00:15:31.139
00:27:31.441                             : en:00:27:31.441
00:39:43.172                             : en:00:39:43.172
00:53:27.788                             : en:00:53:27.788
01:09:08.519                             : en:01:09:08.519
01:24:14.716                             : en:01:24:14.716
01:36:58.938                             : en:01:36:58.938
01:49:29.521                             : en:01:49:29.521
01:59:42.592                             : en:01:59:42.592
02:13:41.847                             : en:02:13:41.847
02:30:12.253                             : en:02:30:12.253



I don't understand what the difference is.
ziatonic
 
Posts: 12
Joined: Wed Nov 21, 2012 10:24 am

Re: Certain .mkv videos not playing

Postby mazey » Fri Aug 30, 2013 12:22 pm

i try to keep my settings as default as possible except for turning subtitles off and bumping ffmpeg to first ahead of mencoder the rest is basically default, the reason ffmpeg_mux_compatible = true doesnt show up unless u untick it then retick it is because the pms.conf only reflects changes you make, if its not listed there then it is default setting. ffmpeg_mux_compatible = true is the default and wont show up unless u untick it then it would change to ffmpeg_mux_compatible = false and add itself to the pms.conf same when u tick it again it only reflects any changes u make, so that is not a bug or else the pms.conf would be huge if it reflected everything that hasnt been changed.

the video and audio is handled seperately when remuxed, if wont matter what the audio is its a seperate system it will do v:copy and a:copy v being video and a being audio in the log, basically if its transcoding v:mpeg2ps that means its transcoding the video to mpeg2ps and a:ac3 means its transcoding the audio to ac3, if it says v:copy a:copy it is remuxing both. example if its v:mpeg2ps a:copy it is transcoding the video and remuxing the audio. its seperate if video is transcoding it is related to the video attributes. v:copy a:copy means its remuxing video and audio basically copy means remux anything other then copy means its transcoding either v: (video) or a: (audio) this is all listed in the log when the command is run.

as for why it would do 1 and not the other when it comes to video attributes no idea... they do look like they should remux the video but transcode the audio if its dts to ac3, thats what you are probably seeing with high cpu usage at the start. the best way to tell what is being remuxed is with the command it runs you will see in the tracelog and judge it with the information i gave you above thats the best way to judge if its being remuxed or not. also if u check the status for the file its playing on the ps3 it should say AVC instead of mpeg2 that also means its being remuxed atleast the video part. if it says mpeg2 its transcoding the video, i hope i been clear enuff anyway.

also ffmpeg does the muxing also the transcoding it doesnt use tsmuxer at all. mencoder is different because its not capable of remux and gets tsmuxer to do it. but ffmpeg can do remux and transcoding.

the one thing i do notice from the 2 files that you say transcode is they come with subtitles embeded into the .mkv the one that remux's doesnt come with subtitles.. do you have definelly disable subtitles ticked. im guessing this is why they are transcoded. none of my files have subtitles either vobsub or text type ones and they all remux i have none with subs to test if they transcode instead. try adding "disable_subtitles = true" to ure pms.conf file without the "'s. hopefully you dont need subtitles as im not sure if ffmpeg handles them very well atm its still a work in progress.
PMS 1.90.2 Snapshot - Intel Celeron G1840 2.8Ghz / Asus Z97m-plus / Corsair Vengeance 8GB / Windows 8.1 Pro (64 bit)
mazey
 
Posts: 783
Joined: Sat Oct 24, 2009 9:07 am

Re: Certain .mkv videos not playing

Postby ziatonic » Fri Aug 30, 2013 3:24 pm

mazey wrote:the one thing i do notice from the 2 files that you say transcode is they come with subtitles embeded into the .mkv the one that remux's doesnt come with subtitles.. do you have definelly disable subtitles ticked. im guessing this is why they are transcoded.


Oh man, it was subtitles :shock:. Good catch, I didn't even think of that since I wasn't using them. Its great, all my videos (5.1 and 6.1) now mux with ffmpeg instead of transcode. There is a new is a new problem though, the audio becomes a few seconds out-of-sync after I use the "Go To" feature. Pausing or seeking to a new time doesn't fix it either. :-(

If I have time later, I will try what you suggested and see what was transcoding with subtitles enabled. I wasn't aware of the "v:copy" message. All i know is that PMS was definitely transcoding something; it was probably the video since I had DTS and AC3 being passed though and (now i know) subtitles still enabled. When transcoding 1080 video, my CPU was spiked and the buffer simply crawled, barely keeping up with the video. It only worked for lower quality movies. When a video is muxed however (like how it's doing now), the buffer fills to the max immediately, there's no delay when starting the video, and my CPU usage is negligible.

Oh, I asked about tsmuxer because it showed up in the log when ffmpeg was muxing. What's the reason for that? Here's an example. It's near the bottom:

Code: Select all
DEBUG 2013-08-30 09:47:15.953 [ffmpeg.exe-4] Starting "C:\Program Files (x86)\PS3 Media Server\win32\ffmpeg.exe" -y -loglevel fatal -threads 2 -i G:\Movies\Star.Wars.Episode.VI.Return.Of.The.Jedi.1983.1080p.BluRay.DTS.x264.D-Z0N3\Star.Wars.Episode.6.Return.Of.The.Jedi.1983.1080p.BluRay.DTS.x264.D-Z0N3.mkv -map 0:v -map 0:a:0 -threads 2 -bufsize 7000000 -maxrate 498000000 -g 25 -q:v 1 -qmin 2 -qmax 3 -an -c:v copy -bsf h264_mp4toannexb -fflags +genpts -f rawvideo \\.\pipe\1377870435939ffmpegvideo

INFO  2013-08-30 09:47:15.964 [ffmpeg.exe-4] Successfully initialized buffer to 1,048,576 bytes.
DEBUG 2013-08-30 09:47:15.965 [ffmpeg.exe-4] Attaching thread: ffmpeg.exe-4
DEBUG 2013-08-30 09:47:16.061 [ffmpeg.exe-5] Starting "C:\Program Files (x86)\PS3 Media Server\win32\ffmpeg.exe" -y -ss 0 -i G:\Movies\Star.Wars.Episode.VI.Return.Of.The.Jedi.1983.1080p.BluRay.DTS.x264.D-Z0N3\Star.Wars.Episode.6.Return.Of.The.Jedi.1983.1080p.BluRay.DTS.x264.D-Z0N3.mkv -ac 2 -f dts -c:a copy \\.\pipe\1377870435943ffmpegaudio01

INFO  2013-08-30 09:47:16.065 [ffmpeg.exe-5] Successfully initialized buffer to 1,048,576 bytes.
DEBUG 2013-08-30 09:47:16.066 [ffmpeg.exe-5] Attaching thread: ffmpeg.exe-5
DEBUG 2013-08-30 09:47:16.073 [tsMuxeR.exe-3] Starting "C:\Program Files (x86)\PS3 Media Server\win32\tsMuxeR.exe" C:\Users\USER\AppData\Local\Temp\ps3mediaserver\pms-tsmuxer.meta \\.\pipe\1377870435923tsmuxerout.ts
DEBUG 2013-08-30 09:47:16.088 [Thread-21] Result of \\.\pipe\1377870435939ffmpegvideo : true
ziatonic
 
Posts: 12
Joined: Wed Nov 21, 2012 10:24 am

Re: Certain .mkv videos not playing

Postby mazey » Sat Aug 31, 2013 1:13 am

im not sure about the out of sync. as for tsmuxer it looks like its using it to just grab some data (meta maybe something else) not really sure but when you either transcode or remux it uses ffmpeg as ive watched it in task manager.
PMS 1.90.2 Snapshot - Intel Celeron G1840 2.8Ghz / Asus Z97m-plus / Corsair Vengeance 8GB / Windows 8.1 Pro (64 bit)
mazey
 
Posts: 783
Joined: Sat Oct 24, 2009 9:07 am

Re: Certain .mkv videos not playing

Postby ziatonic » Sun Sep 01, 2013 11:12 am

mazey wrote:im not sure about the out of sync. as for tsmuxer it looks like its using it to just grab some data (meta maybe something else) not really sure but when you either transcode or remux it uses ffmpeg as ive watched it in task manager.


I have subtitles disabled and ffmpeg is transcoding, which is great, but when I seek using Go To, the audio is delayed about 5 seconds. This happens for every movie i have.
ziatonic
 
Posts: 12
Joined: Wed Nov 21, 2012 10:24 am

Re: Certain .mkv videos not playing

Postby ExSport » Mon Sep 02, 2013 12:47 pm

Post a MediaInfo for affected file so we can see if mkv file doesn't include DELAY. If yes, try to uncheck "Alternate audio sync" (not sure if it is applicable also to FFMpeg or to MEncoder only). Also you can test MEncoder engine with both "alternate av sync" enabled/disabled if anything change.
Btw. tsMuxer is always muxing final m2ts file because FFMPEG has broken DTS support. So FFMpeg prepares separate audio and video streams and sends them to tsMuxer. Without it FFMpeg muxing generates incompatible files for most HW players.
ExSport
 
Posts: 2168
Joined: Mon Jan 19, 2009 5:40 pm

Previous

Return to General Help and Support

Who is online

Users browsing this forum: Google [Bot] and 13 guests