[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 257: mysqli_fetch_assoc(): Couldn't fetch mysqli_result
[phpBB Debug] PHP Warning: in file [ROOT]/phpbb/db/driver/mysqli.php on line 319: mysqli_free_result(): Couldn't fetch mysqli_result
HandBrake • Anamorphic question, a few DVD's behave differently
Page 1 of 1

Anamorphic question, a few DVD's behave differently

Posted: Sat Jul 26, 2008 5:17 am
by jasonrit
Hello,

I'm a frequent user of HB. I thought I understood the Anamorphic Guide, until I saw a few situations like the following. Can someone help me understand plz?

As per the guide, I always thought the Output: dimension would be wider when anamorphic is checked. It almost always is. But in about 1 of 20 cases (usually older movies), choosing anamorphic will result in a smaller output width.

Example: Primal Fear (NTSC)

Non-anamorphic::
output: 640 x 352
file size = 2,595,595,598

Anamorphic: (strict)
output: 638 x 352
file size = 2,595,688,616

So my questions are

1. Why does this example go from 640 --> 638?

2. Why did the disk space go up, when the dimensions decreased? This isn't always the case with this type of dvd, though. Is this the divide by 16 issue with strict anamorphic?

3. Is non-anamorphic giving us better quality in this case? Judging by the dimension size only. (doesn't matter much, just curious).

Thanks guys!

Re: Anamorphic question, a few DVD's behave differently

Posted: Sat Jul 26, 2008 6:19 pm
by jbrjake
Those older sources aren't anamorphic widescreen. They're fullscreen, with lots of letterboxing.

1: Cropping. Strict anamorphic crops down to the visible frame with no scaling. Non-anamorphic scales to the nearest mod16 dimensions.
2: Yes.
3: Yes, barely, for average bitrate encoding, no for constant quality encoding.

Re: Anamorphic question, a few DVD's behave differently

Posted: Sat Aug 16, 2008 4:07 am
by Eug
Is Handbrake 0.9.2 just misreporting the source and output resolution here? Or am I just misunderstanding how the data should be read? This is Sling Blade, a letterboxed (presumably) 640x480 title, with my "Strict" anamorphic setting chosen (because that's part of my own personal preset), and the width slightly adjusted with custom cropping of an extra 2 pixels:

Image

Source: 720 x 480
Output: 714 x 350
Anamorphic: 634 x 350

Image

You'll note that the horizontal crop is 6, and the vertical crop is 130. (The Handbrake default crop is 4 horizontal and 130 vertical.)

640 - 6 = 634, and 480 -130 = 350.

Does leaving it with this "Strict" anamorphic setting give me the exact same result as just putting it on non-anamorphic 634 x 350? Cuz it doesn't seem to be the case. One thing to note is that switching it to non-anamorphic from here sometimes gives it a default distorted resolution of 714 x 350 for some strange reason. Then to get the right resolution with the non-anamorphic setting, I have to manually reduce the width to 634, which is why I had left it with the other setting.

However, this is what Quicktime reports with the final output file, if I encode this non-anamorphic title with "Strict" anamorphic:

H.264 Decoder, 714 x 350 (635 x 350), Millions

I'm confused. Is the file actually 714x350 which Quicktime is reducing back down to the proper size, or is it just reporting incorrect information given to it by the encoder? VLC claims the file is native 714x350, but then proceeds to display it with the correct aspect ratio, at 714x394.

Here is a test encode at 716x350 Strict Anamorphic = 636x350:

Code: Select all

[00:38:56] thread b00c5000 started ("work")
[00:38:56] 2 job(s) to process
[00:38:56] starting job
[00:38:56]  + device /dev/disk1
[00:38:56]  + title 1, chapter(s) 5 to 5
[00:38:56]  + 720x480 -> 716x350, crop 66/64/2/2
[00:38:56]  + filters
[00:38:56]    + Detelecine (pullup) (default settings)
[00:38:56]  + video frame rate: 29.970 fps
[00:38:56]  + video bitrate 2500 kbps, pass -1
[00:38:56]  + PixelRatio: 1, width:716, height: 350
[00:38:56]  + encoder x264
[00:38:56]  + subtitle 20bd, English
[00:38:56]  + audio 160 kbps, 48000 Hz
[00:38:56]  + encoder faac
[00:38:56] thread b0557000 started ("reader")
[00:38:56]  + output: /Users/eug/Desktop/SLING_BLADE.m4v
[00:38:56] thread b05fb000 started ("muxer")
[00:38:56] thread b067d000 started ("MPEG-2 decoder (libmpeg2)")
[00:38:56] thread b0803000 started ("Renderer")
[00:38:56] encx264: keyint-min: 30, keyint-max: 300
[00:38:56] encx264: encoding with stored aspect 8/9
[00:38:56] encx264: opening libx264 (pass -1)
x264 [warning]: width or height not divisible by 16 (716x350), compression will suffer.
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64 
[00:38:56] thread b0885000 started ("H.264/AVC encoder (libx264)")
[00:38:56] thread b0907000 started ("Subtitle decoder")
[00:38:56] sync: expecting 3269 video frames
[00:39:02] dvd: Beginning of Cell (4) at block 431786
[00:39:03] macgui: Using preset: Custom
[00:39:24] dvd: End of Cell (4) at block 455095
[00:39:24] dvd: Beginning of Cell (5) at block 455273
[00:39:24] dvd: Chapter Break Cell Found
[00:39:24] reader: end of chapter 5 (media 5) reached at media chapter 6
[00:39:24] reader: done
[00:39:24] thread b0557000 exited ("reader")
[00:39:24] sync: got 0 frames, 3269 expected
[00:39:24] thread b0885000 exited ("H.264/AVC encoder (libx264)")
[00:39:24] thread b067d000 exited ("MPEG-2 decoder (libmpeg2)")
[00:39:24] thread b067d000 joined ("MPEG-2 decoder (libmpeg2)")
[00:39:24] thread b0907000 exited ("Subtitle decoder")
[00:39:24] thread b0803000 exited ("Renderer")
[00:39:24] thread b0803000 joined ("Renderer")
[00:39:24] render: lost time: 0 (0 frames)
[00:39:24] render: gained time: 0 (0 frames) (0 not accounted for)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] thread b0885000 joined ("H.264/AVC encoder (libx264)")
x264 [info]: final ratefactor: 14.27
[00:39:24] thread b0907000 joined ("Subtitle decoder")
[00:39:24] thread b0557000 joined ("reader")
[00:39:24] thread b05fb000 exited ("muxer")
[00:39:24] thread b05fb000 joined ("muxer")
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] fifo_close: trashing 0 buffer(s)
[00:39:24] Subtitle stream 0x20bd 'English': 40 hits (0 forced)
[00:39:24] Freed 1 buffers of size 512
[00:39:24] Freed 0 buffers of size 1024
[00:39:24] Freed 5 buffers of size 2048
[00:39:24] Freed 0 buffers of size 4096
[00:39:24] Freed 0 buffers of size 8192
[00:39:24] Freed 0 buffers of size 16384
[00:39:24] Freed 0 buffers of size 32768
[00:39:24] Freed 1 buffers of size 518400
[00:39:24] Allocated 529152 bytes of buffers on this pass and Freed 529152 bytes, 0 bytes leaked
[00:39:24] starting job
[00:39:24]  + device /dev/disk1
[00:39:24]  + title 1, chapter(s) 5 to 5
[00:39:24]  + 720x480 -> 716x350, crop 66/64/2/2
[00:39:24]  + filters
[00:39:24]    + Detelecine (pullup) (default settings)
[00:39:24]  + video frame rate: 29.970 fps
[00:39:24]  + video bitrate 2500 kbps, pass 0
[00:39:24]  + PixelRatio: 1, width:716, height: 350
[00:39:24]  + encoder x264
[00:39:24]    + x264 options: level=30:cabac=0:ref=1:analyse=all:me=umh:subq=6:no-fast-pskip=1:trellis=1
[00:39:24]  + audio 160 kbps, 48000 Hz
[00:39:24]  + encoder faac
[00:39:24]    + 80bd, English (AC3) (Dolby Surround)
[00:39:24]      + Requested mixdown: Dolby Pro Logic II (HB_AMIXDOWN_DOLBYPLII)
[00:39:24]      + Actual mixdown: Dolby Surround (HB_AMIXDOWN_DOLBY)
[00:39:24]    + 80bd, English (AC3) (Dolby Surround)
[00:39:24]      + Requested mixdown: AC-3 Pass-through (HB_AMIXDOWN_AC3)
[00:39:24]      + Actual mixdown: AC-3 Pass-through (HB_AMIXDOWN_AC3)
[00:39:24] thread b0557000 started ("reader")
[00:39:24]  + output: /Users/eug/Desktop/SLING_BLADE.m4v
[00:39:24] thread b05fb000 started ("muxer")
[00:39:24] thread b067d000 started ("MPEG-2 decoder (libmpeg2)")
[00:39:24] thread b0803000 started ("Renderer")
[00:39:24] encx264: keyint-min: 30, keyint-max: 300
[00:39:24] encx264: encoding with stored aspect 8/9
[00:39:24] encx264: opening libx264 (pass 0)
x264 [warning]: width or height not divisible by 16 (716x350), compression will suffer.
x264 [info]: using SAR=8/9
x264 [info]: using cpu capabilities: MMX MMXEXT SSE SSE2 SSE3 SSSE3 Cache64 
[00:39:24] thread b0885000 started ("H.264/AVC encoder (libx264)")
No accelerated IMDCT transform found
[00:39:24] thread b0907000 started ("AC3 decoder")
[00:39:24] thread b0989000 started ("AAC encoder (libfaac)")
No accelerated IMDCT transform found
[00:39:24] thread b0a84000 started ("AC3 decoder")
[00:39:24] sync: expecting 3269 video frames
[00:39:25] dvd: Beginning of Cell (4) at block 431786
[00:39:25] sync: first pts is 149078545
[00:39:25] Sync: Audio PTS (149060136) < Video PTS (149078545) by greater than 100ms, trashing audio to reconverge
[00:39:25] Sync: Audio back in Sync at PTS 149071656
[00:39:25] Sync: Audio PTS (149060136) < Video PTS (149078545) by greater than 100ms, trashing audio to reconverge
[00:39:25] Sync: Audio back in Sync at PTS 149071656
[00:39:25] About to add iPod atom
[00:39:25] Disabled extra audio track 2
[00:39:26] macgui: Using preset: Custom
[00:41:24] dvd: End of Cell (4) at block 455095
[00:41:25] dvd: Beginning of Cell (5) at block 455273
[00:41:25] dvd: Chapter Break Cell Found
[00:41:25] reader: end of chapter 5 (media 5) reached at media chapter 6
[00:41:25] reader: done
[00:41:25] thread b0557000 exited ("reader")
[00:41:38] sync: got 3233 frames, 3269 expected
[00:41:39] thread b0907000 exited ("AC3 decoder")
[00:41:39] thread b0a84000 exited ("AC3 decoder")
[00:41:39] thread b0885000 exited ("H.264/AVC encoder (libx264)")
[00:41:39] thread b067d000 exited ("MPEG-2 decoder (libmpeg2)")
[00:41:39] thread b067d000 joined ("MPEG-2 decoder (libmpeg2)")
[00:41:39] thread b0989000 exited ("AAC encoder (libfaac)")
[00:41:39] thread b0803000 exited ("Renderer")
[00:41:39] thread b0803000 joined ("Renderer")
[00:41:39] render: lost time: 0 (0 frames)
[00:41:39] render: gained time: 0 (0 frames) (0 not accounted for)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] thread b0885000 joined ("H.264/AVC encoder (libx264)")
x264 [info]: slice I:23    Avg QP:12.78  size: 57899  PSNR Mean Y:49.64 U:51.77 V:52.22 Avg:50.28 Global:50.03
x264 [info]: slice P:3210  Avg QP:15.49  size: 10134  PSNR Mean Y:46.72 U:49.16 V:50.03 Avg:47.47 Global:47.30
x264 [info]: mb I  I16..4: 31.6%  0.0% 68.4%
x264 [info]: mb P  I16..4:  3.3%  0.0%  3.2%  P16..4: 53.9% 22.4%  4.2%  0.4%  0.2%    skip:12.4%
x264 [info]: final ratefactor: 15.39
x264 [info]: SSIM Mean Y:0.9852756
x264 [info]: PSNR Mean Y:46.741 U:49.174 V:50.050 Avg:47.487 Global:47.314 kb/s:2511.09
[00:41:39] thread b0907000 joined ("AC3 decoder")
[00:41:39] thread b0989000 joined ("AAC encoder (libfaac)")
[00:41:39] thread b0a84000 joined ("AC3 decoder")
[00:41:39] thread b0557000 joined ("reader")
[00:41:39] mux: file size, 38662308 bytes
[00:41:39] mux: track 0, 33860797 bytes, 2511.13 kbps
[00:41:39] mux: video bitrate error, +150037 bytes
[00:41:39] mux: track 1, 2155132 bytes, 159.83 kbps
[00:41:39] mux: track 2, 2588928 bytes, 192.00 kbps
[00:41:39] mux: overhead, 4.93 bytes per frame
[00:41:39] thread b05fb000 exited ("muxer")
[00:41:39] thread b05fb000 joined ("muxer")
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 2 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 0 buffer(s)
[00:41:39] fifo_close: trashing 3 buffer(s)
[00:41:39] Freed 0 buffers of size 512
[00:41:39] Freed 18 buffers of size 1024
[00:41:39] Freed 2048 buffers of size 2048
[00:41:39] Freed 0 buffers of size 4096
[00:41:39] Freed 0 buffers of size 8192
[00:41:39] Freed 36 buffers of size 16384
[00:41:39] Freed 0 buffers of size 32768
[00:41:39] Freed 57 buffers of size 518400
[00:41:39] Allocated 34351360 bytes of buffers on this pass and Freed 34351360 bytes, 0 bytes leaked
[00:41:39] thread b00c5000 exited ("work")
[00:41:39] thread b00c5000 joined ("work")
[00:41:39] libhb: work result = 0

Re: Anamorphic question, a few DVD's behave differently

Posted: Thu Sep 25, 2008 11:04 pm
by jasonrit
Your reply really helped my understanding, thanks very much.