View Single Post
Old 29th July 2015, 13:17   #468  |  Link
r0lZ
PgcEdit daemon
 
r0lZ's Avatar
 
Join Date: Jul 2003
Posts: 7,469
Mini-guide to convert a 3D-SBS or 3D-T&B MKV file to Frame Sequential 3D at 60 fps.

OK, I wrote the script and tried it. It seems to work, but again, since I have no way to play Frame Sequential 3D here, I can't be sure. Anyway, here is the promised mini guide.

You will need:
  • The avisynth script: Convert_to_FS_60fps.avs
  • a GUI for x264. I use the Simple X264 Launcher, but any good GUI should be OK.
  • Mkvtoolnix, or, if you prefer to mux to MP4, a good MP4 muxer.
  • Avisynth 2.58 (or compatible), but you should already have it if you use BD3D2MK3D.
  • The ffms2 avisynth plugin. Copy the files from the x86 directory of the distribution archive to the avisynth plugins directory (usually "C:\Program Files (x86)\AviSynth 2.5\plugins").

Usage:
  1. Create a new directory and copy the original 3D SBS or T&B file in that directory. Copy also the AVS script, and rename it if you wish. (It is easier to rename it to the movie name.)
  2. Edit the script to suit your needs. It has been heavily documented and you should understand what should be modified. Normally, if the original file is a standard 16:9 non-cropped MKV in Half or Full 3D-SBS with left view first, you should only need to modify the input file name. For a T&B file, you have to comment out two lines and un-comment the two other lines. If the MKV is not standard, you may have to modify other things. Read the comments.
  3. Load the modified AVS script in the Simple X264 Launcher, and select the encoding parameters you prefer. I suggest CRF (between 18 and 23), preset medium, slow or slower, tuning <none>, profile high.
  4. Important: Add the following parameters in the "Custom encoder parameters" field:
    If you encode in full 1080p resolution, you must use at least the h264 level 4.2. You should include this:
    Code:
    --frame-packing 5 --level 4.2 --vbv-bufsize 62500 --vbv-maxrate 50000
    Note that 108op at level 4.2 or 5+ is incompatible with many DLP projectors, and require a fast connexion. If your hardware refuse or has trouble playing Frame Sequential 1080p, you need to encode in 720p, less demanding. (The avisynth script encodes at 720p by default.)

    In 720p, levels 4.0 or 4.1 are sufficient. Your hardware may require level 4.0, but if it supports level 4.1, you should use it to obtain a smaller file size or better quality.
    For 720p at level 4.1, use:
    Code:
    --frame-packing 5 --level 4.1 --vbv-bufsize 78125 --vbv-maxrate 62500
    For 720p at level 4.0 (the most compatible option), use:
    Code:
    --frame-packing 5 --level 4.0 --vbv-bufsize 31250 --vbv-maxrate 25000"
    The frame-packing argument specifies that the file is encoded in Frame Sequential format.
    The other arguments (including the two vbv parameters) are necessary to ensure that maximum level 4.0, 4.1 or 4.2 will be used by the encoder.
    You can also let the encoder decide which level to use by omitting the --level and the two --vbv-* arguments, but you may end up with a file not supported by your hardware. Anyway, the frame-packing argument is mandatory.
  5. When the encoding is finished, open the original MKV file in the MkvToolnix GUI (or in the obsolete MkvMerge GUI "mmg.exe" if you prefer). Untick the video stream. (You can also untick other streams if you don't need them.) Then, drop the newly encoded .264 file over the window and select "Add as new input files" in the dialog. You should see the new video stream in the bottom of the list of streams. Move it to the top. If you wish, give it a label (track name) in the Properties frame (or in the General Track Options tab of mmg.exe). In the Timecodes frame (or Format Specific Options tab), be sure to specify the "default duration" 60000/1001p. The Aspect ratio should be set to 16:9, and the Stereoscopy mode to "both eyes laced in one block (left first) (13)". Type a relevant output file name and change the extension from .mk3d to .mkv (and change the output directory if you wish) and mux the file.
  6. Test and enjoy!

Note that the relatively recent versions of MkvMerge have changed the way the muxing is done by default, and many hardware players have trouble to seek or start the playback of the file. They may even crash completely. It is therefore recommended to add permanent options in the MkvToolnix (or MkvMerge) GUI to avoid that problems. I suggest to add this:
Code:
--disable-track-statistics-tags --engage no_cue_duration --engage no_cue_relative_position
in the "Default additional command line options" field of the "Merging" tab of the MkvToolnix GUI Preferences window (or with Muxing -> Add Command Line Options in mmg.exe. In mmg.exe, tick also the "save as default for new jobs" option so you need to do it only once.)
__________________
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; 30th July 2015 at 20:29. Reason: Added the x264 level 4.2 arguments for 1080p
r0lZ is offline