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) v
« Previous 1 2 3 4 5 6 … 125 Next »
Automated Cutting and Transcoding Guide Using Mencoder

 
  • 0 Vote(s) - 0 Average
Automated Cutting and Transcoding Guide Using Mencoder
superflysocal
Offline

Junior Member

Posts: 38
Threads: 5
Joined: Oct 2008
#721
2008-10-13, 03:35 AM
JavaWiz Wrote:Not 100% sure (stattik should verify), but I think you need to add the following after the :cleanup label in the batch file:

Code:
:cleanup
IF /I %update_db% EQU yes (
  ECHO.
  ECHO Updating GBPVR database with new extension--%output%
  ECHO.
  FOR %%d in (%output%) DO (
    FOR %%b in (%name%) DO (
    %sqlite3_path%sqlite3.exe -separator "," "%gbpvr_db_path%" "UPDATE RECORDING_SCHEDULE SET filename = '%local_recordings_disk_letter%%%~pnxd' where filename like '%local_recordings_disk_letter%%%~pnxb';"
    SET question_mark_check1=%local_recordings_disk_letter%%%~pnd
    SET question_mark_check2=%%~nxd
    SET question_mark_check3=%local_recordings_disk_letter%%%~pnb
    SET question_mark_check4=%%~nxb
    )
  )
)
[B][SIZE=3][COLOR=red]IF /I %dvdrip% NEQ yes ([/COLOR][/SIZE][/B]
    [B][SIZE=3][COLOR=red]WizRenameRecording "%newname%" -default[/COLOR][/SIZE][/B]
[B][SIZE=3][COLOR=red])[/COLOR][/SIZE][/B]
%debug%

This implies that you've run WizRename recording and set a default pattern.


so would i still need to post the snipet that I posted above (which I got from you) or does this replace that? if so, where does that goes?
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#722
2008-10-13, 05:49 AM
superflysocal Wrote:so would i still need to post the snipet that I posted above (which I got from you) or does this replace that? if so, where does that goes?
The original snippet was more for a stand-alone batch file, or what could be used in PostProcessing.bat which is triggered after the recording is complete. Depending on how you trigger stattik's script, you may just want to rename the recording in PostProcesisng.bat, then when you trigger stattik's script, the file will already be renamed.

If you still want the rename in stattik's batch file, you only need to find the appropriate place to call WizRenameRecording.exe, and the correct variable name to use. I'm not familiar with that batch file, but it looks like either %output% or %newname% are the possible variables. I think this call needs to be added somewhere near the end of the processing, but not 100% sure where it makes most sense to place it.

As I've looked at it more, I suspect it may be best to put the following lines right after the :del_files call at the bottom of the script:

Code:
:: IF CLEANUP IS ENABLED, EDL FILES ARE DELETED ONCE THE ASSOCIATED VIDEO IS DELETED
FOR /R %recordings_path% %%t IN (*.edl) DO (
  CALL :del_edlfiles "%%t"
)

:: Call WizRenameRecording for all NON DVD Rip files
IF /I %dvdrip% NEQ yes (
WizRenameRecording "%newname%" -default
)

::      #### Script is finished ####
ECHO.
ECHO Script is finished.
ECHO.

I've limited the rename to only those that are not DVD rips, not sure that the rename makes sense for those...
superflysocal
Offline

Junior Member

Posts: 38
Threads: 5
Joined: Oct 2008
#723
2008-10-13, 01:01 PM
JavaWiz Wrote:The original snippet was more for a stand-alone batch file, or what could be used in PostProcessing.bat which is triggered after the recording is complete. Depending on how you trigger stattik's script, you may just want to rename the recording in PostProcesisng.bat, then when you trigger stattik's script, the file will already be renamed.

If you still want the rename in stattik's batch file, you only need to find the appropriate place to call WizRenameRecording.exe, and the correct variable name to use. I'm not familiar with that batch file, but it looks like either %output% or %newname% are the possible variables. I think this call needs to be added somewhere near the end of the processing, but not 100% sure where it makes most sense to place it.

As I've looked at it more, I suspect it may be best to put the following lines right after the :del_files call at the bottom of the script:

