Fix "Output size" feature

Bug report and feature request
Post Reply
Pierre
Beginner
Beginner
Posts: 1
Joined: Wed Feb 01, 2017 7:56 pm

Fix "Output size" feature

Post by Pierre » Wed Feb 01, 2017 8:15 pm

Hello,

I post here because it seems I cannot post in "Bug Report" forum.

I have a video of 9.31GB and I tried to compress to to obtain a 5120MB video.
But I got a 783MB video as result.

No error message.

Version x64 0.8.47 build 5872 (Oct 20 2016, 15:44:25).

Console:
MediaCoder x64 Version 0.8.47 build 5872 (built on Oct 20 2016, 15:44:25)

You can freely redistribute this program under its redistribution terms and conditions.
(C)2005-16 Stanley Huang <stanleyhuangyc@gmail.com>. All Rights Reserved.

Intel(R) Core(TM) i5-4310U CPU @ 2.00GHz (2585Mhz)
CPU Number: 1 CPU Cores: 4
CPU SIMD: MMX SSE SSE2 SSE3 SSSE3 SSE4 SSE4.1 SSE4.2
North Bridge: 0x0 South Bridge: 0x0
OpenCL runtime: Yes
MEncoder SVN-r37900-6.2.0 (C) 2000-2016 MPlayer Team
201 audio & 416 video codecs
success: format: 0 data: 0x0 - 0x54280000
libavformat version 57.51.102 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0, -alang swe, Swedish DTS
[lavf] stream 2: subtitle (srt), -sid 0, -slang fre, FULL FR
VIDEO: [H264] 1920x804 0bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x804 fps:24.000 ftime:=0.0417
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.60.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
[swscaler @ 00000000019f32a0]bicubic scaler, from yuv420p to yuv420p using MMXEXT
[swscaler @ 00000000019f32a0]using unscaled yuv420p -> yuv420p special converter

# x264 --no-progress --preset medium --keyint 250 --min-keyint 25 --non-deterministic --psy-rd 1:0 --bitrate 886 --qcomp 0.6 --sar 201:200 --threads 7 --demuxer raw --input-csp i420 --input-res 1920x804 --fps 24 --stats "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af.log" --pass 1 -o NUL -


Adaptive cache: 3179 MB (1440 frames)
raw [info]: 1920x804p 201:200 @ 24/1 fps (cfr)
x264 [info]: using SAR=201/200
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
x264 [info]: profile Main, level 4.0
x264 [info]: cabac=1 ref=1 deblock=1:0:0 analyse=0x1:0 me=dia subme=2 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=0 me_range=16 chroma_me=1 trellis=0 8x8dct=0 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=0 threads=7 lookahead_threads=2 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 fgo=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=abr mbtree=1 bitrate=886 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 ip_ratio=1.40 aq=1:1.00
[matroska,webm @ 00000000017460a0]Read error

Flushing video frames.

Video stream: 444577.188 kbit/s (55572146 B/s) size: 386300517120 bytes 6951.333 secs 166833 frames
x264 [info]: frame I:1676 Avg QP:23.66 size: 59257
x264 [info]: frame P:48548 Avg QP:25.66 size: 8948
x264 [info]: frame B:116607 Avg QP:27.51 size: 1949
x264 [info]: consecutive B-frames: 4.2% 3.7% 12.8% 79.4%
x264 [info]: mb I I16..4: 65.9% 0.0% 34.1%
x264 [info]: mb P I16..4: 14.4% 0.0% 0.0% P16..4: 27.6% 0.0% 0.0% 0.0% 0.0% skip:58.0%
x264 [info]: mb B I16..4: 1.6% 0.0% 0.0% B16..8: 8.3% 0.0% 0.0% direct: 2.6% skip:87.6% L0:40.8% L1:52.8% BI: 6.4%
x264 [info]: final ratefactor: 26.62
x264 [info]: coded y,uvDC,uvAC intra: 16.1% 30.3% 5.6% inter: 2.2% 3.7% 0.1%
x264 [info]: i16 v,h,dc,p: 46% 26% 18% 10%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 23% 20% 16% 7% 7% 7% 7% 6% 6%
x264 [info]: i8c dc,h,v,p: 59% 17% 22% 2%
x264 [info]: Weighted P-Frames: Y:1.2% UV:0.5%
x264 [info]: kb/s:875.78

