[mythtv-users] BBC HD transcode using ffmpeg....what command line please

David Greaves myth at dgreaves.com
Mon Dec 1 20:51:24 UTC 2008


Another Sillyname wrote:
> Hi All
> 
> I want to do some transcoding of the BBC HD stream using ffmpeg and am
> getting a problem......
> 
> Could anyone who has successfully transcoded thr BBC HD stream (with
> an AC 3 sound stream) using either ffmpeg or mencoder please let me
> know what command line you used.

After many hours I figured this out...

The trick to keep the AC3 with 5.1 was to add "-channels 6" apparenty "-oac
copy" doesn't *just* copy!

The -aid 2328 picks the AC3 channel. mplayer -v produces screenfulls of crap and
buried inside you can eventually get the correct ID.

so:

mencoder -passlogfile episode.log -mc 0 -aid 2328 -oac copy -channels 6 -ovc
lavc -lavcopts
vcodec=mpeg4:turbo:vpass=1:vbitrate=12000:autoaspect=1:threads=3:mbd=2:v4mv:mbcmp=2:cmp=2:subcmp=2:dia=3:keyint=50
-o /dev/null -quiet episode.mpg

mencoder -passlogfile episode.log -mc 0 -aid 2328 -oac copy -channels 6 -ovc
lavc -lavcopts
vcodec=mpeg4:vpass=2:vbitrate=12000:autoaspect=1:threads=3:mbd=2:v4mv:mbcmp=2:cmp=2:subcmp=2:dia=3:keyint=50
-o transcoded/episode.avi -quiet episode.mpg

I have a 3-core cpu so threads=3 for me. You may want to change it.

The files it produces are quite large but lovely quality - and until VDPAU
happens they play back on a relatively weedy frontend.

Hope this is useful.

David


More information about the mythtv-users mailing list