video becomes huge after cropping

HandBrake for Mac support
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
kaz219
Posts: 11
Joined: Thu Jun 07, 2007 12:33 pm

video becomes huge after cropping

Post by kaz219 »

Hello,

I apologize if that's not the right forum for this. Please redirect me if that's the case.

My problem: I have an mp4 video with black bars that I want to remove. The cropping works, no problem, but the resulting file is then three times bigger. The video is a presentation with very little animations and audio. The original file is 12MB and the cropped file is then 40MB.

When opening the original video with mPlayerX and getting infos, it says: H264, 12.6kbps, 1024×768, 8.0fps MP4A, 18.0kbps, 8.0kHz 32bit, 1 channels.
After cropping, everything is the same (including fps) except for the kbps for video, which is then 76.6kbps. (I use passthru audio)

Any tips or ideas what the issue might be?

TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: video becomes huge after cropping

Post by TedJ »

Activity log, please.

kaz219
Posts: 11
Joined: Thu Jun 07, 2007 12:33 pm

Re: video becomes huge after cropping

Post by kaz219 »

Sorry about that, that was written in big red letters on top and I missed it.

Code: Select all

[17:51:04] hb_init: starting libhb thread
[17:51:04] macgui: Handbrake Version: 0.9.9 x86_64 (2013051800)
[17:51:04] hb_init: starting libhb thread
[17:51:04] hb_init: starting libhb thread
[17:51:04] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[17:51:04] macgui: hbInstance found instance pidnum:82088 at path: /Applications/HandBrake.app
[17:51:04] macgui: hbInstance MATCH FOUND, our pidnum is:82088
[17:51:04] macgui: Pid for this instance:82088
[17:51:04] macgui: HBQueueController : My Pidnum is 82088
[17:51:11] macgui: trying to open video_ts folder (parent directory chosen)
[17:51:11] macgui: scanning titles with a duration of 10 seconds or more
[17:51:11] hb_scan: path=/Users/myusername/Downloads/filename.mp4, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/filename.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/filename.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(/Users/myusername/Downloads/filename.mp4) failed (0x10208a200)
[17:51:11] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[17:51:11] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/myusername/Downloads/filename.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2014-08-05 18:39:23
    encoder         : FAAC 1.28
  Duration: 00:57:53.86, start: 0.000000, bitrate: 31 kb/s
    Stream #0.0(eng): Audio: aac, 8000 Hz, mono, fltp, 17 kb/s
    Metadata:
      creation_time   : 2014-08-05 18:39:23
    Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 1024x768, 12 kb/s, 8 fps, 8 tbr, 90k tbn
    Metadata:
      creation_time   : 2014-08-05 19:37:39
Warning (charLength > fixedLength) in src/mp4file_io.cpp at line 416
[17:51:11] scan: decoding previews for title 1
[17:51:11] scan: audio 0x0: aac, rate=8000Hz, bitrate=17985 English (aac) (1.0 ch)
[17:51:11] scan: 10 previews, 1024x768, 8.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[17:51:11] libhb: scan thread found 1 valid title(s)
[17:51:11] macgui: showNewScan: This is a new source item scan
[17:52:41] macgui: trying to open video_ts folder (parent directory chosen)
[17:52:41] macgui: scanning titles with a duration of 10 seconds or more
[17:52:41] hb_scan: path=/Users/myusername/Downloads/original_video.mp4, title_index=0
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(/Users/myusername/Downloads/original_video.mp4) failed (0x1039fd000)
[17:52:41] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[17:52:41] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/myusername/Downloads/original_video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2014-08-05 18:39:23
    encoder         : FAAC 1.28
  Duration: 00:57:53.86, start: 0.000000, bitrate: 31 kb/s
    Stream #0.0(eng): Audio: aac, 8000 Hz, mono, fltp, 17 kb/s
    Metadata:
      creation_time   : 2014-08-05 18:39:23
    Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 1024x768, 12 kb/s, 8 fps, 8 tbr, 90k tbn
    Metadata:
      creation_time   : 2014-08-05 19:37:39
