Skip to content

Commit

Permalink
Allow files with no audio stream to be transferred as is.
Browse files Browse the repository at this point in the history
Allow files with no audio stream to be transferred as is.

This prevents a full transcode when not necessary.
  • Loading branch information
thspencer authored and wmcbrine committed Mar 10, 2012
1 parent bcc85ce commit 0bd640e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions plugins/video/transcode.py
Expand Up @@ -600,6 +600,11 @@ def tivo_compatible_audio(vInfo, inFile, tsn, mime=''):
message = (True, '') message = (True, '')
while True: while True:
codec = vInfo.get('aCodec', '') codec = vInfo.get('aCodec', '')

if codec == None:
debug('No audio stream detected')
break

if mime == 'video/mp4': if mime == 'video/mp4':
if codec not in ('mpeg4aac', 'libfaad', 'mp4a', 'aac', if codec not in ('mpeg4aac', 'libfaad', 'mp4a', 'aac',
'ac3', 'liba52'): 'ac3', 'liba52'):
Expand Down

0 comments on commit 0bd640e

Please sign in to comment.