Could you post the output of MediaInfo(Google) of one of your files? That way I can adjust my script. Got an exam tomorrow, but after that I can get on it.
Sorry for the delay. Just to confirm all the audio files are not exactly the same. ie. Might have different bitrates etc. I hope it doesn't cause a problem. Here is the data from mediainfo:
General
Complete name : /Volumes/FreeAgent GoFlex Drive/Movies 2/Dr.Strangelove.mp4
Format : MPEG-4
Format profile : Base Media / Version 2
Codec ID : mp42
File size : 4.16 GiB
Duration : 1h 34mn
Overall bit rate mode : Variable
Overall bit rate : 6 285 Kbps
Movie name : Dr. Strangelove or: How I Learned to Stop Worrying and Love the Bomb
Part/Position : 0
Part/Total : 0
Track name/Position : 0
Track name/Total : 0
Performer : Peter Sellers, George C. Scott, Sterling Hayden, Slim Pickens, Keenan Wynn, Peter Bull, Jack Creley, Tracy Reed
Genre : Drama
Recorded date : 1964-01-29
Encoded date : UTC 2012-03-20 08:05:00
Tagged date : UTC 2012-03-21 00:20:19
Cover : Yes
desc : An insane general starts a process to nuclear holocaust that a war room of politicians and generals frantically try to stop. A classic black and white war satire from director Stanley Kubrick starring Peter Sellers.
ldes : An insane general starts a process to nuclear holocaust that a war room of politicians and generals frantically try to stop. A classic black and white war satire from director Stanley Kubrick starring Peter Sellers.
hdvd : 1
stik : 9
rtng : 0
iTunEXTC : au-tv|PG|400|
iTunMOVI : <?xml version="1.0" encoding="UTF-8"?> / <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> / <plist version="1.0"> / <dict> / <key>cast</key> / <array> / <dict> / <key>name</key> / <string>Peter Sellers</string> / </dict> / <dict> / <key>name</key> / <string>George C. Scott</string> / </dict> / <dict> / <key>name</key> / <string>Sterling Hayden</string> / </dict> / <dict> / <key>name</key> / <string>Slim Pickens</string> / </dict> / <dict> / <key>name</key> / <string>Keenan Wynn</string> / </dict> / <dict> / <key>name</key> / <string>Peter Bull</string> / </dict> / <dict> / <key>name</key> / <string>Jack Creley</string> / </dict> / <dict> / <key>name</key> / <string>Tracy Reed</string> / </dict> / </array> / <key>directors</key> / <array> / <dict> / <key>name</key> / <string>Stanley Kubrick</string> / </dict> / </array> / <key>producers</key> / <array> / <dict> / <key>name</key> / <string>Leon Minoff</string> / </dict> / <dict> / <key>name</key> / <string>Stanley Kubrick</string> / </dict> / <dict> / <key>name</key> / <string>Victor Lyndon</string> / </dict> / </array> / <key>screenwriters</key> / <array> / <dict> / <key>name</key> / <string>Peter George</string> / </dict> / <dict> / <key>name</key> / <string>Terry Southern</string> / </dict> / <dict> / <key>name</key> / <string>Peter George</string> / </dict> / <dict> / <key>name</key> / <string>Stanley Kubrick</string> / </dict> / </array> / <key>studio</key> / <string>Columbia Pictures Corporation , Hawk Films</string> / </dict> / </plist>
Video
ID : 1
Format : AVC
Format/Info : Advanced Video Codec
Format profile : High@L4.1
Format settings, CABAC : Yes
Format settings, ReFrames : 5 frames
Codec ID : avc1
Codec ID/Info : Advanced Video Coding
Duration : 1h 34mn
Bit rate mode : Variable
Bit rate : 5 964 Kbps
Width : 1 200 pixels
Height : 720 pixels
Display aspect ratio : 1.667
Frame rate mode : Variable
Frame rate : 23.976 fps
Minimum frame rate : 23.810 fps
Maximum frame rate : 24.390 fps
Color space : YUV
Chroma subsampling : 4:2:0
Bit depth : 8 bits
Scan type : Progressive
Bits/(Pixel*Frame) : 0.288
Stream size : 3.95 GiB (95%)
Writing library : x264 core 67 r1153M 7b6ce6a
Encoding settings : cabac=1 / ref=5 / deblock=1:0:0 / analyse=0x3:0x2 / me=umh / subme=7 / psy_rd=1.0:0.0 / mixed_ref=1 / me_range=16 / chroma_me=1 / trellis=1 / 8x8dct=1 / cqm=0 / deadzone=21,11 / chroma_qp_offset=-2 / threads=6 / nr=0 / decimate=1 / mbaff=0 / bframes=3 / b_pyramid=1 / b_adapt=1 / b_bias=0 / direct=1 / wpredb=1 / keyint=250 / keyint_min=25 / scenecut=40 / rc=2pass / bitrate=5964 / ratetol=1.0 / qcomp=0.60 / qpmin=10 / qpmax=51 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / ip_ratio=1.40 / pb_ratio=1.30 / aq=1:1.00
Encoded date : UTC 2012-03-20 08:05:00
Tagged date : UTC 2012-03-20 08:16:20
Audio
ID : 2
Format : AAC
Format/Info : Advanced Audio Codec
Format profile : LC
Codec ID : 40
Duration : 1h 34mn
Bit rate mode : Variable
Bit rate : 315 Kbps
Maximum bit rate : 412 Kbps
Channel(s) : 6 channels
Channel positions : Front: L C R, Side: L R, LFE
Sampling rate : 48.0 KHz
Compression mode : Lossy
Stream size : 213 MiB (5%)
Language : English
Encoded date : UTC 2012-03-20 08:05:00
Tagged date : UTC 2012-03-20 08:16:22
Text
ID : 3
Format : Timed text
Muxing mode : sbtl
Codec ID : tx3g
Duration : 1h 32mn
Bit rate mode : Variable
Bit rate : 87 bps
Stream size : 58.9 KiB (0%)
Language : English
Encoded date : UTC 2012-03-20 08:05:00
Tagged date : UTC 2012-03-20 08:16:20