NextPVR Forums
  • ______
  • Home
  • New Posts
  • Wiki
  • Members
  • Help
  • Search
  • Register
  • Login
  • Home
  • Wiki
  • Members
  • Help
  • Search
NextPVR Forums Information Community Announcements v
« Previous 1 … 13 14 15 16 17 … 56 Next »
mTranscode BETA - automatic encoding of recordings

 
  • 0 Vote(s) - 0 Average
mTranscode BETA - automatic encoding of recordings
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#21
2005-12-15, 06:07 PM
mmmm.
As I expected.
Renamerecordings is using a different log file format as renamerecording
See what I can do for the script.
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#22
2005-12-15, 06:29 PM
Working on using your other script for newname.
Here's the idea...I hope it works.
Comskip runs, videoredo runs, then renamerecordings.
Using rename to %newname% and writing the transcode_queue.txt file thus:
Code:
echo %newname% >>"C:\Program Files\devnz\gbpvr\Transcoder\transcode_queue.txt"
(is this right?) then running mencoder.
This should work, and also allow me to have config.ini use USEEXTDIR=1 to move the cleaned and renamed avi.
Anything wrong with my logic or syntax?
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
erik
Offline

Posting Freak

Posts: 1,138
Threads: 123
Joined: Apr 2005
#23
2005-12-15, 06:44 PM
I tried to work with the other log format

Here it is.
Not tested of course

Code:
@echo on

Renamerecordings %1 >renamerecordings.log

rem Process all the lines from the Renamerecording log file
set newname=%1
for /F "usebackq delims=' tokens=1,2,3,4,5" %%i in ("renamerecordings.log") do call :processline "%%j"  "%%l"
goto :afternewname

:processline
rem Remove
if NOT "%~x2" == ".mpg" goto :eof
set oldname=%~1
set newname=%~2
rem Comskip %newname%
rem Call Comclean %newname%

goto :eof

:afternewname
pause

:eof
pause
P4 3GHz 1GB, 250GB, nVidia dualTV, GBPVR 1.3.11, XP
Support Comskip, visit the forum and donate at http://www.comskip.org/
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#24
2005-12-15, 06:53 PM
Reboot,

USEEXTDIR=1 will move the transcoded file into one directory - no sub directories. The intent for this was so that all the movies are in one place for easy access to transport to portable devices.

The key here is no directory structure whatsoever. Is this what you want?

Other than that your flow is correct. Good luck.
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#25
2005-12-15, 06:56 PM
I think I have it right.
Please triple check this portion of my .bat:
Code:
REM the following calls videoredo to edit the file, then renamerecordings.
cscript //nologo "C:\Program Files\VideoReDoPlus\vp.vbs" "%~dpn1.VPrj" "%~dpn1_Cleaned.mpg" /t1 /q
Rem RENAME the old .mpg file and rename the new one to the old name
move "%~dpn1.mpg" "%~dpn1_original.mpg"
move "%~dpn1_cleaned.mpg" "%~dpn1.mpg"
RenameRecordings %1 > renamerecordings.log
REM testing rename to newname section---------------------
rem Process all the lines from the Renamerecordings log file
set newname=%1
for /F "usebackq delims=' tokens=1,2,3,4,5" %%i in ("renamerecordings.log") do call :processline "%%j"  "%%l"
goto :afternewname

:processline
rem Remove
if NOT "%~x2" == ".mpg" goto :eof
set oldname=%~1
set newname=%~2
rem Comskip %newname%
rem Call Comclean %newname%

REM goto :eof

:afternewname

echo %newname% >>"C:\Program Files\devnz\gbpvr\Transcoder\transcode_queue.txt"
echo %newname% >>"C:\Program Files\devnz\gbpvr\transcode_queue.txt"
REM end testing rename to newname section-------------------

REM Testing mencoder section------------------
REM This is the transcoding portion
echo %1 >>  transcode_queue.txt
cd "C:\Program Files\devnz\gbpvr\Transcoder\"
start /min /low mtranscode.vbs
REM end mencoder test section ------------------

