Re-encode of 1080p to 720p

General questions or discussion about HandBrake, Video and/or audio transcoding, trends etc.
Post Reply
o770
Posts: 4
Joined: Sun Jan 16, 2011 12:59 am

Re-encode of 1080p to 720p

Post by o770 »

Hello there. I managed to solve one of both issues about my video collection. By the way I'm a newbie. I signed up to some paid sites and downloaded movies for over the last year and frequently choosed the 1080p versions, now I'm out of storage space and want to re-encode these to 720p at constant quality - they actually don't play well on my pc and buying more storage is not a solution. I'm trying it with factor 18, 20, 22, 24 but resulting files are bigger than the originals. What am I doing wrong? I find it odd that despite the resolution downscale and the relative high rate factor (still didn't try the higher) files become even bigger... I was expecting to fix this with factor 18 or 20.

I thought maybe I could have some general guidelines to this procedure. By the way the other issue was too high bitrates of 6000 to 10000kbps. I'm happy with the results of RF 18 to 20 for those. Thanks!
Deleted User 11865

Re: Re-encode of 1080p to 720p

Post by Deleted User 11865 »

Activity Logs please.
o770
Posts: 4
Joined: Sun Jan 16, 2011 12:59 am

Re: Re-encode of 1080p to 720p

Post by o770 »

Right. Thanks for answering. I used more sample files and noticed the issue is more about bitrate than frame dimensions - unlike my early assumptions. Please check for yourself.

Problematic source 1, file size 35.3MB re-encoded at:
- RF18, size 126MB.

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz
# Ram: 3892 MB
# Screen: 1366x768
# Temp Dir: C:\Users\o770\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\o770\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\Tempdata\splnvalentinv.asf" -t 1 -c 1 -o "D:\Tempdata\splnvalentinrec18.mp4"  -f mp4 -w 966 --loose-anamorphic  -e x264 -q 18 -a none  -x b-adapt=2:rc-lookahead=50 --verbose=1
# User Query: False
-------------------------------------------

[20:22:41] hb_init: checking cpu count
[20:22:41] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening D:\Tempdata\splnvalentinv.asf...
[20:22:41] hb_scan: path=D:\Tempdata\splnvalentinv.asf, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Tempdata\splnvalentinv.asf/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Tempdata\splnvalentinv.asf) failed (0x19b00a0)
[20:22: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
[20:22:41] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\Tempdata\splnvalentinv.asf':
  Metadata:
    WMFSDKVersion   : 10.00.00.3923
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 1
    VBR Peak        : 855
    Buffer Average  : 134
    album           : 
    track           : 
    WM/PromotionURL : 
    WM/AlbumCoverURL: 
    genre           : 
    WM/Year         : 
    WM/GenreID      : 
    composer        : 
    WM/Lyrics       : 
    WM/ToolName     : 
    WM/ToolVersion  : 
    album_artist    : 
    WM/AuthorURL    : 
    WM/AudioFileURL : 
    WM/ParentalRating: 
    WM/BeatsPerMinute: 
    WM/InitialKey   : 
    WM/Mood         : 
    WM/DVDID        : 
    WM/UniqueFileIdentifier: 
    WM/ModifiedBy   : 
    WM/RadioStationName: 
    WM/RadioStationOwner: 
    WM/PlaylistDelay: 
    WM/Codec        : 
    WM/DRM          : 
    WM/ISRC         : 
    WM/Provider     : 
    WM/ProviderRating: 
    WM/ProviderStyle: 
    WM/ContentDistributor: 
    WM/SubscriptionContentID: 
    title           : 
    artist          : 
    copyright       : 
    comment         : Processed by freeware version of AsfBin
  Duration: 00:05:44.42, start: 2.241000, bitrate: 861 kb/s
    Stream #0.0: Video: wmv3, yuv420p, 1430x1080, 856 kb/s, 25 tbr, 1k tbn, 1k tbc
[20:22:41] scan: decoding previews for title 1
Scanning title 1...
Scanning title 1...
[20:22:41] scan: 10 previews, 1430x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 1.32:1, PAR 1:1
[20:22:41] scan: title (0) job->width:1424, job->height:1072
[20:22:41] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Tempdata\splnvalentinv.asf
  + duration: 00:05:44
  + size: 1430x1080, pixel aspect: 1/1, display aspect: 1.32, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:44
  + audio tracks:
  + subtitle tracks:
[20:22:42] 1 job(s) to process
[20:22:42] starting job
[20:22:42] sync: expecting 8635 video frames
[20:22:42] job configuration:
[20:22:42]  * source
[20:22:42]    + D:\Tempdata\splnvalentinv.asf
[20:22:42]    + title 1, chapter(s) 1 to 1
[20:22:42]    + container: asf
[20:22:42]    + data rate: 861 kbps
[20:22:42]  * destination
[20:22:42]    + D:\Tempdata\splnvalentinrec18.mp4
[20:22:42]    + container: MPEG-4 (.mp4 and .m4v)
[20:22:42]  * video track
[20:22:42]    + decoder: wmv3
[20:22:42]      + bitrate 856 kbps
[20:22:42]    + frame rate: same as source (around 25.000 fps)
[20:22:42]    + loose anamorphic
[20:22:42]      + storage dimensions: 1430 * 1080 -> 960 * 720, crop 0/0/0/0, mod 0
[20:22:42]      + pixel aspect ratio: 143 / 144
[20:22:42]      + display dimensions: 953 * 720
[20:22:42]    + encoder: x264
[20:22:42]      + options: b-adapt=2:rc-lookahead=50
[20:22:42]      + quality: 18.00 (RF)
[20:22:42] reader: first SCR 201690 id 0 DTS 201690
[20:22:42] encx264: encoding with stored aspect 143/144
[20:22:42] encx264: Encoding at constant RF 18.000000
x264 [info]: using SAR=143/144
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.1
[20:33:03] reader: done. 1 scr changes
[20:33:13] work: average encoding speed for job is 12.290210 fps
[20:33:13] mux: track 0, 7686 frames, 132922230 bytes, 3088.70 kbps, fifo 8
[20:33:13] sync: got 7686 frames, 8635 expected
[20:33:13] wmv3-decoder done: 7686 frames, 0 decoder errors, 0 drops
[20:33:13] render: lost time: 0 (0 frames)
[20:33:13] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:39    Avg QP:14.57  size: 68312  PSNR Mean Y:49.93 U:54.91 V:53.96 Avg:50.97 Global:49.86
x264 [info]: frame P:2098  Avg QP:18.01  size: 33776  PSNR Mean Y:45.73 U:51.68 V:50.70 Avg:46.90 Global:46.77
x264 [info]: frame B:5549  Avg QP:21.50  size: 10704  PSNR Mean Y:44.40 U:51.22 V:50.18 Avg:45.67 Global:45.60
x264 [info]: consecutive B-frames:  1.5%  1.3% 12.2% 85.0%
x264 [info]: mb I  I16..4: 11.8% 63.5% 24.6%
x264 [info]: mb P  I16..4:  3.0% 17.7%  5.3%  P16..4: 22.6% 24.5% 14.3%  0.0%  0.0%    skip:12.5%
x264 [info]: mb B  I16..4:  0.3%  1.7%  0.5%  B16..8: 39.2% 18.2%  6.0%  direct: 3.6%  skip:30.6%  L0:46.4% L1:45.6% BI: 8.0%
x264 [info]: 8x8 transform intra:68.0% inter:58.7%
x264 [info]: coded y,uvDC,uvAC intra: 77.7% 75.0% 53.2% inter: 23.9% 14.6% 2.1%
x264 [info]: i16 v,h,dc,p: 53% 14%  6% 27%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 26% 18% 15%  5%  8%  8%  6%  7%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 38% 17% 15%  4%  6%  7%  4%  6%  3%
x264 [info]: i8c dc,h,v,p: 52% 17% 25%  5%
x264 [info]: Weighted P-Frames: Y:1.1% UV:0.8%
x264 [info]: ref P L0: 67.2% 12.6% 14.9%  5.2%  0.0%
x264 [info]: ref B L0: 94.8%  4.3%  0.8%
x264 [info]: ref B L1: 97.5%  2.5%
x264 [info]: SSIM Mean Y:0.9867402 (18.775db)
x264 [info]: PSNR Mean Y:44.823 U:51.371 V:50.350 Avg:46.061 Global:45.926 kb/s:3089.10
[20:33:13] libhb: work result = 0
Rip done!
HandBrake has exited.
- RF24, 55.7MB.

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz
# Ram: 3892 MB
# Screen: 1366x768
# Temp Dir: C:\Users\o770\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\o770\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\Tempdata\splnvalentinv.asf" -t 1 -c 1 -o "D:\Tempdata\splnvalentinrec24.mp4"  -f mp4 -w 966 --loose-anamorphic  -e x264 -q 24 -a none  -x b-adapt=2:rc-lookahead=50 --verbose=1
# User Query: False
-------------------------------------------

[21:41:20] hb_init: checking cpu count
[21:41:20] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening D:\Tempdata\splnvalentinv.asf...
[21:41:20] hb_scan: path=D:\Tempdata\splnvalentinv.asf, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Tempdata\splnvalentinv.asf/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Tempdata\splnvalentinv.asf) failed (0x1ae00a0)
[21:41:20] 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
[21:41:20] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\Tempdata\splnvalentinv.asf':
  Metadata:
    WMFSDKVersion   : 10.00.00.3923
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 1
    VBR Peak        : 855
    Buffer Average  : 134
    album           : 
    track           : 
    WM/PromotionURL : 
    WM/AlbumCoverURL: 
    genre           : 
    WM/Year         : 
    WM/GenreID      : 
    composer        : 
    WM/Lyrics       : 
    WM/ToolName     : 
    WM/ToolVersion  : 
    album_artist    : 
    WM/AuthorURL    : 
    WM/AudioFileURL : 
    WM/ParentalRating: 
    WM/BeatsPerMinute: 
    WM/InitialKey   : 
    WM/Mood         : 
    WM/DVDID        : 
    WM/UniqueFileIdentifier: 
    WM/ModifiedBy   : 
    WM/RadioStationName: 
    WM/RadioStationOwner: 
    WM/PlaylistDelay: 
    WM/Codec        : 
    WM/DRM          : 
    WM/ISRC         : 
    WM/Provider     : 
    WM/ProviderRating: 
    WM/ProviderStyle: 
    WM/ContentDistributor: 
    WM/SubscriptionContentID: 
    title           : 
    artist          : 
    copyright       : 
    comment         : Processed by freeware version of AsfBin
  Duration: 00:05:44.42, start: 2.241000, bitrate: 861 kb/s
    Stream #0.0: Video: wmv3, yuv420p, 1430x1080, 856 kb/s, 25 tbr, 1k tbn, 1k tbc
