Page 1 of 1

PS3 problems(MKV streaming and general)

PostPosted: Tue Jun 25, 2013 9:23 pm
by Rykzon
Hi forum!

So im using serviio for a while now but just started using a local library for movies. My .mkv files are not working properly. I got a few files with the same codec, some are working, some not(format not supported).

I tried to remux without compressing because of head stripping, didn't work.

I updated ffmpeg, not change.


One general problem I encounter sometimes is that serviio doesn't show up in my PS3 until I restart the service via windows service manager.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 12:06 am
by DenyAll
My .mkv files are not working properly
Not all mkv's are created equally ;) . It will depend on the combination of video (and what h264 profile) and audio codecs used. Can you please post MediaInfo details for the offending file.
serviio doesn't show up in my PS3
Is this after the PC has gone to sleep? The sleep issue is known - a workaround from jammoblamo can be found here or you can await the next release which may better handle recovery from sleep (dependant on beta testing being done now). If not sleep related, it could be a few things (come back to us, or, some search terms to look for in the forum in the interim: port forwarding, UPNP settings, multicasting, firewall, serviio not found).

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 12:11 am
by Rykzon
  Code:
General
UniqueID/String                  : 208501227889489928947504761683886995454 (0x9CDBE035F626B272AAF531A1EC3BF7FE)
CompleteName                     : G:\Serien\Game of Thrones\S1\gamethrones.s01e01.720-pretail.mkv
Format                           : Matroska
Format_Version                   : Version 2
FileSize/String                  : 2.73 GiB
Duration/String                  : 1h 1mn
OverallBitRate/String            : 6 340 Kbps
Encoded_Date                     : UTC 2012-02-19 14:32:01
Encoded_Application              : mkvmerge v5.2.0 ('I can't explain') built on Dec 18 2011 18:12:03
Encoded_Library/String           : libebml v1.2.3 + libmatroska v1.3.0

Video
ID/String                        : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format_Profile                   : High@L4.1
Format_Settings_CABAC/String     : Yes
Format_Settings_RefFrames/String : 5 frames
MuxingMode                       : Header stripping
CodecID                          : V_MPEG4/ISO/AVC
Duration/String                  : 1h 1mn
BitRate/String                   : 4 635 Kbps
Width/String                     : 1 280 pixels
Height/String                    : 720 pixels
DisplayAspectRatio/String        : 16:9
FrameRate_Mode/String            : Constant
FrameRate/String                 : 23.976 fps
ColorSpace                       : YUV
ChromaSubsampling                : 4:2:0
BitDepth/String                  : 8 bits
ScanType/String                  : Progressive
Bits-(Pixel*Frame)               : 0.210
StreamSize/String                : 1.94 GiB (71%)
Title                            : PRETAiL
Encoded_Library/String           : x264 core 120 r2120 0c7dab9
Encoded_Library_Settings         : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4635 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language/String                  : German
Default/String                   : Yes
Forced/String                    : Yes

Audio #1
ID/String                        : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Format_Settings_ModeExtension    : CM (complete main)
Format_Settings_Endianness       : Big
MuxingMode                       : Header stripping
CodecID                          : A_AC3
Duration/String                  : 1h 1mn
BitRate_Mode/String              : Constant
BitRate/String                   : 192 Kbps
Channel(s)/String                : 2 channels
ChannelPositions                 : Front: L R
SamplingRate/String              : 48.0 KHz
BitDepth/String                  : 16 bits
Compression_Mode/String          : Lossy
StreamSize/String                : 84.6 MiB (3%)
Language/String                  : German
Default/String                   : Yes
Forced/String                    : Yes

Audio #2
ID/String                        : 3
Format                           : DTS
Format/Info                      : Digital Theater Systems
Format_Settings_Mode             : 16
Format_Settings_Endianness       : Big
MuxingMode                       : Header stripping
CodecID                          : A_DTS
Duration/String                  : 1h 1mn
BitRate_Mode/String              : Constant
BitRate/String                   : 1 509 Kbps
Channel(s)/String                : 6 channels
ChannelPositions                 : Front: L C R, Side: L R, LFE
SamplingRate/String              : 48.0 KHz
BitDepth/String                  : 24 bits
Compression_Mode/String          : Lossy
StreamSize/String                : 665 MiB (24%)
Language/String                  : English
Default/String                   : No
Forced/String                    : No

Text
ID/String                        : 4
Format                           : UTF-8
CodecID                          : S_TEXT/UTF8
CodecID/Info                     : UTF-8 Plain Text
Language/String                  : English
Default/String                   : No
Forced/String                    : No

Menu
00:00:00.000                     : en:00:00:00.000
00:00:06.006                     : en:00:00:06.006
00:07:16.436                     : en:00:07:16.436
00:08:56.536                     : en:00:08:56.536
00:18:14.510                     : en:00:18:14.510
00:28:46.558                     : en:00:28:46.558
00:39:35.582                     : en:00:39:35.582
00:50:00.039                     : en:00:50:00.039
01:00:32.629                     : en:01:00:32.629


Thats the original version, I already remuxed because of header stripping.

The other problem could be sleep related, have to look into, thanks for the hint.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 12:31 am
by DenyAll
It looks like you still have header compression. Have you tried the steps here to remove it: http://wiki.serviio.org/doku.php?id=header_com and here: viewtopic.php?f=6&t=1132#p5402 (shouldn't see header stripping as the muxing mode when successful).

<edit> I should read :oops: - you've already done that - send thru the Media info for the remuxed file </edit>

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 12:35 am
by Rykzon
  Code:
General
Unique ID                                : 213406967549511089431359981575079361034 (0xA08CAFD9A010AEACA59E668CB2467A0A)
Complete name                            : G:\Serien\Game of Thrones\S1\gamethrones.s01e01.720-pretail (1).mkv
Format                                   : Matroska
Format version                           : Version 4 / Version 2
File size                                : 2.73 GiB
Duration                                 : 1h 1mn
Overall bit rate                         : 6 343 Kbps
Encoded date                             : UTC 2013-06-25 19:40:58
Writing application                      : mkvmerge v6.2.0 ('Promised Land') built on Apr 28 2013 12:22: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                : 5 frames
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 1h 1mn
Bit rate                                 : 4 635 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.210
Stream size                              : 1.94 GiB (71%)
Title                                    : PRETAiL
Writing library                          : x264 core 120 r2120 0c7dab9
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=2pass / mbtree=1 / bitrate=4635 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language                                 : German
Default                                  : Yes
Forced                                   : Yes

Audio #1
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 1mn
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 84.6 MiB (3%)
Language                                 : German
Default                                  : Yes
Forced                                   : Yes

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Codec ID                                 : A_DTS
Duration                                 : 1h 1mn
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                              : 665 MiB (24%)
Language                                 : English
Default                                  : No
Forced                                   : No

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

Menu
00:00:00.000                             : en:00:00:00.000
00:00:06.006                             : en:00:00:06.006
00:07:16.436                             : en:00:07:16.436
00:08:56.536                             : en:00:08:56.536
00:18:14.510                             : en:00:18:14.510
00:28:46.558                             : en:00:28:46.558
00:39:35.582                             : en:00:39:35.582
00:50:00.039                             : en:00:50:00.039
01:00:32.629                             : en:01:00:32.629



done, sry, should have included both from the start.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 3:05 am
by DenyAll
Cannot see anything wrong, but it may be due to the notorious :) "change of audio stream" issue that affects Game of Thrones and other HBO video streams.
See this post viewtopic.php?f=10&t=3414#p70655. If you could try my suggesting there (against the file that has the header compression removed) and see if that helps. I haven't had feedback on whether it works or not. When doing the ffmpeg command take note of what appears on the screen - specifically whether you get a warning re: changing audio stream at the beginning of the process and post back.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 2:07 pm
by Rykzon
Tried your solution, was executed without errors, but didnt't help.


