Author |
Message |
wbalradio
|
Posted: Wed Aug 03, 2005 1:30 pm |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
Ardell and I are having similar issues with the job queue.
We're both trying to run nuv2avi after transcoding. His problem is described here - http://mysettopbox.tv/phpBB2/viewtopic.php?t=3433
Essentially, his jobs are staying queued forever.
My jobs (which are almost exactly the same) don't get queued at all.
In the "general" section of mythv-setup,
I've checked "Allow 'User Job #1' Jobs.
I changed the name of user job #1 to "Convert to AVI"
My user job #1 command is
Code: /usr/local/bin/nuv2avi -i %FILE% -o /myth/tv/%TITLE%-%SUBTITLE%.avi
-------------------------------------------------------------------------------------
Well, I see what my problem was. Silly me, I was trying to do my scheduling from Mythweb, which doesn't appear to be able to request jobs after a recording. Is this being worked on, maybe? Does anyone know if it's in the CVS code of mythweb?
I scheduled from mythfrontend, and got the job to come into the queue. However, it's stuck, and it's status is "running." It's been that way for the past hour or so.
Can I cancel a job? My current job limit is one, so this will likely prevent the running of other jobs until i can get it fixed.
|
|
Top |
|
 |
tjc
|
Posted: Wed Aug 03, 2005 7:50 pm |
|
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location:
Arlington, MA
|
Transcode jobs can take a long time, especially at low priority when other stuff is going on.
|
|
Top |
|
 |