[21:41:20] scan: decoding previews for title 1
Scanning title 1...
Scanning title 1...
[21:41:20] scan: 10 previews, 1430x1080, 25.000 fps, autocrop = 0/0/0/0, aspect 1.32:1, PAR 1:1
[21:41:20] scan: title (0) job->width:1424, job->height:1072
[21:41:20] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Tempdata\splnvalentinv.asf
  + duration: 00:05:44
  + size: 1430x1080, pixel aspect: 1/1, display aspect: 1.32, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:05:44
  + audio tracks:
  + subtitle tracks:
[21:41:21] 1 job(s) to process
[21:41:21] starting job
[21:41:21] sync: expecting 8635 video frames
[21:41:21] job configuration:
[21:41:21]  * source
[21:41:21]    + D:\Tempdata\splnvalentinv.asf
[21:41:21]    + title 1, chapter(s) 1 to 1
[21:41:21]    + container: asf
[21:41:21]    + data rate: 861 kbps
[21:41:21]  * destination
[21:41:21]    + D:\Tempdata\splnvalentinrec24.mp4
[21:41:21]    + container: MPEG-4 (.mp4 and .m4v)
[21:41:21]  * video track
[21:41:21]    + decoder: wmv3
[21:41:21]      + bitrate 856 kbps
[21:41:21]    + frame rate: same as source (around 25.000 fps)
[21:41:21]    + loose anamorphic
[21:41:21]      + storage dimensions: 1430 * 1080 -> 960 * 720, crop 0/0/0/0, mod 0
[21:41:21]      + pixel aspect ratio: 143 / 144
[21:41:21]      + display dimensions: 953 * 720
[21:41:21]    + encoder: x264
[21:41:21]      + options: b-adapt=2:rc-lookahead=50
[21:41:21]      + quality: 24.00 (RF)
[21:41:21] reader: first SCR 201690 id 0 DTS 201690
[21:41:21] encx264: encoding with stored aspect 143/144
[21:41:21] encx264: Encoding at constant RF 24.000000
x264 [info]: using SAR=143/144
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.1
[21:49:41] reader: done. 1 scr changes
[21:49:49] work: average encoding speed for job is 15.262687 fps
[21:49:49] mux: track 0, 7686 frames, 58340021 bytes, 1355.64 kbps, fifo 8
[21:49:49] sync: got 7686 frames, 8635 expected
[21:49:49] wmv3-decoder done: 7686 frames, 0 decoder errors, 0 drops
[21:49:49] render: lost time: 0 (0 frames)
[21:49:49] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:39    Avg QP:20.57  size: 36532  PSNR Mean Y:46.13 U:52.15 V:50.97 Avg:47.29 Global:46.08
x264 [info]: frame P:2098  Avg QP:24.21  size: 15008  PSNR Mean Y:41.96 U:49.26 V:47.99 Avg:43.26 Global:43.11
x264 [info]: frame B:5549  Avg QP:27.85  size:  4583  PSNR Mean Y:40.93 U:49.06 V:47.73 Avg:42.30 Global:42.22
x264 [info]: consecutive B-frames:  1.5%  1.3% 12.2% 85.0%
x264 [info]: mb I  I16..4: 15.9% 67.4% 16.6%
x264 [info]: mb P  I16..4:  4.2% 14.4%  1.9%  P16..4: 33.5% 16.1%  7.5%  0.0%  0.0%    skip:22.4%
x264 [info]: mb B  I16..4:  0.3%  1.0%  0.1%  B16..8: 43.9%  7.4%  1.2%  direct: 1.7%  skip:44.4%  L0:46.3% L1:50.3% BI: 3.4%
x264 [info]: 8x8 transform intra:69.8% inter:75.7%
x264 [info]: coded y,uvDC,uvAC intra: 55.4% 54.8% 16.9% inter: 12.8% 7.9% 0.3%
x264 [info]: i16 v,h,dc,p: 40% 16%  5% 39%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 15% 20%  5%  8%  9%  6%  7%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 39% 14% 16%  4%  6%  9%  4%  6%  3%
x264 [info]: i8c dc,h,v,p: 59% 15% 22%  3%
x264 [info]: Weighted P-Frames: Y:1.1% UV:0.8%
x264 [info]: ref P L0: 66.0% 13.5% 15.0%  5.6%  0.0%
x264 [info]: ref B L0: 94.4%  4.6%  1.0%
x264 [info]: ref B L1: 97.4%  2.6%
x264 [info]: SSIM Mean Y:0.9742312 (15.889db)
x264 [info]: PSNR Mean Y:41.261 U:49.133 V:47.827 Avg:42.614 Global:42.480 kb/s:1355.84
[21:49:49] libhb: work result = 0
Rip done!
HandBrake has exited.
Problematic source 2, size 38.8MB re-encoded at:
- RF18, 91.8MB.

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz
# Ram: 3892 MB
# Screen: 1366x768
# Temp Dir: C:\Users\o770\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\o770\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\Tempdata\splariav.asf" -t 1 -c 1 -o "D:\Tempdata\splariarec18.m4v"  -f mp4 -w 1280 --loose-anamorphic  -e x264 -q 18 -a none  --markers="C:\Users\o770\AppData\Local\Temp\splariarec18-1-chapters.csv" -x b-adapt=2:rc-lookahead=50 --verbose=1
# User Query: False
-------------------------------------------

