[svn6239] auto resize of resoltuion not working

Archive of historical bug reports.
Please use the GitHub link above to report issues.
Forum rules
*******************************
Please be aware we are now using GitHub for issue tracking and feature requests.
- This section of the forum is now closed to new topics.

*******************************
Post Reply
ios
Enlightened
Posts: 103
Joined: Sun Jun 06, 2010 1:48 am

[svn6239] auto resize of resoltuion not working

Post by ios »

auto resize of resolution not working on windows CLI version svn6239

my command line only has the height as input

Code: Select all

-l 360
in old versions it automatically calculate the width depending on the aspect ratio but now it output this instead

Code: Select all

+ source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280* 360
activity log

Code: Select all

C:\cli>HandbrakeCLI -i "C:\cli\IC.mkv"  -f mkv -o "C:\cli\IC-OUT.mkv" -v -q 26 -
e x264 --encoder-preset medium -E fdk_haac -B 32 -l 360 -s 1,2,3,4,5,6,7,8,9 --s
ubtitle-default -a 1,2,3,4,5,6,7,8,9
[12:54:18] hb_init: starting libhb thread
HandBrake svn6239 (2014072201) - MinGW x86_64 - http://handbrake.fr
2 CPUs detected
Opening C:\cli\IC.mkv...
[12:54:18] CPU:
[12:54:18]  - logical processor count: 2
[12:54:18] OpenCL device #1: Advanced Micro Devices, Inc. Scrapper
[12:54:18]  - OpenCL version: 1.2 AMD-APP (1348.4)
[12:54:18]  - driver version: 1348.4 (VM)
[12:54:18]  - device type:    GPU
[12:54:18]  - supported:      YES
[12:54:18] Intel Quick Sync Video support: no
[12:54:18] hb_scan: path=C:\cli\IC.mkv, title_index=1
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\cli\IC.mkv/BDM
V/index.bdmv
libbluray/bdnav/index_parse.c:162: indx_parse(): error opening C:\cli\IC.mkv/BDM
V/BACKUP/index.bdmv
libbluray/bluray.c:2182: nav_get_title_list(C:\cli\IC.mkv) failed
[12:54:18] bd: not a bd - trying as a stream/file instead
libdvdnav: Using dvdnav version 5.0.0
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
[12:54:18] dvd: not a dvd - trying as a stream/file instead
Input #0, matroska,webm, from 'C:\cli\IC.mkv':
  Duration: 00:02:45.86, start: 0.000000, bitrate: 2532 kb/s
    Stream #0.0(eng): Video: h264 (High 10), yuv420p10le, 1280x720, PAR 1:1 DAR
16:9, 29.97 fps, 1k tbn, 59.94 tbc (default)
    Stream #0.1(jpn): Audio: aac, 44100 Hz, stereo, fltp (default)
    Metadata:
      title           : Commie
    Stream #0.2(eng): Subtitle: ass (default)
    Stream #0.3: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : ArchitectsDaughter_0.ttf
      mimetype        : application/x-truetype-font
    Stream #0.4: Attachment: [0][0][0][0] / 0x0000
    Metadata:
      filename        : GrinchedRegular.ttf
      mimetype        : application/x-truetype-font
[12:54:18] scan: decoding previews for title 1
[12:54:18] scan: audio 0x1: aac, rate=44100Hz, bitrate=1 Japanese (AAC) (2.0 ch)

Scanning title 1 of 1, preview 7, 70.00 %[12:54:19] scan: 10 previews, 1280x720,
 29.970 fps, autocrop = 0/0/0/0, aspect 16:9, PAR 1:1
[12:54:19] libhb: scan thread found 1 valid title(s)
+ title 1:
  + stream: C:\cli\IC.mkv
  + duration: 00:02:45
  + size: 1280x720, pixel aspect: 1/1, display aspect: 1.78, 29.970 fps
  + autocrop: 0/0/0/0
  + support opencl: yes
  + support hwd: no
  + chapters:
    + 1: cells 0->0, 0 blocks, duration 00:02:45
  + audio tracks:
    + 1, Japanese (AAC) (2.0 ch) (iso639-2: jpn)
  + subtitle tracks:
    + 1, English (iso639-2: eng) (Text)(SSA)
