Chore/reuse file utils for video path

Try to fix the build for #7606

Credits goes to @uorbe001