[Atrix 4G Themes and Apps] decoyd:
I ran into a few problems using handbrake as well as a few other transcoding packages out there. (I was specifically trying to find something that would encode HE-AAC.) E.g. I tried MediaCoder and had trouble with audio sync, etc. I don't know if anyone is having trouble, but I made a quick VB Script that uses ffmpeg. I know that this is pretty ghetto, but it works well enough for me.

Step 1: Make directories C:\Transcode, C:\Transcode\Tools, C:\Transcode\Working, C:\Transcode\Finished and C:\Transcode\Queue

Step 2: Download ffmpeg, Nero AAC Encoder and BeSweet and put them into the Tools directory.

I have to put spaces in my links because, apparently, I'm untrustworthy to put real links.

Win32 ffmpeg binaries: www .bizzeh .com /ffmpeg/free/

Nero AAC Encoder: www .nero .com/eng/technologies-aac-codec.html

BeSweet: www .free-codecs .com/download/besweet.htm

Step 3: Put the following VB Script into a file in the C:\Transcode directory, I called mine Transcode.vbs

This is meant for .mkv files with audio in ac3 format. Put whatever you want into the Queue directory. The script with recurse through any subdirectories. It dumps the audio from the mkv into .ac3 format. BeSweet transcodes it to .wav format, Nero AAC Encoder transcodes the wav into the HE-AAC format. Meanwhile, ffmpeg does a 2-pass transcode of the video to 960x540 with h264. The junk in the Working directory gets overwritten with each transcode, but I couldn't get the script to delete files, so i just left it.

Contrary to popular belief, the Atrix can work with more than the Baseline profile for h264. From my fiddling around, it just can't handle the the DCT flags turned on. I keep the video at a 768k bitrate. I've read a lot of people pushing it up to 1500k bitrate. I've tried it and it doesn't really improve things to my eyes. At 512k bitrate, I start to see a small amount of degradation from HQ sources. You can, of course, adjust the settings to however you like. If you want to select an audio stream from container with multiple streams, you can just add the -map flag in the audio demux command.

