conversion from Hauppauge HDPVR 1212 to AppleTV

Discuss encoding for devices and presets.
Forum rules
An Activity Log is required for support requests. Please read How-to get an activity log? for details on how and why this should be provided.
Post Reply
discless
Regular User
Posts: 128
Joined: Tue Oct 21, 2008 4:47 am

conversion from Hauppauge HDPVR 1212 to AppleTV

Post by discless » Wed May 04, 2011 10:25 pm

Original file:

Code: Select all

*** MediaInfo Mac // Plain text file report
2011-05-04 15:09:15 -0700
Information for File: 20110503_163220.m2ts

General / Container Stream # 1
	Total Video Streams for this File -> 1
	Total Audio Streams for this File -> 1
	Video Codecs Used -> AVC
	Audio Codecs Used -> AC3
	File Format -> MPEG-4 Transport
	Total File Size -> 1.35 MiB
Video Stream # 1
	Codec -> AVC
	Codec (Human Name) -> Advanced Video Codec
	Codec Profile -> Main@L4.0
	Frame Width -> 1280 pixels
	Frame Height -> 720 pixels
	Frame Rate -> 59.940 fps
	Display Aspect Ratio -> 16/9
	Interlacement -> Progressive
	Codec Settings (Summary) -> CABAC / 4 Ref Frames
	Codec Settings (CABAC) -> Yes
Audio Stream # 1
	Codec -> AC3
	Audio Stream BitRate -> 448 Kbps
	Audio Stream BitRate Mode -> CBR
	Number of Audio Channels -> 6
	Audio Channel's Positions -> Front: L C R, Rear: L R, LFE
	Sampling Rate -> 48.0 KHz
	Audio Stream Delay -> 387ms
Resulting file:

Code: Select all

*** MediaInfo Mac // Plain text file report
2011-05-04 15:09:36 -0700
Information for File: xxxxxxxxxxx.m4v

General / Container Stream # 1
	Total Video Streams for this File -> 1
	Total Audio Streams for this File -> 1
	Video Codecs Used -> AVC
	Audio Codecs Used -> AAC LC
	File Format -> MPEG-4
	Play Time -> 1h 29mn
	Total File Size -> 2.37 GiB
	Total Stream BitRate -> 3785 Kbps
Video Stream # 1
	Codec -> AVC
	Codec (Human Name) -> Advanced Video Codec
	Codec (Container Code) -> avc1
	Codec Profile -> High@L3.2
	Frame Width -> 960 pixels
	Frame Height -> 544 pixels
	Frame Rate -> 59.919 fps
	Total Frames -> 322053
	Display Aspect Ratio -> 16/9
	Interlacement -> Progressive
	Codec Settings (Summary) -> 2 Ref Frames
	QF (like Gordian Knot) -> 0.115
	Codec Settings (CABAC) -> No
	Video Stream Length -> 1h 29mn 34s 786ms
	Video Stream BitRate -> 3608 Kbps
	Video Stream BitRate Mode -> VBR
	Video Stream Size -> 2.26 GiB
	Date of Original Encoding -> UTC 2011-05-04 06:03:18
Audio Stream # 1
	Codec -> A_AAC/MPEG4/LC
	Codec (Human Name) -> AAC Low Complexity
	Codec (Container Code) -> 40
	Audio Stream Length -> 1h 29mn 34s 698ms
	Audio Stream BitRate -> 165 Kbps
	Audio Stream BitRate Mode -> VBR
	Number of Audio Channels -> 2
	Audio Channel's Positions -> L R
	Sampling Rate -> 48.0 KHz
	Bit Depth -> 16 bits
	Audio Stream Size -> 105 MiB
	Date of Original Encoding -> UTC 2011-05-04 06:03:19
LOG:

Code: Select all

HandBrake Activity Log for /Users/mini/Desktop/xxxxxxg.m4v: 2011-05-03 23:03:17 -0700
Handbrake Version: 0.9.5 i386 (2011010300)

