VideoHelp Forum




+ Reply to Thread
Results 1 to 11 of 11
  1. Hi,
    i edited my video (90 minutes) with premiere, the video is 1080 50p (panasonic tm700).
    Now i would encode the video in a file (mkv), i use x264 to do that.
    I would try to do a bluray compatibile file so when i will buy a BD recorder, i can put on a disk.
    The result is a file 50 fps:
    Code:
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 4 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8s 540ms
    Bit rate mode                            : Variable
    Bit rate                                 : 9 270 Kbps
    Maximum bit rate                         : 62.5 Mbps
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 50.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF
    Bits/(Pixel*Frame)                       : 0.089
    Stream size                              : 9.44 MiB (100%)
    Title                                    : Sequence palloncino 50p
    Writing library                          : x264 core 120 r2120 0c7dab9
    Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x113 / me=umh / subme=8 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=0 / constrained_intra=0 / bframes=3 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=0 / keyint=500 / keyint_min=50 / scenecut=40 / intra_refresh=0 / rc_lookahead=50 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=62500 / vbv_bufsize=62500 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
    Encoded date                             : UTC 2012-11-26 17:30:28
    Tagged date                              : UTC 2012-11-26 17:30:28
    This file (MBAFF 50 fps) is bluray compatible? Should i deinterlace the video?
    Is this file better than a deinterlaced (50i) video?

    Thanks
    Quote Quote  
  2. This file (MBAFF 50 fps) is bluray compatible? Should i deinterlace the video?
    Is this file better than a deinterlaced (50i) video?
    50p is "better", but not compatible with blu-ray . You would have to convert it to 50i (create interlacing). (it's also called "25i", just different naming conventions, but what it means is 25 frames per second or 50 fields per second).

    MBAFF is compatible (it's a type of interlaced encoding) with blu-ray

    Also, your encode settings are not compatible for blu-ray . You need 4 slices, blu-ray compat, legal vbv values, legal max keyframe interval values
    https://sites.google.com/site/x264bluray/home/1080i
    http://forum.doom9.org/showthread.php?t=154533
    Quote Quote  
  3. Originally Posted by poisondeathray View Post
    This file (MBAFF 50 fps) is bluray compatible? Should i deinterlace the video?
    Is this file better than a deinterlaced (50i) video?
    50p is "better", but not compatible with blu-ray . You would have to convert it to 50i (create interlacing). (it's also called "25i", just different naming conventions, but what it means is 25 frames per second or 50 fields per second).

    MBAFF is compatible (it's a type of interlaced encoding) with blu-ray

    Also, your encode settings are not compatible for blu-ray . You need 4 slices, blu-ray compat, legal vbv values, legal max keyframe interval values
    https://sites.google.com/site/x264bluray/home/1080i
    http://forum.doom9.org/showthread.php?t=154533
    Sorry! i recheck che file, this is the correct one:
    Code:
    General
    Complete name                            : F:\Sequence palloncino br vs.mp4
    Format                                   : MPEG-4
    Format profile                           : Base Media
    Codec ID                                 : isom
    File size                                : 10.1 MiB
    Duration                                 : 8s 540ms
    Overall bit rate mode                    : Variable
    Overall bit rate                         : 9 886 Kbps
    Encoded date                             : UTC 2012-11-26 17:38:05
    Tagged date                              : UTC 2012-11-26 17:38:05
    
    Video
    ID                                       : 1
    Format                                   : AVC
    Format/Info                              : Advanced Video Codec
    Format profile                           : High@L4.1
    Format settings, CABAC                   : Yes
    Format settings, ReFrames                : 3 frames
    Codec ID                                 : avc1
    Codec ID/Info                            : Advanced Video Coding
    Duration                                 : 8s 540ms
    Bit rate mode                            : Variable
    Bit rate                                 : 9 880 Kbps
    Maximum bit rate                         : 40.0 Mbps
    Width                                    : 1 920 pixels
    Height                                   : 1 080 pixels
    Display aspect ratio                     : 16:9
    Frame rate mode                          : Constant
    Frame rate                               : 50.000 fps
    Color space                              : YUV
    Chroma subsampling                       : 4:2:0
    Bit depth                                : 8 bits
    Scan type                                : MBAFF
    Bits/(Pixel*Frame)                       : 0.095
    Stream size                              : 10.1 MiB (100%)
    Title                                    : Sequence palloncino br vs
    Writing library                          : x264 core 120 r2120 0c7dab9
    Encoding settings                        : cabac=1 / ref=4 / deblock=1:-1:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.15 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-3 / threads=12 / sliced_threads=0 / slices=4 / nr=0 / decimate=1 / interlaced=tff / bluray_compat=1 / constrained_intra=0 / bframes=3 / b_pyramid=1 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=1 / weightp=0 / keyint=25 / keyint_min=13 / scenecut=40 / intra_refresh=0 / rc_lookahead=37 / rc=crf / mbtree=1 / crf=20.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / vbv_maxrate=40000 / vbv_bufsize=30000 / crf_max=0.0 / nal_hrd=vbr / ip_ratio=1.40 / aq=1:1.00
    Encoded date                             : UTC 2012-11-26 17:38:05
    Tagged date                              : UTC 2012-11-26 17:38:05
    So x264 autmatically interlaced the video.

    Someone can suggest me a string to mantain the quality at best, with bluray compatibility?
    And even one string to make a 50p video mkv?
    Quote Quote  
  4. if you don't want to use command line you can use Megui:

    -file format choose RAWAVC
    -"target playback device" Blu-Ray
    -in "frame type" TAB choose maximum GOP size 25 and interlace mode choose tff (for 25i video) or none (for 25p) but in this case you have to also check in "Analysis" TAB fake interlace
    -in "Misc" TAB choose Force SAR 1:1 (of course you have to encode 1920x1080) and BT709 for Color Primaries,Transfer and Color Matrix

    audio has to be BD compatible too, AC3 less than 640kbps, 48000Hz, 16 or 24bit

    load AC3 and RAWAVC into TsMuxer and mux BDMV
    Last edited by _Al_; 26th Nov 2012 at 13:11.
    Quote Quote  
  5. for 50p you have to downsize to 720p1280
    Quote Quote  
  6. What kind of quality i'm obtaining with those parameters in megui?
    I think i prefer to use ripbot, because i can try to distribute the encoding in more pcs.
    If i use a 20 of quality factor i need more than 12 hours of encoding...
    Quote Quote  
  7. I did not mentioned settings for quality or bitrate because everybody can prefer something different, I'd set Constant quality with CRF 16 or 18 or so, other has to get video to certain size so uses automated 2pass with certain average.

    For sure I'd leave preset settings to medium which sets reference frames to 3 or so, settings like slow, slower etc. increase number of reference frames. Or it has to be decreased in settings then, but I'm not sure if that would make sense.

    Megui can generate RAW avc video. As soon as you put video into mp4 container I'm not sure how reliable it is to author BD standard out of it if you use TsMuxer then. I did not see that Ripbot264 can generate RAW H.264 video file.
    Quote Quote  
  8. Originally Posted by _Al_ View Post
    For sure I'd leave preset settings to medium which sets reference frames to 3 or so, settings like slow, slower etc. increase number of reference frames. Or it has to be decreased in settings then, but I'm not sure if that would make sense.
    x264 presets:

    Code:
    ultrafast: cabac=0 / ref=1  / deblock=0:0:0 / analyse=0:0       / me=dia  / subme=0  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=0 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0  / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=0                                                                           / weightp=0 / keyint=250 / keyint_min=23 / scenecut=0  / intra_refresh=0                   / rc=crf / mbtree=0 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=0
    superfast: cabac=1 / ref=1  / deblock=1:0:0 / analyse=0x3:0x3   / me=dia  / subme=1  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0  / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0                   / rc=crf / mbtree=0 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
    veryfast:  cabac=1 / ref=1  / deblock=1:0:0 / analyse=0x3:0x113 / me=hex  / subme=2  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=0 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0  / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=10 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    faster:    cabac=1 / ref=2  / deblock=1:0:0 / analyse=0x3:0x113 / me=hex  / subme=4  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=0  / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=20 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    fast:      cabac=1 / ref=2  / deblock=1:0:0 / analyse=0x3:0x113 / me=hex  / subme=6  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=1 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=30 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    medium:    cabac=1 / ref=3  / deblock=1:0:0 / analyse=0x3:0x113 / me=hex  / subme=7  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / b_pyramid=2 / b_adapt=1 / b_bias=0 / direct=1 / weightb=1 / open_gop=0 / weightp=2 / keyint=250 / keyint_min=23 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    slow:      cabac=1 / ref=5  / deblock=1:0:0 / analyse=0x3:0x113 / me=umh  / subme=8  / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=3  / 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=50 / rc=crf / mbtree=1 / crf=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    veryslow:  cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=umh  / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=6 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=8  / 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=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    placebo:   cabac=1 / ref=16 / deblock=1:0:0 / analyse=0x3:0x133 / me=tesa / subme=11 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=24 / chroma_me=1 / trellis=2 / 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=16 / 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=16.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / ip_ratio=1.40                 / aq=1:1.00
    They change from time to time so that last may not be completely up to date. Also, note that CRF=16 isn't a preset, it's what was set during encoding the test files from which those settings were taken.

    So changing from medium to slow with ref=3 will still benefit from better me and subme settings.
    Quote Quote  
  9. ok,
    i just did some quick tests it seems to work in more complex way, not sure exactly how, but, --bluray-compat or something else, not sure what, maybe --keyint 25 gives different results

    basicaly I compared this (BD settings for 25i) which gave me 4 reference frames:
    Code:
    x264 --crf=18 --preset placebo --bluray-compat --vbv-maxrate 30000 --vbv-bufsize 30000 --level 4.1 --keyint 25 --open-gop --tff --slices 4 --colorprim "bt709" --transfer "bt709" --colormatrix "bt709" --sar 1:1 --output out.264 input.avs
    and this, it gave me output with 16 reference frames:
    Code:
    x264 --crf=18 --preset placebo  --tff --output out.264 input.avs
    I checked different presets from medium to placebo and I got for that upper command line (BD compliant H.264):

    3 reference frames for --preset medium and 4 for the rest (slow, slower, very slow, placebo).

    I got the same with Megui (setting BD compliant H.264 as I explained above) and I got the same 3 ref frames for medium and 4 reference frames for the rest, even if settings for those stated otherwise , so I was wrong and as for those BD compliant settings we can knock yourselves out and set preset very slow and still get 4 reference frames instead of 6 or higher ... ? It seems so.
    Last edited by _Al_; 27th Nov 2012 at 12:54.
    Quote Quote  
  10. Yes, by forcing blu-ray compatibility you limit reference frames to 4. The settings I gave were the baseline for each preset.
    Quote Quote  
  11. The preset change the compression, so the file dimension.
    Using the same quality (same CRF) the resoult would be the same (more or less).
    Forcing the bluray compatibility some parameters are locked so there is less difference between the presets.
    I have to find the right CRF...
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!