Lyris
1st May 2010, 21:21
Hey everyone, this seems to be a basic that has totally escaped me for some time now. I've searched but can't find an answer to the problem.
Source: Blu-ray Disc, MPEG2, 60i, top field first.
Scenario: I am re-encoding some ~40mbps MPEG-2 files from a Blu-ray Disc with x264. The final output will be an BDMV structure for Blu-ray Disc (burned onto a DVD5). Naturally I am using x264 for the conversion.
Here is my script:
mpeg2source("cars.d2v")
Here is my x264 command line:
x264 --crf 16 --preset veryslow --weightp 0 --bframes 3 --nal-hrd vbr
--vbv-maxrate 14745 --vbv-bufsize 14745 --level 4.1 --keyint 30 --tff --b-pyramid strict
--slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 "%if%" -o "%of%"
Here is what I get out the other end, a problem I'm sure everyone is familiar with. Look at the mangled chroma, not the fact the colours are wrong (I'll deal with that later):
http://landofwhimsy.com/temp2/avcout.jpg
And here is the clean source:
http://landofwhimsy.com/temp2/mpeg2source.jpg
The question is, why is this happening? DGIndex is outputting YV12, my AVISynth script is outputting YV12, x264 is dealing with YV12 also, no? Why are any colour space conversions taking place at all and how do I stop this?
Source: Blu-ray Disc, MPEG2, 60i, top field first.
Scenario: I am re-encoding some ~40mbps MPEG-2 files from a Blu-ray Disc with x264. The final output will be an BDMV structure for Blu-ray Disc (burned onto a DVD5). Naturally I am using x264 for the conversion.
Here is my script:
mpeg2source("cars.d2v")
Here is my x264 command line:
x264 --crf 16 --preset veryslow --weightp 0 --bframes 3 --nal-hrd vbr
--vbv-maxrate 14745 --vbv-bufsize 14745 --level 4.1 --keyint 30 --tff --b-pyramid strict
--slices 4 --aud --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 "%if%" -o "%of%"
Here is what I get out the other end, a problem I'm sure everyone is familiar with. Look at the mangled chroma, not the fact the colours are wrong (I'll deal with that later):
http://landofwhimsy.com/temp2/avcout.jpg
And here is the clean source:
http://landofwhimsy.com/temp2/mpeg2source.jpg
The question is, why is this happening? DGIndex is outputting YV12, my AVISynth script is outputting YV12, x264 is dealing with YV12 also, no? Why are any colour space conversions taking place at all and how do I stop this?