In the script:
Code:
# !/bin/bash -x
#gnome-terminal -x
ffmsindex "$1"
#echo FFmpegSource2\(\"$1\"\)>"$1".avs
What it returned:
Code:
Indexing, please wait... 0%
'ndexing error: Can't open 'videofile.mkv
On the plus side, though, if the echo line is not commented out, the .avs file is generated correctly. So at least I know that part's right.
If I'm interpreting the rest correctly, if I give on the Terminal:
./mkvindex.sh videofile.mkv
Then the $1 references in the script are replaced with 'videofile.mkv' (and considering that echo line, it strongly looks like that's the case). Shouldn't this be good enough if you're only working with relative paths? Doing $2/$1 or $1/$2, with or without double-quotes around them resulted in similar errors about not being able to open the file.
Bookmarks