Permalink
Browse files

Allow files with no audio stream to be transferred as is.

Allow files with no audio stream to be transferred as is.

This prevents a full transcode when not necessary.
  • Loading branch information...
1 parent bcc85ce commit 0bd640ef72b0469d9d3fb49cd43b5859e51dbfa5 @thspencer thspencer committed with Feb 29, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 plugins/video/transcode.py
@@ -600,6 +600,11 @@ def tivo_compatible_audio(vInfo, inFile, tsn, mime=''):
message = (True, '')
while True:
codec = vInfo.get('aCodec', '')
+
+ if codec == None:
+ debug('No audio stream detected')
+ break
+
if mime == 'video/mp4':
if codec not in ('mpeg4aac', 'libfaad', 'mp4a', 'aac',
'ac3', 'liba52'):

0 comments on commit 0bd640e

Please sign in to comment.