Warning (charLength > fixedLength) in src/mp4file_io.cpp at line 416
[17:52:41] scan: decoding previews for title 1
[17:52:41] scan: audio 0x0: aac, rate=8000Hz, bitrate=17985 English (aac) (1.0 ch)
[17:52:41] scan: 10 previews, 1024x768, 8.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[17:52:41] libhb: scan thread found 1 valid title(s)
[17:52:41] macgui: showNewScan: This is a new source item scan
[17:54:14] macgui: Rip: Pending queue count is 0
[17:54:14] macgui: getNextPendingQueueIndex next pending encode index is:0
[17:54:14] macgui: scanning specifically for title: 1
[17:54:14] hb_scan: path=/Users/myusername/Downloads/original_video.mp4, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(/Users/myusername/Downloads/original_video.mp4) failed (0x10381b600)
[17:54:14] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[17:54:14] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/myusername/Downloads/original_video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2014-08-05 18:39:23
    encoder         : FAAC 1.28
  Duration: 00:57:53.86, start: 0.000000, bitrate: 31 kb/s
    Stream #0.0(eng): Audio: aac, 8000 Hz, mono, fltp, 17 kb/s
    Metadata:
      creation_time   : 2014-08-05 18:39:23
    Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 1024x768, 12 kb/s, 8 fps, 8 tbr, 90k tbn
    Metadata:
      creation_time   : 2014-08-05 19:37:39