:eof

Edit: Yes, I'm moving all avi's into one folder, no subfolders (although that would be nice too!) Big Grin
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#26
2005-12-15, 07:48 PM
why are you making so many transcode_queue.txt files? You only need one queue in the gbpvr directory.

As it stands you make one in transcoder and the gbpvr directory then you add the original file into the queue as well. I suppose this would make sense if you want to transcode both the original and the cleaned file. If this is the case then I'm not sure what will happen if postprocessing.bat gets called before before the transcoding is done. LilYoda is having this issue with the built in transcoder.

Basically, if the if the queue is right then the script will work.

Also, I will think about having the option of keeping the directory structure for moving files...it shouldn't too hard. I've only got two months before my first child Smile
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#27
2005-12-15, 08:08 PM
I wasn't sure exactly which one was being used. I've since deleted the extra line.
What's NOT happening, is the renamed filename being passed into transcode_queue.txt
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#28
2005-12-15, 08:20 PM
here's how it goes...
IMPORTQUEUE=0 will use only the queue in the mtranscode.vbs directory as specified in the config.ini file

IMPORTQUEUE=1 will use the queue in the mtranscode.vbs directory, but once that is done it will look for the queue specified in EXTERNALQUEUE

I did this because it makes it easier for test and also for those who want to run mtranscode on their own files. Also, I didn't want to access the queue.txt file the same time as gbpvr might be writing to it.
jam_zhou
Offline

Senior Member

Posts: 632
Threads: 179
Joined: Sep 2005
#29
2005-12-15, 08:32 PM
post a log of renamerecordings for me...also give me an example of all the new names that you have...let me see if I can help.
reboot
Offline

Posting Freak

Posts: 1,426
Threads: 89
Joined: Mar 2005
#30
2005-12-15, 08:37 PM
OK, trying again with importqueue=0
I still think there's something with getting the renamed filename into transcode_queue.txt
In the .bat there are these lines, the first added by me
Code:
echo %newname% >>transcode_queue.txt"
and the other added by you
Code:
echo %1 >>  transcode_queue.txt
Which one will give me the properly renamed filename (providing erik's code works)?
Should I REM out one of these?
You can never have enough tuners!
Pentium Quad / 4Gb Dual Channel RAM / XPSP3 / 2 x PVR-500, PVR-250 / GB-PVR
« Next Oldest | Next Newest »

Users browsing this thread: 4 Guest(s)

Pages (9): « Previous 1 2 3 4 5 … 9 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  New LG and Samsung NextPVR Web Smart TV App available for beta testing. fred250 388 138,414 2017-04-10, 10:46 AM
Last Post: fred250
  Bluray Player Beta whurlston 23 12,006 2015-10-05, 09:32 AM
Last Post: Lao Pan
  Movies beta vik 66 30,785 2015-03-31, 03:13 AM
Last Post: Lao Pan
  Need beta testers for "NextPVR for Samsung" (client for samsung smart tvs/blurays) reven 61 27,318 2013-12-03, 10:21 AM
Last Post: martint123
  imageGrabLite Beta mvallevand 84 61,747 2013-10-04, 06:40 PM
Last Post: mvallevand
  SSPlus Screensaver - Photo Slideshow Beta ACTCMS 40 14,005 2012-12-07, 01:49 AM
Last Post: ACTCMS
  New External App : Channel Logo Tools For NPVR (Beta) systemshark 0 1,682 2011-09-03, 08:15 AM
Last Post: systemshark
  SSPlus 0.9.1 BETA - a screensaver for NPVR ACTCMS 18 6,051 2011-07-18, 12:52 AM
Last Post: johnsonx42
  System Plugin for nPVR - Early Beta imilne 176 47,661 2011-07-16, 04:31 PM
Last Post: johnsonx42
  NPVR Rename Recordings Batch File raceviper13 8 8,031 2011-04-23, 11:52 PM
Last Post: raceviper13

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

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

Linear Mode
Threaded Mode