Code:
:: IF CLEANUP IS ENABLED, EDL FILES ARE DELETED ONCE THE ASSOCIATED VIDEO IS DELETED
FOR /R %recordings_path% %%t IN (*.edl) DO (
  CALL :del_edlfiles "%%t"
)

:: Call WizRenameRecording for all NON DVD Rip files
IF /I %dvdrip% NEQ yes (
WizRenameRecording "%newname%" -default
)

::      #### Script is finished ####
ECHO.
ECHO Script is finished.
ECHO.

I've limited the rename to only those that are not DVD rips, not sure that the rename makes sense for those...

Actually, stattik's script is my Postprocessing.bat right now. That's why i think Wizrecordrename should be done before stattik's script as you mentioned above. That way, it will let stattik's script take care of updating the databse also. I wanted to put your Wizrenamerecording snipet that i posted earlier in the Postprocessing.bat (which is stattik's script) but before the start of his "main code". Your snipet would output a %newname% variable. i just don't know how to change this part of his main code to use that new variable instead of %1.

PHP Code:
::      BEGIN MAIN SCRIPT 
SET name
=%1 
SET short_name
="%~nx1" 
SET title="%~n1" 
SET source_size=%~z1 
SET start_opt
="%short_name:"=% - stattik_transcode" /low /wait /min 

I figure i can do SET name=%newname% but I don't know how to change short_name and title.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#724
2008-10-13, 06:50 PM
superflysocal Wrote:i am using 0.5.1f (from the wiki) and it's not there. I do see it in 0.5.6ar but should I use 0.5.6br instead and which version (I see it posted a few times).

0.5.6br would be the most up-to-date version. I haven't posted it to the WIKI because there's a few things I need to add first.

Quote:Also, what should I set the move_dir to if I don't want the file moved?
Code:
SET cleanup=no

That will turn off moving.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#725
2008-10-13, 06:59 PM
Quote:If I am running comskip here in your script (as PostProcessing.bat with comskip=yes) should I set commercial detection to None in GBPVR config program?

Yes

Quote::: BEGIN MAIN SCRIPT
SET name=%1
SET short_name="%~nx1"
SET title="%~n1"
SET source_size=%~z1
SET start_opt="%short_name:"=% - stattik_transcode" /low /wait /min


%output% is going the be the final name.

Quote:so what i want is:
originalname.mpg to newfilename.mpg (wizardrename)
newfilename.mpg converted to newfilename.avi (stattik's script)
library point to newfilename.avi (stattik's script)

or
originalname.mpg to originalname.avi (stattik's script)
originalname.avi to newfilename.avi (wizardrename)
library point to newfilename.avi (stattik's script)

The second version would more plausible. I'm not sure what will change with the rename but the current version of the script searches the GBPVR DB using the original name. If the name is changed, it most likely won't find it. Can you give me an example of how the would look like after the rename?
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#726
2008-10-13, 07:03 PM
JavaWiz Wrote:Not 100% sure (stattik should verify), but I think you need to add the following after the :cleanup label in the batch file:

Code:
:cleanup
IF /I %update_db% EQU yes (
  ECHO.
  ECHO Updating GBPVR database with new extension--%output%
  ECHO.
  FOR %%d in (%output%) DO (
    FOR %%b in (%name%) DO (
    %sqlite3_path%sqlite3.exe -separator "," "%gbpvr_db_path%" "UPDATE RECORDING_SCHEDULE SET filename = '%local_recordings_disk_letter%%%~pnxd' where filename like '%local_recordings_disk_letter%%%~pnxb';"
    SET question_mark_check1=%local_recordings_disk_letter%%%~pnd
    SET question_mark_check2=%%~nxd
    SET question_mark_check3=%local_recordings_disk_letter%%%~pnb
    SET question_mark_check4=%%~nxb
    )
  )
)
[B][SIZE=3][COLOR=red]IF /I %dvdrip% NEQ yes ([/COLOR][/SIZE][/B]
    [B][SIZE=3][COLOR=red]WizRenameRecording "%newname%" -default[/COLOR][/SIZE][/B]
[B][SIZE=3][COLOR=red])[/COLOR][/SIZE][/B]
%debug%

This implies that you've run WizRename recording and set a default pattern.

That placing is fine. This would be the addition:

Code:
IF /I %dvdrip% NEQ yes (
    WizRenameRecording "%output%" -default
)

There still is the matter of updating the DB with the new name.
JavaWiz
Offline

Posting Freak

Jacksonville, FL. USA
Posts: 2,522
Threads: 141
Joined: Dec 2006
#727
2008-10-13, 07:27 PM
This is what I think you can do.

1) Rename stattik's script back to stattik_transcode_0.5.1f.bat
2) Place the renamed file in gbpvr root directory.
3) Use the new PostProcessing.bat. (see attached file)

This will call WizRenameRecording to rename the file and update the db with the new name. The stattik transcode script does not have to be changed at all.

As well as outputting to the screen, it will create a logs/PostProcessing.log file.
-stattik-
Offline

Posting Freak

Posts: 924
Threads: 26
Joined: Mar 2005
#728
2008-10-13, 08:30 PM
That looks like a good solution JavaWiz. Only WizRenameRecording knows the current and new names so it would be best to update the DB from there.
superflysocal
Offline

Junior Member

Posts: 38
Threads: 5
Joined: Oct 2008
#729
2008-10-14, 01:57 AM (This post was last modified: 2008-10-14, 02:17 AM by superflysocal.)
JavaWiz Wrote:This is what I think you can do.

1) Rename stattik's script back to stattik_transcode_0.5.1f.bat
2) Place the renamed file in gbpvr root directory.
3) Use the new PostProcessing.bat. (see attached file)