Warning: Could not find audio track '2', skipped
Warning: Could not find audio track '3', skipped
Warning: Could not find audio track '4', skipped
Warning: Could not find audio track '5', skipped
Warning: Could not find audio track '6', skipped
Warning: Could not find audio track '7', skipped
Warning: Could not find audio track '8', skipped
Warning: Could not find audio track '9', skipped
Warning: Could not find subtitle track '2', skipped
Warning: Could not find subtitle track '3', skipped
Warning: Could not find subtitle track '4', skipped
Warning: Could not find subtitle track '5', skipped
Warning: Could not find subtitle track '6', skipped
Warning: Could not find subtitle track '7', skipped
Warning: Could not find subtitle track '8', skipped
Warning: Could not find subtitle track '9', skipped
[12:54:19] 1 job(s) to process
[12:54:19] starting job
[12:54:19] work: mixdown not specified, track 1 setting mixdown Stereo
[12:54:19] sync: expecting 4970 video frames
[12:54:19] job configuration:
[12:54:19]  * source
[12:54:19]    + C:\cli\IC.mkv
[12:54:19]    + title 1, chapter(s) 1 to 1
[12:54:19]    + container: matroska,webm
[12:54:19]    + data rate: 2532 kbps
[12:54:19]  * destination
[12:54:19]    + C:\cli\IC-OUT.mkv
[12:54:19]    + container: Matroska (libavformat)
[12:54:19]  * video track
[12:54:19]    + decoder: h264
[12:54:19]    + filters
[12:54:19]      + Framerate Shaper (0:27000000:900900)
[12:54:19]        + frame rate: same as source (around 29.970 fps)
[12:54:19]      + Crop and Scale (1280:360:0:0:0:0)
[12:54:19]        + source: 1280 * 720, crop (0/0/0/0): 1280 * 720, scale: 1280
* 360
[12:54:19]    + dimensions: 1280 * 360, mod 0
[12:54:19]    + encoder: H.264 (libx264)
[12:54:19]      + preset:  medium
[12:54:19]      + quality: 26.00 (RF)
[12:54:19]  * subtitle track 1, English (track 2, id 0x2) Text [SSA] -> Passthro
ugh, Default
[12:54:19]  * audio track 1
[12:54:19]    + decoder: Japanese (AAC) (2.0 ch) (track 1, id 0x1)
[12:54:19]      + samplerate: 44100 Hz
[12:54:19]    + mixdown: Stereo
[12:54:19]    + dither: triangular
[12:54:19]    + encoder: HE-AAC (libfdk_aac)
[12:54:19]      + bitrate: 32 kbps, samplerate: 44100 Hz
[12:54:19] reader: first SCR 0 id 0x0 DTS 0
[12:54:19] encx264: min-keyint: 30, keyint: 300
[12:54:19] encx264: encoding at constant RF 26.000000
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 SSE4.2 AVX XOP FMA4 FMA
3 LZCNT BMI1
x264 [info]: profile High, level 3.1
Encoding: task 1 of 1, 98.65 % (45.44 fps, avg 40.05 fps, ETA 00h00m02s)[12:56:2
1] reader: done. 1 scr changes
Encoding: task 1 of 1, 100.00 % (45.44 fps, avg 40.05 fps, ETA 00h00m02s)[12:56:
22] work: average encoding speed for job is 40.054817 fps
[12:56:22] sync: got 4971 frames, 4970 expected
[12:56:22] render: lost time: 0 (0 frames)
[12:56:22] render: gained time: 0 (0 frames) (0 not accounted for)
[12:56:22] h264-decoder done: 4971 frames, 0 decoder errors, 0 drops
x264 [info]: frame I:46    Avg QP:22.45  size: 25836
x264 [info]: frame P:2078  Avg QP:25.58  size:  3428
x264 [info]: frame B:2847  Avg QP:29.46  size:   774
x264 [info]: consecutive B-frames: 19.7%  9.1%  8.5% 62.8%
x264 [info]: mb I  I16..4: 22.8% 53.4% 23.8%
x264 [info]: mb P  I16..4:  2.7%  6.8%  1.2%  P16..4: 18.6%  3.7%  2.1%  0.0%  0
.0%    skip:64.9%
x264 [info]: mb B  I16..4:  0.3%  0.8%  0.1%  B16..8: 10.1%  1.0%  0.2%  direct:
 0.5%  skip:86.9%  L0:44.8% L1:51.7% BI: 3.5%