Warning (charLength > fixedLength) in src/mp4file_io.cpp at line 416
[17:54:14] scan: decoding previews for title 1
[17:54:14] scan: audio 0x0: aac, rate=8000Hz, bitrate=17985 English (aac) (1.0 ch)
[17:54:14] scan: 10 previews, 1024x768, 8.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[17:54:14] libhb: scan thread found 1 valid title(s)
[17:54:14] macgui: ScanDone state received from fQueueEncodeLibhb
[17:54:14] macgui: Preset: WebEx Recording
[17:54:14] macgui: processNewQueueEncode number of passes expected is: 1
[17:54:14] macgui: Start / Stop set to chapters
[17:54:14] macgui: prepareJob exiting
[17:54:14] 1 job(s) to process
[17:54:14] starting job
[17:54:14] yadif thread started for segment 0
[17:54:14] yadif thread started for segment 2
[17:54:14] yadif thread started for segment 1
[17:54:14] yadif thread started for segment 3
[17:54:14] yadif thread started for segment 4
[17:54:14] yadif thread started for segment 5
[17:54:14] yadif thread started for segment 6
[17:54:14] yadif thread started for segment 7
[17:54:14] decomb filter thread started for segment 0
[17:54:14] decomb filter thread started for segment 1
[17:54:14] decomb filter thread started for segment 2
[17:54:14] decomb filter thread started for segment 3
[17:54:14] decomb filter thread started for segment 4
[17:54:14] decomb filter thread started for segment 5
[17:54:14] decomb filter thread started for segment 6
[17:54:14] decomb filter thread started for segment 7
[17:54:14] decomb check thread started for segment 0
[17:54:14] decomb check thread started for segment 1
[17:54:14] decomb check thread started for segment 2
[17:54:14] decomb check thread started for segment 3
[17:54:14] decomb check thread started for segment 5
[17:54:14] decomb check thread started for segment 4
[17:54:14] decomb check thread started for segment 6
[17:54:14] decomb check thread started for segment 7
[17:54:14] mask filter thread started for segment 0
[17:54:14] mask filter thread started for segment 1
[17:54:14] mask filter thread started for segment 2
[17:54:14] mask filter thread started for segment 3
[17:54:14] mask filter thread started for segment 4
[17:54:14] mask filter thread started for segment 5
[17:54:14] mask filter thread started for segment 6
[17:54:14] mask filter thread started for segment 7
[17:54:14] mask erode thread started for segment 0
[17:54:14] mask erode thread started for segment 1
[17:54:14] mask erode thread started for segment 2
[17:54:14] mask erode thread started for segment 3
[17:54:14] mask erode thread started for segment 4
[17:54:14] mask erode thread started for segment 5
[17:54:14] mask erode thread started for segment 6
[17:54:14] mask erode thread started for segment 7
[17:54:14] mask dilate thread started for segment 0
[17:54:14] mask dilate thread started for segment 1
[17:54:14] mask dilate thread started for segment 2
[17:54:14] mask dilate thread started for segment 3
[17:54:14] mask dilate thread started for segment 4
[17:54:14] mask dilate thread started for segment 5
[17:54:14] mask dilate thread started for segment 6
[17:54:14] mask dilate thread started for segment 7
[17:54:14] Auto Passthru: allowed codecs are AAC, AC3, DTS, DTS-HD, MP3
[17:54:14] Auto Passthru: fallback is AC3 (ffmpeg)
[17:54:14] Auto Passthru: using AAC Passthru for track 1
[17:54:14] sync: expecting 27790 video frames
[17:54:14] job configuration:
[17:54:14]  * source
[17:54:14]    + /Users/myusername/Downloads/original_video.mp4
[17:54:14]    + title 1, chapter(s) 1 to 1
[17:54:14]    + container: mov,mp4,m4a,3gp,3g2,mj2
[17:54:14]    + data rate: 31 kbps
[17:54:14]  * destination
[17:54:14]    + /Users/myusername/Downloads/cropped_video.mp4
[17:54:14]    + container: MPEG-4 (.mp4 and .m4v)
[17:54:14]      + 64-bit formatting
[17:54:14]  * video track
[17:54:14]    + decoder: h264
[17:54:14]      + bitrate 12 kbps
[17:54:14]    + frame rate: same as source (around 8.000 fps)
[17:54:14]    + filters
[17:54:14]      + Decomb (default settings)
[17:54:14]      + Framerate Shaper (0:27000000:3375000)
[17:54:14]        + frame rate: same as source (around 8.000 fps)
[17:54:14]      + Crop and Scale (850:638:0:130:86:88)
[17:54:14]        + source: 1024 * 768, crop (0/130/86/88): 850 * 638, scale: 850 * 638
[17:54:14]    + loose anamorphic
[17:54:14]      + storage dimensions: 850 * 638, mod 2
[17:54:14]      + pixel aspect ratio: 1 / 1
[17:54:14]      + display dimensions: 850 * 638
[17:54:14]    + encoder: H.264 (x264)
[17:54:14]      + x264 preset: medium
[17:54:14]      + h264 profile: high
[17:54:14]      + h264 level: 4.1
[17:54:14]      + quality: 20.00 (RF)
[17:54:14]  * audio track 1
[17:54:14]    + decoder: English (aac) (1.0 ch) (track 1, id 0x0)
[17:54:14]      + bitrate: 17 kbps, samplerate: 8000 Hz
[17:54:14]    + AAC Passthru
[17:54:14] reader: first SCR 11520 id 0x0 DTS 0
[17:54:14] encx264: min-keyint: 8, keyint: 80
[17:54:14] encx264: encoding with stored aspect 1/1
[17:54:14] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1
[17:54:14] sync: adding 128 ms of silence to audio 0x0  start 11520, next 0
[17:54:14] sync: audio 0x0 time went backwards 128 ms, dropped 1 frames (start 11520, next 23040)
[17:57:01] reader: done. 1 scr changes
[17:57:01] sync: audio 0x0 time went backwards 58 ms, dropped 1 frames (start 312613020, next 312618240)
[17:57:01] sync: adding 70 ms of silence to audio 0x0  start 312624540, next 312618240
[17:57:02] work: average encoding speed for job is 166.101028 fps
[17:57:02] sync: got 27786 frames, 27790 expected
[17:57:02] decomb: deinterlaced 0 | blended 0 | unfiltered 27785 | total 27785
[17:57:02] render: lost time: 0 (0 frames)
[17:57:02] render: gained time: 0 (0 frames) (0 not accounted for)
[17:57:02] h264-decoder done: 27786 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:368   Avg QP: 8.99  size: 78540  PSNR Mean Y:57.15 U:59.69 V:59.31 Avg:57.77 Global:57.08
x264 [info]: frame P:7022  Avg QP:11.87  size:   523  PSNR Mean Y:56.85 U:59.30 V:58.93 Avg:57.45 Global:56.90
x264 [info]: frame B:20395 Avg QP:12.09  size:    35  PSNR Mean Y:56.87 U:59.33 V:58.96 Avg:57.47 Global:56.95
x264 [info]: consecutive B-frames:  1.7%  0.1%  3.9% 94.4%
x264 [info]: mb I  I16..4: 61.3%  1.1% 37.5%
x264 [info]: mb P  I16..4:  0.2%  0.1%  0.2%  P16..4:  0.6%  0.1%  0.1%  0.0%  0.0%    skip:98.8%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  0.2%  0.0%  0.0%  direct: 0.0%  skip:99.8%  L0:64.8% L1:35.0% BI: 0.2%
x264 [info]: 8x8 transform intra:2.5% inter:23.2%
x264 [info]: coded y,uvDC,uvAC intra: 30.7% 37.6% 35.0% inter: 0.1% 0.1% 0.1%
x264 [info]: i16 v,h,dc,p: 78% 19%  3%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 44% 30% 23%  0%  0%  0%  1%  0%  1%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 40% 11%  3%  3%  3%  4%  3%  5%
x264 [info]: i8c dc,h,v,p: 60% 29% 10%  2%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 87.9%  6.4%  3.8%  1.8%
x264 [info]: ref B L0: 83.1% 16.5%  0.4%
x264 [info]: ref B L1: 97.3%  2.7%
x264 [info]: SSIM Mean Y:0.9996648 (34.747db)
x264 [info]: PSNR Mean Y:56.867 U:59.325 V:58.958 Avg:57.473 Global:56.942 kb/s:76.67
[17:57:02] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[17:57:02] mux: track 0, 27785 frames, 33269648 bytes, 76.62 kbps, fifo 8192
[17:57:02] mux: track 1, 27139 frames, 7809551 bytes, 17.99 kbps, fifo 8192
[17:57:02] libhb: work result = 0
[17:57:03] macgui: incrementQueueItemDone there are no more pending encodes