[19:57:43] hb_init: checking cpu count
[19:57:43] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening D:\Tempdata\splariav.asf...
[19:57:43] hb_scan: path=D:\Tempdata\splariav.asf, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Tempdata\splariav.asf/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Tempdata\splariav.asf) failed (0x1b70078)
[19:57:43] 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
[19:57:43] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\Tempdata\splariav.asf':
  Metadata:
    WM/ToolName     : River Past Video Cleaner Pro
    WM/ToolVersion  :  7.6.9
    WMFSDKVersion   : 9.00.00.3265
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:02:38.37, start: 4.000000, bitrate: 2057 kb/s
    Stream #0.0(eng): Video: wmv3, yuv420p, 1920x1080, 2048 kb/s, 23.98 tbr, 1k tbn, 1k tbc
[19:57:43] scan: decoding previews for title 1
Scanning title 1...
Scanning title 1...
Scanning title 1...
[19:57:43] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:57:43] scan: title (0) job->width:1920, job->height:1072
[19:57:43] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Tempdata\splariav.asf
  + duration: 00:02:38
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:38
  + audio tracks:
  + subtitle tracks:
Reading chapter markers from file C:\Users\o770\AppData\Local\Temp\splariarec18-1-chapters.csv
[19:57:43] 1 job(s) to process
[19:57:43] starting job
[19:57:43] sync: expecting 3821 video frames
[19:57:43] work: only 1 chapter, disabling chapter markers
[19:57:43] job configuration:
[19:57:43]  * source
[19:57:43]    + D:\Tempdata\splariav.asf
[19:57:43]    + title 1, chapter(s) 1 to 1
[19:57:43]    + container: asf
[19:57:43]    + data rate: 2057 kbps
[19:57:43]  * destination
[19:57:43]    + D:\Tempdata\splariarec18.m4v
[19:57:43]    + container: MPEG-4 (.mp4 and .m4v)
[19:57:43]  * video track
[19:57:43]    + decoder: wmv3
[19:57:43]      + bitrate 2048 kbps
[19:57:43]    + frame rate: same as source (around 23.976 fps)
[19:57:43]    + loose anamorphic
[19:57:43]      + storage dimensions: 1920 * 1080 -> 1280 * 720, crop 0/0/0/0, mod 0
[19:57:43]      + pixel aspect ratio: 1 / 1
[19:57:43]      + display dimensions: 1280 * 720
[19:57:43]    + encoder: x264
[19:57:43]      + options: b-adapt=2:rc-lookahead=50
[19:57:43]      + quality: 18.00 (RF)
[19:57:43] reader: first SCR 360000 id 0 DTS 360000
[19:57:43] encx264: min-keyint: auto (23), keyint: 240
[19:57:43] encx264: encoding with stored aspect 1/1
[19:57:43] encx264: Encoding at constant RF 18.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.1
[20:05:25] reader: done. 1 scr changes
[20:05:36] work: average encoding speed for job is 7.841073 fps
[20:05:36] mux: track 0, 3669 frames, 96286765 bytes, 4864.00 kbps, fifo 8
[20:05:36] sync: got 3669 frames, 3821 expected
[20:05:36] wmv3-decoder done: 3669 frames, 0 decoder errors, 0 drops
[20:05:36] render: lost time: 0 (0 frames)
[20:05:36] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:23    Avg QP:14.83  size: 90409  PSNR Mean Y:49.85 U:55.06 V:55.83 Avg:50.91 Global:49.82
x264 [info]: frame P:964   Avg QP:18.22  size: 44994  PSNR Mean Y:45.69 U:50.72 V:51.45 Avg:46.82 Global:46.51
x264 [info]: frame B:2682  Avg QP:20.50  size: 18954  PSNR Mean Y:44.57 U:50.49 V:51.18 Avg:45.81 Global:45.45
x264 [info]: consecutive B-frames:  0.5%  1.3%  8.6% 89.6%
x264 [info]: mb I  I16..4: 14.2% 59.4% 26.5%
x264 [info]: mb P  I16..4:  2.1%  9.5%  2.4%  P16..4: 35.1% 30.2% 14.2%  0.0%  0.0%    skip: 6.5%
x264 [info]: mb B  I16..4:  0.2%  0.6%  0.2%  B16..8: 47.4% 22.0%  5.5%  direct: 5.6%  skip:18.5%  L0:43.7% L1:48.4% BI: 8.0%
x264 [info]: 8x8 transform intra:66.1% inter:59.4%
x264 [info]: coded y,uvDC,uvAC intra: 76.3% 70.7% 50.9% inter: 35.2% 21.1% 3.4%
x264 [info]: i16 v,h,dc,p: 54% 15% 14% 17%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 16% 10% 28%  5%  9% 10%  6%  7%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 14% 24%  5% 10% 10%  6%  5%  5%
x264 [info]: i8c dc,h,v,p: 59% 16% 19%  6%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.3%
x264 [info]: ref P L0: 56.2% 10.5% 23.4%  9.8%  0.0%
x264 [info]: ref B L0: 90.6%  7.4%  2.0%
x264 [info]: ref B L1: 96.7%  3.3%
x264 [info]: SSIM Mean Y:0.9820171 (17.451db)
x264 [info]: PSNR Mean Y:44.893 U:50.583 V:51.282 Avg:46.103 Global:45.721 kb/s:4865.16
[20:05:37] libhb: work result = 0
Rip done!
HandBrake has exited.
- RF24, 29.9MB - smaller at the lower bitrate.

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz
# Ram: 3892 MB
# Screen: 1366x768
# Temp Dir: C:\Users\o770\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\o770\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\Tempdata\splariav.asf" -t 1 -c 1 -o "D:\Tempdata\splariarec24.mp4"  -f mp4 -w 1280 --loose-anamorphic  -e x264 -q 24 -a none  -x b-adapt=2:rc-lookahead=50 --verbose=1
# User Query: False
-------------------------------------------

