Page 1 of 1

Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 1:45 pm
by mfractal
First of all i would like to thank the author for the time and effort he put into this brilliant piece of software!

So... Huge Thanks!!!!

My problem (and i've tried 0.52 and 0.6) is that almost any MKV file i am trying to play on my PS3 has real bad artifacts around moving objects, especially when the scene changes.

Info of a faulty file:

  Code:
ffmpeg version N-31480-g8bc3a48, Copyright (c) 2000-2011 the FFmpeg developers
  built on Jul 14 2011 23:37:53 with gcc 4.4.2
  configuration: --enable-static --disable-shared --disable-ffplay --disable-ffserver --enable-memalign-hack --enable-libmp3lame --enable-librtmp --extra-libs='-lrtmp -lpolarssl -lws2_32 -lwinmm' --arch=x86 --enable-runtime-cpudetect --enable-pthreads --target-os=mingw32 --cross-prefix=i686-mingw32- --pkg-config=pkg-config
  libavutil    51. 11. 0 / 51. 11. 0
  libavcodec   53.  8. 0 / 53.  8. 0
  libavformat  53.  6. 0 / 53.  6. 0
  libavdevice  53.  2. 0 / 53.  2. 0
  libavfilter   2. 25. 0 /  2. 25. 0
  libswscale    2.  0. 0 /  2.  0. 0
[matroska,webm @ 003d8ce0] Estimating duration from bitrate, this may be inaccurate
Input #0, matroska,webm, from 'f:\Media\TV Shows\Modern.Family.S03E01.720p.HDTV.X264-DIMENSION\Modern.Family.S03E01.720p.HDTV.X264-DIMENSION.mkv':
  Duration: 00:21:34.96, start: 0.000000, bitrate: 448 kb/s
    Stream #0.0(eng): Video: h264 (High), yuv420p, 1280x720, PAR 1:1 DAR 16:9, 23.98 fps, 23.98 tbr, 1k tbn, 47.95 tbc


Here's MediaInfo's output

  Code:
General
Unique ID                        : 169486093151272331552399057807110523536 (0x7F81D58DD9D8F4B00206043B062B4A90)
Complete name                    : F:\Media\TV Shows\Modern.Family.S03E01.720p.HDTV.X264-DIMENSION\Modern.Family.S03E01.720p.HDTV.X264-DIMENSION.mkv
Format                           : Matroska
Format version                   : Version 2
File size                        : 814 MiB
Duration                         : 21mn 34s
Overall bit rate                 : 5 276 Kbps
Encoded date                     : UTC 2011-09-21 21:16:24
Writing application              : mkvmerge v3.0.0 ('Hang up your Hang-Ups') built on Apr 19 2010 11:58:49
Writing library                  : libebml v0.7.7 + libmatroska v0.8.1

Video
ID                               : 1
Format                           : AVC
Format/Info                      : Advanced Video Codec
Format profile                   : High@L4.1
Format settings, CABAC           : Yes
Format settings, ReFrames        : 8 frames
Codec ID                         : V_MPEG4/ISO/AVC
Duration                         : 21mn 34s
Bit rate                         : 4 723 Kbps
Width                            : 1 280 pixels
Height                           : 720 pixels
Display aspect ratio             : 16:9
Frame rate                       : 23.976 fps
Color space                      : YUV
Chroma subsampling               : 4:2:0
Bit depth                        : 8 bits
Scan type                        : Progressive
Bits/(Pixel*Frame)               : 0.214
Stream size                      : 729 MiB (90%)
Writing library                  : x264 core 116 r2074 2641b9e
Encoding settings                : cabac=1 / ref=8 / deblock=1:-2:-2 / analyse=0x3:0x133 / me=umh / subme=9 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=crf / mbtree=1 / crf=18.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
Language                         : English

Audio
ID                               : 2
Format                           : AC-3
Format/Info                      : Audio Coding 3
Mode extension                   : CM (complete main)
Codec ID                         : A_AC3
Duration                         : 21mn 34s
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
Bit depth                        : 16 bits
Compression mode                 : Lossy
Stream size                      : 69.2 MiB (8%)


I am running a 4GB Core i5 Machine with Windows 7 on it.

Anything i could try ?

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 6:25 pm
by Cerberus
this is likely to be down to your network not being able to handle the stream or broken file rather than serviio issue. :)

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 10:24 pm
by mfractal
I doubt it because
a. it happens on almost all the MKV files i have
b. PS3 Media Server can handle the network traffic just fine so i don't see a reason why serviio woudn't + i use a 1GB wired connection between the PS3 the router and the streaming computer

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 10:26 pm
by Cerberus
then when are at broken file, as there is soething in it that FFmpeg doesnt like and taht why u get artifacts.

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 10:36 pm
by mfractal
Ok, so how do i diagnose it ? Is there a way to fix it ?

thanks for the responses btw ;)

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Sun Sep 25, 2011 11:15 pm
by Cerberus
mfractal wrote:Ok, so how do i diagnose it ? Is there a way to fix it ?

thanks for the responses btw ;)


reencode them, also check that header compression wasnt used when they were encoded as this causes all sort of problems.

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Mon Sep 26, 2011 12:14 pm
by mfractal
could you elaborate a bit ?

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Mon Sep 26, 2011 4:00 pm
by Illico
What is your TV model? do you have some "Motionflow" option activated?

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Mon Sep 26, 2011 6:53 pm
by mfractal
My TV model is Panasonic V20 plasma, but i am using the PS3 as the DLNA receiver.

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Mon Sep 26, 2011 6:57 pm
by Illico
mfractal wrote:My TV model is Panasonic V20 plasma, but i am using the PS3 as the DLNA receiver.

Do you have some "Motionflow" or "Motion Smoother" option enabled on your Pana?
And do you confirm that when using PS3 Media Server with the same device : PS3+Panasonic V20, you don't have artifacts?

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Mon Sep 26, 2011 8:02 pm
by mfractal
Illico wrote:
mfractal wrote:My TV model is Panasonic V20 plasma, but i am using the PS3 as the DLNA receiver.

Do you have some "Motionflow" or "Motion Smoother" option enabled on your Pana?
And do you confirm that when using PS3 Media Server with the same device : PS3+Panasonic V20, you don't have artifacts?


No, those options aren't enabled
And yes, i confirm that using PS3 Media Server + My Panasonic TV there aren't any artifacts. The problem has to be with the mkv decoder of Serviio.

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Tue Sep 27, 2011 6:50 am
by Illico
So this file must be re-muxed into MPEG2 Transport Stream, video and audio codecs must be copied.
Enable detailed logging (see signature) and check the ffmpeg command line used to deliver this stream.

Could you also check the PS3 Media Server logging, probably this file is transcoded into MPEG2 video, so there were no artifacts.

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Tue Sep 27, 2011 11:55 am
by mfractal
Just to confirm, you want me to enable detail logging and play the file right ?
Or am i to remux (not sure how) the file into MPEG2 first and then try to play it ?

Re: Nasty Artifacts when playing MKV files via PS3

PostPosted: Tue Sep 27, 2011 4:26 pm
by Illico
mfractal wrote:Just to confirm, you want me to enable detail logging and play the file right ?

Yes,
-First, just find in log the ffmpeg command line used by serviio to transcode this file (so enable detailed logging and start the file).
-Then try locally the same command line in windows terminal, an add the resulting output file to the library and see if result is the same.
-And that could be fine to compare with the PS3 Media Server encoder command line.