[mythtv-users] User Job to rip subtitles from each program

David Crawford davidcrawford83 at gmail.com
Mon Jan 30 19:34:38 UTC 2012


Hi,

I managed to get the script to work as a userjob in the end (whay hey!)

only thing is the file names system of the recordings. I use an app to
search through the subtitles and its designed to work with files with a
particular format (basicially the one used in DVBVIewer).

Is there a way that I can maybe add a script that can change the filenames
of the ripped subtitle files to read like:
%date%-%time%-%channel%-%programme% ?

Dave

On 20 January 2012 18:14, Michael T. Dean <mtdean at thirdcontact.com> wrote:

> fixed top posting
>
> On 01/20/2012 12:57 PM, David Crawford wrote:
> > On 20 January 2012 04:25, David Crawford wrote:
> >> On 20 January 2012 00:58, Michael T. Dean wrote:
> >>> On 01/19/2012 03:08 PM, Doug Lytle wrote:
> >>>> David Crawford wrote:
> >>>>> Whats 0.25? Sorry trying to figure this out.
> >>>> The next greatest version of MythTV when it's released
> >>> And note that if you enable "0.25pre" on Mythbuntu repos (
> >>> http://www.mythbuntu.org/repos ), you're enabling unstable/development
> >>> code, and you're expected to keep up with the -dev and -commits mailing
> >>> lists (so you know what works and what doesn't and don't report bugs
> for
> >>> things that shouldn't be working/are works in progress) and so you know
> >>> when to update to fix issues that are fixed.
> >>>
> >>> Chances are, now that Raymond has told you exactly what's wrong with
> >>> your current script, you may want to use the current script until 0.25
> >>> is released, then you can switch it to use mythccextractor,
> >>> instead--especially since either way you'll need a script (as with
> >>> mythccextractor, you'll need to post-process its output to strip out
> >>> duplicate words, as you want).
> >> So enabling that will allow me test the script out at least?
> >>
> >> And yes that would probably be the best thing to do (use the current
> >> script until 0.25) Raymond was right about %DIR% being the thing needed
> and
> >> i'm grateful for the help, the original script writer also told me i
> should
> >> try this but the thing is the script still fails as it only seems to
> work
> >> from the command terminal when i open the terminal where the
> >> video/recording is located and try
> >> python ~dave/uksub2srt/uksub2srt.py -i video.mpg -o
> >> ~dave/subtitles/video.srt
> >>
> >> as opposed to -i ~dave/videos/video.mpg (or where the recording is
> located
> >> /lar/lib/mythtv/livetv)
> >>
> >> i think this is because the script writes a failure folder with logs in
> >> the directory of the video and it can't do it in this case; the error it
> >> gives is
> >>
> >> error: the file /var/lib/livetv/failure/var/lib/livetv/video.mpg.txt
> does
> >> not exist..
> >>
> >> why does it have to do that ? :(
> >>
> >> thanks alot for the help btw, especially raymond -very much appreciated
> > Any advice on how to setup mythccextractor in mythbuntu by any chance?
> >
>
> Most important advice:  going to unstable/development is basically a
> one-way process.  You can't downgrade a database to -fixes/stable, after
> using it with any unstable/development apps.  Therefore, you can only
> downgrade after restoring a pre-upgrade database backup:
> http://www.mythtv.org/wiki/Database_Backup_and_Restore (which means you
> lose any changes that occurred when running the unstable/development
> code).  If you really want to try, just enable 0.25pre--and sign up for
> (and catch up and keep up with)
> http://www.mythtv.org/mailman/listinfo/mythtv-commits and
> http://www.mythtv.org/mailman/listinfo/mythtv-dev .
>
> Mike
> _______________________________________________
> mythtv-users mailing list
> mythtv-users at mythtv.org
> http://www.mythtv.org/mailman/listinfo/mythtv-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120130/f1ded0c6/attachment.html 


More information about the mythtv-users mailing list