mp4info version 1.5.0.1
Firefly-S01E01-iPod-High-Rez.mp4:
Track Type Info
1 video H264 Baseline@3, 5202.405 secs, 1485 kbps, 640x368 @ 23.976026 fps
2 audio MPEG-4 AAC LC, 5202.304 secs, 160 kbps, 48000 Hz
3 text
Metadata Tool: HandBrake 0.9.2 2008021900
Firefly-S01E01-iPod.mp4:
Track Type Info
1 video H264 Baseline@3, 5202.405 secs, 949 kbps, 480x272 @ 23.976026 fps
2 audio MPEG-4 AAC LC, 5202.304 secs, 128 kbps, 48000 Hz
3 text
Metadata Tool: HandBrake 0.9.2 2008021900
mp4info version 1.5.0.1
old-rips/Firefly-1-Serenity.mp4:
Track Type Info
1 video H264 Main@5.1, 5202.363 secs, 700 kbps, 720x480 @ 23.976028 fps
2 audio MPEG-4 AAC LC, 5202.261 secs, 160 kbps, 48000 Hz
3 text
Metadata Tool: HandBrake 0.9.2 2008021900
./HandBrakeCLI -i /dev/sr0 -l 480 -e x264 -b 1500 -B 160 -R 48 -E faac -f mp4 -I -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=1500:vbv-bufsize=2000:analyse=all:me=umh:subme=6:no-fast-pskip=1 -t 1 -o Firefly-S01E01-Serenity.mp4
"KennyJ" wrote:
I used High Profile and removed the extra audio track and it worked fine for me.
Multiple Audio Tracks
HandBrake can encode more than one audio track at a time, or the same track multiple times, and use different settings for each encode. It is common for AppleTV users to make one file that includes the main audio track from the source encoded once to AAC for playback on iPods, and also pass it through as a secondary track.
This is achieved by using the command:
-E aac,ac3
If you do not specify which audio tracks to encode with the -a option, then HandBrake uses the first track in the source. When you include more than setting for an audio option, separated by a comma, it implicitly tells HandBrake: "The output should have two audio tracks." And without a source audio track specified, it will just use the first track for both.
You can also do complete settings for multiple tracks:
-a 1,1,2 -A "Main Audio", "Downmixed Audio", "Director's Commentary"-E ac3,aac,aac -B auto,160,128 -R auto,auto,44100 -6 auto,dpl2,stereo
There will be 3 audio tracks in the output, named "Main Audio", "Downmixed Audio", and "Director's Commentary" in turn. The first 2 will be the first audio track from the source: once as AC3 passed-through untouched, once as AAC with a bitrate of 160 and a Dolby Pro Logic II mixdown. The third track will use the second audio track from the source, encoded to AAC at a bitrate of 128, with a samplerate of 44.1kHz, and a stereo mixdown.
When you don't want to specify any particular setting for one of the tracks, use "auto" as a placeholder.
#!/bin/sh
./HandBrakeCLI -i /dev/sr0 -l 480 -e x264 -b 1500 -B 160 -R 48 -E faac -f mp4 -I -m -x level=30:bframes=0:cabac=0:ref=1:vbv-maxrate=1500:vbv-bufsize=2000:analyse=all:me=umh:subme=6:no-fast-pskip=1 -L -o $1