dwing吧 关注:5,664贴子:89,003
  • 23回复贴,共1

小白求问,究竟如何输出x264编码的422 10bit?

只看楼主收藏回复

gh5拍摄的原始422 10bit all-i视频
mediacoder
ShanaEncoder
adobe media coder cc2018
这三个都试过了,x264/H264都只能转出420 10bit
mediacoder手动指定配置文件为hi10/hi422/hi444,等级手动5.1,都没用(auto就更不用说了)
ShanaEncoder只能指定hi10配置文件
adobe media coder cc2018和mediacoder一样手动指定配置文件和等级,勾上用最大色深渲染,也没用……


IP属地:广东1楼2018-01-24 13:17回复
    --output-csp i422


    IP属地:陕西2楼2018-01-24 15:22
    收起回复
      shanaencoder x265/HEVC 可以加参数-pix_fmt yuv444p 、-pix_fmt yuv422p 、-pix_fmt yuv420p
      10bit 8bit都行。
      x264 -pix_fmt yuv422p10 -f mkv -c:v libx264 -c:a libfdk_aac -crf 19.0 -profile:v high422 -level 5.1 -preset medium -tune:v none -b:a 128k -fdkprofile he -ac 2
      即是yuv422 10bits同理yuv444 8bit就去掉yuv420后面的p10


      IP属地:重庆3楼2018-01-24 18:56
      收起回复
        Writing application : ShanaEncoder
        Writing library : ShanaEncoder
        ErrorDetectionType : Per level 1
        Video
        ID : 1
        Format : AVC
        Format/Info : Advanced Video Codec
        Format profile : High 4:2:2@L5.1
        Format settings : CABAC / 4 Ref Frames
        Format settings, CABAC : Yes
        Format settings, ReFrames : 4 frames
        Codec ID : V_MPEG4/ISO/AVC
        Duration : 19 s 436 ms
        Width : 704 pixels
        Height : 528 pixels
        Display aspect ratio : 4:3
        Frame rate mode : Constant
        Frame rate : 23.976 (24000/1001) FPS
        Color space : YUV
        Chroma subsampling : 4:2:2
        Bit depth : 10 bits
        Scan type : Progressive
        Writing library : x264 core 155 r2893 b00bcaf
        Encoding settings : 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=4 / lookahead_threads=1 / 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=19.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
        一定要注意-profile:v high422你设置其他后,这个变为baseline就会出错,记住是在F8参数设置xml里改


        IP属地:重庆4楼2018-01-24 22:22
        收起回复
          我一般420或者444……


          IP属地:湖南来自手机贴吧7楼2018-01-27 18:49
          回复
            该楼层疑似违规已被系统折叠 查看此楼


            IP属地:福建来自Android客户端8楼2018-10-28 16:36
            回复(1)
              @asxzwang
              ffmpeg -i 0.mkv -pix_fmt yuv422p10le -acodec copy -vcodec libx264 -profile:v high422 -x264opts colorprim="bt2020":transfer="smpte2084":colormatrix="bt2020nc" 000.mkv
              成果的mediainfo:
              General
              Unique ID : 284521902953488385705707706250335911681 (0xD60CECDEB49B9DEAC0C0CE97A19C7F01)
              Complete name : E:\tmp\test\000.mkv
              Format : Matroska
              Format version : Version 4
              File size : 33.6 MiB
              Duration : 2 min 25 s
              Overall bit rate mode : Variable
              Overall bit rate : 1 936 kb/s
              Writing application : Lavf58.19.100
              Writing library : Lavf58.19.100
              ErrorDetectionType : Per level 1Video
              ID : 1
              Format : AVC
              Format/Info : Advanced Video Codec
              Format profile : High 4:2:2@L3.1
              Format settings : CABAC / 4 Ref Frames
              Format settings, CABAC : Yes
              Format settings, ReFrames : 4 frames
              Codec ID : V_MPEG4/ISO/AVC
              Duration : 2 min 25 s
              Width : 1 280 pixels
              Height : 720 pixels
              Display aspect ratio : 16:9
              Frame rate mode : Constant
              Frame rate : 24.000 FPS
              Color space : YUV
              Chroma subsampling : 4:2:2
              Bit depth : 10 bits
              Scan type : Progressive
              Writing library : x264 core 157 r2935 545de2f
              Encoding settings : 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=12 / lookahead_threads=2 / 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=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=40 / rc=crf / mbtree=1 / crf=23.0 / qcomp=0.60 / qpmin=0 / qpmax=81 / qpstep=4 / ip_ratio=1.40 / aq=1:1.00
              Language : Japanese
              Default : Yes
              Forced : No
              Color range : Limited
              Color primaries : BT.2020
              Transfer characteristics : PQ
              Matrix coefficients : BT.2020 non-constant
              Statistics Tags Issue : mkvmerge v13.0.0 ('The Juggler') 64bit 2017-12-29 05:42:42 / Lavf58.19.100
              FromStats_BitRate : 974729
              FromStats_Duration : 00:02:25.417000000
              FromStats_FrameCount : 3490
              FromStats_StreamSize : 17717784Audio
              ID : 2
              Format : FLAC
              Format/Info : Free Lossless Audio Codec
              Codec ID : A_FLAC
              Duration : 2 min 25 s
              Bit rate mode : Variable
              Channel(s) : 2 channels
              Channel layout : L R
              Sampling rate : 48.0 kHz
              Bit depth : 16 bits
              Compression mode : Lossless
              Language : Japanese
              Default : Yes
              Forced : No
              Statistics Tags Issue : mkvmerge v13.0.0 ('The Juggler') 64bit 2017-12-29 05:42:42 / Lavf58.19.100
              FromStats_BitRate : 881503
              FromStats_Duration : 00:02:25.420000000
              FromStats_FrameCount : 1705
              FromStats_StreamSize : 16023527


              IP属地:江苏9楼2018-11-26 22:34
              回复(3)
                @CD /D "%~dp0"
                @echo off&title ffmpeg视频转换
                if "%~1"=="" echo,请拖入需要转换的文件到本文件上&pause&exit /b
                for %%i in (%*) do (
                D:\ffmpeg\bin\ffmpeg.exe -i "%%i" -acodec copy -vcodec libx264 -x264-params qpmax=69:rc-lookahead=60:fast_pskip=1:aq-mode=3:ref=9:b-adapt=2:direct=auto:me=umh:subme=10:merange=32:trellis=2:deblock=-3,-3:colorprim="bt709":transfer="bt709":colormatrix="bt709" "%%~ni.MP4"
                )
                pause


                ffmpeg画质没有hanbrake的好


                IP属地:安徽11楼2018-11-27 01:40
                收起回复
                  我用格式工厂导出 直接变成444 10bit了


                  IP属地:山东12楼2024-12-29 19:59
                  回复