Hi, anyone can tell me how i can add Matrix coefficients : BT.709-5, BT.1361, IEC 61966-2-4 709, SMPTE RP177 to my videos ?
Try StreamFab Downloader and download from Netflix, Amazon, Youtube! Or Try DVDFab and copy Blu-rays! or rip iTunes movies!
+ Reply to Thread
Results 1 to 3 of 3
Thread
-
-
While encoding to x264:
Code:Video Usability Info (Annex E): The VUI settings are not used by the encoder but are merely suggestions to the playback equipment. See doc/vui.txt for details. Use at your own risk. --overscan <string> Specify crop overscan setting ["undef"] - undef, show, crop --videoformat <string> Specify video format ["undef"] - component, pal, ntsc, secam, mac, undef --range <string> Specify color range ["auto"] - auto, tv, pc --colorprim <string> Specify color primaries ["undef"] - undef, bt709, bt470m, bt470bg, smpte170m, smpte240m, film, bt2020 --transfer <string> Specify transfer characteristics ["undef"] - undef, bt709, bt470m, bt470bg, smpte170m, smpte240m, linear, log100, log316, iec61966-2-4, bt1361e, iec61966-2-1, bt2020-10, bt2020-12 --colormatrix <string> Specify color matrix setting ["???"] - undef, bt709, fcc, bt470bg, smpte170m, smpte240m, GBR, YCgCo, bt2020nc, bt2020c --chromaloc <integer> Specify chroma sample location (0 to 5) [0] --nal-hrd <string> Signal HRD information (requires vbv-bufsize) - none, vbr, cbr (cbr not allowed in .mp4) --filler Force hard-CBR and generate filler (implied by --nal-hrd cbr) --pic-struct Force pic_struct in Picture Timing SEI --crop-rect <string> Add 'left,top,right,bottom' to the bitstream-level cropping rectangle
-> usind --colormatrix <string> would be what you want
While encoding to x265:
Code:VUI options: --sar <width:height|int> Sample Aspect Ratio, the ratio of width to height of an individual pixel. Choose from 0=undef, 1=1:1("square"), 2=12:11, 3=10:11, 4=16:11, 5=40:33, 6=24:11, 7=20:11, 8=32:11, 9=80:33, 10=18:11, 11=15:11, 12=64:33, 13=160:99, 14=4:3, 15=3:2, 16=2:1 or custom ratio of <int:int>. Default 0 --crop-rect <string> Add 'left,top,right,bottom' to the bitstream-level cropping rectangle --overscan <string> Specify whether it is appropriate for decoder to show cropped region: undef, show or crop. Default undef --videoformat <string> Specify video format from undef, component, pal, ntsc, secam, mac. Default undef --range <string> Specify black level and range of luma and chroma signals as full or limited Default limited --colorprim <string> Specify color primaries from undef, bt709, bt470m, bt470bg, smpte170m, smpte240m, film, bt2020. Default undef --transfer <string> Specify transfer characteristics from undef, bt709, bt470m, bt470bg, smpte170m, smpte240m, linear, log100, log316, iec61966-2-4, bt1361e, iec61966-2-1, bt2020-10, bt2020-12. Default undef --colormatrix <string> Specify color matrix setting from undef, bt709, fcc, bt470bg, smpte170m, smpte240m, GBR, YCgCo, bt2020nc, bt2020c. Default undef --chromaloc <integer> Specify chroma sample location (0 to 5). Default of 0
-> usind --colormatrix <string> would be what you want.
If you want to modify this information on an existing H.264 raw stream you could use the modified ffmpeg version from roozhou.
Cu Selurusers currently on my ignore list: deadrats, Stears555