sh files as additional MythVideo file type

For discussion related to MythTV which doesn't belong in another forum.

Moderator: Forum Moderators

Post Reply
jflatt
Newcomer
Posts: 10
Joined: Mon Feb 10, 2014 3:56 pm
United States of America

sh files as additional MythVideo file type

Post by jflatt » Fri Feb 14, 2014 5:46 am

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?

User avatar
rwagner
Developer
Posts: 217
Joined: Thu Feb 06, 2014 11:37 pm
United States of America

Re: sh files as additional MythVideo file type

Post by rwagner » Fri Feb 14, 2014 12:07 pm

Feed that URL to a script that can parse it, find the file, and pull it down from a remote backend if necessary.

jflatt
Newcomer
Posts: 10
Joined: Mon Feb 10, 2014 3:56 pm
United States of America

Re: sh files as additional MythVideo file type

Post by jflatt » Mon May 05, 2014 1:21 am

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}

User avatar
rwagner
Developer
Posts: 217
Joined: Thu Feb 06, 2014 11:37 pm
United States of America

Re: sh files as additional MythVideo file type

Post by rwagner » Mon May 05, 2014 1:32 am

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.

Post Reply