|
SageTV Customizations This forums is for discussing and sharing user-created modifications for the SageTV application created by using the SageTV Studio or through the use of external plugins. Use this forum to discuss customizations for SageTV version 6 and earlier, or for the SageTV3 UI. |
View Poll Results: Do you use batch files for various sagetv related functions? | |||
Yes. Batch files rule.. haha.. | 9 | 60.00% | |
No. I can code and write apps or do not need it. | 4 | 26.67% | |
What is a batch file? | 2 | 13.33% | |
Voters: 15. You may not vote on this poll |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
batch files for divx encoding, broadcast, more..
Hello everyone...
well, i think i finally am understanding how to do a few things i've wanted to do with sagetv and my files for a while.. i have finally created a script/batch file that will: 1. check folders for a .VPrj file 2. if it exists, it will then take the list of movies and then encode them to a more streamable divx format using VirtualDub 3. once it creates the avi file, it then goes back and moves the file to a new directory of encoded movies 4 and lastly, it goes through and deletes the original mpg movie, .log, .ccno, .txt and .VPrj files for that show name. I then call it from Windows Scheduler to run each night at 4:30am. This is a pretty basic batch file as of now, it does not remove the commercials that are detected. However, i plan to working on adding that into the batch using comskip.exe or an external comskip i've seen around that takes some good parameters... i will post the script file for those that might be interested in using it to automate encoding and cleanup afterwards. NOTE: this prob can be modified to do a crap load of other functions, like burn movies to a dvd. I'm also working on creating another batch files to automatically generate an html web page with teh video embeded into it.. :-) i'll attach my batch files later in the day.. Just thought i'd share my batch file since it took me about 3 days to research and finally get it working! peace seamonkey420 ________ NOTE: uploaded zip file with: batch file, my tvshows.vcf (virtual dub profile for divx encoding), and a copy of virtualdub mpeg version) Admins: let me know if i need to remove the virtualdub v1.5 mpeg build or not from the zip, figured i'd include since i was having the nasty mpeg error prob from the original virtualdub build. I worked on the script a bit more today to refine it and it seems to do quite a bit of what i want, comskip implementation and perhaps even commercial stripping will be looked at!! edit: sorry, uploaded w/encoding command rem'd out.. hehe, was testing the cleanup part before uploading.. correct one up.. Last edited by seamonkey420; 03-15-2005 at 07:28 PM. Reason: updated title, corrected weird spacing in batches.. |
#2
|
||||
|
||||
I'm VERY interested in your CLI for VDub. I've always gotten errors when I try it. I would LOVE to automate my movie recordings getting encoded to DIVX!
Right now I copy the files I want to encode to a folder, then use DubMan (a scripting program for VDub) to run a job on all those files. Removing the manual copy step would be great. |
#3
|
|||
|
|||
Where's this batch file? I'd be very interested in this as well. Would be awesome if this could be implemented into a stv like comskip where whenever your system isn't recording it'll use that time to process and convert to divx.
|
#4
|
||||
|
||||
Quote:
http://sage.tv/forums/showthread.php?t=10361& |
#5
|
|||
|
|||
Here's the actual batch file from the above zip file, so others can copy and paste to create their own batch files if they don't need the other files in my zip..
here's the logic used (found the "for" command on these forums! then played with and tweaked). NOTE! that to get this to work, i usually will go into my recorded shows in the morning and then comm detect them, i have not setup my comskip to detect when recording yet... the trigger file can be changed too, i didn't use .mpg since it would try to encode currently recording shows and fail miserably.. what is the true file that sagetv creates when it finishes recording? i used the .VPrj since it creates it after i choose to comm detect the recorded movies. but again, can be changed very easily. The biggest jump i had when making/testing it was to be sure to keep the batch file and the .vcf profile in the same directory as virtualdub, that way i could call virtualdub.exe in a much smoother way without a variable, etc. I'll post new batches for others to use, cuz this seems to be an area of computer (batch files) and in sagetv thats slowly dying yet are so very useful for us non-oo coding geeks.. hehe.. oh yea, be sure to have norton/mcaffee/etc allow your script to run too if it detects it as an unknown script... peace seamonkey420 _________________________________ Quote:
|
#6
|
|||
|
|||
updated to remove orphaned files (log, ccno, txt, VPrj)
an updated batch, now cleans up orphaned files too...
copy and paste into a text file, then rename to whatever.bat Quote:
seamonkey420 Last edited by seamonkey420; 03-15-2005 at 07:26 PM. |
#7
|
|||
|
|||
Another quickie batch file for windows media encoder and broadcasting
a quickie script to broadcast/stream movie/tv files in a specific folder via windows media encoder to the web or network
Use windows scheduler to setup a broadcast schedule! Requirementes/Notes: -this requires to have Windows Media Encoder installed -requires a .prx windows media encoder profile to be saved in same folder as encoder folder (ie C:\Program Files\Windows Media Components\Encoder ) -also put batch file in same folder as .prx (C:\Program Files\Windows Media Components\Encoder) Be sure to configure the bdir parameter for the folder of files, you want to broadcast, also the port parameter, and the filetype parameter. To view the broadcast, just open up winamp or windows media player and open the IP of the computer broadcaster or if on the network, computer name and port examples: tvserver:8001 http://mytvserver.dyndns.org:8001 here's the quickie batch file. this is another batch file that could prob be used with a few more options/lines to be super useful, i'm thinking of having it broadcast a simpsons episode at 4pm each day... hehe.. Quote:
seamonkey420 Last edited by seamonkey420; 03-15-2005 at 07:27 PM. |
#8
|
|||
|
|||
another udpated batch, now creates folder with current date!
well.. been doing more tweaking and realized that my files are starting to be come very unorganized and hard to deal with...
so now i updated the batch file to create a subfolder in the odir location with the current date in the mmddyyyy format (ie 03152005 ). i have been thinking of trying to get it to create more subfolders with just the show name but thats pretty hard right now with the way sagetv names files, no delimiter just case changes... oh well.. but here's a zip of the new divx encoding/cleanup batch and virtualdub and a sample .vcf profile of mine and a .prx (windows media encoder) profile. peace seamonkey420 ps i'm planning on doing another updated batch file to do the same thing that this one does but also have it create a new batch file with the movie names in it that will in turn broadcast the finished encoded avis using windows media encoder... :-P |
#9
|
|||
|
|||
FINALLY! integration into SageTV (cayars stv) and more!
another update to my original batch file for
MPG to Divx encoding, automated solutions.. and integrating into Cayars STV! this new update did the same things as the original but now can be integrated into Cayars STV or anyother STV that uses the Dyanmic Menu addon. This also creates a webpage where it embeds the encoded avi file into so you can then just view the webpage and watch the avi in a browser... to integrate it into Cayars, i did the following: in the C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\cayars\External folder, i copied the DVDrip.cmd to Encode.cmd then i edited the Encode.cmd file with this info (again, this needs to be changed to how your system/virtualdub folders) ___ REM Modified by seamonkey420 REM 3/19/05 for Cayars Ultimate STV REM This will let you add a new menu item in Cayars STV REM to encode archived/watched shows in SageTV!!! REM below i first go to the P: drive REM Then change directory to the where my virtualdub is installed REM Then run it in a miminized window, in the background!!!! P: cd "Audio Video and DVD\DVD Ripping\VirtualDub1.5" start /MIN cmd /C "P:\Audio Video and DVD\DVD Ripping\VirtualDub1.5\convert.bat" exit ____________ then i opened up SageTV and loaded Cayars Ultimate STV then i right clicked, add new menu item > external program: then for external program, use: cmd.exe then for parameters use: /c "C:\Program Files\Frey Technologies\SageTV\STVs\OriginalV2\cayars\External folder, i copied the DVDrip.cmd to Encode.cmd" (points to the Encode.cmd which in turns calls our convert.bat script!) then enter a menu name: now just right click and do a Save Definitions. and BOOM! you now have an easy quick link to encode watched movies to divx.. it will run the encode batch in a minimized window and does not kill your system resourcse too bad either! oh yea, be sure to again put the convert.bat file in your virtual dub folder, along wtih the tvshows.vcf and also be sure to modify the odir and idir variables to match your system in the convert.bat.. and also put the embedE.txt and embedS.txt into your virtualdub folder too...! oh yea, i also included virtualdub mpeg version too (in case you don't have the mpg version..) peace seamonkey420 peace
__________________
My HTPC: Athon 64 3000+ 939 | MSI ATI Xpress2 Chipset mobo ATI X600XT pci-e | Avermedia PVR 150MCE 200GB + 80GB int HD, 100GB ext NmediaPC HTPC case w/remote/keyboard 19" & 15" LCD monitors Sony PSP "knowledge is power, spread the power" http://seamonkey420.tech-recipes.com |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|