LinHES Forums
http://forum.linhes.org/

How to use nuvexport non-interactively??
http://forum.linhes.org/viewtopic.php?f=11&t=8143
Page 1 of 1

Author:  knathraak [ Sat Jan 28, 2006 6:38 am ]
Post subject:  How to use nuvexport non-interactively??

Hi,

I posted this question in another thread, but it probably should be in its own thread, so I apologize in advance for posting twice.

Can nuvexport be used non-interactively? I've experimented with it briefly and it seems really useful, but what would really make it great would be the ability to call it as a userjob automatically after recording a show so that your exported file is right there waiting for you when you want it.

Relatedly:
(1) Where can I find documentation for nuvexport? I've checked the semi-official nuvexport website, and there isn't much there.
(2) What variables are made available to to userjobs? This seems necessary so that the job would know what file to work on. Is this documented somehwere?

Thanks!

Author:  knathraak [ Mon Jan 30, 2006 9:10 am ]
Post subject:  Re: How to use nuvexport non-interactively??

knathraak wrote:
Hi,
Can nuvexport be used non-interactively? I've experimented with it briefly and it seems really useful, but what would really make it great would be the ability to call it as a userjob automatically after recording a show so that your exported file is right there waiting for you when you want it.

Relatedly:
(1) Where can I find documentation for nuvexport? I've checked the semi-official nuvexport website, and there isn't much there.
(2) What variables are made available to to userjobs? This seems necessary so that the job would know what file to work on. Is this documented somehwere?

Thanks!

[Slaps forehead] Duh...there's a manpage. I really thought I had checked for that, but I guess not. It appears most (all?) of the interactive options can be passed as commandline arguments (or specified in nuvexportrc), allowing the program to be run non-interactively. I have not experimented with this mode of operation, but it looks promising.

Regarding the second part--it appears that myth makes a number of "tokens" available to userjobs so things like filename, directory, date, title, etc. can be passed to the script/program in the job spec.
http://mythtv.org/docs/mythtv-HOWTO-12.html#ss12.4

Author:  jsprenkle [ Wed Feb 08, 2006 9:40 am ]
Post subject: 

I was trying the same thing. I wanted to put nuvexport into the
setup and have it run automatically, or in place of the transcoder.
I wrote a shell script to set the options to the defaults I wanted but
it still wants to interactively confirm the settings.

I'm not a perl programmer but I might be able to puzzle out how
to either suppress the prompts or write a shell script to do what
nuvexport is doing.

I was going to look at nuvexportrc, which looks like it might be
better than using a shell script for setting defaults:

https://svn.forevermore.net/nuvexport/browser/trunk/nuvexportrc?rev=132

Author:  jsprenkle [ Wed Feb 08, 2006 9:50 am ]
Post subject: 

this might be just the ticket:

http://mysettopbox.tv/phpBB2/viewtopic.php?t=1760&highlight=mencoder

Author:  knathraak [ Wed Feb 08, 2006 2:53 pm ]
Post subject: 

So, since my last post to this thread, I've actually emailed quite a bit with the developer of nuvexport, Chris Petersen. It turns out that all the options can be configured from the command line. A Chris recommends looking at /etc/nuvexportrc to see what options are available.

If you want to run it from the command line and background it, Chris recommends using screen.

Nuvexport runs quite nicely as a userjob if take advantage of its commandline options and myth's "tokens". Wrapping it in a script can give you even more control over it.

In the meantime I've gotten distracted from working directly with nuvexport, since it wasn't giving me the control I needed over the encoding process. After digging into nuvexports various perl modules, and spending some quality time with ffmeg's manpage, I've been working on wrapping ffmpeg with a small script that can accept myth's "tokens" as arguments.

Author:  jsprenkle [ Wed Feb 08, 2006 5:39 pm ]
Post subject: 

What's "screen"?

I tried command line options to nuvexport. It does change the default for the option but still requires me to confirm it interactively.

Author:  spalVl [ Wed Feb 08, 2006 7:48 pm ]
Post subject: 

Another direction I am trying to work out is to utilize the Myth2ipod scripts to automate the proccess.

Myth2ipod uses ffmpeg and so far looks promising encoding to a multipass XviD format using mp3 audio. My previous tuner was VL4 which didn't work, but my PVR-150 recording are now encoding (still waiting for 1 recording to finish) My plan is to adapt bbutler and wififun's script enabling a larger picture size.

http://mysettopbox.tv/phpBB2/viewtopic.php?t=7816

Author:  knathraak [ Thu Feb 09, 2006 5:18 am ]
Post subject: 

spalVl wrote:
Another direction I am trying to work out is to utilize the Myth2ipod scripts to automate the proccess.

Myth2ipod uses ffmpeg and so far looks promising encoding to a multipass XviD format using mp3 audio.


You'll definitely want to spend some quality time with the ffmpeg manpage in that case.

Author:  jsprenkle [ Thu Feb 09, 2006 6:01 pm ]
Post subject: 

Got mine working using mencoder to convert the video to xvid.
The only gotchas were these:

1. Don't forget to enable the job on the page before you enter the command line for the job. There are check boxes to allow the jobs. If you don't enable them they will queue up but never run.
2. The %DIR% variable doesn't include a trailing slash so you need to add it.
3. The title and subtitle will have spaces in them which will confuse the program decoding the command line. Escape them with double quotes:
Code:
"%TITLE% - %SUBTITLE%"

4. use chmod +x to make your script executable.
5. you might want to prefix your convertion program with
Code:
nice 15

so it will run at low priority and not interfere with your recording process.

here's what mine ended up like:
Code:
nice 15 mencoder $1 -ovc lavc -lavcopts vcodec=mpeg4:vbitrate=600:vhq:vqmin=2:vlelim=-4:vcelim=9:lumi_mask=0.05:dark_mask=0.01
 -vop scale -zoom -xy 640 -oac mp3lame -lameopts abr:br=96 -o "/myth/video/$2.avi"

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/