NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Public Add-ons (3rd party plugins, utilities and skins) Old Stuff (Legacy) GB-PVR Support (legacy) v
« Previous 1 … 113 114 115 116 117 … 1231 Next »
VIDIMPORT crashing

 
  • 0 Vote(s) - 0 Average
VIDIMPORT crashing
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#1
2009-07-23, 11:40 AM
I'v been botherd for a while with this problem and found that filenames with "_" (underscore) not followed by a number seems to crash vidimport/gbpvr, the filename:

"D:\GBPC\The Cosmos_ A Beginners Guide\The Cosmos_ A Beginners Guide_20090719_17301800.avi"

makes it crash and no file is imported. Can someone come up with a fix for it quickly please?

"I'd rather have a bottle in front of me than a frontal lobotomy"
carpeVideo
Offline

Posting Freak

Posts: 824
Threads: 23
Joined: Dec 2006
#2
2009-07-23, 01:02 PM
When does it crash - during import to GBPVR or during processing?
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#3
2009-07-23, 01:30 PM
Reddwarf Wrote:I'v been botherd for a while with this problem and found that filenames with "_" (underscore) not followed by a number seems to crash vidimport/gbpvr, the filename:

"D:\GBPC\The Cosmos_ A Beginners Guide\The Cosmos_ A Beginners Guide_20090719_17301800.avi"

makes it crash and no file is imported. Can someone come up with a fix for it quickly please?

That's odd, I've used vidimport for a while and I've never noticed this. Further, I just checked my RECORDING_SCHEDULE table in gbpvr.db3 and it has lots of these files:
\\ABCD\e\_UK\The Voyage of Charles Darwin\The_Voyage_Of_Charles_Darwin_Ep1.avi
that were entered with vidimport.

As an aside, it's not that hard to enter manually or even write a batch file to import into gbpvr.db3. You just need an entry in the PROGRAMME table to give you an oid which becomes the programme_oid in a corresponding entry in the RECORDING_SCHEDULE table. The hard part of vidimport is looking up info about the file on the net.
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#4
2009-07-23, 07:02 PM
carpeVideo Wrote:When does it crash - during import to GBPVR or during processing?

It crashes during import when it comes to that folder, "ordinary" names is imported fine, but this and all following folders is not imported.

dennit Wrote:That's odd, I've used vidimport for a while and I've never noticed this. Further, I just checked my RECORDING_SCHEDULE table in gbpvr.db3 and it has lots of these files:
\\ABCD\e\_UK\The Voyage of Charles Darwin\The_Voyage_Of_Charles_Darwin_Ep1.avi
that were entered with vidimport.

As an aside, it's not that hard to enter manually or even write a batch file to import into gbpvr.db3. You just need an entry in the PROGRAMME table to give you an oid which becomes the programme_oid in a corresponding entry in the RECORDING_SCHEDULE table. The hard part of vidimport is looking up info about the file on the net.
Reply With Quote

In fact, I would prefer a batch file to enter these recordings into GBPVR, they originates from MediaPortal and Vidimport is invoked from it in a batchfile which also queues the recording for post processing. Since vidimport craches the recording is never put into the postprocessing queue eighter.

Unfortunately all databasehandling is like swahili to me, so if someone could give me an example of a batchfile to put a recording into gbpvr's database and possibly explain what it does I'd be very happy Smile

"I'd rather have a bottle in front of me than a frontal lobotomy"
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#5
2009-07-23, 08:42 PM
Reddwarf Wrote:all databasehandling is like swahili to me, so if someone could give me an example of a batchfile to put a recording into gbpvr's database and possibly explain what it does I'd be very happy Smile

Well, I don't mind messing up my own database, or even encouraging others to mess up theirs, but writing a batch file that screws up yours would worry me. I'd feel responsible.

How about this instead:
Use a batch file to strip your problematical underscores:
Code:
for /f "tokens=1,2 delims=_" %%i in ('dir /b /a:-d') do IF EXIST "%%i_%%j" ECHO "%%i_%%j" To "%%i-%%j"

Replace "ECHO" with "ren" to rename the files. As it is it will just list files.

The 'dir /b /a:-d' will find all files (no directories) in the current directory. The "tokens=1,2 delims=_" will handle files with a single underscore and replace with a hyphen.

