Quote:
Originally Posted by
Will Collier 
Okay, I have a procedure here to get an unmodified recording from HDPVRCapture into a .mov container with 5.1 AC3 audio. This requires QuickTime Pro.
First make a recording with Steve's app, with SPDIF input and the -P 3 post processing step. Open the resulting .mp4 file in Quicktime Player, select Show Movie Properties, click on the H.264 (video) file and then click on the Extract button. The video from your recording will open in a new Quicktime window.
Extract the AC3 audio track from the original .TS file of your original recording. I used the mplayer command line app, syntax is:
./mplayer -dumpaudio -dumpfile [new filename].ac3 [original recording].ts
Open the AC3 file with Quicktime, then Edit > Select All, and Edit > Copy.
Go to the Quicktime window with the extracted video, and Edit > Add To Movie. Check sync (if you're paranoid). File > Save As a self-contained movie with the filename of your choice.
[NOTE: Corrected, last step originally said "extracted audio" by mistake, and added Save As self-contained movie; otherwise the AC3 file remains as a dependency.]
You now have a .mov file that should play in just about anything.
I'm having a hard time repro'ing this now. using Media Info I know for sure the .ts recording is AC3 5.1. I can extract the ac3 payload, Media Info also shows this as 5.1.
I walk through the procedure above and the result .mov turns into ...
*** MediaInfo Mac // Plain text file report
2008-11-14 23:23:59 -0500
Information for File: hdpvr.ts.mov
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 -> ADPCM
File Format -> MPEG-4
Play Time -> 15s 298ms
Total File Size -> 5.12 MiB
Total Stream BitRate -> 2 807 Kbps
Video Stream # 1
Codec (Human Name) -> AVC
Codec (FourCC) -> avc1
Codec Profile -> Main@L4.0
Frame Width -> 1 280 pixels
Frame Height -> 720 pixels
Frame Rate -> 59.940 fps
Total Frames -> 917
Display Aspect Ratio -> 16/9
Scan Type -> Progressive
Colorimetry -> 4:2:0
Codec Description -> AVC
Codec Settings (Summary) -> CABAC / 4 Ref Frames
QF (like Gordian Knot) -> 0.044
Codec Settings (CABAC) -> Yes
Video Stream Length -> 15s 298ms
Video Stream BitRate -> 2 419 Kbps
Video Stream BitRate Mode -> VBR
Bit Depth -> 24 bits
Video Stream Size -> 4.41 MiB (86%)
Date of Original Encoding -> UTC 1970-01-01 00:00:00
Audio Stream # 1
Codec -> ADPCM
Codec (FourCC) -> 20
Audio Stream Length -> 15s 168ms
Audio Stream BitRate -> 384 Kbps
Audio Stream BitRate Mode -> CBR
Number of Audio Channels -> 3
Sampling Rate -> 1 Hz
Bit Depth -> 16 bits
Audio Stream Size -> 711 KiB (14%)
Date of Original Encoding -> UTC 2008-11-15 04:21:03
The original applescript code I wrote also reproduces the same thing, as does the new QTKit code I've added directly into HDPVRCapture. Three different approachs all result in the same audio being transcoded away from AC3 5.1. GRRR!
I'm of the opinion this intermittently works, because I'm 99% certain I had this working the other evening. Can anyone else confirm they've seen it work atleast once?
- Steve
Update: After saving, restart quicktime and re-opening the apparently dubiously converted .mov file, then looking at the Audio properties (show properties via menu), quicktime thinks it's in AC3 5.1 mode, but Media Info thinks differently (as above).
Extracting the audio payload from the .MOV using ffmpeg results in correct ac3 5.1 audio. *** BYTE FOR BYTE IT'S IDENTICAL TO THE ORIGINAL AC3 5.1 FROM THE TS FILE ***.
OK. So maybe Media Info is broken when it parses .mov files. This is actually great news.