Here's one way of doing this. Set $t=\sqrt{u}=1/\sqrt{v}$, and $l=k^2$, so
that the integrals become
$$ \int_0^1 \frac{du}{\sqrt{u(1-u)(1-l u)}}, \qquad \frac12\int_l^1 \frac{dv}{\sqrt{v(1-v)(v-l)}}, $$
so look for a change of variable that will bring the second integral to the form of the first.
The integrand has three singular points, $v=0,1,l$, and the limits are $l$ and $1$, so first look at a fractional-linear transformation $v=\frac{a+bx}{c+dx}$ that will map $1\mapsto1$ and $l\mapsto0$. This is because every automorphism of the complex plane has this form, so this is a natural transformation to look at when trying to map specific points to specific points. The integrand becomes
$$ \frac{(bc-ad)\,dx}{\sqrt{(a+bx)(c+dx)((c-a)+(d-b)x)((a-cl)+(b-dl)x)}}, $$
and the conditions $x(v=1)=1$, $x(v=l)=0$ become
$$ \frac{a-c}{-b+d} = 1, \qquad \frac{a-cl}{-b+dl} = 0. $$
There are four parameters, two equations, and one parameter will be cancelled, so we can impose one more condition by saying that the degree of the polynomial in $x$ inside the square root should be three, rather than four:
$$ b=0. $$
Thus we consider the change of variable
$$ v = \frac{l}{1+(l-1)x}, $$
which makes the second integral
$$ \frac12 \int_0^1 \frac{dx}{\sqrt{x(1-x)(1+(l-1)x)}}. $$
Expressing both integrals in terms of complete elliptic integrals of the first kind, we get the equation
$$ 2K(k) = K(\sqrt{1-k^2}), $$
where $\sqrt{1-k^2}$ is commonly denoted by $k'$.
The equation
$$ K(k')/K(k) = \sqrt{r} $$
is solved by the elliptic lambda function, so setting $r=4$ gives
$$ k = \lambda^*(4) = 3-2\sqrt{2}. $$
Another way to find this is to use a result of Abel (equation 1 there), and p.525 of Whittaker and Watson, to find that
$$ k=\tan^2\frac\pi8, \quad\Rightarrow\quad K(k') = 2K(k). $$
This follows from Landen's transformation:
$$ K(k_1')/K(k_1) = 2K(k')/K(k), \quad\text{when}\quad k_1 = \frac{1-k'}{1+k'}, $$
and $K(k)=K(k')$ when $k=k'=1/\sqrt{2}$, so $k_1 = 3-2\sqrt{2}$, and $k_1'=\sqrt{1-k_1^2}$.
Landen's transformation, in turn, is based on the AGM representation of the complete elliptic integral of the first kind. Let $M(a,b)$ be the AGM function, so that for any $a$ we have
$$ K(k) = \frac{\pi a}{2 M(a,ak')}. $$
Then with $k_1 = \frac{1-k'}{1+k'}$, we get
$$ K(k_1) = \frac{1+k'}{2}K(k), $$
and also
$$ K(k) = \frac{\pi a}{2 M(a(1+k),a(1-k))}, $$
$$ K(k_1') = (1+k')K(k'), $$
so that $K(k_1')/K(k_1) = 2K(k')/K(k). $