最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【记录】Mac中试用HandBrake转换mpg视频文件为mp4

转换 crifan 1778浏览 0评论
折腾:
【记录】把大视频mpg文件转换为画质中等文件小点的mp4文件
期间,想要把原始的近4G的mpg高清视频,转换为 文件大小尽可能低的mp4文件,且希望画质尽量高。
已经用了Total Video Converter Lite转换出:
100多M
200多M
400多M
和用Wondershare Video Converter Free转换出
900多M
的mp4了,但是画质除了900多MB的,
其他的画质的确还是差了点。
看到:
这可能是 Mac 上最佳的视频压制和格式转换方案 | Patrick’s Blog
https://patricorgi.github.io/2016/11/12/这可能是%20Mac%20上最佳视频格式转换和压制方案/
-》
HandBrake: Open Source Video Transcoder
貌似虽然很耗时,但是很专业?
不过感觉10倍的压缩比,其实上面的转换器也可以达到了:
从4G的mpg压缩为400多MB的mp4
不过或许专业的Handbrake输出的画质更好?
去试试效果,希望可以实现:
画质很高,mp4文件很小
HandBrake: Open Source Video Transcoder
HandBrake: Downloads
-》
HandBrake
https://handbrake.fr/rotation.php?file=HandBrake-1.1.1.dmg
->
可以切换preset配置:
然后去看看各方面的配置:
然后根据教程去调节参数看看
把Video的:
Preset从fast改为medium
【记录】Mac中下载MediaInfo查看音频视频文件信息
其中看到:
Frame rate                               : 25.000 FPS
考虑到原始视频是25帧,那么也去把帧率调低为25帧:
参考教程去调节参数:
算了,为了防止压制时间太长,还是不用placebo改为veryslow:
  • Video Encoder:
    • H.264(x264):是目前支持相对最广泛的,压缩效率最好的
  • Framerate (FPS):same as source
    • 原始视频25帧,则输出的也是25帧
  • Quality:
    • Average Bitrate(kpbs):
      • 此处切换为Average Bitrate时,默认是3000
        • 参考教程改为1650
      • 勾选了:
        • 2-pass encoding:
          • 2遍压缩,压缩效果更好
        • Turbo First pass
          • 防止压缩太慢,第一遍压缩尽量快点
  • Encoder Options:
    • Preset:每次切换不同的值,可以看到下面的会输出编码配置的: x264 Unparse …
      • veryslow:尽量慢,这样压缩效果好
        • 但是没用之前的placebo,怕万一耗费时间太长(比如很多个小时?)
然后开始去压制:
Pass 1 of 2, 0.30%(9.22fps,avg 17.39fps, ETA 00h42m22s)
意思是:
第一遍(共2遍),估计还有40多分钟压缩完成
-》那估计第二遍也不会超过第一遍的时间
-》两个加起来,估计也就最多2小时
-》比我预计的很多个小时,要快多了,还是可以接受的。
Docker上显示百分比和剩下时间:
昨晚22:50左右开始的
  • 第一轮压制:
    • 结束于23:28
    • 耗时:38分钟
  • 第二轮压制:
    • 结束于:00:35
    • 耗时:1小时7分钟