I put in some code for avi's and a line that doesn't transcode, it just swaps containers. (I have a number of mkv's that have video in h264 and audio in aac, and I'm annoyed that you can't play these directly.) It's commented out only because I wasn't using it, but it should work.

The reason for using BeSweet was that I need the audio in wave format for Nero to transcode, and I was having trouble getting all the downmixing, et cetra, to work with ffmpeg, and this way BeSweet and Nero can transcode while ffmpeg gets going on the video transcode.

Dim objFSO, objShell, strBaseDir, strSource, strTarget, strWorking, strTools, strOldName, strDemuxAudio, strDemuxVideo, strWaveAudio, strTranscodedAudio, strTranscodedVideo, strNewName
'
set objFSO = CreateObject("Scripting.FileSystemObject")
'
' Set up starting folders
'
strBaseDir = "C:\Transcode\"
strSource = "C:\Transcode\Queue\"
strTarget = "C:\Transcode\Finished\"
strWorking = "C:\Transcode\Working\"
strTools = "C:\Transcode\Tools\"

call RecurseDir(strSource, strTarget)

Sub RecurseDir(strSource, strTarget)
Dim strTempSource, strTempTarget
Set strTempSource = objFSO.GetFolder(strSource)
Set strTempTarget = objFSO.GetFolder(strTarget)
For each file in strTempSource.files
strOldName = strTempSource & "\" & file.name
strDemuxAudio = strWorking & "DemuxedAudio.ac3"
strDemuxVideo = strWorking & "DemuxedVideo.mp4"
strWaveAudio = strWorking & "WaveAudio.wav"
strTranscodedAudio = strWorking & "TranscodedAudio.mp4"
strTranscodedVideo = strWorking & "TranscodedVideo.mp4"
strNewName = strTarget & Mid(file.name, 1, InstrRev(file.name, ".")) & "mp4"
Set objShell = CreateObject("WScript.Shell")
Select Case Right(strOldName, 3)
Case "mkv"
objShell.Run strTools & "ffmpeg -y -i """ & strOldName & """ -vn -acodec copy """ & strDemuxAudio & """", 1, True
objShell.Run strTools & "BeSweet.exe -core( -input """ & strDemuxAudio & """ -output """ & strWaveAudio & """ -2ch -azid( -s dplii -c normal -L -3db ) -ota( -hybridgain ) -ssrc( --rate 48000 )", 1, True
objShell.Run strTools & "neroAacEnc.exe -he -br 160000 -if """ & strWaveAudio & """ -of """ & strTranscodedAudio & """", 1, False
objShell.Run strTools & "x264.exe --subme 2 --b-adapt 2 --bframes 3 --ref 1 --direct auto --b-pyramid none --weightp 0 --no-mixed-refs --no-weightb --no-8x8dct --vf resize:width=960,height=540,fittobox=both,method=spline --bitrate 768 --muxer mp4 --pass 1 -o """ & strTranscodedVideo & """ """ & strOldName & """", 1, True
objShell.Run strTools & "x264.exe --subme 7 --b-adapt 2 --bframes 3 --ref 3 --direct auto --b-pyramid none --weightp 0 --no-mixed-refs --me umh --no-weightb --no-8x8dct --vf resize:width=960,height=540,fittobox=both,method=spline --bitrate 768 --muxer mp4 --pass 2 -o """ & strTranscodedVideo & """ """ & strOldName & """", 1, True
objShell.Run strTools & "ffmpeg -i """ & strTranscodedVideo & """ -i """ & strTranscodedAudio & """ -vcodec copy -acodec copy """ & strNewName & """", 1, True
'	Case "avi"
' Transcode
'	objShell.Run strTools & "ffmpeg -i """ & strOldName & """ -vn -acodec copy """ & strDemuxAudio & """", 1, True
'	objShell.Run strTools & "BeSweet.exe -core( -input """ & strDemuxAudio & """ -output """ & strWaveAudio & """ -2ch -azid( -s dplii -c normal -L -3db ) -ota( -hybridgain ) -ssrc( --rate 48000 )", 1, True
'	objShell.Run strTools & "neroAacEnc.exe -he -br 160000 -if """ & strWaveAudio & """ -of """ & strTranscodedAudio & """", 1, False
'	objShell.Run strTools & "x264.exe --subme 2 --b-adapt 2 --bframes 3 --ref 1 --direct auto --b-pyramid none --weightp 0 --no-mixed-refs --no-weightb --no-8x8dct --vf resize:width=960,height=540,fittobox=both,method=spline --bitrate 512 --muxer mp4 --pass 1 -o """ & strTranscodedVideo & """ """ & strOldName & """", 1, True
' objShell.Run strTools & "x264.exe --subme 7 --b-adapt 2 --bframes 3 --ref 3 --direct auto --b-pyramid none --weightp 0 --no-mixed-refs --me umh --no-weightb --no-8x8dct --vf resize:width=960,height=540,fittobox=both,method=spline --bitrate 512 --muxer mp4 --pass 2 -o """ & strTranscodedVideo & """ """ & strOldName & """", 1, True
'	objShell.Run strTools & "ffmpeg -i """ & strTranscodedVideo & """ -i """ & strTranscodedAudio & """ -vcodec copy -acodec copy """ & strNewName & """", 1, True
' Just change to mp4 container
'	objShell.Run strTools & "ffmpeg.exe -y -i """ & strOldName & """ -acodec copy -vcodec copy -f mp4 """ & strNewName & """", 1, True
End Select
Set objShell = Nothing
Next
For each subdir in strTempSource.subfolders
call RecurseDir(subdir.path, strTarget)
Next
End Sub

Also, if you're just looking to watch media from a home network, I've had great success with VLC Remote/Stream using a custom transcode string.

www .androidzoom .com/android_applications/media_and_video/vlc-remotestream_qagp.html?nav=related