User avatar
JohnAStebbins
HandBrake Team
Posts: 5535
Joined: Sat Feb 09, 2008 7:21 pm

Re: video becomes huge after cropping

Post by JohnAStebbins »

I think that your source video must be very low quality

Code: Select all

    Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 1024x768, 12 kb/s, 8 fps, 8 tbr, 90k tbn
12 kb/s is a very low bitrate, even for 8fps video. If you want something comparable in quality, try raising the RF value on the video tab to 32.

mduell
Veteran User
Posts: 6940
Joined: Sat Apr 21, 2007 8:54 pm

Re: video becomes huge after cropping

Post by mduell »

Encode for lower quality (higher RF) and tune for still images.

kaz219
Posts: 11
Joined: Thu Jun 07, 2007 12:33 pm

Re: video becomes huge after cropping

Post by kaz219 »

I tried to tune for “stillimage”: 36,197,110 bytes instead of 33,269,648 bytes for video. So it's worse.

Code: Select all

[08:43:08] hb_init: starting libhb thread
[08:43:08] macgui: Handbrake Version: 0.9.9 x86_64 (2013051800)
[08:43:08] hb_init: starting libhb thread
[08:43:08] hb_init: starting libhb thread
[08:43:09] macgui: hbInstances path to this instance: /Applications/HandBrake.app
[08:43:09] macgui: hbInstance found instance pidnum:21243 at path: /Applications/HandBrake.app
[08:43:09] macgui: hbInstance MATCH FOUND, our pidnum is:21243
[08:43:09] macgui: Pid for this instance:21243
[08:43:09] macgui: HBQueueController : My Pidnum is 21243
[08:43:14] macgui: trying to open video_ts folder (parent directory chosen)
[08:43:14] macgui: scanning titles with a duration of 10 seconds or more
[08:43:14] hb_scan: path=/Users/myusername/Downloads/original_video.mp4, title_index=0

[...]