共耗时:1小时45分钟
其中的全部的log输出:
[22:12:38] macgui: Handbrake Version: 1.1.1  (2018061800)
[22:12:38] macgui: built-in presets updated
[22:12:38] hb_init: starting libhb thread
[22:12:38] hb_init: starting libhb thread
[22:15:53] macgui: trying to open a folder or file
[22:15:53] macgui: ScanCore scanning titles with a duration of 10 seconds or more
[22:15:53] CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
[22:15:53]  - Intel microarchitecture Broadwell
[22:15:53]  - logical processor count: 4
[22:15:53] hb_scan: path=/Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg, title_index=0
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[22:15:53] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:15:53] dvd: not a dvd - trying as a stream/file instead
[22:15:53] file is MPEG Program Stream
[22:15:53] Found program stream map
[22:15:53] Found the following streams
[22:15:53]     Video Streams : 
[22:15:53]       0xe0-0x0 type MPEG2 (0x2)
[22:15:53]     Audio Streams : 
[22:15:53]       0xc0-0x0 type MPEG1 (0x3)
[22:15:53]     Subtitle Streams : 
[22:15:53]     Other Streams : 
[22:15:53] stream id 0xc0 (type 0x3 substream 0x0) audio 0xc0
[22:15:53] scan: decoding previews for title 1
[22:15:53] file is MPEG Program Stream
[22:15:53] Found program stream map
[22:15:53] scan: audio 0xc0: mp2, rate=48000Hz, bitrate=200000 Unknown (MPEG) (2.0 ch)
[22:15:54] stream: 284 good frames, 0 errors (0%)
[22:15:54] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:15:54] libhb: scan thread found 1 valid title(s)
[22:15:54] macgui: ScanCore scan done
[22:48:24] macgui: QueueCore scanning specifically for title: 1
[22:48:24] CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
[22:48:24]  - Intel microarchitecture Broadwell
[22:48:24]  - logical processor count: 4
[22:48:24] hb_scan: path=/Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[22:48:24] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:48:24] dvd: not a dvd - trying as a stream/file instead
[22:48:24] file is MPEG Program Stream
[22:48:24] Found program stream map
[22:48:24] Found the following streams
[22:48:24]     Video Streams : 
[22:48:24]       0xe0-0x0 type MPEG2 (0x2)
[22:48:24]     Audio Streams : 
[22:48:24]       0xc0-0x0 type MPEG1 (0x3)
[22:48:24]     Subtitle Streams : 
[22:48:24]     Other Streams : 
[22:48:24] stream id 0xc0 (type 0x3 substream 0x0) audio 0xc0
[22:48:24] scan: decoding previews for title 1
[22:48:24] file is MPEG Program Stream
[22:48:24] Found program stream map
[22:48:24] scan: audio 0xc0: mp2, rate=48000Hz, bitrate=200000 Unknown (MPEG) (2.0 ch)
[22:48:24] stream: 284 good frames, 0 errors (0%)
[22:48:24] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:48:25] libhb: scan thread found 1 valid title(s)
[22:48:25] macgui: QueueCore scan done
[22:48:25] macgui: QueueCore started encoding CTT_02_17_CH_Subs.mp4
[22:48:25] macgui: QueueCore with preset Fast 720p30 (Modified)
[22:48:25] 1 job(s) to process
[22:48:25] starting job
[22:48:25] decomb filter thread started for segment 0
[22:48:25] decomb filter thread started for segment 1
[22:48:25] decomb filter thread started for segment 2
[22:48:25] decomb filter thread started for segment 3
[22:48:25] decomb check thread started for segment 0
[22:48:25] decomb check thread started for segment 1
[22:48:25] decomb check thread started for segment 2
[22:48:25] decomb check thread started for segment 3
[22:48:25] mask filter thread started for segment 0
[22:48:25] mask filter thread started for segment 1
[22:48:25] mask filter thread started for segment 2
[22:48:25] mask filter thread started for segment 3
[22:48:25] mask erode thread started for segment 0
[22:48:25] mask erode thread started for segment 1
[22:48:25] mask erode thread started for segment 2
[22:48:25] mask erode thread started for segment 3
[22:48:25] mask dilate thread started for segment 0
[22:48:25] mask dilate thread started for segment 1
[22:48:25] mask dilate thread started for segment 2
[22:48:25] mask dilate thread started for segment 3
[22:48:25] yadif thread started for segment 0
[22:48:25] yadif thread started for segment 1
[22:48:25] yadif thread started for segment 2
[22:48:25] yadif thread started for segment 3
[22:48:25] work: only 1 chapter, disabling chapter markers
[22:48:25] job configuration:
[22:48:25]  * source
[22:48:25]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
[22:48:25]    + title 1, chapter(s) 1 to 1
[22:48:25]  * destination
[22:48:25]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/converted/HandBrake/Fast 720p30/CTT_02_17_CH_Subs.mp4
[22:48:25]    + container: MPEG-4 (libavformat)
[22:48:25]      + align initial A/V stream timestamps
[22:48:25]  * video track
[22:48:25]    + decoder: mpeg2video
[22:48:25]      + bitrate 25000 kbps
[22:48:25]    + filters
[22:48:25]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[22:48:25]      + Decomb (mode=39)
[22:48:25]      + Framerate Shaper (mode=0:rate=27000000/1080000)
[22:48:25]        + frame rate: same as source (around 25.000 fps)
[22:48:25]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:48:25]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[22:48:25]    + Output geometry
[22:48:25]      + storage dimensions: 1280 x 720
[22:48:25]      + pixel aspect ratio: 1 : 1
[22:48:25]      + display dimensions: 1280 x 720
[22:48:25]    + encoder: H.264 (libx264)
[22:48:25]      + preset:  veryslow
[22:48:25]      + profile: main
[22:48:25]      + level:   3.1
[22:48:25]      + bitrate: 1650 kbps, pass: 1
[22:48:25]      + fast first pass
[22:48:25]      + options: ref=1:8x8dct=0:me=dia:trellis=0
[22:48:25]                 analyse=i4x4 (if originally enabled, else analyse=none)
[22:48:25]                 subq=2 (if originally greater than 2, else subq unchanged)
[22:48:25]  * audio track 1
[22:48:25]    + decoder: Unknown (MPEG) (2.0 ch) (track 1, id 0xc0)
[22:48:25]      + bitrate: 200 kbps, samplerate: 48000 Hz
[22:48:25]    + mixdown: Stereo
[22:48:25]    + encoder: AAC (Apple AudioToolbox)
[22:48:25]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:48:25] file is MPEG Program Stream
[22:48:25] Found program stream map
[22:48:25] sync: expecting 44335 video frames
[22:48:25] encx264: encoding at average bitrate 1650
[22:48:25] encx264: unparsed options: level=3.1:ref=5:bframes=8:b-adapt=2:direct=auto:analyse=all:8x8dct=0:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[22:48:25] sync: first pts video is 0
[22:48:25] sync: first pts audio 0xc0 is 0
[23:27:53] reader: done. 1 scr changes
[23:27:54] work: average encoding speed for job is 18.988533 fps
[23:27:54] comb detect: heavy 29014 | light 11278 | uncombed 4708 | total 45000
[23:27:54] decomb: deinterlaced 29014 | blended 11278 | unfiltered 4708 | total 45000
[23:27:54] vfr: lost time: 0 (0 frames)
[23:27:54] vfr: gained time: 0 (0 frames) (0 not accounted for)
[23:27:54] stream: 2015664 good frames, 0 errors (0%)
[23:27:54] mp2-decoder done: 75002 frames, 0 decoder errors
[23:27:54] mpeg2video-decoder done: 45000 frames, 0 decoder errors
[23:27:54] sync: got 45000 frames, 44335 expected
[23:27:54] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:353   Avg QP:19.02  size: 93253
x264 [info]: frame P:10174 Avg QP:22.65  size: 20331
x264 [info]: frame B:34473 Avg QP:25.09  size:  3709
x264 [info]: consecutive B-frames:  3.5%  3.3% 10.0% 12.9% 13.1% 44.2%  7.0%  2.8%  3.2%
x264 [info]: mb I  I16..4: 34.7%  0.0% 65.3%
x264 [info]: mb P  I16..4: 23.0%  0.0%  0.0%  P16..4: 46.1%  0.0%  0.0%  0.0%  0.0%    skip:30.9%
x264 [info]: mb B  I16..4:  2.1%  0.0%  0.0%  B16..8: 14.6%  0.0%  0.0%  direct: 6.6%  skip:76.6%  L0:36.5% L1:44.6% BI:18.8%
x264 [info]: final ratefactor: 22.70
x264 [info]: direct mvs  spatial:99.5% temporal:0.5%
x264 [info]: coded y,uvDC,uvAC intra: 31.9% 45.1% 16.1% inter: 8.4% 7.7% 0.5%
x264 [info]: i16 v,h,dc,p: 40% 27% 18% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 24% 11%  6%  7%  7%  7%  6%  7%
x264 [info]: i8c dc,h,v,p: 56% 20% 20%  4%
x264 [info]: Weighted P-Frames: Y:3.6% UV:2.4%
x264 [info]: kb/s:1633.96
[23:27:54] starting job
[23:27:54] decomb filter thread started for segment 1
[23:27:54] decomb filter thread started for segment 0
[23:27:54] decomb filter thread started for segment 2
[23:27:54] decomb filter thread started for segment 3
[23:27:54] decomb check thread started for segment 0
[23:27:54] decomb check thread started for segment 1
[23:27:54] decomb check thread started for segment 2
[23:27:54] decomb check thread started for segment 3
[23:27:54] mask filter thread started for segment 0
[23:27:54] mask filter thread started for segment 1
[23:27:54] mask filter thread started for segment 2
[23:27:54] mask filter thread started for segment 3
[23:27:54] mask erode thread started for segment 0
[23:27:54] mask erode thread started for segment 1
[23:27:54] mask erode thread started for segment 2
[23:27:54] mask erode thread started for segment 3
[23:27:54] mask dilate thread started for segment 0
[23:27:54] mask dilate thread started for segment 2
[23:27:54] mask dilate thread started for segment 1
[23:27:54] mask dilate thread started for segment 3
[23:27:54] yadif thread started for segment 0
[23:27:54] yadif thread started for segment 1
[23:27:54] yadif thread started for segment 2
[23:27:54] yadif thread started for segment 3
[23:27:54] work: only 1 chapter, disabling chapter markers
[23:27:54] job configuration:
[23:27:54]  * source
[23:27:54]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
[23:27:54]    + title 1, chapter(s) 1 to 1
[23:27:54]  * destination
[23:27:54]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/converted/HandBrake/Fast 720p30/CTT_02_17_CH_Subs.mp4
[23:27:54]    + container: MPEG-4 (libavformat)
[23:27:54]      + align initial A/V stream timestamps
[23:27:54]  * video track
[23:27:54]    + decoder: mpeg2video
[23:27:54]      + bitrate 25000 kbps
[23:27:54]    + filters
[23:27:54]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[23:27:54]      + Decomb (mode=39)
[23:27:54]      + Framerate Shaper (mode=0:rate=27000000/1080000)
[23:27:54]        + frame rate: same as source (around 25.000 fps)
[23:27:54]      + Crop and Scale (width=1280:height=720:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[23:27:54]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 1280 * 720
[23:27:54]    + Output geometry
[23:27:54]      + storage dimensions: 1280 x 720
[23:27:54]      + pixel aspect ratio: 1 : 1
[23:27:54]      + display dimensions: 1280 x 720
[23:27:54]    + encoder: H.264 (libx264)
[23:27:54]      + preset:  veryslow
[23:27:54]      + profile: main
[23:27:54]      + level:   3.1
[23:27:54]      + bitrate: 1650 kbps, pass: 2
[23:27:54]  * audio track 1
[23:27:54]    + decoder: Unknown (MPEG) (2.0 ch) (track 1, id 0xc0)
[23:27:54]      + bitrate: 200 kbps, samplerate: 48000 Hz
[23:27:54]    + mixdown: Stereo
[23:27:54]    + encoder: AAC (Apple AudioToolbox)
[23:27:54]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:27:54] file is MPEG Program Stream
[23:27:54] Found program stream map
[23:27:55] sync: expecting 45000 video frames
[23:27:55] encx264: encoding at average bitrate 1650
[23:27:55] encx264: unparsed options: level=3.1:ref=5:bframes=8:b-adapt=2:direct=auto:analyse=all:8x8dct=0:me=umh:merange=24:subme=10:trellis=2:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=60
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[23:27:56] sync: first pts video is 0
[23:27:56] sync: first pts audio 0xc0 is 0
[00:34:35] reader: done. 1 scr changes
[00:34:36] work: average encoding speed for job is 11.243628 fps
[00:34:36] comb detect: heavy 29014 | light 11278 | uncombed 4708 | total 45000
[00:34:36] decomb: deinterlaced 29014 | blended 11278 | unfiltered 4708 | total 45000
[00:34:36] vfr: lost time: 0 (0 frames)
[00:34:36] vfr: gained time: 0 (0 frames) (0 not accounted for)
[00:34:36] stream: 2015664 good frames, 0 errors (0%)
[00:34:36] mp2-decoder done: 75002 frames, 0 decoder errors
[00:34:36] mpeg2video-decoder done: 45000 frames, 0 decoder errors
[00:34:36] sync: got 45000 frames, 45000 expected
[00:34:36] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:353   Avg QP:20.22  size: 93402
x264 [info]: frame P:10174 Avg QP:23.90  size: 19556
x264 [info]: frame B:34473 Avg QP:28.42  size:  4044
x264 [info]: consecutive B-frames:  3.5%  3.3% 10.0% 12.9% 13.1% 44.2%  7.0%  2.8%  3.2%
x264 [info]: mb I  I16..4: 34.7%  0.0% 65.3%
x264 [info]: mb P  I16..4:  8.1%  0.0%  5.3%  P16..4: 38.7% 10.1%  9.5%  0.4%  0.1%    skip:27.8%
x264 [info]: mb B  I16..4:  0.4%  0.0%  0.3%  B16..8: 31.0%  3.4%  0.8%  direct: 2.5%  skip:61.7%  L0:41.7% L1:53.0% BI: 5.3%
x264 [info]: direct mvs  spatial:96.6% temporal:3.4%
x264 [info]: coded y,uvDC,uvAC intra: 47.3% 52.7% 22.6% inter: 7.7% 7.2% 0.7%
x264 [info]: i16 v,h,dc,p: 37% 22% 11% 30%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 10%  9%  8% 13% 11% 13% 10% 14%
x264 [info]: i8c dc,h,v,p: 35% 31% 19% 14%
x264 [info]: Weighted P-Frames: Y:4.1% UV:2.4%
x264 [info]: ref P L0: 56.3% 13.7% 17.1%  6.1%  6.3%  0.5%  0.0%
x264 [info]: ref B L0: 84.3% 10.8%  3.9%  1.0%
x264 [info]: ref B L1: 95.3%  4.7%
x264 [info]: kb/s:1650.46
[00:34:36] mux: track 0, 45000 frames, 371339828 bytes, 1650.29 kbps, fifo 4096
[00:34:36] mux: track 1, 84380 frames, 32909728 bytes, 146.26 kbps, fifo 4096
[00:34:37] libhb: work result = 0
[00:34:37] macgui: QueueCore work done
[00:34:37] macgui: Queue Done, there are no more pending encodes
转出的大小:406M
画质,还是不错的:
转换前后的MediaInfo的(Text模式输出)信息对比:
后来才注意到,其实有预览:
-》之后可以在真正转换之前,去预览,看看画质效果的
-》且预览还支持scale to screen的:
点击后 ,开始编码生成15秒的预览视频:
可以精确到毫秒,查看效果:
-》以后再去转换编码之前,还是好好预览,看看效果再说。
由于目的是为了放到国内的网上去在线播放的,而国内网速不够快,
而发现Vimeo中540p的画质也还可以的:
现在再去试试,把1080p转换为540p,看看画质和文件大小如何:
而网上关于520p的尺寸说法是:
视频网站的超清、高清、标清的分类标准是? – 知乎
PAL制式标清:纵向576线=576i/p (720×576, 768×576, 1024×576等)
高清=576×432
480p 576p 被称为SD(Standard Definition)(标清)
显示分辨率列表 – 维基百科,自由的百科全书
https://zh.wikipedia.org/wiki/显示分辨率列表
模拟电视标准
分辨率
720×576
5:4,非正方形的像素
PAL VHS
320×576
数位电视标准
分辨率
D-1 NTSC (square pixels)
720×540
PAL
720×486
D-1 PAL
720×576
4:3
D-1 PAL(正方形像素)
768×576
数位电影标准
DVD “PAL”
720×576
5:4,非正方形的像素
然后发现:
520p的分辨率也不低啊:
720×576 Storage, 1024×576 Display
再换成:
480p30
720×480 Storage, 853×480 Display
然后再去优化参数配置,尤其是Video
默认1500kbps和fast:
改为:
1200kbps + placebo
先去preview:
果然是placebo,光是preview的encoding就耗费好几十秒才能预览:
全屏:
结果Live Preview发现全屏后也是先要再去Encoding才能预览看:
不过已经发现画质有点损失了。
不过发现也是能接受的:
想要看更长一点的内容的预览,
发现是可以设置预览时间的,改为30秒:
再去点击Live Preview:
完全可以接受的,还是可以的。
那就可以去转换了:
现在是:
开始压缩 20180824 22:23
看看最终是多长时间可以压缩好:
最后压缩完毕时间是:
20180825 01:26:23
log
[22:23:23] macgui: QueueCore scanning specifically for title: 1
[22:23:23] CPU: Intel(R) Core(TM) i5-5257U CPU @ 2.70GHz
[22:23:23]  - Intel microarchitecture Broadwell
[22:23:23]  - logical processor count: 4
[22:23:23] hb_scan: path=/Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg, title_index=1
udfread ERROR: ECMA 167 Volume Recognition failed
disc.c:323: failed opening UDF image /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
disc.c:424: error opening file BDMV/index.bdmv
disc.c:424: error opening file BDMV/BACKUP/index.bdmv
[22:23:23] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.3
libdvdread: Encrypted DVD support unavailable.
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdread:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[22:23:23] dvd: not a dvd - trying as a stream/file instead
[22:23:23] file is MPEG Program Stream
[22:23:23] Found program stream map
[22:23:23] Found the following streams
[22:23:23]     Video Streams : 
[22:23:23]       0xe0-0x0 type MPEG2 (0x2)
[22:23:23]     Audio Streams : 
[22:23:23]       0xc0-0x0 type MPEG1 (0x3)
[22:23:23]     Subtitle Streams : 
[22:23:23]     Other Streams : 
[22:23:23] stream id 0xc0 (type 0x3 substream 0x0) audio 0xc0
[22:23:23] scan: decoding previews for title 1
[22:23:23] file is MPEG Program Stream
[22:23:23] Found program stream map
[22:23:23] scan: audio 0xc0: mp2, rate=48000Hz, bitrate=200000 Unknown (MPEG) (2.0 ch)
[22:23:23] stream: 284 good frames, 0 errors (0%)
[22:23:23] scan: 10 previews, 1920x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[22:23:23] libhb: scan thread found 1 valid title(s)
[22:23:24] macgui: QueueCore scan done
[22:23:24] macgui: QueueCore started encoding CTT_02_17_CH_Subs_480p.mp4
[22:23:24] 1 job(s) to process
[22:23:24] macgui: QueueCore with preset Fast 480p30 (Modified)
[22:23:24] starting job
[22:23:24] decomb filter thread started for segment 0
[22:23:24] decomb filter thread started for segment 2
[22:23:24] decomb filter thread started for segment 1
[22:23:24] decomb filter thread started for segment 3
[22:23:24] decomb check thread started for segment 0
[22:23:24] decomb check thread started for segment 1
[22:23:24] decomb check thread started for segment 2
[22:23:24] decomb check thread started for segment 3
[22:23:24] mask filter thread started for segment 0
[22:23:24] mask filter thread started for segment 1
[22:23:24] mask filter thread started for segment 2
[22:23:24] mask filter thread started for segment 3
[22:23:24] mask erode thread started for segment 0
[22:23:24] mask erode thread started for segment 1
[22:23:24] mask erode thread started for segment 2
[22:23:24] mask erode thread started for segment 3
[22:23:24] mask dilate thread started for segment 0
[22:23:24] mask dilate thread started for segment 1
[22:23:24] mask dilate thread started for segment 2
[22:23:24] mask dilate thread started for segment 3
[22:23:24] yadif thread started for segment 0
[22:23:24] yadif thread started for segment 1
[22:23:24] yadif thread started for segment 2
[22:23:24] yadif thread started for segment 3
[22:23:24] work: only 1 chapter, disabling chapter markers
[22:23:24] job configuration:
[22:23:24]  * source
[22:23:24]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
[22:23:24]    + title 1, chapter(s) 1 to 1
[22:23:24]  * destination
[22:23:24]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/processed/CTT_02/HandBrake/Fast 480p30/CTT_02_17_CH_Subs_480p.mp4
[22:23:24]    + container: MPEG-4 (libavformat)
[22:23:24]      + align initial A/V stream timestamps
[22:23:24]  * video track
[22:23:24]    + decoder: mpeg2video
[22:23:24]      + bitrate 25000 kbps
[22:23:24]    + filters
[22:23:24]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[22:23:24]      + Decomb (mode=39)
[22:23:24]      + Framerate Shaper (mode=0:rate=27000000/1080000)
[22:23:24]        + frame rate: same as source (around 25.000 fps)
[22:23:24]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:23:24]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 720 * 480
[22:23:24]    + Output geometry
[22:23:24]      + storage dimensions: 720 x 480
[22:23:24]      + pixel aspect ratio: 32 : 27
[22:23:24]      + display dimensions: 853 x 480
[22:23:24]    + encoder: H.264 (libx264)
[22:23:24]      + preset:  placebo
[22:23:24]      + profile: main
[22:23:24]      + level:   3.1
[22:23:24]      + bitrate: 1200 kbps, pass: 1
[22:23:24]      + fast first pass
[22:23:24]      + options: ref=1:8x8dct=0:me=dia:trellis=0
[22:23:24]                 analyse=i4x4 (if originally enabled, else analyse=none)
[22:23:24]                 subq=2 (if originally greater than 2, else subq unchanged)
[22:23:24]  * audio track 1
[22:23:24]    + decoder: Unknown (MPEG) (2.0 ch) (track 1, id 0xc0)
[22:23:24]      + bitrate: 200 kbps, samplerate: 48000 Hz
[22:23:24]    + mixdown: Stereo
[22:23:24]    + encoder: AAC (Apple AudioToolbox)
[22:23:24]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:23:24] file is MPEG Program Stream
[22:23:24] Found program stream map
[22:23:24] sync: expecting 44335 video frames
[22:23:24] encx264: encoding at average bitrate 1200
[22:23:24] encx264: unparsed options: level=3.1:ref=13:bframes=16:b-adapt=2:direct=auto:analyse=all:8x8dct=0:me=tesa:merange=24:subme=11:trellis=2:fast-pskip=0:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=60
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[22:23:24] sync: first pts video is 0
[22:23:24] sync: first pts audio 0xc0 is 0
[22:56:47] reader: done. 1 scr changes
[22:56:48] work: average encoding speed for job is 22.431429 fps
[22:56:49] comb detect: heavy 29014 | light 11278 | uncombed 4708 | total 45000
[22:56:49] decomb: deinterlaced 29014 | blended 11278 | unfiltered 4708 | total 45000
[22:56:49] vfr: lost time: 0 (0 frames)
[22:56:49] vfr: gained time: 0 (0 frames) (0 not accounted for)
[22:56:49] stream: 2015664 good frames, 0 errors (0%)
[22:56:49] mp2-decoder done: 75002 frames, 0 decoder errors
[22:56:49] mpeg2video-decoder done: 45000 frames, 0 decoder errors
[22:56:49] sync: got 45000 frames, 44335 expected
[22:56:49] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:342   Avg QP:15.61  size: 64156
x264 [info]: frame P:10186 Avg QP:19.67  size: 15201
x264 [info]: frame B:34472 Avg QP:22.84  size:  2639
x264 [info]: consecutive B-frames:  3.1%  2.9% 10.5% 19.2% 15.5% 34.5%  6.0%  2.3%  2.1%  0.8%  0.4%  1.3%  0.2%  0.2%  0.3%  0.2%  0.4%
x264 [info]: mb I  I16..4: 21.2%  0.0% 78.8%
x264 [info]: mb P  I16..4: 18.9%  0.0%  0.0%  P16..4: 60.9%  0.0%  0.0%  0.0%  0.0%    skip:20.2%
x264 [info]: mb B  I16..4:  2.0%  0.0%  0.0%  B16..8: 18.9%  0.0%  0.0%  direct: 9.3%  skip:69.8%  L0:31.4% L1:39.1% BI:29.5%
x264 [info]: final ratefactor: 19.50
x264 [info]: direct mvs  spatial:99.4% temporal:0.6%
x264 [info]: coded y,uvDC,uvAC intra: 51.4% 59.8% 31.4% inter: 14.8% 11.0% 1.6%
x264 [info]: i16 v,h,dc,p: 42% 24% 19% 15%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 21% 10%  6%  7%  8%  7%  7%  8%
x264 [info]: i8c dc,h,v,p: 52% 19% 23%  6%
x264 [info]: Weighted P-Frames: Y:4.0% UV:2.7%
x264 [info]: kb/s:1190.06
[22:56:49] starting job
[22:56:49] decomb filter thread started for segment 1
[22:56:49] decomb filter thread started for segment 0
[22:56:49] decomb filter thread started for segment 2
[22:56:49] decomb filter thread started for segment 3
[22:56:49] decomb check thread started for segment 0
[22:56:49] decomb check thread started for segment 1
[22:56:49] decomb check thread started for segment 2
[22:56:49] decomb check thread started for segment 3
[22:56:49] mask filter thread started for segment 0
[22:56:49] mask filter thread started for segment 1
[22:56:49] mask filter thread started for segment 2
[22:56:49] mask filter thread started for segment 3
[22:56:49] mask erode thread started for segment 0
[22:56:49] mask erode thread started for segment 1
[22:56:49] mask erode thread started for segment 2
[22:56:49] mask erode thread started for segment 3
[22:56:49] mask dilate thread started for segment 0
[22:56:49] mask dilate thread started for segment 1
[22:56:49] mask dilate thread started for segment 2
[22:56:49] mask dilate thread started for segment 3
[22:56:49] yadif thread started for segment 0
[22:56:49] yadif thread started for segment 1
[22:56:49] yadif thread started for segment 2
[22:56:49] yadif thread started for segment 3
[22:56:49] work: only 1 chapter, disabling chapter markers
[22:56:49] job configuration:
[22:56:49]  * source
[22:56:49]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/ICS_Sendemaster/CTT_02_17_CH_Subs.mpg
[22:56:49]    + title 1, chapter(s) 1 to 1
[22:56:49]  * destination
[22:56:49]    + /Users/crifan/dev/dev_root/projects/xxx_to_cn/视频/processed/CTT_02/HandBrake/Fast 480p30/CTT_02_17_CH_Subs_480p.mp4
[22:56:49]    + container: MPEG-4 (libavformat)
[22:56:49]      + align initial A/V stream timestamps
[22:56:49]  * video track
[22:56:49]    + decoder: mpeg2video
[22:56:49]      + bitrate 25000 kbps
[22:56:49]    + filters
[22:56:49]      + Comb Detect (mode=3:spatial-metric=2:motion-thresh=1:spatial-thresh=1:filter-mode=2:block-thresh=40:block-width=16:block-height=16)
[22:56:49]      + Decomb (mode=39)
[22:56:49]      + Framerate Shaper (mode=0:rate=27000000/1080000)
[22:56:49]        + frame rate: same as source (around 25.000 fps)
[22:56:49]      + Crop and Scale (width=720:height=480:crop-top=0:crop-bottom=0:crop-left=0:crop-right=0)
[22:56:49]        + source: 1920 * 1080, crop (0/0/0/0): 1920 * 1080, scale: 720 * 480
[22:56:49]    + Output geometry
[22:56:49]      + storage dimensions: 720 x 480
[22:56:49]      + pixel aspect ratio: 32 : 27
[22:56:49]      + display dimensions: 853 x 480
[22:56:49]    + encoder: H.264 (libx264)
[22:56:49]      + preset:  placebo
[22:56:49]      + profile: main
[22:56:49]      + level:   3.1
[22:56:49]      + bitrate: 1200 kbps, pass: 2
[22:56:49]  * audio track 1
[22:56:49]    + decoder: Unknown (MPEG) (2.0 ch) (track 1, id 0xc0)
[22:56:49]      + bitrate: 200 kbps, samplerate: 48000 Hz
[22:56:49]    + mixdown: Stereo
[22:56:49]    + encoder: AAC (Apple AudioToolbox)
[22:56:49]      + bitrate: 160 kbps, samplerate: 48000 Hz
[22:56:49] file is MPEG Program Stream
[22:56:49] Found program stream map
[22:56:49] sync: expecting 45000 video frames
[22:56:49] encx264: encoding at average bitrate 1200
[22:56:49] encx264: unparsed options: level=3.1:ref=13:bframes=16:b-adapt=2:direct=auto:analyse=all:8x8dct=0:me=tesa:merange=24:subme=11:trellis=2:fast-pskip=0:vbv-bufsize=14000:vbv-maxrate=14000:rc-lookahead=60
x264 [info]: using SAR=32/27
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 BMI2 AVX2
x264 [info]: profile Main, level 3.1
[22:56:50] sync: first pts video is 0
[22:56:50] sync: first pts audio 0xc0 is 0
[01:26:21] reader: done. 1 scr changes
[01:26:22] work: average encoding speed for job is 5.006351 fps
[01:26:22] comb detect: heavy 29014 | light 11278 | uncombed 4708 | total 45000
[01:26:22] decomb: deinterlaced 29014 | blended 11278 | unfiltered 4708 | total 45000
[01:26:23] vfr: lost time: 0 (0 frames)
[01:26:23] vfr: gained time: 0 (0 frames) (0 not accounted for)
[01:26:23] stream: 2015664 good frames, 0 errors (0%)
[01:26:23] mp2-decoder done: 75002 frames, 0 decoder errors
[01:26:23] mpeg2video-decoder done: 45000 frames, 0 decoder errors
[01:26:23] sync: got 45000 frames, 45000 expected
[01:26:23] sync: framerate min 25.000 fps, max 25.000 fps, avg 25.000 fps
x264 [info]: frame I:342   Avg QP:16.35  size: 65909
x264 [info]: frame P:10186 Avg QP:20.40  size: 14589
x264 [info]: frame B:34472 Avg QP:25.19  size:  2868
x264 [info]: consecutive B-frames:  3.1%  2.9% 10.5% 19.2% 15.5% 34.5%  6.0%  2.3%  2.1%  0.8%  0.4%  1.3%  0.2%  0.2%  0.3%  0.2%  0.4%
x264 [info]: mb I  I16..4: 18.7%  0.0% 81.3%
x264 [info]: mb P  I16..4:  2.8%  0.0%  6.2%  P16..4: 33.0% 29.7% 10.3%  3.9%  0.7%    skip:13.3%
x264 [info]: mb B  I16..4:  0.3%  0.0%  0.5%  B16..8: 29.4% 11.1%  1.9%  direct: 3.3%  skip:53.5%  L0:41.4% L1:47.7% BI:10.9%
x264 [info]: direct mvs  spatial:96.2% temporal:3.8%
x264 [info]: coded y,uvDC,uvAC intra: 72.6% 72.8% 47.5% inter: 13.2% 10.6% 2.6%
x264 [info]: i16 v,h,dc,p: 25% 20%  5% 50%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15%  9%  9%  8% 12% 12% 11% 11% 12%
x264 [info]: i8c dc,h,v,p: 32% 30% 23% 16%
x264 [info]: Weighted P-Frames: Y:4.3% UV:2.7%
x264 [info]: ref P L0: 51.6% 11.2% 14.1%  5.2%  4.1%  3.2%  2.6%  1.5%  1.4%  1.3%  1.2%  1.1%  1.2%  0.2%  0.0%
x264 [info]: ref B L0: 80.2%  8.5%  4.2%  1.9%  1.4%  1.0%  0.9%  0.5%  0.5%  0.4%  0.3%  0.2%
x264 [info]: ref B L1: 94.9%  5.1%
x264 [info]: kb/s:1200.11
[01:26:23] mux: track 0, 45000 frames, 270009812 bytes, 1199.96 kbps, fifo 4096
[01:26:23] mux: track 1, 84380 frames, 32909728 bytes, 146.26 kbps, fifo 8192
[01:26:23] libhb: work result = 0
[01:26:23] macgui: QueueCore work done
[01:26:23] macgui: Queue Done, there are no more pending encodes
算下来是:3个小时,的确压制速度慢了一半
文件大小是:304M
画质看了看,还行:
后面的带字幕的部分,字母的文字有一点点的模糊:
不过的确还是720p的更加清楚些:
【后记 20180907】
后来遇到个问题,转换1080p的mp4为720p期间,字幕出现部分乱码:
【已解决】Handbrake压制mp4视频时字幕出现部分乱码

转载请注明:在路上 » 【记录】Mac中试用HandBrake转换mpg视频文件为mp4

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
80 queries in 0.202 seconds, using 22.17MB memory