折腾:
【记录】Mac中试用HandBrake转换mpg视频文件为mp4
期间,去参考:
这可能是 Mac 上最佳的视频压制和格式转换方案 | Patrick’s Blog
https://patricorgi.github.io/2016/11/12/这可能是%20Mac%20上最佳视频格式转换和压制方案/
去为了对比用Handbrake压缩视频文件前后的码率和其他信息,所以去下载可以方便查看视频的各种属性的信息的,包括视频编码,码率,帧数,音频编码等等
去mac中下载:
mac Media-Info


原始近4G的mpg的信息是:

换成text模式:


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 | General Complete name : / Users / crifan / dev / dev_root / projects / xxx_to_cn / 视频 / ICS_Sendemaster / CTT_02_17_CH_Subs.mpg Format : MPEG - PS File size : 3.99 GiB Duration : 30 min 0 s Overall bit rate mode : Variable Overall bit rate : 19.0 Mb / s Video ID : 224 ( 0xE0 ) Format : MPEG Video Format version : Version 2 Format profile : Main@High Format settings : BVOP Format settings, BVOP : Yes Format settings, Matrix : Default Format settings, GOP : M = 3 , N = 12 Duration : 30 min 0 s Bit rate mode : Variable Bit rate : 18.3 Mb / s Maximum bit rate : 25.0 Mb / s Width : 1 920 pixels Height : 1 080 pixels Display aspect ratio : 16 : 9 Frame rate : 25.000 FPS Standard : PAL Color space : YUV Chroma subsampling : 4 : 2 : 0 Bit depth : 8 bits Scan type : Progressive Compression mode : Lossy Bits / (Pixel * Frame) : 0.352 Time code of first frame : 01 : 00 : 00 : 00 Time code source : Group of pictures header Stream size : 3.83 GiB ( 96 % ) Color primaries : BT. 709 Transfer characteristics : BT. 709 Matrix coefficients : BT. 709 Audio ID : 192 ( 0xC0 ) Format : MPEG Audio Format version : Version 1 Format profile : Layer 2 Duration : 30 min 0 s Bit rate mode : Constant Bit rate : 384 kb / s Channel(s) : 2 channels Sampling rate : 48.0 kHz Frame rate : 41.667 FPS ( 1152 SPF) Compression mode : Lossy Stream size : 82.4 MiB ( 2 % ) |
HTML效果更好:


再去对比,此处用Handbrake压缩后的效果:

-》


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 | General Complete name : / Users / crifan / dev / dev_root / projects / xxx_to_cn / 视频 / converted / HandBrake / Fast 720p30 / CTT_02_17_CH_Subs.mp4 Format : MPEG - 4 Format profile : Base Media / Version 2 Codec ID : mp42 (isom / iso2 / avc1 / mp41) File size : 387 MiB Duration : 30 min 0 s Overall bit rate mode : Variable Overall bit rate : 1 803 kb / s Encoded date : UTC 2018 - 08 - 23 15 : 27 : 56 Tagged date : UTC 2018 - 08 - 23 15 : 27 : 56 Writing application : HandBrake 1.1 . 1 2018061800 Video ID : 1 Format : AVC Format / Info : Advanced Video Codec Format profile : Main@L3. 1 Format settings : CABAC / 5 Ref Frames Format settings, CABAC : Yes Format settings, ReFrames : 5 frames Codec ID : avc1 Codec ID / Info : Advanced Video Coding Duration : 30 min 0 s Bit rate : 1 650 kb / s Width : 1 280 pixels Height : 720 pixels Display aspect ratio : 16 : 9 Frame rate mode : Constant Frame rate : 25.000 FPS Color space : YUV Chroma subsampling : 4 : 2 : 0 Bit depth : 8 bits Scan type : Progressive Bits / (Pixel * Frame) : 0.072 Stream size : 354 MiB ( 92 % ) Writing library : x264 core 155 r2901 7d0ff22 Encoding settings : cabac = 1 / ref = 5 / deblock = 1 : 0 : 0 / analyse = 0x1 : 0x131 / me = umh / subme = 10 / psy = 1 / psy_rd = 1.00 : 0.00 / mixed_ref = 1 / me_range = 24 / chroma_me = 1 / trellis = 2 / 8x8dct = 0 / cqm = 0 / deadzone = 21 , 11 / fast_pskip = 1 / chroma_qp_offset = - 2 / threads = 6 / lookahead_threads = 1 / 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 = 25 / scenecut = 40 / intra_refresh = 0 / rc_lookahead = 60 / rc = 2pass / mbtree = 1 / bitrate = 1650 / ratetol = 1.0 / qcomp = 0.60 / qpmin = 0 / qpmax = 69 / qpstep = 4 / cplxblur = 20.0 / qblur = 0.5 / vbv_maxrate = 14000 / vbv_bufsize = 14000 / nal_hrd = none / filler = 0 / ip_ratio = 1.40 / aq = 1 : 1.00 Encoded date : UTC 2018 - 08 - 23 15 : 27 : 56 Tagged date : UTC 2018 - 08 - 23 15 : 27 : 56 Color range : Limited Color primaries : BT. 709 Transfer characteristics : BT. 709 Matrix coefficients : BT. 709 Audio ID : 2 Format : AAC Format / Info : Advanced Audio Codec Format profile : LC Codec ID : mp4a - 40 - 2 Duration : 30 min 0 s Bit rate mode : Variable Bit rate : 144 kb / s Channel(s) : 2 channels Channel positions : Front: L R Sampling rate : 48.0 kHz Frame rate : 46.875 FPS ( 1024 SPF) Compression mode : Lossy Stream size : 31.4 MiB ( 8 % ) Title : Stereo / Stereo Default : Yes Alternate group : 1 Encoded date : UTC 2018 - 08 - 23 15 : 27 : 56 Tagged date : UTC 2018 - 08 - 23 15 : 27 : 56 |


后来也去试了试
单个音频文件的效果:
Easy模式:

Text模式:

HTML模式:

转载请注明:在路上 » 【记录】Mac中下载MediaInfo查看音频视频文件信息