#!/bin/bash
set -aeou pipefail
[[ "$EUID" != 0 ]] && echo "Run as root!" && exit 1
zypper refresh
zypper dist-upgrade --from packman --allow-downgrade --allow-vendor-change
zypper install --from packman \
    ffmpeg \
    gstreamer-plugins-bad \
    gstreamer-plugins-libav \
    gstreamer-plugins-ugly \
    libavcodec58 \
    libavdevice58 \
    libavfilter7 \
    libavformat58 \
    libavresample4 \
    libavutil56 \
    vlc-codecs
