Skip to content

Commit

Permalink
Install openh264 according to arch
Browse files Browse the repository at this point in the history
  • Loading branch information
asdil12 committed Feb 13, 2023
1 parent 76bc159 commit 9ca3d0a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion opi/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
def get_cpu_arch():
global cpu_arch
if not cpu_arch:
cpu_arch = subprocess.check_output(['uname', '-m']).strip().decode('ASCII')
cpu_arch = os.uname().machine
if re.match(r"^i.86$", cpu_arch):
cpu_arch = 'i586'
return cpu_arch
Expand Down
10 changes: 7 additions & 3 deletions opi/plugins/packman.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,11 @@ def run(cls, query):
return
opi.add_openh264_repo(dup=True)

opi.install_packages([
'libgstopenh264.so()(64bit)',
openh264_packages = [
'mozilla-openh264',
])
]
if opi.get_cpu_arch() == 'i586' or opi.get_cpu_arch().startswith('armv7'):
openh264_packages.append('libgstopenh264.so()')
else:
openh264_packages.append('libgstopenh264.so()(64bit)')
opi.install_packages(openh264_packages)

0 comments on commit 9ca3d0a

Please sign in to comment.