If you want to handle files with two underscores, just add:
Code:
for /f "tokens=1,2,3 delims=_" %%i in ('dir /b /a:-d') do IF EXIST "%%i_%%j_%%k" ECHO "%%i_%%j_%%k" To "%%i-%%j-%%k"
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#6
2009-07-23, 08:55 PM
Reddwarf Wrote:"D:\GBPC\The Cosmos_ A Beginners Guide\The Cosmos_ A Beginners Guide_20090719_17301800.avi"

dennit Wrote:\\ABCD\e\_UK\The Voyage of Charles Darwin\The_Voyage_Of_Charles_Darwin_Ep1.avi
This is probably a red herring... but, from dennit's post, underscores don't look like the problem. Could it be something to do with the fact that you have a blank between 'Cosmos_' and 'A Beginners' - might be worth trying to manually edit out the blanks in one of your files then trying Vidimport again...
Reddwarf
Offline

Posting Freak

Posts: 6,629
Threads: 230
Joined: Mar 2007
#7
2009-07-23, 09:18 PM
Tha blank in front of the underscore does not matter, by running vidimport manually I was able to see that it is actually PVRX2.EXE that crashes in a routine called StringToNumber. Obviously PVRX2 expects a number immidiatly following the first underscore, so renaming the file and replacing "_" with "-" makes sence, but ONLY if it not followed by a number. But telling if it is would probably be a very complicated batch Rolleyes?

"I'd rather have a bottle in front of me than a frontal lobotomy"
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#8
2009-07-24, 12:34 PM
Reddwarf Wrote:Tha blank in front of the underscore does not matter, by running vidimport manually I was able to see that it is actually PVRX2.EXE that crashes in a routine called StringToNumber.

FYI: As a test, I updated my vidimport and tried to import some files with underscores - including some with numbers, and some with letters following the underscore. They all imported fine into my database.
ACTCMS
Offline

Posting Freak

UK
Posts: 2,730
Threads: 101
Joined: Jun 2007
#9
2009-07-24, 01:19 PM
dennit Wrote:FYI: As a test, I updated my vidimport and tried to import some files with underscores - including some with numbers, and some with letters following the underscore. They all imported fine into my database.
Did you try underscore followed by a blank by any chance?
dennit
Offline

Posting Freak

Posts: 788
Threads: 43
Joined: Aug 2007
#10
2009-07-24, 02:03 PM
ACTCMS Wrote:Did you try underscore followed by a blank by any chance?

No. When I posted the FYI, I realized I should have tested blanks, but it didn't occur to me when I did the tests.

In addition, I'm not sure why PVRX2.EXE is crashing (in a routine called StringToNumber), since I'm not even sure why PVRX2 would be involved. I would expect vidimport to just collect the data it needs from online, then do an SQL INSERT INTO the two tables needed in the db3. The only other thing that vidimport does that I know of is to add a channel named IMPORT that corresponds to the channel the imported video was recorded on.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (2): 1 2 Next »


Possibly Related Threads…
Thread Author Replies Views Last Post
  Config crashing. JP23 6 2,591 2010-05-30, 04:07 PM
Last Post: sub
  Total Media Extreme Keeps Crashing! HELP! Twillie08 3 5,073 2010-02-16, 01:17 PM
Last Post: mvallevand
  A heads up on a crashing GBPVR service Basher52 1 1,405 2010-01-19, 06:12 PM
Last Post: HarryH3
  pvrx2 crashing when watching live tv hb129 1 1,431 2009-10-18, 10:33 PM
Last Post: hb129
  GBPVR crashing lanmat 14 4,564 2009-09-24, 12:09 AM
Last Post: sub
  GBPVR just started randomly crashing Guy 3 1,448 2009-09-13, 07:24 PM
Last Post: sub
  PC Crashing when MVP is Turned Off ww4397 3 1,880 2009-08-16, 06:01 PM
Last Post: sub
  DJK.eml crashing Sunken 2 1,528 2009-07-22, 07:14 AM
Last Post: Sunken
  Nova500T - just started crashing on tuning wannabepvr 3 1,889 2009-06-20, 02:28 AM
Last Post: wannabepvr
  PC Client PVRX2 Crashing baj1 4 1,963 2009-06-16, 11:05 PM
Last Post: baj1

  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

© Designed by D&D, modified by NextPVR - Powered by MyBB

Linear Mode
Threaded Mode