This episode, from the same rip, plays on my ps3.(file size?)


I think i just figured it out, it may be because of the chapters.
  Code:
General
Unique ID                                : 202292580446427586365966545398426875381 (0x98302242166099799CC7BC393B59B5F5)
Complete name                            : G:\Serien\Game of Thrones\S1\gamethrones.s01e02.720-pretail.mkv
Format                                   : Matroska
Format version                           : Version 2
File size                                : 2.26 GiB
Duration                                 : 55mn 17s
Overall bit rate                         : 5 850 Kbps
Encoded date                             : UTC 2012-02-19 16:33:04
Writing application                      : mkvmerge v5.2.0 ('I can't explain') built on Dec 18 2011 18:12:03
Writing library                          : libebml v1.2.3 + libmatroska v1.3.0

Video
ID                                       : 1
Format                                   : AVC
Format/Info                              : Advanced Video Codec
Format profile                           : High@L4.1
Format settings, CABAC                   : Yes
Format settings, ReFrames                : 5 frames
Muxing mode                              : Header stripping
Codec ID                                 : V_MPEG4/ISO/AVC
Duration                                 : 55mn 17s
Bit rate                                 : 4 146 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.188
Stream size                              : 1.56 GiB (69%)
Title                                    : PRETAiL
Writing library                          : x264 core 120 r2164 da19765
Encoding settings                        : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x133 / 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 / 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=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=2pass / mbtree=1 / bitrate=4146 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / aq=1:1.00
Language                                 : German
Default                                  : Yes
Forced                                   : Yes

Audio #1
ID                                       : 2
Format                                   : AC-3
Format/Info                              : Audio Coding 3
Mode extension                           : CM (complete main)
Format settings, Endianness              : Big
Muxing mode                              : Header stripping
Codec ID                                 : A_AC3
Duration                                 : 55mn 17s
Bit rate mode                            : Constant
Bit rate                                 : 192 Kbps
Channel(s)                               : 2 channels
Channel positions                        : Front: L R
Sampling rate                            : 48.0 KHz
Bit depth                                : 16 bits
Compression mode                         : Lossy
Stream size                              : 75.9 MiB (3%)
Language                                 : German
Default                                  : Yes
Forced                                   : Yes

Audio #2
ID                                       : 3
Format                                   : DTS
Format/Info                              : Digital Theater Systems
Mode                                     : 16
Format settings, Endianness              : Big
Muxing mode                              : Header stripping
Codec ID                                 : A_DTS
Duration                                 : 55mn 17s
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                              : 597 MiB (26%)
Language                                 : English
Default                                  : No
Forced                                   : No

Text #1
ID                                       : 4
Format                                   : UTF-8
Codec ID                                 : S_TEXT/UTF8
Codec ID/Info                            : UTF-8 Plain Text
Title                                    : Forced
Language                                 : English
Default                                  : No
Forced                                   : No

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

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 2:12 pm
by DenyAll
Did you get the message re: the change of audio type when doing the ffmpeg command?
This one works, even with the header compression?

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 2:24 pm
by Rykzon
Where would i look for that message? At the end? No then.

Yes that one works, im watching it right now.

Update: Removing chapters with mkvmerge didnt help.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 3:01 pm
by Illico
Could you remux your mkv to mpegts container to know if it's due to mkv container problem or Video/Audio codec problem ? (With TsMuxertools or a ffmpeg command line)

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 3:24 pm
by Rykzon
Could you remux your mkv to mpegts container to know if it's due to mkv container problem or Video/Audio codec problem ? (With TsMuxertools or a ffmpeg command line)


Not working, remuxed to m2ts too.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 4:38 pm
by Illico
Not working, remuxed to m2ts too.


So it's a video or audio codec problem.Probably a h264/AVC encoding setting that PS3 does not support.
You have to re-encode your file.

Re: PS3 problems(MKV streaming and general)

PostPosted: Wed Jun 26, 2013 6:35 pm
by Illico
You can try this for file not supported (chapter will be lost) : viewtopic.php?f=7&t=9674#p69495

Re: PS3 problems(MKV streaming and general)

PostPosted: Thu Jun 27, 2013 12:13 am
by DenyAll
Overnight I managed to get a copy of a Game of Thrones file that exhibits the same symptoms (I think - its not exactly the same file). Interestingly, this file plays fine on my Panasonic but not on the PS3 (unusual, its normally the other way around).

If it is the same as the one I have then there is something wrong with the video stream within the mkv container (I re-encoded audio only and that didn't fix - even though it has that weird stereo to 5.1 transition - then re-encoded video and that works). As such Illico's solution should work for you, as it transcodes the video stream. The problem though is this will transcode video for all h264 encoded video (including all the mkv's and mp4's that work for you) - so you will either need to live with that or you will need to swap profiles for each file.

As I am not a big fan of transcoding video unless absolutely necessary, I tried remuxing the file to a new mkv container - didn't work, and then I tried remuxing into an MP4, and bingo, worked. Remuxing is prefered as there is no loss in video quality. Unfortunately Serviio cannot remux into an MP4 container automatically, so you need to do this outside of Serviio. If you'd like to go down this path, then from the command prompt type:

    "C:\Program Files\Serviio\lib\ffmpeg.exe" - i "G:\Serien\Game of Thrones\S1\gamethrones.s01e01.720-pretail.mkv" -vcodec copy -acodec copy "G:\Serien\Game of Thrones\S1\gamethrones.s01e01.720-pretail.mp4"
I stress this worked for me with my test file - am hoping your file has the same problem. It copies both video and audio without loss, but you will likely lose your chapters and maybe your other audio track (let me know). I have used your file with header compression in the above command line - if this doesn't work, try it with the file that you removed compression from. The above assumes you are a Windows 32 bit users - you may have to adjust for the location of your ffmpeg.exe file if not.

I have no idea why this works - there is an issue in the video stream which only appears in an mkv file and only some renderers (eg the PS3). Put the same streams into an MP4 container and it works!? The added advantage though is that the PS3 prefers MP4 - you will likely get better support for fast forwarding and rewinding as a result.

Re: PS3 problems(MKV streaming and general)

PostPosted: Thu Jun 27, 2013 7:29 am
by Illico
Interresting,
So this is something with container information (MKV and MPEGTS failed, but MP4 works).

Re: PS3 problems(MKV streaming and general)

PostPosted: Thu Jun 27, 2013 7:48 am
by DenyAll
Yep, weird. I did get a warning when converting to MP4: "Codec frame size is not set" but googling that didn't shed any light. Also, some renderers (eg. my old Panasonic TV) dont have a problem with it. And then just to confuse matters more, some files in a series work well, others fail (even though they have presumably been encoded by the same person using the same settings I would think - MediaInfo doesn't show anything of significance that is different about the files). Hopefully this fixes Rykzon's problem.

Re: PS3 problems(MKV streaming and general)

PostPosted: Fri Jun 28, 2013 8:18 am
by Illico
Could you also try that : viewtopic.php?f=11&t=11181#p72414
Thanks.

Re: PS3 problems(MKV streaming and general)

PostPosted: Sun Jun 30, 2013 1:55 am
by DenyAll
Hi Illico - I tried it on my file (remuxing with the --clusters-in-meta-seek option), and no, the resultant file still did not play.
Still havent heard from Rykzon though.

Re: PS3 problems(MKV streaming and general)

PostPosted: Sun Jun 30, 2013 8:00 am
by Illico

Re: PS3 problems(MKV streaming and general)

PostPosted: Sun Jun 30, 2013 2:04 pm
by DenyAll
No good, tried with the following options: --clusters-in-meta-seek --disable-lacing --engage no_simpleblocks --engage no_cue_duration --engage no_cue_relative_position
Did them all together, and also one at a time (except the last two, which were paired up). Same error in all cases - "The data type is not supported".