Additional Scripts For User.Scripts Plugin


Recommended Posts

#!/bin/bash

DIR="/mnt/user/media/movies/MOVIE_FOLDER/"

find "$DIR" -type f -name '*.mkv' | while read filepath; do
docker exec MKVToolNix /usr/bin/mkvmerge -J "$filepath"
done

 

I am trying to write script that use mkvtoolnix container to process my movie files

 

in line: docker exec MKVToolNix /usr/bin/mkvmerge -J "$filepath" i get error

Quote

"The file '/mnt/user/media/movies/MOVIE_FOLDER/MOVIE_FILE.mkv' could not be opened for reading: open file error.\n"

i don't know why script can't read this file

Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.