I will give log results for both versions of HB applied to the identical input file, a 480x480 mpeg2 with a display aspect ratio of 4:3 (per media info for example). Here is the command line:
Code: Select all
"%HBFolder%handBrakecli.exe" -i %mpgName% -o %mp4Name% -e ffmpeg -E faac -w 640 -Y 480 -b 900 -B 128 -R 48 -v
Here is the log output for HB 0.9.2:
And here is the log file for HB 0.9.3:[17:34:23] hb_init: checking cpu count
[17:34:23] hb_init: starting libhb thread
[17:34:23] thread ed36b0 started ("libhb")
HandBrake 0.9.2 (2008022300) - http://handbrake.m0k.org/
2 CPUs detected
Opening I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbean'' (Recorded...
, CSPAN).mpg...
[17:34:23] hb_scan: path=I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbe
an'' (Recorded..., CSPAN).mpg, title_index=1
[17:34:23] thread ed3858 started ("scan")
[17:34:23] scan: trying to open with libdvdread
ERROR: dvd: DVDOpen failed (I:\videos\adscan\Lost Worlds - ''Pirates of the Cari
bbean'' (Recorded..., CSPAN).mpg)[17:34:23] file is MPEG Program Stream
[17:34:23] hb_sample_pts: pts 216198 at 1449984
[17:34:23] hb_sample_pts: pts 561543 at 4311040
[17:34:23] hb_sample_pts: pts 938420 at 7153664
[17:34:23] hb_sample_pts: pts 1304786 at 9984000
[17:34:23] hb_sample_pts: pts 1641122 at 12865536
[17:34:23] hb_sample_pts: pts 2010491 at 15693824
[17:34:23] hb_sample_pts: pts 2427908 at 18538496
[17:34:23] hb_sample_pts: pts 2794274 at 21393408
[17:34:23] hb_sample_pts: pts 3172652 at 24260608
[17:34:23] hb_sample_pts: pts 3505985 at 27099136
[17:34:23] hb_sample_pts: pts 3890369 at 29964288
[17:34:23] hb_sample_pts: pts 4193672 at 32788480
[17:34:23] hb_sample_pts: pts 4524002 at 35674112
[17:34:23] hb_sample_pts: pts 4914392 at 38492160
[17:34:23] hb_sample_pts: pts 5331809 at 41349120
[17:34:23] hb_sample_pts: pts 5693670 at 44210176
[17:34:23] add_audio_to_title: added MPEG audio stream 0xc0
[17:34:23] scan: decoding previews for title 1
[17:34:23] scan: preview 1
[17:34:23] scan: preview 2
[17:34:23] scan: preview 3
[17:34:23] scan: preview 4
[17:34:23] scan: preview 5
[17:34:23] scan: preview 6
[17:34:23] scan: preview 7
[17:34:23] scan: preview 8
[17:34:23] scan: preview 9
[17:34:23] scan: preview 10
[17:34:23] scan: 480x480, 29.970 fps, autocrop = 58/56/8/4
[17:34:23] hb_stream_update_audio: id=c0, lang=Unknown (MPEG) (2.0 ch), 3cc=und,
rate = 0, bitrate = 0, flags = 0x0 (0)
[17:34:23] scan: title (0) job->width:464, job->height:272
[17:34:23] thread ed3858 exited ("scan")
Scanning title 1[17:34:23] thread ed3858 joined ("scan")
...
[17:34:23] libhb: scan thread found 1 valid title(s)
+ title 1:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ duration: 00:01:04
+ size: 480x480, aspect: 1.33, 29.970 fps
+ autocrop: 58/56/8/4
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:01:04
+ audio tracks:
+ 1, Unknown (MPEG) (2.0 ch)
+ subtitle tracks:
[17:34:23] thread f08e88 started ("work")
[17:34:23] 1 job(s) to process
[17:34:23] starting job
[17:34:23] + device I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbean''
(Recorded..., CSPAN).mpg
[17:34:23] + title 1, chapter(s) 1 to 1
[17:34:23] + 480x480 -> 640x368, crop 58/56/8/4
[17:34:23] + video frame rate: 29.970 fps
[17:34:23] + video bitrate 900 kbps, pass 0
[17:34:23] + PixelRatio: 0, width:640, height: 368
[17:34:23] + encoder FFmpeg
[17:34:23] + audio 128 kbps, 48000 Hz
[17:34:23] + encoder faac
[17:34:23] + c0, Unknown (MPEG) (2.0 ch)
[17:34:23] + Requested mixdown: Dolby Pro Logic II (HB_AMIXDOWN_DOLBYPLII)
[17:34:23] + Actual mixdown: Stereo (HB_AMIXDOWN_STEREO)
[17:34:23] thread f09480 started ("reader")
ERROR: dvd: DVDOpen failed (I:\videos\adscan\Lost Worlds - ''Pirates of the Cari
bbean'' (Recorded..., CSPAN).mpg)[17:34:23] + output: J:\Videos\MP4\Lost Worlds
- ''Pirates of the Caribbean'' (Recorded..., CSPAN).mp4
[17:34:23] thread f2d4b8 started ("muxer")
[17:34:23] thread f53b28 started ("MPEG-2 decoder (libmpeg2)")
[17:34:23] thread 112a3a0 started ("Renderer")
[17:34:23] 0.567033s: Film -> Video
[mpeg4 @ 0x873de0]removing common factors from framerate
[17:34:23] thread 150b580 started ("MPEG-4 encoder (libavcodec)")
[17:34:24] thread 1513ae8 started ("MPGA decoder (libavcodec)")
[17:34:24] thread 15d5068 started ("AAC encoder (libfaac)")
[17:34:24] sync: expecting 1974 video frames
[17:34:24] sync: first pts is 18000
Encoding: task 1 of 1, 2.33 %[17:34:24] 2.936067s: Video -> Film
Encoding: task 1 of 1, 4.00 %[17:34:25] 3.770233s: Film -> Video
Encoding: task 1 of 1, 5.12 %[17:34:25] 4.871333s: Video -> Film
Encoding: task 1 of 1, 6.53 %[17:34:25] 5.705500s: Film -> Video
Encoding: task 1 of 1, 7.80 %[17:34:26] 6.506300s: Video -> Film
Encoding: task 1 of 1, 87.54 % (88.85 fps, avg 88.40 fps, ETA 00h00m03s)[17:34:4
3] reader: done
[17:34:43] thread f09480 exited ("reader")
Encoding: task 1 of 1, 94.48 % (89.49 fps, avg 88.41 fps, ETA 00h00m01s)[17:34:4
5] 63.429833s: Film -> Video
Encoding: task 1 of 1, 97.37 % (89.49 fps, avg 88.41 fps, ETA 00h00m01s)[17:34:4
6] sync: got 1932 frames, 1974 expected
Encoding: task 1 of 1, 97.87 % (87.59 fps, avg 88.28 fps, ETA 00h00m00s)[17:34:4
6] thread 1513ae8 exited ("MPGA decoder (libavcodec)")
[17:34:46] thread 112a3a0 exited ("Renderer")
[17:34:46] thread 150b580 exited ("MPEG-4 encoder (libavcodec)")
[17:34:46] thread 15d5068 exited ("AAC encoder (libfaac)")
[17:34:46] thread f53b28 exited ("MPEG-2 decoder (libmpeg2)")
[17:34:46] thread f53b28 joined ("MPEG-2 decoder (libmpeg2)")
[17:34:46] thread 112a3a0 joined ("Renderer")
[17:34:46] render: lost time: 0 (0 frames)
[17:34:46] render: gained time: 0 (0 frames) (0 not accounted for)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] thread 150b580 joined ("MPEG-4 encoder (libavcodec)")
[17:34:46] encavcodec: closing libavcodec
[17:34:46] thread 1513ae8 joined ("MPGA decoder (libavcodec)")
[17:34:46] thread 15d5068 joined ("AAC encoder (libfaac)")
[17:34:46] thread f09480 joined ("reader")
Muxing: this may take awhile...[17:34:46] mux: file size, 8735368 bytes
[17:34:46] mux: track 0, 7670774 bytes, 951.94 kbps
[17:34:46] mux: video bitrate error, +418529 bytes
[17:34:46] mux: track 1, 1030308 bytes, 127.86 kbps
[17:34:46] mux: overhead, 6.93 bytes per frame
[17:34:46] thread f2d4b8 exited ("muxer")
[17:34:46] thread f2d4b8 joined ("muxer")
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 0 buffer(s)
[17:34:46] fifo_close: trashing 7 buffer(s)
[17:34:46] Freed 2 buffers of size 512
[17:34:46] Freed 3 buffers of size 1024
[17:34:46] Freed 2048 buffers of size 2048
[17:34:46] Freed 0 buffers of size 4096
[17:34:46] Freed 0 buffers of size 8192
[17:34:46] Freed 36 buffers of size 16384
[17:34:46] Freed 0 buffers of size 32768
[17:34:46] Freed 32 buffers of size 345600
[17:34:46] Freed 52 buffers of size 353280
[17:34:46] Allocated 34250752 bytes of buffers on this pass and Freed 34217984 b
ytes, 32768 bytes leaked
[17:34:46] thread f08e88 exited ("work")
[17:34:46] thread f08e88 joined ("work")
[17:34:46] libhb: work result = 0
Rip done!
[17:34:47] thread ed36b0 exited ("libhb")
[17:34:47] thread ed36b0 joined ("libhb")
HandBrake has exited.
HB 0.9.2 is giving me the desired result with a PAR of ~1:1 and encoded size of 640x368, which MediaInfo declares as 16:9. This displays the correct 16:9 aspect ratio when played in VLC.[17:55:45] hb_init: checking cpu count
[17:55:45] hb_init: starting libhb thread
HandBrake 0.9.3 (2008112300) - http://handbrake.fr/
2 CPUs detected
Opening I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbean'' (Recorded...
, CSPAN).mpg...
[17:55:45] hb_scan: path=I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbe
an'' (Recorded..., CSPAN).mpg, title_index=1
[17:55:45] scan: trying to open with libdvdread
[17:55:45] dvd: not a dvd - trying as a stream/file instead
[17:55:45] file is MPEG DVD Program Stream
[17:55:45] add_audio_to_title: added MPEG audio stream 0xc0
[17:55:45] scan: decoding previews for title 1
[17:55:45] scan: audio 0xc0: mp2, rate=48000Hz, bitrate=384000 Unknown (MPEG) (2
.0 ch)
[17:55:45] scan: 10 previews, 480x480, 29.970 fps, autocrop = 58/56/8/4, aspect
1:0.89, PAR 8:9
[17:55:45] scan: title (0) job->width:416, job->height:368
[17:55:45] libhb: scan thread found 1 valid title(s)
+ title 1:
+ vts 0, ttn 0, cells 0->0 (0 blocks)
+ duration: 00:01:04
+ size: 480x480, aspect: 0.89, 29.970 fps
+ autocrop: 58/56/8/4
+ chapters:
+ 1: cells 0->0, 0 blocks, duration 00:01:04
+ audio tracks:
+ 1, Unknown (MPEG) (2.0 ch)
+ subtitle tracks:
[17:55:45] 1 job(s) to process
[17:55:45] starting job
[17:55:45] Height out of bounds, scaling down to 480
[17:55:45] New dimensions 544 * 480
[17:55:45] work: sanitizing track 0 mixdown Dolby Pro Logic II to Stereo
[17:55:45] job configuration:
[17:55:45] * source
[17:55:45] + I:\videos\adscan\Lost Worlds - ''Pirates of the Caribbean'' (Rec
orded..., CSPAN).mpg
[17:55:45] + title 1, chapter(s) 1 to 1
[17:55:45] * destination
[17:55:45] + J:\Videos\MP4\Lost Worlds - ''Pirates of the Caribbean'' (Record
ed..., CSPAN).mp4
[17:55:45] + container: MPEG-4 (.mp4 and .m4v)
[17:55:45] * video track
[17:55:45] + decoder: mpeg2
[17:55:45] + bitrate 9000 kbps
[17:55:45] + frame rate: same as source (around 29.970 fps)
[17:55:45] + dimensions: 480 * 480 -> 544 * 480, crop 58/56/8/4
[17:55:45] + encoder: FFmpeg
[17:55:45] + bitrate: 900 kbps, pass: 0
[17:55:45] * audio track 0
[17:55:45] + decoder: Unknown (MPEG) (2.0 ch) (track 1, id c0)
[17:55:45] + mixdown: Stereo
[17:55:45] + encoder: faac
[17:55:45] + bitrate: 128 kbps, samplerate: 48000 Hz
[17:55:45] dvd: not a dvd - trying as a stream/file instead
[17:55:45] reader: first SCR 288
[17:55:45] mpeg2: "" (1) at frame 0 time 3003
[17:55:45] 0.400400s: Film -> Video
[17:55:45] sync: expecting 1974 video frames
[17:55:45] sync: first pts is 3003
Encoding: task 1 of 1, 2.79 %[17:55:46] 2.769433s: Video -> Film
Encoding: task 1 of 1, 3.95 %[17:55:46] 3.603600s: Film -> Video
Encoding: task 1 of 1, 5.12 %[17:55:46] 4.704700s: Video -> Film
Encoding: task 1 of 1, 6.43 %[17:55:47] 5.538867s: Film -> Video
Encoding: task 1 of 1, 7.50 %[17:55:47] 6.339667s: Video -> Film
Encoding: task 1 of 1, 93.52 % (89.34 fps, avg 86.08 fps, ETA 00h00m02s)[17:56:0
7] 63.263200s: Film -> Video
Encoding: task 1 of 1, 94.68 % (85.21 fps, avg 85.78 fps, ETA 00h00m01s)[17:56:0
7] reader: done. 0 scr changes
[17:56:07] sync: got 1902 frames, 1974 expected
[17:56:07] work: average encoding speed for job is 85.783287 fps
Muxing: this may take awhile...[17:56:08] mpeg2 done: 1903 frames00m01s)
[17:56:08] render: lost time: 0 (0 frames)
[17:56:08] render: gained time: 0 (0 frames) (0 not accounted for)
[17:56:08] mp2-decoder done: 0 frames, 0 decoder errors, 0 drops
[17:56:08] libhb: work result = 0
Rip done!
HandBrake has exited.
HB 0.9.3 is giving me an encoded size of 540x480 and MediaInfo says it is 544x480 with 1.133 aspect ratio. This displays the wrong aspect ratio when played in VLC, although I realize VLC can force difference aspect ratios.
Interesting things I note in the log data are:
1. Both versions come up with the same autocrop numbers: 58/56/8/4
2. HB 0.9.3 comes up with ..... aspect: 0.89 ...... while HB 0.9.2 says .......aspect: 1.33.... (which agrees with mediaInfo).
I know there are different aspect ratios (PAR, DAR, etc.) but I can't imagine what definition would yield 0.89 for this input. (?).
All I really want to know is how do I have to change the CLI args to get the behavior I was getting with the previous version, although I welcome learning more about what is going on also.