wbalradio
|
Posted: Thu Aug 04, 2005 6:34 am |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
Believe me, this job shouldn't take a long time.
1. The nuv2avi job was still "running" when I left work, 3 hours after the job "started".
2. My (intentionally very low quality) mpeg2s are getting transcoded to divx at an even lower quality. I've finally reached a filesize that's about 1.5 -2 megs/minute, which I want. (oh man, they look horrible! - but that's irrelevant) That tanscoding job typically takes about 10% of the show length to complete.
3. This particular job was running on a stub of a show that was about 7 minutes long.
4. When explicitly running nuv2avi on the command line, it runs at about 800fps, and generally takes 2-3s to convert a file of similar size. Which is why it's so freaking fantastic. The shows I'm recording are likely to be needed immediately after their completion, so quick conversions are wonderful.
5. I set these jobs to run at medium priority - and there's nothing else going on. This machine is a backend + mythweb. No front end was running. I don't need a front end for what I'm doing.
6. Some time after the job started running, I checked the load of the machine - 0 0 0. So the job definitely isn't doing anything.
I'm going to do some serious checking today - I'm fairly sure that ps isn't going to return any running nuv2avi processes, but maybe it'll tell me something I need to know. And who knows what the mythbackend logs might reveal?
|
|
Top |
|
 |
wbalradio
|
Posted: Thu Aug 04, 2005 11:34 am |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
Ha! I was wrong.
So I checked PS, and it returns:
mythtv 5142 0.0 0.1 29764 724 ? SNl Aug 03 .....
The rest is unnecessary. The important part (in red) indicates to us a few things.
1. S: Interruptible Sleep (waiting for an event to complete)
2. N: Low priority
3. l: is multi-threaded
So it's waiting for an event to complete. I can't figure out what it's waiting for, though.
|
|
Top |
|
 |
wbalradio
|
Posted: Thu Aug 04, 2005 2:20 pm |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
More info:
Code: /usr/local/bin/nuv2avi -i %FILE% -o /myth/tv/%TITLE%-%SUBTITLE%.avi &
I added an & to the end of my queue command, and now the queue job comes up as having completed, but in reality it didn't run.
Checking the mythbackend.log, I see that after the transcoding job finished,
Unable to open file: No such file or directory
I'm guessing that something in the syntax isn't working out, and for whatever reason, the user job is passing an invalid file name to nuv2avi.
|
|
Top |
|
 |
MisoSoup777
|
Posted: Thu Aug 04, 2005 9:47 pm |
|
Joined: Sun May 23, 2004 1:50 pm
Posts: 78
Location:
Palmdale, CA
|
If I read your post correctly, you're trying to convert mpeg2 nuv files to avi's with nuv2avi. If so, it will hang forever as nuv2avi does not support mpeg2 nuv files, only mpeg4, mjpeg and rt-jpeg nuv's.
http://mythtv.beirdo.ca/nuvtools/nuv2avi.php
|
|
Top |
|
 |
ardell
|
Posted: Fri Aug 05, 2005 6:23 am |
|
Joined: Sat Jul 30, 2005 7:12 pm
Posts: 2
|
I'm transcoding mine to mpeg4 before I nuv2avi them. I'm guessing wbal is right with the input parameters being incorrect; anyone know what the %FILE% returns? Is it "/myth/tv/[whatever].nuv" or just "[whatever].nuv"? I had assumed the latter because there's an option in there for the directory (%DIR%).
Wbal, have you tried quoting your "%TITLE%-%SUBTITLE%" thing? If the title and/or subtitle has spaces you're out of luck as is.
|
|
Top |
|
 |
wbalradio
|
Posted: Fri Aug 05, 2005 12:02 pm |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
No, no - I'm converting "mpeg4"s. At least the weird mpeg4 .nuvs that mythtv makes. My transcoding jobs are running fine. They complete, and then the "Convert to AVI" user job "runs," leaving the error message in the mythbackend.log.
I just changed my job command to -
Code: /usr/local/bin/nuv2avi -i %FILE%.nuv -o /myth/tv/%TITLE%-%SUBTITLE%.avi &
Since I'm getting a file not found error, I decided to see if %FILE% contains the extension. Maybe it doesn't? If it does, and I still get a file not found error after changing %FILE% to %FILE%.nuv, then the %FILE% substition isn't doing what it should.
I'm going to run another user job in a few minutes that cats %FILE% to a file, so I can see exactly what exactly is contained in %FILE%.
|
|
Top |
|
 |
wbalradio
|
Posted: Fri Aug 05, 2005 2:34 pm |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
Well, let's see.
The attempt to cat %FILE% to file didn't work. The job just lives in the queue, and there's no evidence of any problems in the mythbackend.log.
Also, I noticed from ps that my "Convert to Avi" command process is identical to how it's entered in the user job entry box - so it doesn't look like the user job is passing %FILE% as anything but "%FILE%".
|
|
Top |
|
 |
wbalradio
|
Posted: Wed Aug 10, 2005 1:34 pm |
|
Joined: Fri Jul 22, 2005 10:55 am
Posts: 14
|
Okay. I've almost got this fixed.
Someone on the Mythtv-users list alerted me to the (forehead-smackingly obvious) fact that I was missing the %DIR% variable.
So...
Code: /usr/local/bin/nuv2avi -i %FILE%.nuv -o /myth/tv/%TITLE%-%SUBTITLE%.avi becomes Code: /usr/local/bin/nuv2avi -i %DIR%/%FILE%.nuv -o /myth/tv/%TITLE%-%SUBTITLE%.avi
Or at least almost that. The %TITLE% is almost sure to have spaces in it, so I'm trying to figure out the exact quoting mechanism. I'll post again when I'm successful.
|
|
Top |
|
 |
kdavison007
|
Posted: Tue Nov 08, 2005 10:03 pm |
|
Joined: Tue Nov 08, 2005 10:01 pm
Posts: 1
|
Have you resolved this? I'm curious as I'm trying to do the same thing... make all of my weird filenames.nuv turn into something I can understand.
|
|
Top |
|
 |
jsprenkle
|
Posted: Thu Feb 09, 2006 10:30 am |
|
Joined: Sun Dec 04, 2005 1:54 pm
Posts: 17
|
wbalradio wrote: Code: /usr/local/bin/nuv2avi -i %DIR%/%FILE%.nuv -o /myth/tv/%TITLE%-%SUBTITLE%.avi
Or at least almost that. The %TITLE% is almost sure to have spaces in it, so I'm trying to figure out the exact quoting mechanism. I'll post again when I'm successful. I believe you want this: Code: /usr/local/bin/nuv2avi -i %DIR%/%FILE%.nuv -o "/myth/tv/%TITLE%-%SUBTITLE%.avi"
|
|
Top |
|
 |
uzik
|
Posted: Sat Nov 04, 2006 12:09 am |
|
Joined: Tue Apr 19, 2005 10:30 am
Posts: 50
|
You also need to edit out invalid characters in the titles of the shows.
I record a show that has a colon in the title and it's not a valid character
for a file name. In my script I preprocess the name through the stream
editor sed to remove invalid characters. I've posted a copy of the
script I use here. A search for 'sed' ought to find it.
|
|
Top |
|
 |