Welcome, Guest. Please login or register.

Login with username, password and session length
Forums Search:  


Author Topic: transcode.bat  (Read 5050 times)

savage

  • Mapper
  • ***
  • Posts: 113
  • Karma: 0
    • View Profile
transcode.bat
« on: August 10, 2008, 05:39:24 PM »
I am not really good with DOS bat script files, but I do not think transcode.bat does what the documentation says. I think the delims= parameter should be "delims=," to match the example in the tutorial.

Anyway, even with the change above, I process only the first MP file. I think I am going to rewrite it using a real shell script. I am not a big .bat guru.
« Last Edit: August 10, 2008, 06:11:55 PM by savage »

-Oz-

  • Map Maker!
  • Administrator
  • Expert Advisor
  • *****
  • Posts: 1577
  • Karma: 27
    • View Profile
    • GPSFileDepot
Re: transcode.bat
« Reply #1 on: August 10, 2008, 07:09:55 PM »
did you put all the files in transcodeQ.txt ?

All it does is read all the files listed there and call cgpsmapper
Code: [Select]
del /q active_transcode.txt

copy TranscodeQ.txt active_transcode.txt

del /q TranscodeQ.txt

echo. >> transcode_log.txt
echo ************************************ >> transcode_log.txt
echo %date% %time% Starting the day's processing >> transcode_log.txt

for /F "delims=" %%i in (active_transcode.txt) do process.bat %%i

del active_transcode.txt

echo %date% %time% Ended the day's processing >> transcode_log.txt
that is the one I use.

I should really integrate it into that program I sent you.  I'll do that tomorrow.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

savage

  • Mapper
  • ***
  • Posts: 113
  • Karma: 0
    • View Profile
Re: transcode.bat
« Reply #2 on: August 11, 2008, 02:16:47 AM »
Yes I tried to run it as a DOS command file and also under cygwin. Here is my active_transcode.txt file:

..\MA\MAtopo03_A_01.MP,..\MA\MAtopo03_A_02.MP,..\MA\MAtopo03_A_03.MP,..\MA\MAtopo03_A_04.MP,..\MA\MAtopo03_A_05.MP,..\MA\MAtopo03_A_06.MP,..\MA\MAtopo03_A_07.MP,..\MA\MAtopo03_A_08.MP,..\MA\MAtopo03_A_09.MP,..\MA\MAtopo03_B_01.MP,..\MA\MAtopo03_B_02.MP,..\MA\MAtopo03_B_03.MP,..\MA\MAtopo03_B_04.MP,..\MA\MAtopo03_B_05.MP,..\MA\MAtopo03_B_06.MP,..\MA\MAtopo03_B_07.MP,..\MA\MAtopo03_B_08.MP,..\MA\MAtopo03_B_09.MP

and my transcode_log.txt file:

************************************
Sun 08/10/2008 21:28:54.92 Starting the day's processing
Sun 08/10/2008 21:28:54.98 Completed cgpsmapper on ..\MA\MAtopo03_A_01.MP
 
************************************
Sun 08/10/2008 21:30:20.01 Starting the day's processing
 
************************************
Sun 08/10/2008 21:36:02.14 Starting the day's processing
Sun 08/10/2008 21:58:12.42 Completed cgpsmapper on ..\MA\MAtopo03_A_01.MP

I can fix that easily using another scripting language. I prefer PERL but I will try your other program first.

-Oz-

  • Map Maker!
  • Administrator
  • Expert Advisor
  • *****
  • Posts: 1577
  • Karma: 27
    • View Profile
    • GPSFileDepot
Re: transcode.bat
« Reply #3 on: August 11, 2008, 10:27:01 AM »
The issue is definitely with the ..\MA\MATopo03_A_01.MP

If you copy cgpsmapper.exe in the \MA\ folder and then put the bat files in there your transcodeQ.txt should just be
MATopo03_A_01.MP
MATopo03_A_02.MP
etc...
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

savage

  • Mapper
  • ***
  • Posts: 113
  • Karma: 0
    • View Profile
Re: transcode.bat
« Reply #4 on: August 11, 2008, 01:02:46 PM »
I was trying to keep my folder clean. Now it is running. It should be done this evening.

-Oz-

  • Map Maker!
  • Administrator
  • Expert Advisor
  • *****
  • Posts: 1577
  • Karma: 27
    • View Profile
    • GPSFileDepot
Re: transcode.bat
« Reply #5 on: August 11, 2008, 02:28:58 PM »
Yea, I'll definitely add it to the program I sent you to allow for much easier processing.  Perhaps I can even replace the mapsettoolkit thing.

Glad its compiling.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!

-Oz-

  • Map Maker!
  • Administrator
  • Expert Advisor
  • *****
  • Posts: 1577
  • Karma: 27
    • View Profile
    • GPSFileDepot
Re: transcode.bat
« Reply #6 on: August 11, 2008, 06:55:00 PM »
I sent you an email with a new version that includes a tab to do this so you don't need the bat file. Also, you can press cancel on the folders now without issues.

If the program works well for you I'll start rewriting segments of the tutorial and release it.
Dan Blomberg
Administrator - GPSFileDepot
GPS Units: Garmin Dakota 20, Garmin GPSMap 60csx, Nuvi 255W, Nuvi 250W, ForeRunner 110, Fenix 2, Tactix Bravo, Foretrex 401
See/Download My Maps!