Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix unnecessary audio transcoding #154

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gnomecast.py
Original file line number Diff line number Diff line change
Expand Up @@ -271,7 +271,7 @@ def __init__(self, cast, fmd, video_stream, audio_stream, done_callback, error_c
print('Transcoder', fn)
transcode_container = fmd.container not in ('mp4', 'aac', 'mp3', 'wav')
self.transcode_video = force_video or not self.can_play_video_codec(video_stream.codec)
self.transcode_audio = force_audio or fmd.container not in AUDIO_EXTS or not self.can_play_audio_stream(self.audio_stream)
self.transcode_audio = force_audio or fmd.container not in AUDIO_EXTS and not self.can_play_audio_stream(self.audio_stream)
self.transcode = transcode_container or self.transcode_video or self.transcode_audio
self.trans_fn = None

Expand Down