[21:35:49] hb_init: checking cpu count
[21:35:49] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening D:\Tempdata\splariav.asf...
[21:35:49] hb_scan: path=D:\Tempdata\splariav.asf, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Tempdata\splariav.asf/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Tempdata\splariav.asf) failed (0x19e0068)
[21:35:49] 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
[21:35:49] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\Tempdata\splariav.asf':
  Metadata:
    WM/ToolName     : River Past Video Cleaner Pro
    WM/ToolVersion  :  7.6.9
    WMFSDKVersion   : 9.00.00.3265
    WMFSDKNeeded    : 0.0.0.0000
    IsVBR           : 0
  Duration: 00:02:38.37, start: 4.000000, bitrate: 2057 kb/s
    Stream #0.0(eng): Video: wmv3, yuv420p, 1920x1080, 2048 kb/s, 23.98 tbr, 1k tbn, 1k tbc
[21:35:49] scan: decoding previews for title 1
Scanning title 1...
Scanning title 1...
Scanning title 1...
[21:35:49] scan: 10 previews, 1920x1080, 23.976 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[21:35:49] scan: title (0) job->width:1920, job->height:1072
[21:35:49] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Tempdata\splariav.asf
  + duration: 00:02:38
  + size: 1920x1080, pixel aspect: 1/1, display aspect: 1.78, 23.976 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:38
  + audio tracks:
  + subtitle tracks:
