Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: MythTV: Users

user jobs - commercial removal

 

 

MythTV users RSS feed   Index | Next | Previous | View Threaded


jsweepstakes at gmail

Aug 8, 2008, 5:46 PM

Post #1 of 5 (768 views)
Permalink
user jobs - commercial removal

hello,
I'm trying to add a commercial removing script to my user jobs..... but I
can't figure how to use the parameters..... the script needs [ Usage:
/usr/share/comRemove/comRemoveScript <VideoDirectory> <FileName> ] and when
I give it %DIR% %FILE% it really gets myth://
192.168.1.50:6543/1038_20080805215900.mpg/1038_20080805215900.mpg am I doing
something or are the parameters incorrect that %DIR% gives?

script found here:
http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials
user jobs page found here: http://www.mythtv.org/wiki/index.php/User_Jobs

thank you!
any other information that people know about using this script would be
appreciated......

hope all is well,
-J


myth at dermanouelian

Aug 8, 2008, 5:58 PM

Post #2 of 5 (733 views)
Permalink
Re: user jobs - commercial removal [In reply to]

On Aug 8, 2008, at 5:46 PM, J wrote:

> hello,
> I'm trying to add a commercial removing script to my user jobs.....
> but I can't figure how to use the parameters..... the script needs
> [ Usage: /usr/share/comRemove/comRemoveScript <VideoDirectory>
> <FileName> ] and when I give it %DIR% %FILE% it really gets myth://
> 192.168.1.50:6543/1038_20080805215900.mpg/1038_20080805215900.mpg am
> I doing something or are the parameters incorrect that %DIR% gives?
>
> script found here: http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials
> user jobs page found here: http://www.mythtv.org/wiki/index.php/User_Jobs
>
> thank you!
> any other information that people know about using this script would
> be appreciated......
>
> hope all is well,

Do you have your videos on another backend somewhere else? Or maybe
you have "Always stream files from backend" turned on? In order to use
a script on remote file, you'll need to NFS mount remote videos to the
same path on each backend to it can find them locally and turn off the
"Always stream files from backend" setting so it will look locally for
the files instead of giving you a network path to them.


knowledgejunkie at gmail

Aug 8, 2008, 6:12 PM

Post #3 of 5 (730 views)
Permalink
Re: user jobs - commercial removal [In reply to]

On 09/08/2008, J <jsweepstakes [at] gmail> wrote:
> hello,
> I'm trying to add a commercial removing script to my user jobs..... but I
> can't figure how to use the parameters..... the script needs [ Usage:
> /usr/share/comRemove/comRemoveScript <VideoDirectory>
> <FileName> ] and when I give it %DIR% %FILE% it really gets
> myth://192.168.1.50:6543/1038_20080805215900.mpg/1038_20080805215900.mpg
> am I doing something or are the parameters incorrect that %DIR% gives?

Per the relevant comment in the source code
(mythtv/libs/libmythtv/jobqueue.cpp), if the file isn't available
locally, its location is shown instead, and %DIR% is replaced by the
myth:// URL.

--
Nick Morrott

MythTV Official wiki:
http://mythtv.org/wiki/
MythTV users list archive:
http://www.gossamer-threads.com/lists/mythtv/users

"An investment in knowledge always pays the best interest." - Benjamin Franklin
_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users


jsweepstakes at gmail

Aug 8, 2008, 6:42 PM

Post #4 of 5 (725 views)
Permalink
Re: user jobs - commercial removal [In reply to]

ok.... so I fixed that by putting the script on the master backend also (but
it still ran on a remote backend...... thats REALLY cool [how does that
work]) anyway.... it doesn't like the query in the middle.... I have no idea
about the structure of the database, how can i fix the query??

[.
Query was:
INSERT INTO inuseprograms (chanid, starttime, recusage, hostname,
lastupdatetime, rechost, recdir ) VALUES ('1015', '2008-08-08T21:30:00',
'flagger', 'mythbox1-LR', '2008-08-08T21:36:15', 'mythmasterb', NULL);
Driver error was [2/1048]:
QMYSQL3: Unable to execute query
Database error was:
Column 'recdir' cannot be null
]

if more output is needed let me know!

thank you!
hope all is well!
-J

> On Aug 8, 2008, at 5:46 PM, J wrote:
>
> > hello,
> > I'm trying to add a commercial removing script to my user jobs.....
> > but I can't figure how to use the parameters..... the script needs
> > [ Usage: /usr/share/comRemove/comRemoveScript <VideoDirectory>
> > <FileName> ] and when I give it %DIR% %FILE% it really gets myth://
> > 192.168.1.50:6543/1038_20080805215900.mpg/1038_20080805215900.mpg am
> > I doing something or are the parameters incorrect that %DIR% gives?
> >
> > script found here:
> http://www.mythtv.org/wiki/index.php/Script_-_RemoveCommercials
> > user jobs page found here:
> http://www.mythtv.org/wiki/index.php/User_Jobs
> >
> > thank you!
> > any other information that people know about using this script would
> > be appreciated......
> >
> > hope all is well,
>
> Do you have your videos on another backend somewhere else? Or maybe
> you have "Always stream files from backend" turned on? In order to use
> a script on remote file, you'll need to NFS mount remote videos to the
> same path on each backend to it can find them locally and turn off the
> "Always stream files from backend" setting so it will look locally for
> the files instead of giving you a network path to them.
>


jsweepstakes at gmail

Aug 8, 2008, 8:12 PM

Post #5 of 5 (718 views)
Permalink
Re: user jobs - commercial removal [In reply to]

Nick Morrott wrote:
> On 09/08/2008, J <jsweepstakes [at] gmail> wrote:
>
>> hello,
>> I'm trying to add a commercial removing script to my user jobs..... but I
>> can't figure how to use the parameters..... the script needs [ Usage:
>> /usr/share/comRemove/comRemoveScript <VideoDirectory>
>> <FileName> ] and when I give it %DIR% %FILE% it really gets
>> myth://192.168.1.50:6543/1038_20080805215900.mpg/1038_20080805215900.mpg
>> am I doing something or are the parameters incorrect that %DIR% gives?
>>
>
> Per the relevant comment in the source code
> (mythtv/libs/libmythtv/jobqueue.cpp), if the file isn't available
> locally, its location is shown instead, and %DIR% is replaced by the
> myth:// URL.
>
>
yea but how come theres a double .mpg its only supposed to be the dir?
I'm going to try to find the source code.... its not on my machine...
-J

_______________________________________________
mythtv-users mailing list
mythtv-users [at] mythtv
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users

MythTV users RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.