"bryankaiser" wrote:
Ok, so there is still an issue even though you were using CoreAudio and not faac.
There is something you could try. I haven't actually gotten around to doing this myself, but I was going to try and re-encode the audio from what handbrake produced using ffmpeg. It would be something like this:
ffmpeg -i FILE_FROM_HANDBRAKE.mp4 -acodec aac -ab 160k -ac 2 -vcodec copy OUTPUT.mp4
Success w 23.976 fps thanks to the briankaiser hint, using a linux-based chain: DVD > handbrake+ffmpeg > mongoose 2.10 > roksbox > rokuXR > HDMI > 1920x1080 screen. I'm a newbie so any detail omissions that might be helpful, please speak up.
The NTSC "waking ned devine" main title (25 chapters) was encoded with handbrake 0.9.4 CLI, then post-processed with ffmpeg v0.6 straight copy. Unlike the +20 previous attempts, there was NO rebuffering at any of the test points (45, 49, 51, 59, 70 or 80 minutes). The roku's network refresh was the normal 'short-peak/long-valley' pattern and both initial and seek test loads were fast.
Update The below method was also successful on an August, 2001 release 4:3 KOYAANISQATSI dvd. Same relative changes in size, metadata and tbn. No rebuffers.
HandBrakeCLI -t 0 sees the source as
duration: 01:31:15; size: 720x480, pixel aspect: 8/9, display aspect: 1.33, 23.976 fps; autocrop: 100/106/8/6; English (AC3) (Dolby Surround) (iso639-2: eng), 48000Hz, 192000bps
Encoded from /dev/dvd with
--width 640 --vb 1800 --ab 192 --rate 23.976 --cfr --decomb --optimize --large-file --encoder ffmpeg --aencoder ac3
ffmpeg -i sees the mp4 output (rebuffers consistently at 47-49m) as
Seems stream 0 codec frame rate differs from container frame rate: 24000.00 (24000/1) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'NEDDEVINE_1.mp4':
Metadata:
major_brand : mp42
minor_version : 0
compatible_brands: mp42isom
encoder : HandBrake rev2965 2010060199
Duration: 01:31:21.02, start: 0.000000, bitrate: 1538 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 1344 kb/s, 23.98 fps, 23.98 tbr, 90k tbn, 24k tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 2 channels, s16, 192 kb/s
2nd pass ffmpeg treatment (very fast)
ffmpeg -i NEDDEVINE_1.mp4 -acodec copy -vcodec copy copytest.mp4
Output is 180K larger with changes in metadata and tbn, but no change in duration.
Seems stream 0 codec frame rate differs from container frame rate: 24000.00 (24000/1) -> 23.98 (24000/1001)
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'copytest.mp4':
Metadata:
major_brand : isom
minor_version : 512
compatible_brands: isomiso2mp41
encoder : Lavf52.64.2
Duration: 01:31:21.02, start: 0.000000, bitrate: 1539 kb/s
Stream #0.0(und): Video: mpeg4, yuv420p, 640x272 [PAR 1:1 DAR 40:17], 1344 kb/s, 23.98 fps, 23.98 tbr, 24k tbn, 24k tbc
Stream #0.1(eng): Audio: ac3, 48000 Hz, 2 channels, s16, 192 kb/s