anthwlock / untrunc

Restore a truncated mp4/mov. Improved version of ponchio/untrunc
GNU General Public License v2.0
2.08k stars 198 forks source link

Could not find the file path [Docker] #149

Open sc0rp10n-py opened 9 months ago

sc0rp10n-py commented 9 months ago

I have both files placed in the root folder, it self, but running the docker gives error

sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc % ls
COPYING     Dockerfile  Makefile    README.md   broken.mov  ok.mov      s       snapcraft.yaml  src     untrunc.pro
sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc % docker run -v /:/mnt untrunc ./ok.mov ./broken.mov
Info: version 'v308-d72ec32-dirty' using ffmpeg '3.4.11-0ubuntu0.1'
Info: reading ./ok.mov
Could not open file './ok.mov': No such file or directory
sc0rp10n@sc0rp10n-pys-MacBook-Air untrunc % 
nk9 commented 6 months ago

By calling -v /:/mnt, you're telling Docker to mount the local folder / into the container at the mountpoint /mnt. You're then calling untrunc in the container with paths referring to the container's PWD.

You probably want docker run -v .:/mnt untrunc /mnt/ok.mov /mnt/broken.mov.