encoded 166831 frames, 47.19 fps, 875.78 kb/s, duration 0:58:55.18
MEncoder SVN-r37900-6.2.0 (C) 2000-2016 MPlayer Team
201 audio & 416 video codecs
success: format: 0 data: 0x0 - 0x54280000
libavformat version 57.51.102 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0, -alang swe, Swedish DTS
[lavf] stream 2: subtitle (srt), -sid 0, -slang fre, FULL FR
VIDEO: [H264] 1920x804 0bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
[V] filefmt:44 fourcc:0x34363248 size:1920x804 fps:24.000 ftime:=0.0417
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
libavcodec version 57.60.101 (internal)
AUDIO: 48000 Hz, 6 ch, floatle, 1536.0 kbit/16.67% (ratio: 192000->1152000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
Opening video filter: [expand osd=1]
Expand: -1 x -1, -1 ; -1, osd: 1, aspect: 0.000000, round: 1
Opening video filter: [harddup]
Opening video filter: [format fmt=i420]
Opening video filter: [scale]
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Audio data will be piped out through pipe 6
Movie-Aspect is 2.39:1 - prescaling to correct movie aspect.
[swscaler @ 00000000019f32a0]bicubic scaler, from yuv420p to yuv420p using MMXEXT
[swscaler @ 00000000019f32a0]using unscaled yuv420p -> yuv420p special converter

# x264 --no-progress --preset medium --keyint 250 --min-keyint 25 --non-deterministic --psy-rd 1:0 --bitrate 886 --qcomp 0.6 --sar 201:200 --threads 7 --demuxer raw --input-csp i420 --input-res 1920x804 --fps 24 --stats "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af.log" --pass 2 -o "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af.264" -


# neroAacEnc.exe -lc -q 0.25 -ignorelength -if - -of "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af_0.m4a"

*************************************************************
* *
* Nero AAC Encoder *
* Copyright 2009 Nero AG *
* All Rights Reserved Worldwide *
* *
* Package build date: Feb 18 2010 *
* Package version: 1.5.4.0 *
* *
* See -help for a complete list of available parameters. *
* *
*************************************************************

raw [info]: 1920x804p 201:200 @ 24/1 fps (cfr)
x264 [info]: using SAR=201/200
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX FMA3 AVX2 LZCNT BMI2
Processed 0 seconds...
Adaptive cache: 3179 MB (1440 frames)
x264 [info]: profile High, level 4.0
x264 [info]: cabac=1 ref=3 deblock=1:0:0 analyse=0x3:0x113 me=hex subme=7 psy=1 fade_compensate=0.00 psy_rd=1.00:0.00 mixed_ref=1 me_range=16 chroma_me=1 trellis=1 8x8dct=1 cqm=0 deadzone=21,11 fast_pskip=1 chroma_qp_offset=-2 threads=7 lookahead_threads=1 sliced_threads=0 nr=0 decimate=1 interlaced=0 bluray_compat=0 constrained_intra=0 fgo=0 bframes=3 b_pyramid=2 b_adapt=1 b_bias=0 direct=1 weightb=1 open_gop=0 weightp=2 keyint=250 keyint_min=25 scenecut=40 intra_refresh=0 rc_lookahead=40 rc=2pass mbtree=1 bitrate=886 ratetol=1.0 qcomp=0.60 qpmin=0 qpmax=69 qpstep=4 cplxblur=20.0 qblur=0.5 ip_ratio=1.40 aq=1:1.00
[matroska,webm @ 00000000017460a0]Read error

Flushing video frames.

Video stream: 444577.188 kbit/s (55572146 B/s) size: 386295886080 bytes 6951.250 secs 166833 frames

Audio stream: 1536.000 kbit/s (192000 B/s) size: 1334724608 bytes 6951.690 secs

x264 [warning]: specified frame type is not compatible with max B-frames
x264 [error]: slice=P but 2pass stats say B
x264 [info]: frame I:1676 Avg QP:26.48 size: 39120
x264 [info]: frame P:48547 Avg QP:28.47 size: 8363
x264 [info]: frame B:116606 Avg QP:30.82 size: 2564
x264 [info]: consecutive B-frames: 4.2% 3.7% 12.8% 79.4%
x264 [info]: mb I I16..4: 35.5% 57.4% 7.0%
x264 [info]: mb P I16..4: 4.9% 6.8% 0.4% P16..4: 25.4% 2.8% 1.3% 0.0% 0.0% skip:58.4%
x264 [info]: mb B I16..4: 0.3% 0.4% 0.0% B16..8: 29.5% 0.7% 0.1% direct: 0.2% skip:68.9% L0:42.8% L1:56.6% BI: 0.6%
x264 [info]: 8x8 transform intra:56.8% inter:91.7%
x264 [info]: coded y,uvDC,uvAC intra: 25.3% 37.5% 7.3% inter: 2.9% 3.4% 0.1%
x264 [info]: i16 v,h,dc,p: 43% 26% 9% 22%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 25% 14% 32% 4% 5% 6% 5% 5% 4%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 30% 20% 12% 5% 8% 7% 7% 5% 4%
x264 [info]: i8c dc,h,v,p: 66% 14% 18% 3%
x264 [info]: Weighted P-Frames: Y:1.2% UV:0.5%
x264 [info]: ref P L0: 59.4% 19.0% 16.1% 5.4% 0.1%
x264 [info]: ref B L0: 92.0% 6.5% 1.5%
x264 [info]: ref B L1: 97.7% 2.3%
x264 [info]: kb/s:886.81

encoded 166829 frames, 26.76 fps, 886.81 kb/s, duration 1:43:55.25

# "mp4box" -tmp "C:\Users\XXX\AppData\Local\Temp" -ipod -inter 500 -keep-all -add "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af.264"#video:fps=24:par=201:200 -add "C:\Users\XXX\AppData\Local\Temp\mctempe58b1b8ed0030af_0.m4a"#audio "C:/Users/XXX/Perso/Video.mp4"

AVC-H264 import - frame size 1920 x 804 at 24.000 FPS
AVC Import results: 166829 samples - Slices: 1676 I 48547 P 116606 B - 1 SEI - 1548 IDR
Stream uses forward prediction - stream CTS offset: 2 frames
OpenGOP detected - adjusting file brand
IsoMedia import mctempe58b1b8ed0030af_0.m4a - track ID 1 - Audio (SR 48000 - 2 channels)
Setting up iTunes/iPod file...
Saving to C:/Users/XXX/Perso/Video.mp4: 0.500 secs Interleaving
Vector smash protection is enabled.

# "mplayer" -af channels=2,format=s16le -channels 2 -noautosub -nosub -aspect 12:5 -vo direct3d -colorkey 16 "C:\Users\XXX\Perso\Video.mkv" -nomsgcolor -quiet -slave

MPlayer SVN-r37900-6.2.0 (C) 2000-2016 MPlayer Team
201 audio & 416 video codecs

Playing C:\Users\XXX\Perso\Video.mkv.
libavformat version 57.51.102 (internal)
libavformat file format detected.
[lavf] stream 0: video (h264), -vid 0
[lavf] stream 1: audio (dca), -aid 0, -alang swe, Swedish DTS
[lavf] stream 2: subtitle (srt), -sid 0, -slang fre, FULL FR
VIDEO: [H264] 1920x804 0bpp 24.000 fps 0.0 kbps ( 0.0 kbyte/s)
==========================================================================
Opening video decoder: [ffmpeg] FFmpeg's libavcodec codec family
libavcodec version 57.60.101 (internal)
Selected video codec: [ffh264] vfm: ffmpeg (FFmpeg H.264)
==========================================================================
Clip info:
encoder: libebml v1.3.4 + libmatroska v1.4.5
creation_time: 2016-10-21T08:58:25.000000Z
==========================================================================
Opening audio decoder: [ffmpeg] FFmpeg/libavcodec audio decoders
AUDIO: 48000 Hz, 6 ch, floatle, 1536.0 kbit/16.67% (ratio: 192000->1152000)
Selected audio codec: [ffdca] afm: ffmpeg (FFmpeg DTS)
==========================================================================
AO: [dsound] 48000Hz 2ch s16le (2 bytes per sample)
Starting playback...
Movie-Aspect is 2.40:1 - prescaling to correct movie aspect.
VO: [direct3d] 1920x804 => 1930x804 Planar YV12
ANS_LENGTH=6951.79
ANS_TIME_POSITION=0.0
ANS_TIME_POSITION=0.0
ANS_TIME_POSITION=0.5
ANS_TIME_POSITION=0.5
ANS_TIME_POSITION=0.8
ANS_TIME_POSITION=0.8
ANS_TIME_POSITION=1.2
ANS_TIME_POSITION=1.2
ANS_TIME_POSITION=1.6
ANS_TIME_POSITION=1.6
ANS_TIME_POSITION=2.0
ANS_TIME_POSITION=2.0
ANS_TIME_POSITION=2.3
ANS_TIME_POSITION=2.3
ANS_TIME_POSITION=2.7
ANS_TIME_POSITION=2.7
ANS_TIME_POSITION=3.0
ANS_TIME_POSITION=3.0
ANS_TIME_POSITION=3.4
ANS_TIME_POSITION=3.4
ANS_TIME_POSITION=3.8
ANS_TIME_POSITION=3.8
ANS_TIME_POSITION=4.1
ANS_TIME_POSITION=4.1
ANS_TIME_POSITION=4.5
ANS_TIME_POSITION=4.5
ANS_TIME_POSITION=4.8
ANS_TIME_POSITION=4.8
ANS_TIME_POSITION=5.2
ANS_TIME_POSITION=5.2
ANS_TIME_POSITION=5.5
ANS_TIME_POSITION=5.5
ANS_TIME_POSITION=5.9
ANS_TIME_POSITION=5.9
ANS_TIME_POSITION=6.2
ANS_TIME_POSITION=6.2
ANS_TIME_POSITION=6.6
ANS_TIME_POSITION=6.6
ANS_TIME_POSITION=7.0
ANS_TIME_POSITION=7.0
ANS_TIME_POSITION=7.3
ANS_TIME_POSITION=7.3
ANS_TIME_POSITION=7.7
ANS_TIME_POSITION=7.7
ANS_TIME_POSITION=8.0
ANS_TIME_POSITION=8.0

Exiting... (Quit)

Exiting... (Quit)

Source file specifications:

General
Unique ID : 238405817789891892579987371665345489060 (0xB35B4A53B500473887673A224DE028A4)
Complete name : C:\Users\XXX\Perso\Video.mkv
Format : Matroska
Format version : Version 4 / Version 2
File size : 9.31 GiB
Duration : 1 h 55 min
Overall bit rate : 11.5 Mb/s
Encoded date : UTC 2016-10-21 08:58:25
Writing application : mkvmerge v9.4.2 ('So High') 64bit
Writing library : libebml v1.3.4 + libmatroska v1.4.5
IsTruncated : Yes

Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 7 frames
Codec ID : V_MPEG4/ISO/AVC
Duration : 1 h 55 min
Bit rate : 10 000 kb/s
Width : 1 920 pixels
Height : 804 pixels
Display aspect ratio : 2.40:1
Frame rate mode : Constant
Frame rate : 24.000 FPS
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.270
Stream size : 7.91 GiB (85%)
Writing library : x264 core 148 r2665 a01e339
Encoding settings : cabac=1 / ref=7 / deblock=1:0:0 / analyse=0x3:0x133 / me=tesa / subme=7 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=0 / me_range=16 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=1 / chroma_qp_offset=-2 / threads=8 / lookahead_threads=4 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=10 / b_pyramid=0 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=10000 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=62500 / vbv_bufsize=62500 / nal_hrd=none / filler=0 / ip_ratio=1.40 / aq=1:1.00
Default : Yes
Forced : No

Audio
ID : 2
Format : DTS
Format/Info : Digital Theater Systems
Mode : 16
Format settings, Endianness : Big
Codec ID : A_DTS
Duration : 1 h 55 min
Bit rate mode : Constant
Bit rate : 1 509 kb/s
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 kHz
Frame rate : 93.750 FPS (512 spf)
Bit depth : 24 bits
Compression mode : Lossy
Stream size : 1.22 GiB (13%)
Title : Swedish DTS
Language : Swedish
Default : No
Forced : No

Text
ID : 3
Format : UTF-8
Codec ID : S_TEXT/UTF8
Codec ID/Info : UTF-8 Plain Text
Title : FULL FR
Language : French
Default : Yes
Forced : Yes

Menu
00:00:00.000 : en:00:00:00.000
00:09:59.875 : en:00:09:59.875
00:19:59.708 : en:00:19:59.708
00:29:59.792 : en:00:29:59.792
00:39:59.917 : en:00:39:59.917
00:50:00.000 : en:00:50:00.000
00:59:59.625 : en:00:59:59.625
01:09:59.750 : en:01:09:59.750
01:19:59.542 : en:01:19:59.542
01:29:59.708 : en:01:29:59.708
01:39:59.750 : en:01:39:59.750
01:49:59.625 : en:01:49:59.625

Type of destination file:
Video:
Rate mode: 2-Pass
Format: H.264
Audio:
Format: LC-AAC
Container: MP4

Do you need any other information?
And do you know how to fix that problem?

Thank you,
Pierre

Post Reply