[08:45:45] macgui: Rip: Pending queue count is 0
[08:45:45] macgui: getNextPendingQueueIndex next pending encode index is:1
[08:45:45] macgui: scanning specifically for title: 1
[08:45:45] hb_scan: path=/Users/myusername/Downloads/original_video.mp4, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening /Users/myusername/Downloads/original_video.mp4/BDMV/BACKUP/index.bdmv
libbluray/bluray.c:1725: nav_get_title_list(/Users/myusername/Downloads/original_video.mp4) failed (0x12f812000)
[08:45:45] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 4.1.3
libdvdread: Encrypted DVD support unavailable.
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.IFO failed
libdvdnav:DVDOpenFileUDF:UDFFindFile /VIDEO_TS/VIDEO_TS.BUP failed
libdvdread: Can't open file VIDEO_TS.IFO.
libdvdnav: vm: failed to read VIDEO_TS.IFO
[08:45:45] dvd: not a dvd - trying as a stream/file instead
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '/Users/myusername/Downloads/original_video.mp4':
  Metadata:
    major_brand     : mp42
    minor_version   : 0
    compatible_brands: mp42isom
    creation_time   : 2014-08-05 18:39:23
    encoder         : FAAC 1.28
  Duration: 00:57:53.86, start: 0.000000, bitrate: 31 kb/s
    Stream #0.0(eng): Audio: aac, 8000 Hz, mono, fltp, 17 kb/s
    Metadata:
      creation_time   : 2014-08-05 18:39:23
    Stream #0.1(eng): Video: h264 (Baseline), yuv420p, 1024x768, 12 kb/s, 8 fps, 8 tbr, 90k tbn
    Metadata:
      creation_time   : 2014-08-05 19:37:39
