shrinkwrap icon indicating copy to clipboard operation
shrinkwrap copied to clipboard

When I specify folder containing videos I get docker: invalid reference format.

Open meldarionqeusse opened this issue 4 years ago • 3 comments

I am using a windows system and installed docker and it's working fine.

I tried this command docker run -v /path/to/your/files:/files bennetimo/shrinkwrap \ /files and it worked I saw shrinkwrap doing it's thing. Then I tried change /path/to/your/files to the actual path where I have my videos which is D:\Videos hence ended up with this command: docker run -v D:\Videos:/files bennetimo/shrinkwrap \ /files and got this docker: invalid reference format.

I am thinking that it might be something related to \ / windows vs linux thing but I am totally lost. Can you please help?

meldarionqeusse avatar Aug 08 '21 16:08 meldarionqeusse

Ok figured this out by myself just after posting the question docker run -v d/videos:/files bennetimo/shrinkwrap \ /files worked. But it did not process any files cause input extension does not match. I have multiple file types I do not want to specify any input extension is this possible?

meldarionqeusse avatar Aug 08 '21 16:08 meldarionqeusse

But it did not process any files cause input extension does not match

Put this to specify the input extension --input-extension mp4 like below: docker run -v D:\Videos:/files bennetimo/shrinkwrap --input-extension mp4 /files If you have .mov files, change it to below docker run -v D:\Videos:/files bennetimo/shrinkwrap --input-extension mov /files It is case sensitive. If you put MOV instead of mov, then it wouldn't catch the right file extension.

I have multiple file types I do not want to specify any input extension is this possible?

I'm not sure. I did .mp4 and .mov one after another.

hizhatt avatar Aug 10 '21 03:08 hizhatt

Hi @meldarionqeusse, glad you figured it out. As @hizhatt mentions you need to specify the input extension of the files you want matched.

At the moment there isn't an option to match everything via a wildcard type system. It's a good idea though and something that would be useful.

For now you would need to match each extension type one by one. Of course, you could write a simple bash loop or something that would iterate through all the filetypes you care about and do it that way.

Something like this:

#!/bin/bash
# Add all your extensions here
EXTENSIONS=(mp4 mov)

for e in "${EXTENSIONS[@]}"
do
	echo "Running shrinkwrap for extension: .${e}"
	docker run -v D:\Videos:/files bennetimo/shrinkwrap --input-extension ${e} /files
done
  1. Save to file, like shrinkwrap.sh
  2. chmod +x shrinkwrap.sh
  3. ./shrinkwrap.sh

Just add the extensions you want in the array, and tweak the docker command to the exact one you're using.

HTH

bennetimo avatar Aug 28 '21 22:08 bennetimo