#!/bin/ash
#201123 sfs http://forum.puppyrus.org/index.php/topic,16173.0.html
p="`basename $0`"
p1=ffmpeg43
#LD_LIBRARY_PATH="/opt/$p1/lib" exec "/opt/$p1/bin/$p" "$@"

LD_LIBRARY_PATH="/usr/lib:/usr/lib/x86_64-linux-gnu:/opt/$p1/lib" exec "/opt/$p1/bin/$p" \
    `sed -n '/^[^#]/s/^/--mpv-/p' /etc/mpv/mpv.conf |tr "\n" " "` \
    "$@"
#    --mpv-ytdl-format="bestvideo[ext=mp4][height<=?360][fps<=?30]+bestaudio/best"  \
#    --mpv-hwdec=vdpau 
