[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.


mencoder -passlogfile episode.log -mc 0 -aid 2328 -oac copy -channels 6 -ovc
lavc -lavcopts
-o /dev/null -quiet episode.mpg

mencoder -passlogfile episode.log -mc 0 -aid 2328 -oac copy -channels 6 -ovc
lavc -lavcopts
-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.


More information about the mythtv-users mailing list