Skip to content

Commit

Permalink
Version 1.6.1
Browse files Browse the repository at this point in the history
  • Loading branch information
cdgriffith committed Aug 13, 2021
1 parent e6d2923 commit 7bce059
Showing 1 changed file with 13 additions and 6 deletions.
19 changes: 13 additions & 6 deletions streaming_setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
from argparse import ArgumentParser

__author__ = "Chris Griffith"
__version__ = "1.6"
__version__ = "1.6.1"

log = logging.getLogger("streaming_setup")
command_log = logging.getLogger("streaming_setup.command")
Expand Down Expand Up @@ -362,7 +362,7 @@ def install_ffmpeg():
def compile_ffmpeg(extra_libs, minimal_install=False):
ffmpeg_configures, apt_installs = [], []

for f, a in (all_ffmpeg_config if not minimal_install else minimal_install):
for f, a in (all_ffmpeg_config if not minimal_install else minimal_ffmpeg_config):
ffmpeg_configures.append(f)
apt_installs.append(a)

Expand Down Expand Up @@ -762,12 +762,19 @@ def install_rtsp():
rtsp_assets = json.loads(urlopen(rtsp_releases[0]["assets_url"]).read().decode('utf-8'))
lscpu = lscpu_output()
mappings = {
"armv7l": "arm7",
"armv6l": "arm6",
"aarch64": "arm64"
"armv7l": "armv7",
"armv6l": "armv6",
"aarch64": "armv64"
}
if lscpu["architecture"] not in mappings:
raise Exception(f"Don't know the arch {lscpu['architecture']}")
# Old mapping style for safety
mappings = {
"armv7l": "arm7",
"armv6l": "arm6",
"aarch64": "arm64"
}
if lscpu["architecture"] not in mappings:
raise Exception(f"Don't know the arch {lscpu['architecture']}")

arch = mappings[lscpu["architecture"]]

Expand Down

0 comments on commit 7bce059

Please sign in to comment.