View Single Post
Old 20th August 2014, 10:21   #30  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
@Shark: My PC doesn't have a 3D graphic card, so I suppose that options cannot be used. But thanks anyway.

@IanD:
I have modified the files of a short clip and I think I have something that should work. Can you test the modifications?
Use a short clip to begin (and, optionally, select the UltraFast x264 preset). Use T&B or SBS, that doesn't matter.
When the demux phase is finished, edit the following files.

_ENCODE_3D_MOVIE.avs:
You should replace the following lines:
Code:
left  = SelectEven(interleaved)
right = SelectOdd(interleaved)

# Build combined Side-by-Side image
StackVertical(...)  (or StackHorizontal)
with this:
Code:
left  = SelectEven(interleaved).SeparateFields().SelectOdd()
right = SelectOdd(interleaved).SeparateFields().SelectEven()

# Build combined Row-interlaced image
Interleave(left, right).Weave()
The code above is for the left view in the top field. To place the right view in the top field, use this:
Code:
left  = SelectEven(interleaved).SeparateFields().SelectEven()
right = SelectOdd(interleaved).SeparateFields().SelectOdd()

# Build combined Row-interlaced image
Interleave(right, left).Weave()
That should work, but I'm not sure. If you see inverted fields, experiment with the words in red above.

You should also modify _ENCODE.CMD and replace the option "--frame-packing 4" (or 3 for SBS) with "--frame-packing 2".

You should also edit the "3D Video stream" section of the _MUX_3D_OPTIONS.txt file, like this:
Code:
# 3D video stream

--track-name
0:3D Row interlaced (x264 CRF 22, preset ultrafast, level 4.1)
--stereo-mode
0:7
--aspect-ratio
0:16/9
--default-duration
0:24000/1001p
--default-track
0:yes
01000_mpls.264
The stereo mode 7 is for the left field on top. Use 6 for the right field on top.

When the edits are finished, encode normally, and watch the movie on your TV. Perhaps you'll see some flickering effects (especially with thin horizontal lines, or in the end credits). Please let me know if it's the case. It is perhaps possible to improve the image quality and avoid the flickering with a resize instead of the SeparateFields().SelectOdd/Even() code.

Let me know if it works fine. If your tests are conclusive, I may add that option in the next version...
__________________
r0lZ
PgcEdit homepage (hosted by VideoHelp)
BD3D2MK3D A tool to convert 3D blu-rays to SBS, T&B or FS MKV

Last edited by r0lZ; 20th August 2014 at 10:23.
r0lZ is offline