[23:03:17] macgui: Rip: Pending queue count is 0
[23:03:17] macgui: getNextPendingQueueIndex next pending encode index is:0
[23:03:17] macgui: scanning specifically for title: 1
[23:03:17] hb_scan: path=/Volumes/LaCie320/1HDPVR/xxxxxx.m2ts, title_index=1
libbluray/bdnav/index_parse.c:157: indx_parse(): error opening /Volumes/LaCie320/1HDPVR/xxxxxx.m2ts/BDMV/index.bdmv
libbluray/bluray.c:960: nav_get_title_list(/Volumes/LaCie320/1HDPVR/xxxxxx.m2ts) failed (0x18f2c00)
[23:03:17] bd: not a bd - trying as a stream/file instead
libdvdread: Using libdvdcss version 1.2.10 for DVD access
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.
GUI ERROR dialog: dvd: ifoOpen failed
GUI ERROR dialog: dvd: ifoOpen failed
[23:03:17] file is MPEG Transport Stream with 188 byte packets offset 188 bytes
[23:03:17] hb_ts_stream_find_pids - found the following PIDS
[23:03:17]     Video PIDS : 
[23:03:17]       0x1011 type H.264 (0x1b)
[23:03:17]     Audio PIDS : 
[23:03:17]       0x1100 type AC-3 (0x81)
[23:03:17] transport stream pid 0x1100 (type 0x81) may be AC-3 audio (id 0x1100)
[23:03:17] scan: decoding previews for title 1
[23:03:17] scan: audio 0x1100: AC-3, rate=48000Hz, bitrate=448000 Unknown (AC3) (5.1 ch)
[23:03:17] scan: 10 previews, 1280x720, 59.940 fps, autocrop = 4/0/0/2, aspect 16:9, PAR 1:1
[23:03:17] scan: title (0) job->width:1280, job->height:720
[23:03:17] stream: 3 good frames, 0 errors (0%)
[23:03:17] libhb: scan thread found 1 valid title(s)
[23:03:18] macgui: ScanDone state received from fQueueEncodeLibhb
[23:03:18] macgui: Preset: AppleTV
[23:03:18] macgui: processNewQueueEncode number of passes expected is: 1
[23:03:18] macgui: Start / Stop set to chapters
[23:03:18] macgui: prepareJob exiting
[23:03:18] 1 job(s) to process
[23:03:18] starting job
[23:03:18] sync: expecting 314650 video frames
[23:03:18] job configuration:
[23:03:18]  * source
[23:03:18]    + /Volumes/LaCie320/1HDPVR/xxxxxx.m2ts
[23:03:18]    + title 1, chapter(s) 1 to 1
[23:03:18]  * destination
[23:03:18]    + /Users/mini/Desktop/xxxxxx.m4v
[23:03:18]    + container: MPEG-4 (.mp4 and .m4v)
[23:03:18]      + 64-bit formatting
[23:03:18]  * video track
[23:03:18]    + decoder: h264
[23:03:18]      + bitrate 200 kbps
[23:03:18]    + frame rate: same as source (around 59.940 fps)
[23:03:18]    + loose anamorphic
[23:03:18]      + storage dimensions: 1280 * 720 -> 960 * 544, crop 4/0/0/2, mod 16
[23:03:18]      + pixel aspect ratio: 3621 / 3580
[23:03:18]      + display dimensions: 970 * 544
[23:03:18]    + encoder: x264
[23:03:18]      + options: cabac=0:ref=2:me=umh:b-pyramid=none:b-adapt=2:weightb=0:trellis=0:weightp=0:vbv-maxrate=9500:vbv-bufsize=9500
[23:03:18]      + quality: 20.00 (RF)
[23:03:18]  * audio track 0
[23:03:18]    + decoder: Unknown (AC3) (5.1 ch) (track 1, id 1100)
[23:03:18]      + bitrate: 448 kbps, samplerate: 48000 Hz
[23:03:18]    + mixdown: Dolby Pro Logic II
[23:03:18]    + encoder: ca_aac
[23:03:18]      + bitrate: 160 kbps, samplerate: 48000 Hz
[23:03:18] reader: first SCR 1499 id 4352 DTS 34834
[23:03:18] h264: "" (1) at frame 0 time 4504
[23:03:18] encx264: min-keyint: auto (59), keyint: 600
[23:03:18] encx264: encoding with stored aspect 3621/3580
[23:03:18] encx264: Encoding at constant RF 20.000000
x264 [info]: using SAR=3621/3580
x264 [info]: using cpu capabilities: MMX2 SSE2Fast SSSE3 Cache64
x264 [info]: profile High, level 3.2
No accelerated IMDCT transform found
[23:03:18] sync: first pts is 4504
[03:00:31] stream: error near frame 145920: next_packet: sync lost @ 2104075884, regained after 72 bytes
[03:00:31] sync: adding 128 ms of silence to audio 4352  start 219110400, next 219098880
[03:29:15] stream: error near frame 160886: next_packet: sync lost @ 2332632632, regained after 72 bytes
[05:57:15] stream: error near frame 242358: next_packet: sync lost @ 3582973328, regained after 72 bytes
[05:57:15] sync: adding 128 ms of silence to audio 4352  start 363925440, next 363913920
[06:18:30] stream: error near frame 254228: next_packet: sync lost @ 3761837576, regained after 72 bytes
[06:18:31] sync: adding 128 ms of silence to audio 4352  start 381767040, next 381755520
[06:43:21] stream: error near frame 266333: next_packet: sync lost @ 3948029428, regained after 36 bytes
[07:02:45] stream: error near frame 277181: next_packet: sync lost @ 4116620720, regained after 36 bytes
[07:02:46] sync: adding 128 ms of silence to audio 4352  start 416234880, next 416223360
[07:25:12] stream: error near frame 289141: next_packet: sync lost @ 4299716024, regained after 36 bytes
[08:30:08] stream: error near frame 318909: next_packet: sync lost @ 4756747820, regained after 144 bytes
[08:30:08] sync: adding 224 ms of silence to audio 4352  start 478909440, next 478889280
[08:37:23] next_packet: eof while re-establishing sync @ 4806944340
[08:37:23] hb_ts_stream_decode - eof
[08:37:23] stream: 322115 good frames, 19 errors (0%)
[08:37:23] reader: done. 1 scr changes
[08:37:37] work: average encoding speed for job is 9.348012 fps
[08:37:38] sync: got 322053 frames, 314650 expected
[08:37:38] h264-decoder done: 322053 frames, 0 decoder errors, 0 drops
[08:37:38] render: lost time: 0 (0 frames)
[08:37:38] render: gained time: 0 (0 frames) (0 not accounted for)
x264 [info]: frame I:1880  Avg QP:15.68  size: 58035  PSNR Mean Y:48.53 U:52.12 V:52.14 Avg:49.38 Global:48.77
x264 [info]: frame P:115580 Avg QP:19.00  size: 15629  PSNR Mean Y:44.90 U:49.16 V:49.24 Avg:45.87 Global:45.32
x264 [info]: frame B:204593 Avg QP:22.39  size:  2486  PSNR Mean Y:44.29 U:49.03 V:49.16 Avg:45.32 Global:44.73
x264 [info]: consecutive B-frames:  2.7% 28.8% 22.7% 45.8%
x264 [info]: mb I  I16..4: 13.2% 47.2% 39.6%
x264 [info]: mb P  I16..4:  3.4%  4.1%  1.9%  P16..4: 41.4% 21.5%  8.6%  0.0%  0.0%    skip:19.1%
x264 [info]: mb B  I16..4:  0.3%  0.2%  0.1%  B16..8: 29.4%  5.4%  0.8%  direct: 4.1%  skip:59.8%  L0:34.5% L1:55.2% BI:10.3%
x264 [info]: 8x8 transform intra:43.5% inter:43.6%
x264 [info]: coded y,uvDC,uvAC intra: 53.9% 74.2% 47.1% inter: 10.4% 16.2% 2.0%
x264 [info]: i16 v,h,dc,p: 49% 24%  7% 20%
x264 [info]: i8 v,h,dc,ddl,ddr,vr,hd,vl,hu: 18% 19% 22%  5%  7%  8%  7%  7%  7%
x264 [info]: i4 v,h,dc,ddl,ddr,vr,hd,vl,hu: 24% 25% 14%  5%  7%  7%  7%  6%  5%
x264 [info]: i8c dc,h,v,p: 50% 24% 19%  8%
x264 [info]: ref P L0: 82.3% 17.7%
x264 [info]: SSIM Mean Y:0.9868797 (18.821db)
x264 [info]: PSNR Mean Y:44.533 U:49.095 V:49.208 Avg:45.542 Global:44.948 kb/s:3608.09
[08:37:38] mux: track 0, 322053 frames, 2423994444 bytes, 3607.97 kbps, fifo 8
[08:37:38] mux: track 1, 251939 frames, 110542212 bytes, 164.54 kbps, fifo 256
[08:37:38] libhb: work result = 0
The choice of conversion was AppleTV (1st generation). Why is the resulting file at 59 fps and not 29fps? I believe that 59 fps is outside of the spec range for the AppleTV (1st generation). Thank you.