This will call WizRenameRecording to rename the file and update the db with the new name. The stattik transcode script does not have to be changed at all.

As well as outputting to the screen, it will create a logs/PostProcessing.log file.

Thanks for both your help, Wiz and stattik. I am using 0.5.6br.bat so i changed that in your Postprocessing.bat as well as the WizRename options to {show}{[-]}{episode}-{month}{day}{yearShort}-{hour}{minute}. I will try it now and report back. I'm surprise I am the first to ask of this to combine two such wonderful scripts/apps.
superflysocal
Offline

Junior Member

Posts: 38
Threads: 5
Joined: Oct 2008
#730
2008-10-15, 02:40 PM
It appears to working! Thanks again to both of you for the help and support.

Now i just need to tweak comskip. With this new arrangement, it appears that comskip might somehow be running twice because the .avi file is starting a lot later than the start of the show.
« Next Oldest | Next Newest »

Users browsing this thread: 1 Guest(s)

Pages (89): « Previous 1 … 71 72 73 74 75 … 89 Next »
Jump to page 


Possibly Related Threads…
Thread Author Replies Views Last Post
  Yet another guide enhancer :0) carpeVideo 18 10,392 2010-04-07, 03:39 PM
Last Post: carpeVideo
  Guide Questions native 6 4,282 2010-02-10, 01:23 PM
Last Post: native
  Mencoder with multiple TS audio streams lanmat 2 4,624 2009-11-09, 12:15 PM
Last Post: lanmat
  mencoder error messages fvfv 3 2,868 2009-10-19, 08:07 PM
Last Post: -stattik-
  TV guide table colour Pob 3 2,505 2009-09-21, 10:55 PM
Last Post: Snooze
  Searching Guide Contents skycyclepilot 1 2,034 2009-08-23, 03:30 PM
Last Post: McBainUK
  Search for Movies in TV Guide spdrac1 1 2,042 2009-05-23, 03:37 PM
Last Post: JavaWiz
  MPEG2 transcoding to Xvid/AAC -which plug-in/tool are best fit? blizard 6 5,143 2009-03-01, 05:43 PM
Last Post: Deusxmachina
  Warning: Mencoder and large MPEG2 files can fail jam_zhou 1 1,704 2008-07-26, 01:39 AM
Last Post: sgilani
  Comskip, Comclean, Rename Recording, and Transcoding heath11 18 10,762 2008-03-27, 11:45 PM
Last Post: _Dude_

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

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

Linear Mode
Threaded Mode