Page 1 of 1

sh files as additional MythVideo file type

Posted: Fri Feb 14, 2014 5:46 am
by jflatt
This is the scenario; I like to rip my 3D blu-rays to two mkvs, one with the left-side video, audio, subtitles, etc., and one with just the right-side video. If I want to watch it in 2D, I just pick the left file, no problem. However if I want to watch it in full 3D, I'd need to launch bino via a script to pass a few parameters and also both left and right filenames. I tried adding .sh as a new file type, with /bin/sh as the player. This is the result:

Managed child (PID: 5560) has exited! command=/bin/sh "myth://Videos@192.168.1.1:6543/Gravity/Gravity.sh", status=32512, result=127

Storage Groups! Any ideas for a workaround?

Re: sh files as additional MythVideo file type

Posted: Fri Feb 14, 2014 12:07 pm
by rwagner
Feed that URL to a script that can parse it, find the file, and pull it down from a remote backend if necessary.

Re: sh files as additional MythVideo file type

Posted: Mon May 05, 2014 1:21 am
by jflatt
If anybody needs it, here was what I used:

Code: Select all

#!/bin/bash
match="myth://Videos@192.168.1.1:6543"
repl="/mnt/store/Videos"
source ${1/$match/$repl}

Re: sh files as additional MythVideo file type

Posted: Mon May 05, 2014 1:32 am
by rwagner
Note that the above video assumes all video files are available on the local filesystem, with only a single defined storage location, and are not being streamed from a remote backend.