TedJ
Veteran User
Posts: 5388
Joined: Wed Feb 20, 2008 11:25 pm

Re: conversion from Hauppauge HDPVR 1212 to AppleTV

Post by TedJ » Thu May 05, 2011 4:24 am

Code: Select all

[23:03:18]    + frame rate: same as source (around 59.940 fps)
Your source is also 59.94 fps, as is indicated by both your activity log and the MediaInfo Mac report on your source. Try setting FPS manually to 29.97 fps.

discless
Regular User
Posts: 128
Joined: Tue Oct 21, 2008 4:47 am

Re: conversion from Hauppauge HDPVR 1212 to AppleTV

Post by discless » Thu May 05, 2011 10:55 am

Yes, thank you.

Some of my conversions are 24fps and of course I do not want them manually adjusted to 29.97. But I may not remember every time I convert from the HDPVR...

How do I modify the AppleTV default setting so that it works every time without manual modification, and return it to true AppleTV setting?

jamiemlaw
Veteran User
Posts: 536
Joined: Thu Sep 17, 2009 4:52 pm

Re: conversion from Hauppauge HDPVR 1212 to AppleTV

Post by jamiemlaw » Thu May 05, 2011 8:02 pm

Set the framerate to 29.97 but also select "peak framerate". So anything over 29.97 gets pulled back to that framerate, but anything under 29.97 stays as it is.

This is the system that the preset for the Apple TV 2 uses.

discless
Regular User
Posts: 128
Joined: Tue Oct 21, 2008 4:47 am

Re: conversion from Hauppauge HDPVR 1212 to AppleTV

Post by discless » Thu May 05, 2011 10:28 pm

Terrific: thanks!

Post Reply