x264 [info]: 8x8 transform intra:62.4% inter:74.9%
x264 [info]: coded y,uvDC,uvAC intra: 43.3% 54.3% 25.9% inter: 3.2% 3.5% 0.4%
x264 [info]: i16 v,h,dc,p: 22% 47%  6% 25%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 11% 33% 21%  4%  5%  3% 12%  3%  8%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 15% 37% 14%  4%  6%  4% 11%  3%  7%
x264 [info]: i8c dc,h,v,p: 55% 29%  7%  8%
x264 [info]: Weighted P-Frames: Y:11.6% UV:5.1%
x264 [info]: ref P L0: 60.0%  9.2% 16.7% 13.7%  0.4%
x264 [info]: ref B L0: 78.0% 15.1%  6.9%
 E[nicnofdoi]n:g :ref B L1: 92.7%  7.3%
 xt2a6s4k  [1i noffo ]1:,  kb/s:507.26
100.00 % (45.44 fps, avg 40.05 fps, ETA 00h00m02s)[12:56:22] aac-decoder done: 0
 frames, 0 decoder errors, 0 drops
[12:56:22] mux: track 0, 4971 frames, 10515265 bytes, 507.27 kbps, fifo 8192
[12:56:22] mux: track 1, 3571 frames, 663667 bytes, 32.02 kbps, fifo 4096
[12:56:22] mux: track 2, 35 frames, 1941 bytes, 0.09 kbps, fifo 64
[12:56:22] libhb: work result = 0

Encode done!

HandBrake has exited.

C:\cli>pause
Press any key to continue . . .
User avatar
JohnAStebbins
HandBrake Team
Posts: 5724
Joined: Sat Feb 09, 2008 7:21 pm

Re: [svn6239] auto resize of resoltuion not working

Post by JohnAStebbins »

It was probably a bug in the previous version of HandBrake then. In order to keep the display aspect ratio, you need to add the option "--keep-display-aspect". This option has always been there but may have not been handled right in the past.
ios
Enlightened
Posts: 103
Joined: Sun Jun 06, 2010 1:48 am

Re: [svn6239] auto resize of resoltuion not working

Post by ios »

will the old behavior come back? or i have to add --keep-display-aspect everytime now? the FAQ also have to be change if that is the case because it includes this
Picture Settings

-w or --width: Enter your desired output width here in pixels. The default is 720 for widescreen, 640 for fullscreen. If you do not specify a height as well, it will calculate one that will preserve the film's aspect ratio.
-l or --height: Enter your desired output height here in pixels. If you do not specify a width as well, it will calculate one that will preserve the film's aspect ratio. The default behavior is to use a height that preserves the film's aspect ratio, given the width. If you specify neither -w nor -l, by default your output will be approximately 720*400 for 1.78:1, 720*386 for 1.85:1, 720*304 for 2.35:1, and 640*480 for 1.33:1.

source: https://trac.handbrake.fr/wiki/CLIGuide
User avatar
JohnAStebbins
HandBrake Team
Posts: 5724
Joined: Sat Feb 09, 2008 7:21 pm

Re: [svn6239] auto resize of resoltuion not working

Post by JohnAStebbins »

ios wrote:will the old behavior come back? or i have to add --keep-display-aspect everytime now? the FAQ also have to be change if that is the case because it includes this
Good question. It used to be that keep-display-aspect was implicit for everything *except* custom anamorphic mode. The only way to force it to *not* keep aspect was to set both width and height on the command line. Custom anamorphic was a relatively recent addition to the resolution modes and required the ability to explicitely tell it to keep the display aspect. So when cleaning up and consolidating some code, I made keep-display-aspect apply equally to everything. I probably should have thought that through more. It makes sense that the only way to change the display aspect would be custom anamorphic. So yes, I think I'll bring back the old behavior. It was sane.
ios
Enlightened
Posts: 103
Joined: Sun Jun 06, 2010 1:48 am

Re: [svn6239] auto resize of resoltuion not working

Post by ios »

@JohnAStebbins

thank you sir, i will wait for the return of the old behavior then
Post Reply