[21:35:49] 1 job(s) to process
[21:35:49] starting job
[21:35:49] sync: expecting 3821 video frames
[21:35:49] job configuration:
[21:35:49]  * source
[21:35:49]    + D:\Tempdata\splariav.asf
[21:35:49]    + title 1, chapter(s) 1 to 1
[21:35:49]    + container: asf
[21:35:49]    + data rate: 2057 kbps
[21:35:49]  * destination
[21:35:49]    + D:\Tempdata\splariarec24.mp4
[21:35:49]    + container: MPEG-4 (.mp4 and .m4v)
[21:35:49]  * video track
[21:35:49]    + decoder: wmv3
[21:35:49]      + bitrate 2048 kbps
[21:35:49]    + frame rate: same as source (around 23.976 fps)
[21:35:49]    + loose anamorphic
[21:35:49]      + storage dimensions: 1920 * 1080 -> 1280 * 720, crop 0/0/0/0, mod 0
[21:35:49]      + pixel aspect ratio: 1 / 1
[21:35:49]      + display dimensions: 1280 * 720
[21:35:49]    + encoder: x264
[21:35:49]      + options: b-adapt=2:rc-lookahead=50
[21:35:49]      + quality: 24.00 (RF)
[21:35:49] reader: first SCR 360000 id 0 DTS 360000
[21:35:49] encx264: min-keyint: auto (23), keyint: 240
[21:35:49] encx264: encoding with stored aspect 1/1
[21:35:49] encx264: Encoding at constant RF 24.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
x264 [info]: profile High, level 3.1
[21:41:12] reader: done. 1 scr changes
[21:41:19] work: average encoding speed for job is 11.227370 fps
[21:41:19] mux: track 0, 3669 frames, 31339938 bytes, 1583.16 kbps, fifo 8
[21:41:20] sync: got 3669 frames, 3821 expected
[21:41:20] wmv3-decoder done: 3669 frames, 0 decoder errors, 0 drops
[21:41:20] render: lost time: 0 (0 frames)
[21:41:20] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:23    Avg QP:20.68  size: 46487  PSNR Mean Y:45.71 U:52.13 V:53.00 Avg:46.88 Global:45.89
x264 [info]: frame P:964   Avg QP:24.50  size: 15992  PSNR Mean Y:42.31 U:48.54 V:49.29 Avg:43.57 Global:43.31
x264 [info]: frame B:2682  Avg QP:26.52  size:  5539  PSNR Mean Y:41.60 U:48.54 V:49.17 Avg:42.93 Global:42.60
x264 [info]: consecutive B-frames:  0.5%  1.3%  8.6% 89.6%
x264 [info]: mb I  I16..4: 18.0% 68.1% 13.9%
x264 [info]: mb P  I16..4:  1.9%  4.9%  0.5%  P16..4: 46.6% 15.0%  7.9%  0.0%  0.0%    skip:23.2%
x264 [info]: mb B  I16..4:  0.1%  0.2%  0.0%  B16..8: 51.8%  3.8%  0.4%  direct: 1.4%  skip:42.3%  L0:43.5% L1:54.6% BI: 1.9%
x264 [info]: 8x8 transform intra:67.2% inter:82.4%
x264 [info]: coded y,uvDC,uvAC intra: 52.5% 50.7% 22.3% inter: 14.2% 9.2% 0.2%
x264 [info]: i16 v,h,dc,p: 52% 19% 13% 17%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15%  9% 32%  5%  9% 11%  6%  6%  6%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 22% 13% 22%  4% 12% 13%  6%  4%  4%
x264 [info]: i8c dc,h,v,p: 63% 15% 18%  4%
x264 [info]: Weighted P-Frames: Y:0.8% UV:0.3%
x264 [info]: ref P L0: 56.9% 11.0% 23.7%  8.4%  0.0%
x264 [info]: ref B L0: 88.7%  9.1%  2.3%
x264 [info]: ref B L1: 95.3%  4.7%
x264 [info]: SSIM Mean Y:0.9684152 (15.005db)
x264 [info]: PSNR Mean Y:41.810 U:48.564 V:49.230 Avg:43.122 Global:42.792 kb/s:1583.57
[21:41:20] libhb: work result = 0
Rip done!
HandBrake has exited.
Interesting source 3, size 12.4MB re-encoded at RF18 for a size of 11.3MB, equal frame size, half the bitrate.