Warning (charLength > fixedLength) in src/mp4file_io.cpp at line 416
[08:45:45] scan: decoding previews for title 1
[08:45:45] scan: audio 0x0: aac, rate=8000Hz, bitrate=17985 English (aac) (1.0 ch)
[08:45:45] scan: 10 previews, 1024x768, 8.000 fps, autocrop = 0/0/0/0, aspect 4:3, PAR 1:1
[08:45:45] libhb: scan thread found 1 valid title(s)
[08:45:45] macgui: ScanDone state received from fQueueEncodeLibhb
[08:45:45] macgui: Preset: WebEx Recording
[08:45:45] macgui: processNewQueueEncode number of passes expected is: 1
[08:45:45] macgui: Start / Stop set to chapters
[08:45:45] macgui: prepareJob exiting
[08:45:45] 1 job(s) to process
[08:45:45] starting job
[08:45:45] yadif thread started for segment 1
[08:45:45] yadif thread started for segment 0
[08:45:45] yadif thread started for segment 3
[08:45:45] yadif thread started for segment 2
[08:45:45] yadif thread started for segment 4
[08:45:45] yadif thread started for segment 5
[08:45:45] yadif thread started for segment 6
[08:45:45] yadif thread started for segment 7
[08:45:45] decomb filter thread started for segment 0
[08:45:45] decomb filter thread started for segment 1
[08:45:45] decomb filter thread started for segment 2
[08:45:45] decomb filter thread started for segment 3
[08:45:45] decomb filter thread started for segment 4
[08:45:45] decomb filter thread started for segment 5
[08:45:45] decomb filter thread started for segment 6
[08:45:45] decomb filter thread started for segment 7
[08:45:45] decomb check thread started for segment 0
[08:45:45] decomb check thread started for segment 1
[08:45:45] decomb check thread started for segment 2
[08:45:45] decomb check thread started for segment 3
[08:45:45] decomb check thread started for segment 4
[08:45:45] decomb check thread started for segment 5
[08:45:45] decomb check thread started for segment 6
[08:45:45] decomb check thread started for segment 7
[08:45:45] mask filter thread started for segment 0
[08:45:45] mask filter thread started for segment 1
[08:45:45] mask filter thread started for segment 2
[08:45:45] mask filter thread started for segment 3
[08:45:45] mask filter thread started for segment 4
[08:45:45] mask filter thread started for segment 5
[08:45:45] mask filter thread started for segment 6
[08:45:45] mask filter thread started for segment 7
[08:45:45] mask erode thread started for segment 0
[08:45:45] mask erode thread started for segment 1
[08:45:45] mask erode thread started for segment 2
[08:45:45] mask erode thread started for segment 3
[08:45:45] mask erode thread started for segment 4
[08:45:45] mask erode thread started for segment 5
[08:45:45] mask erode thread started for segment 6
[08:45:45] mask erode thread started for segment 7
[08:45:45] mask dilate thread started for segment 0
[08:45:45] mask dilate thread started for segment 1
[08:45:45] mask dilate thread started for segment 2
[08:45:45] mask dilate thread started for segment 3
[08:45:45] mask dilate thread started for segment 4
[08:45:45] mask dilate thread started for segment 5
[08:45:45] mask dilate thread started for segment 6
[08:45:45] mask dilate thread started for segment 7
[08:45:45] Auto Passthru: allowed codecs are AAC, AC3, DTS, DTS-HD, MP3
[08:45:45] Auto Passthru: fallback is AC3 (ffmpeg)
[08:45:45] Auto Passthru: using AAC Passthru for track 1
[08:45:45] sync: expecting 27790 video frames
[08:45:45] job configuration:
[08:45:45]  * source
[08:45:45]    + /Users/myusername/Downloads/original_video.mp4
[08:45:45]    + title 1, chapter(s) 1 to 1
[08:45:45]    + container: mov,mp4,m4a,3gp,3g2,mj2
[08:45:45]    + data rate: 31 kbps
[08:45:45]  * destination
[08:45:45]    + /Users/myusername/Downloads/cropped_video.mp4
[08:45:45]    + container: MPEG-4 (.mp4 and .m4v)
[08:45:45]      + 64-bit formatting
[08:45:45]  * video track
[08:45:45]    + decoder: h264
[08:45:45]      + bitrate 12 kbps
[08:45:45]    + frame rate: same as source (around 8.000 fps)
[08:45:45]    + filters
[08:45:45]      + Decomb (default settings)
[08:45:45]      + Framerate Shaper (0:27000000:3375000)
[08:45:45]        + frame rate: same as source (around 8.000 fps)
[08:45:45]      + Crop and Scale (850:638:0:130:86:88)
[08:45:45]        + source: 1024 * 768, crop (0/130/86/88): 850 * 638, scale: 850 * 638
[08:45:45]    + loose anamorphic
[08:45:45]      + storage dimensions: 850 * 638, mod 2
[08:45:45]      + pixel aspect ratio: 1 / 1
[08:45:45]      + display dimensions: 850 * 638
[08:45:45]    + encoder: H.264 (x264)
[08:45:45]      + x264 preset: medium
[08:45:45]      + x264 tune: stillimage
[08:45:45]      + h264 profile: high
[08:45:45]      + h264 level: 4.1
[08:45:45]      + quality: 20.00 (RF)
[08:45:45]  * audio track 1
[08:45:45]    + decoder: English (aac) (1.0 ch) (track 1, id 0x0)
[08:45:45]      + bitrate: 17 kbps, samplerate: 8000 Hz
[08:45:45]    + AAC Passthru
[08:45:45] reader: first SCR 11520 id 0x0 DTS 0
[08:45:45] encx264: min-keyint: 8, keyint: 80
[08:45:45] encx264: encoding with stored aspect 1/1
[08:45:45] encx264: Encoding at constant RF 20.000000
x264 [warning]: --psnr used with psy on: results will be invalid!
x264 [warning]: --tune psnr should be used if attempting to benchmark psnr!
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX
x264 [info]: profile High, level 4.1
[08:45:45] sync: adding 128 ms of silence to audio 0x0  start 11520, next 0
[08:45:45] sync: audio 0x0 time went backwards 128 ms, dropped 1 frames (start 11520, next 23040)
[08:48:25] reader: done. 1 scr changes
[08:48:25] sync: audio 0x0 time went backwards 58 ms, dropped 1 frames (start 312613020, next 312618240)
[08:48:25] sync: adding 70 ms of silence to audio 0x0  start 312624540, next 312618240
[08:48:26] work: average encoding speed for job is 172.837952 fps
[08:48:26] sync: got 27786 frames, 27790 expected
[08:48:26] decomb: deinterlaced 0 | blended 0 | unfiltered 27785 | total 27785
[08:48:26] render: lost time: 0 (0 frames)
[08:48:26] render: gained time: 0 (0 frames) (0 not accounted for)
[08:48:26] h264-decoder done: 27786 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:368   Avg QP: 8.94  size: 79440  PSNR Mean Y:53.89 U:60.99 V:60.56 Avg:55.21 Global:54.48
x264 [info]: frame P:7022  Avg QP:13.13  size:   795  PSNR Mean Y:53.64 U:60.56 V:60.14 Avg:54.95 Global:54.36
x264 [info]: frame B:20395 Avg QP: 9.92  size:    69  PSNR Mean Y:53.66 U:60.58 V:60.16 Avg:54.97 Global:54.40
x264 [info]: consecutive B-frames:  1.7%  0.1%  3.9% 94.4%
x264 [info]: mb I  I16..4: 60.9%  1.5% 37.6%
x264 [info]: mb P  I16..4:  0.2%  0.1%  0.2%  P16..4:  2.2%  0.1%  0.2%  0.0%  0.0%    skip:97.0%
x264 [info]: mb B  I16..4:  0.0%  0.0%  0.0%  B16..8:  1.4%  0.0%  0.0%  direct: 0.0%  skip:98.5%  L0:69.9% L1:30.1% BI: 0.1%
x264 [info]: 8x8 transform intra:3.0% inter:79.8%
x264 [info]: coded y,uvDC,uvAC intra: 31.5% 37.6% 35.8% inter: 0.3% 0.2% 0.1%
x264 [info]: i16 v,h,dc,p: 78% 19%  3%  0%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 41% 32% 21%  1%  1%  1%  1%  1%  2%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 29% 40% 11%  3%  3%  3%  4%  3%  5%
x264 [info]: i8c dc,h,v,p: 60% 29% 10%  1%
x264 [info]: Weighted P-Frames: Y:0.0% UV:0.0%
x264 [info]: ref P L0: 69.2%  1.9% 26.2%  2.7%  0.0%
x264 [info]: ref B L0: 52.0% 47.2%  0.8%
x264 [info]: ref B L1: 98.8%  1.2%
x264 [info]: SSIM Mean Y:0.9994149 (32.327db)
x264 [info]: PSNR Mean Y:53.662 U:60.578 V:60.163 Avg:54.966 Global:54.393 kb/s:83.41
[08:48:26] aac-decoder done: 0 frames, 0 decoder errors, 0 drops
[08:48:26] mux: track 0, 27785 frames, 36197110 bytes, 83.36 kbps, fifo 8192
[08:48:26] mux: track 1, 27139 frames, 7809551 bytes, 17.99 kbps, fifo 8192
[08:48:26] libhb: work result = 0
[08:48:26] macgui: incrementQueueItemDone there are no more pending encodes
I guess I just have to reduce the RF then...

