# shellcheck shell=dash

___x_cmd_ff_mpeg___cmd(){
    ___x_cmd_ff___binexec ffmpeg "$@"
}

___x_cmd_ff_play___cmd(){
    ___x_cmd_ff___binexec ffplay "$@"
}

___x_cmd_ff_probe___cmd(){
    ___x_cmd_ff___binexec ffprobe "$@"
}


___x_cmd_ff___binexec(){
    local _cmd="$1"; shift
    if ___x_cmd_hascmd "$_cmd"; then
        command "$_cmd" "$@"
    else
        ___x_cmd pixi exec -s ffmpeg "$_cmd" "$@"
    fi
}