Code: Select all

# Windows GUI 0.9.5 2011010300
# Running: Microsoft Windows NT 6.1.7600.0
# CPU: Intel(R) Core(TM) i3 CPU       M 330  @ 2.13GHz
# Ram: 3892 MB
# Screen: 1366x768
# Temp Dir: C:\Users\o770\AppData\Local\Temp\
# Install Dir: C:\Program Files (x86)\Handbrake
# Data Dir: C:\Users\o770\AppData\Roaming\HandBrake\HandBrake\0.9.5.3728

# CLI Query:  -i "D:\Tempdata\splakissv.asf" -t 1 -c 1 -o "D:\Tempdata\splakissrec18.mp4"  -f mp4 --strict-anamorphic  -e x264 -q 18 -a none  -x b-adapt=2:rc-lookahead=50 --verbose=1
# User Query: False
-------------------------------------------

[19:56:40] hb_init: checking cpu count
[19:56:40] hb_init: starting libhb thread
HandBrake 0.9.5 (2011010300) - MinGW i386 - http://handbrake.fr
4 CPUs detected
Opening D:\Tempdata\splakissv.asf...
[19:56:40] hb_scan: path=D:\Tempdata\splakissv.asf, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening D:\Tempdata\splakissv.asf/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(D:\Tempdata\splakissv.asf) failed (0x182ff20)
[19:56:40] 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
[19:56:40] dvd: not a dvd - trying as a stream/file instead
Input #0, asf, from 'D:\Tempdata\splakissv.asf':
  Metadata:
    WMFSDKVersion   : 12.0.7600.16385
    WMFSDKNeeded    : 0.0.0.0000
    VBR Peak        : 800
    IsVBR           : 1
    Buffer Average  : 171
  Duration: 00:00:23.36, start: 1.579000, bitrate: 4457 kb/s
    Stream #0.0: Video: wmv3, yuv420p, 1280x720, 4750 kb/s, 25 tbr, 1k tbn, 1k tbc
