[mythtv-users] Should I be transcoding? UK DVB-T

Simon Levitt maillists at whattf.com
Thu Jan 3 20:56:46 UTC 2008

On Thursday 03 January 2008 20:00:55 Neil Milne wrote:
> Is there still an issue with lossless transcode where it sometimes
> discards the stereo audio track in favour of the mono sight-impaired
> track instead? 
It was still there around 6th Dec AFAIK; or at the very least the deadlock 
errors caused by that track being there (or perhaps more specifically it 
being sparodic) were.

> I've been editing my recordings outside mythtv since 
> that started happening.
I took a different tack: I don't ever want to keep the mono tracks (or that's 
my current belief anyway!), so I've changed 
programs/mythtranscode/mpeg2fix.cpp to deem anything audio track less with 
less than 2 channels (ie. stereo) as invalid thus:

Index: programs/mythtranscode/mpeg2fix.cpp
--- programs/mythtranscode/mpeg2fix.cpp (revision 14911)
+++ programs/mythtranscode/mpeg2fix.cpp (working copy)
@@ -747,7 +747,7 @@

             case CODEC_TYPE_AUDIO:
-                if (inputFC->streams[i]->codec->channels == 0)
+                if (inputFC->streams[i]->codec->channels < 2)
                     VERBOSE(MPF_GENERAL, QString(
                             "Skipping invalid audio stream: %1").arg(i));

After applying this files that would constantly fail with deadlock issues on 
transcode work just fine.


More information about the mythtv-users mailing list