User avatar
Rodeo
HandBrake Team
Posts: 12401
Joined: Tue Mar 03, 2009 8:55 pm

Re: video becomes huge after cropping

Post by Rodeo »

You conveniently ignored part of mduell's suggestion :P
mudell wrote:Encode for lower quality (higher RF) and tune for still images.
So you should have followed John's advice (use RF ~32), not just the tune with RF 20:
kaz219 wrote:

Code: Select all

[08:45:45]    + encoder: H.264 (x264)
[08:45:45]      + x264 preset: medium
[08:45:45]      + x264 tune: stillimage
[08:45:45]      + h264 profile: high
[08:45:45]      + h264 level: 4.1
[08:45:45]      + quality: 20.00 (RF)
If you didn't need to crop, the best advice would be "don't re-encode the video". But since you do need to, your case is one where two-pass average bitrate (with a target bitrate close to that of your source, say, 15 or 20 Kbps) could make sense.

If you have the time, I suggest you try with and without the stillimage tune (at the same bitrate) and compare visually. Chances are the stillimage version will look better, but since it does use very strong psychovisual optimizations, you never know.

Of course, re-encoding to such a low bitrate may cause a perceptible loss in quality, but the only way around it would be to accept that you need the output to be larger than the source in order to maintain quality (the only way to get the same or better quality at the same bitrate would be to go back to the original master recording used to create the video you're currently trying to re-encode)…

Post Reply