[19:56:40] scan: decoding previews for title 1
Scanning title 1...
[19:56:41] scan: 10 previews, 1280x720, 25.000 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[19:56:41] scan: title (0) job->width:1280, job->height:720
Scanning title 1...
[19:56:41] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: D:\Tempdata\splakissv.asf
  + duration: 00:00:23
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 25.000 fps
  + autocrop: 0/0/0/0
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:00:23
  + audio tracks:
  + subtitle tracks:
[19:56:41] 1 job(s) to process
[19:56:41] starting job
[19:56:41] sync: expecting 609 video frames
[19:56:41] job configuration:
[19:56:41]  * source
[19:56:41]    + D:\Tempdata\splakissv.asf
[19:56:41]    + title 1, chapter(s) 1 to 1
[19:56:41]    + container: asf
[19:56:41]    + data rate: 4457 kbps
[19:56:41]  * destination
[19:56:41]    + D:\Tempdata\splakissrec18.mp4
[19:56:41]    + container: MPEG-4 (.mp4 and .m4v)
[19:56:41]  * video track
[19:56:41]    + decoder: wmv3
[19:56:41]      + bitrate 4750 kbps
[19:56:41]    + frame rate: same as source (around 25.000 fps)
[19:56:41]    + strict anamorphic
[19:56:41]      + storage dimensions: 1280 * 720 -> 1280 * 720, crop 0/0/0/0, mod 0
[19:56:41]      + pixel aspect ratio: 1 / 1
[19:56:41]      + display dimensions: 1280 * 720
[19:56:41]    + encoder: x264
[19:56:41]      + options: b-adapt=2:rc-lookahead=50
[19:56:41]      + quality: 18.00 (RF)
[19:56:41] encx264: encoding with stored aspect 1/1
[19:56:41] encx264: Encoding at constant RF 18.000000
x264 [info]: using SAR=1/1
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 FastShuffle SSE4.2
[19:56:41] reader: first SCR 142110 id 0 DTS 142110
x264 [info]: profile High, level 3.1
[19:57:30] reader: done. 1 scr changes
[19:57:42] work: average encoding speed for job is 10.830596 fps
[19:57:42] mux: track 0, 583 frames, 11874130 bytes, 4066.48 kbps, fifo 8
[19:57:42] sync: got 583 frames, 609 expected
[19:57:42] wmv3-decoder done: 583 frames, 0 decoder errors, 0 drops
[19:57:42] render: lost time: 0 (0 frames)
[19:57:42] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:3     Avg QP:15.36  size: 93941  PSNR Mean Y:49.69 U:54.48 V:54.79 Avg:50.79 Global:50.65
x264 [info]: frame P:204   Avg QP:17.31  size: 36702  PSNR Mean Y:46.19 U:51.15 V:51.46 Avg:47.33 Global:47.30
x264 [info]: frame B:376   Avg QP:20.76  size: 10918  PSNR Mean Y:44.89 U:50.80 V:51.16 Avg:46.14 Global:46.12
x264 [info]: consecutive B-frames: 11.7%  1.4% 12.4% 74.5%
x264 [info]: mb I  I16..4:  5.3% 92.0%  2.7%
x264 [info]: mb P  I16..4:  0.7%  8.4%  0.6%  P16..4: 44.4% 27.5% 14.0%  0.0%  0.0%    skip: 4.3%
x264 [info]: mb B  I16..4:  0.1%  1.6%  0.1%  B16..8: 50.8%  8.2%  1.5%  direct: 4.3%  skip:33.5%  L0:44.9% L1:39.9% BI:15.2%
x264 [info]: 8x8 transform intra:88.2% inter:65.3%
x264 [info]: coded y,uvDC,uvAC intra: 87.2% 75.4% 29.1% inter: 32.0% 21.3% 1.1%
x264 [info]: i16 v,h,dc,p: 27% 18% 14% 41%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 17% 13% 30%  7%  5%  5%  5% 11%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 15% 19%  8% 10%  8%  8%  9%  6%
x264 [info]: i8c dc,h,v,p: 51% 20% 21%  7%
x264 [info]: Weighted P-Frames: Y:1.0% UV:0.0%
x264 [info]: ref P L0: 62.0% 15.5% 17.8%  4.7%  0.0%
x264 [info]: ref B L0: 93.3%  5.5%  1.2%
x264 [info]: ref B L1: 97.3%  2.7%
x264 [info]: SSIM Mean Y:0.9859931 (18.537db)
x264 [info]: PSNR Mean Y:45.368 U:50.942 V:51.285 Avg:46.581 Global:46.512 kb/s:4073.50
[19:57:42] libhb: work result = 0
Rip done!
HandBrake has exited.
So I'm thinking of finding an alternate way to deal with the low bitrate like source 1, because it gets no benefit of any higher bitrate at lower resolutions, right? Could I please get recommendations in regard to that?
For the sake of time, I can't test each movie as I did with these samples, so I'm also thinking of a general rule of thumb if possible.
Thanks so much for your time!
rollin_eng
Veteran User
Posts: 4854
Joined: Wed May 04, 2011 11:06 pm

Re: Re-encode of 1080p to 720p

Post by rollin_eng »

First upgrade to 0.9.6 or a nightly build.
Deleted User 11865

Re: Re-encode of 1080p to 720p

Post by Deleted User 11865 »

1080p encoded in WMV at 2 Mbps (I bet it's CBR, too).

There's probably a lot of noise in your sources; you could try playing with the denoise filter a bit.
Post Reply