2009-11-07, 04:41 AM
I've been playing with using mencoder to do the double whammy of excising commercials (with aid of comskip) and to transcode to mpeg4 so my 1.5TB hdd isn't full after a month of HD recording. I think I've finally got a recipe that results in acceptable quality in a file small enough to stream over wireless to my laptop (and using a video codec that doesn't push my cpu usage through the roof, <cough!>x264<cough!>). Mencoder code at bottom of post...comments welcome, hopefully with an answer to my main question:
On almost all programs recorded from my HDHomerun, there are 2 audio streams (I can see them with media player classic under the filters submenu). The second stream is sometimes another language like spanish, but sometimes it's in english and includes a drab narration voice-over. I assume since it pops up as english, it gets included in my transcoded .avi's. I figured out I can use -aid to select the 'non-narration' audio stream, but the actual audio ID changes from program to program. -aid 84 might work for one program to isolate the correct stream, but another requires -aid 52.
Anyone know of a better way to use ONLY the first audio stream or to figure out how to determine which aid is the main audio channel w/o the "extras"?
[SIZE="1"]Current mencoder batch file:
REM Pass #1
"c:\program files\gbpvr\mencoder" %1 -edl "%~dpn1.edlp" -o "%~dpn1.avi" -aid 52 -oac mp3lame -lameopts fast:preset=standard -vf pp=de/md -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:qpel:trell:v4mv:lumi_mask=0.2:vmax_b_frames=1:cmp=3ubcmp=3:autoaspect:vbitrate=4000:vpass=1:turbo:threads=1
REM Pass #2
"c:\program files\gbpvr\mencoder" %1 -edl "%~dpn1.edlp" -o "%~dpn1.avi" -aid 52 -oac mp3lame -lameopts fast:preset=standard -vf pp=de/md -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:qpel:trell:v4mv:dia=-2:lumi_mask=0.2:vmax_b_frames=1:cmp=3ubcmp=3:autoaspect:vqmax=10:vbitrate=4000:vpass=2:threads=1 [/SIZE]
On almost all programs recorded from my HDHomerun, there are 2 audio streams (I can see them with media player classic under the filters submenu). The second stream is sometimes another language like spanish, but sometimes it's in english and includes a drab narration voice-over. I assume since it pops up as english, it gets included in my transcoded .avi's. I figured out I can use -aid to select the 'non-narration' audio stream, but the actual audio ID changes from program to program. -aid 84 might work for one program to isolate the correct stream, but another requires -aid 52.
Anyone know of a better way to use ONLY the first audio stream or to figure out how to determine which aid is the main audio channel w/o the "extras"?
[SIZE="1"]Current mencoder batch file:
REM Pass #1
"c:\program files\gbpvr\mencoder" %1 -edl "%~dpn1.edlp" -o "%~dpn1.avi" -aid 52 -oac mp3lame -lameopts fast:preset=standard -vf pp=de/md -ovc lavc -lavcopts vcodec=mpeg4:mbd=1:qpel:trell:v4mv:lumi_mask=0.2:vmax_b_frames=1:cmp=3ubcmp=3:autoaspect:vbitrate=4000:vpass=1:turbo:threads=1
REM Pass #2
"c:\program files\gbpvr\mencoder" %1 -edl "%~dpn1.edlp" -o "%~dpn1.avi" -aid 52 -oac mp3lame -lameopts fast:preset=standard -vf pp=de/md -ovc lavc -lavcopts vcodec=mpeg4:mbd=2:qpel:trell:v4mv:dia=-2:lumi_mask=0.2:vmax_b_frames=1:cmp=3ubcmp=3:autoaspect:vqmax=10:vbitrate=4000:vpass=2:threads=1 [/SIZE]