Log in

View Full Version : PS3 Encoding problem


nrx][Natas
22nd July 2010, 15:59
Hi,

i have some problems with a metallica blu-ray i try to encode for my ps3. I'm using the latest dev release of megui and a little changed ps3 profile. I'm using this ps3 profil for some AVCHD videos of my canon camera without any problems. I think there is something wrong with the resulution or the framerate. The only different between this blu-ray and the canon encodes, is the deinterlacing.

When i try so play the video on my ps3, i get the message "defective data"

It would be nice if you could review my settings::thanks:

Avisynth Script:
# Set DAR in encoder to 16 : 9. The following line is for automatic signalling
global MeGUI_darx = 16
global MeGUI_dary = 9
DirectShowSource("F:\DVD\Metallica\metallica.m2ts", fps=29.970, audio=false, convertfps=true)
Load_Stdcall_Plugin("D:\Programme\megui\tools\yadif\yadif.dll")
Yadif(order=1)
#crop
Lanczos4Resize(864,480) # Lanczos4 (Sharp)
Sharpen(0.3)
#denoise


My changed ps3 megui profile:
<?xml version="1.0"?>
<GenericProfileOfx264Settings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Name>Playstation 3 2 PASS</Name>
<Settings>
<EncodingMode>4</EncodingMode>
<BitrateQuantizer>3800</BitrateQuantizer>
<KeyframeInterval>250</KeyframeInterval>
<NbBframes>3</NbBframes>
<MinQuantizer>10</MinQuantizer>
<MaxQuantizer>51</MaxQuantizer>
<V4MV>false</V4MV>
<QPel>false</QPel>
<Trellis>false</Trellis>
<CreditsQuantizer>40</CreditsQuantizer>
<Logfile>.stats</Logfile>
<VideoName />
<CustomEncoderOptions />
<FourCC>0</FourCC>
<MaxNumberOfPasses>3</MaxNumberOfPasses>
<NbThreads>0</NbThreads>
<x264Preset>99</x264Preset>
<Turbo>migrated</Turbo>
<X264Nalhrd>migrated</X264Nalhrd>
<x264PresetLevel>slower</x264PresetLevel>
<x264Tuning>0</x264Tuning>
<QuantizerCRF>3800</QuantizerCRF>
<EncodeInterlaced>false</EncodeInterlaced>
<NoDCTDecimate>false</NoDCTDecimate>
<PSNRCalculation>false</PSNRCalculation>
<NoFastPSkip>false</NoFastPSkip>
<NoiseReduction>0</NoiseReduction>
<NoMixedRefs>false</NoMixedRefs>
<X264Trellis>1</X264Trellis>
<NbRefFrames>8</NbRefFrames>
<AlphaDeblock>0</AlphaDeblock>
<BetaDeblock>0</BetaDeblock>
<SubPelRefinement>9</SubPelRefinement>
<MaxQuantDelta>4</MaxQuantDelta>
<TempQuantBlur>0</TempQuantBlur>
<BframePredictionMode>3</BframePredictionMode>
<VBVBufferSize>31250</VBVBufferSize>
<VBVMaxBitrate>31250</VBVMaxBitrate>
<METype>2</METype>
<MERange>16</MERange>
<MinGOPSize>25</MinGOPSize>
<IPFactor>1.4</IPFactor>
<PBFactor>1.3</PBFactor>
<ChromaQPOffset>0</ChromaQPOffset>
<VBVInitialBuffer>0.9</VBVInitialBuffer>
<BitrateVariance>1.0</BitrateVariance>
<QuantCompression>0.6</QuantCompression>
<TempComplexityBlur>20</TempComplexityBlur>
<TempQuanBlurCC>0.5</TempQuanBlurCC>
<SCDSensitivity>40</SCDSensitivity>
<BframeBias>0</BframeBias>
<PsyRDO>1.0</PsyRDO>
<PsyTrellis>0</PsyTrellis>
<Deblock>true</Deblock>
<Cabac>true</Cabac>
<UseQPFile>false</UseQPFile>
<WeightedBPrediction>true</WeightedBPrediction>
<WeightedPPrediction>2</WeightedPPrediction>
<NewAdaptiveBFrames>1</NewAdaptiveBFrames>
<x264BFramePyramid>2</x264BFramePyramid>
<ChromaME>true</ChromaME>
<MacroBlockOptions>0</MacroBlockOptions>
<P8x8mv>true</P8x8mv>
<B8x8mv>true</B8x8mv>
<I4x4mv>true</I4x4mv>
<I8x8mv>true</I8x8mv>
<P4x4mv>true</P4x4mv>
<AdaptiveDCT>true</AdaptiveDCT>
<SSIMCalculation>false</SSIMCalculation>
<QuantizerMatrix>Flat (none)</QuantizerMatrix>
<QuantizerMatrixType>0</QuantizerMatrixType>
<DeadZoneInter>21</DeadZoneInter>
<DeadZoneIntra>11</DeadZoneIntra>
<OpenGop>0</OpenGop>
<X264PullDown>0</X264PullDown>
<SampleAR>0</SampleAR>
<ColorMatrix>0</ColorMatrix>
<ColorPrim>0</ColorPrim>
<Transfer>0</Transfer>
<AQmode>1</AQmode>
<AQstrength>1.0</AQstrength>
<QPFile>.qpf</QPFile>
<fullRange>false</fullRange>
<x264AdvancedSettings>true</x264AdvancedSettings>
<Lookahead>40</Lookahead>
<NoMBTree>true</NoMBTree>
<ThreadInput>true</ThreadInput>
<NoPsy>false</NoPsy>
<Scenecut>true</Scenecut>
<Nalhrd>0</Nalhrd>
<X264Aud>false</X264Aud>
<X264SlowFirstpass>false</X264SlowFirstpass>
<PicStruct>false</PicStruct>
<FakeInterlaced>false</FakeInterlaced>
<NonDeterministic>false</NonDeterministic>
<SlicesNb>0</SlicesNb>
<MaxSliceSyzeBytes>0</MaxSliceSyzeBytes>
<MaxSliceSyzeMBs>0</MaxSliceSyzeMBs>
<Profile>2</Profile>
<Level>11</Level>
</Settings>
</GenericProfileOfx264Settings>

MeGui command lines:
Pass1
"D:\Programme\megui\tools\x264\x264.exe" --level 4.1 --preset slower --pass 1 --bitrate 3800 --stats "F:\DVD\Metallica\metallica.stats" --b-adapt 1 --vbv-bufsize 31250 --vbv-maxrate 31250 --rc-lookahead 40 --trellis 1 --sar 80:81 --output NUL "F:\DVD\Metallica\metallica.avs"

Pass2
"D:\Programme\megui\tools\x264\x264.exe" --level 4.1 --preset slower --pass 2 --bitrate 3800 --stats "F:\DVD\Metallica\metallica.stats" --b-adapt 1 --vbv-bufsize 31250 --vbv-maxrate 31250 --rc-lookahead 40 --trellis 1 --sar 80:81 --output "F:\DVD\Metallica\metallica.mp4" "F:\DVD\Metallica\metallica.avs"

nurbs
22nd July 2010, 16:07
When you encode for the PS3 don't encode to .mp4, but to .264 instead. If you can demux that encode (e.g. with YAMB) and then remux it again and it works that's the problem.

nrx][Natas
22nd July 2010, 18:43
Thanks alot, that works. Can you tell me why? Al the other videos had no problem with direct to mp4 encoding. I'll change that but i really would like to know what the diffent is.

thx

nurbs
23rd July 2010, 10:14
I don't know, I'm not even sure direct to mp4 ever worked. It's been too long ago to remember. With other containers there is no problem, like you mentioned. You could try a x264 build with the L-SMASH mp4 muxer since GPAC seems to have some problems, most recently with baseline profile encodes. If you try a short clip with the alternate muxer and that works you'll know the problem is probably with GPAC.

Lyle_JP
23rd July 2010, 12:23
GPAC isn't the problem alone, because mp4box uses GPAC too, and when you use it to mux raw high profile streams from x264, you get results that always playback on a PS3. There's just something funny about the way GPAC-based builds of x264 create their mp4 files that the PS3 reads as "Corrupted Data". The conflict with GPAC and recent x264 baseline encodes is a separate matter, and only affects builds r1666 and higher.

Still, you can avoid all of these problems by using an L-SMASH based build of x264 and always output to mp4, as long as that works with your workflow.

JEEB
23rd July 2010, 12:35
I wonder if the PS3 just doesn't like the index being in the end of the file, instead of the beginning of it... Although IIRC files from L-SMASH play well on the PS3 straight from x264, and that shouldn't have the index atom in the beginning either since the file info isn't yet fully known...

Oh well... I have no idea about this problem. The PS3 should eat stuff nicely as long as it's Level 4.1 and the vbv limits aren't too high.

And as far as remuxing goes, GPAC (mp4box) doesn't IIRC change that much stuff in the structure of the file, so if you've got timestamps etc. correctly set for frames etc., it shouldn't really break much after muxing in audio with it.

Lyle_JP
23rd July 2010, 12:47
And as far as remuxing goes, GPAC (mp4box) doesn't IIRC change that much stuff in the structure of the file, so if you've got timestamps etc. correctly set for frames etc., it shouldn't really break much after muxing in audio with it.

It doesn't in my experience. Muxing in audio and chapters with mp4box to an existing mp4 seems very safe.