|
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. |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
STV Import: Video Editing for Sage
This plugin can be downloaded here. Version history will be in the second post to this thread
This plugin will allow you to tweak the output from ComSkip, ShowAnalyzer or VideoReDo AdScan as well as starting from scratch. All from the SageTV interface with a remote. There are two versions included - one for the Default STV and one for SageMC. You will need to use the Dynamic Menu import in the Default STV in order to make use of this if you don't want to use Studio to map the "Video Edit Menu" to an existing menu. You need to map to this menu in SageMC as well but the dynamic menus are built in there. This plugin was developed with SageTV 6.0.x and was not made to be backwards compatible so you will need to upgrade to SageTV 6 to successfully import it. Note: this is just a preliminary version of the documentation I will be including a more complete version as a PDF later. So if you have questions you can post them to this thread and I will answer them. Any that are answered here should also eventually find there way into the PDF later. NOTE#2: This is a cut point editor. What you are marking are the sections of the video to remove and NOT the segements to keep. NOTE#3: This plugin currently requires that the Vprj files have the absolute path to the .mpg files in it. I am working on eliminating this requirement but until I do you can just save the Vprj from the "Save Cuts" menu to get the absolute path written. You don't have to save all of the formats you can just save the Vprj file only. Also you must have VideoReDo version 2.5.2.491 or later for this to work - I need to find out how to get a version number and put up a warning if it isn't new enough - just haven't had time. NOTE #4: I suggest that if you use this plugin to switch to Overlay or at least disable FSE mode before trying to use VideoReDo to process files. VideoReDo appears to need to grab DirectDraw even in silent mode so if Sage has this locked with VMR9/FSE the VideoReDo job will die. NIELM found a setting in VideoReDo that will allow this to work. You need to press shift while selecting the Tools>Options menu in VideoReDo and set the following to true: First I need to explain the remote commands available while displaying this menu. All the standard transport commands work. FF/Rew, FF2/Rew2, Stop, Pause (which also functions as the frame advance command) and record which functions as the "Set Cut Point" command. However if you have the onscreen controls displayed you may need to press FF/Rew and FF2/Rew2 more then once because the first reaction will likely be to move the cursor to one end or the other of the on screen controls. This means in windowed mode you should probably not use FF/Rew and FF2/Rew2 as much as the on screen controls. In full screen mode you need to press the info command to bring up or dismiss the on screeen controls. They will not automatically disappear like in the normal media player screen. However if the controls are not visible then any remote command defined in this plugin will bring up the timeline only but that will disappear after the OSD timeout expires. You can also use the TimeScroll command for advancing like you can in the regular media player. Left/Right and Custom4/Custom5 take you to the previous/next cut points respectively but function best when in a paused state. Up/Down, Channel Up/Down, any number key, the select key and the previous channel key all just display the time line and do nothing else. The aspect ratio toggle command has been defined in this menu and functions the same as in the regular media player. You can toggle through the aspect ratio modes with a single button this way. The options command will bring up the options menu for this screen. Also new for version 0.2 is the use of the numbers to select some of the menu choices (most useful while in full screen with the controls hidden). You can use the following numeric buttons: 0-Save/Load cuts, 1-Toggle screen mode, 2-VideoReDo Menu, 3-Convert Menu, 4-Skip to Start, 5-Clear all cuts, 6-Skip to End, 7-Previous cut with option to pause, 8-Clear or Set a cut point *same as record button, 9-Next cut with option to pause. Note the operation for buttons 2 and 3 may change for version 0.3 as I will be changing to TOOLS and QUEUE for menu items instead of VideoReDo and Convert. The Tools menu is where you will go to setup the operation on the file (VideoReDo QSF, Edit or AdScan, Convert the file with SageTV Transcoder and edit file name and add things like channel # to the file name) The QUEUE menu will allow you to change the order of the queue, delete, modify etc. Lets get right too it with a view of the initial screen when loaded: SageMC looks like this: As you can see there are options for Opening and Closing a file as well as saving the cuts. You also have a VideoReDo menu, a Conversion menu, switching to full screen, an Options menu and going back to the previous menu. You will not see the VideoReDo option until you bring up options and tell the plugin where you have installed VideoReDo. The options menu looks like: From it you can specify your display options in another popup menu, the broadcast type for TXT format cut lists, custom skip times in yet another popup menu, the VideoReDo program location, switch to full/windowed mode and lastly configure the Open File popup options. The display configuration popup looks like: From this menu you can switch your Aspect Ratio mode, MPEG2 decoder filter, the Skipping Method used, either "End of File Padding" or "Play Timeout", the Windowed mode menu color and transparency, and the Video section of the screen background and transparency. The Aspect Ratio mode and MPEG2 decoder will be changed only as long as this menu is displayed. Any time you go to another menu these will be changed back to what you have defined for the regular media player OSD. The color and transparency settings only apply to windowed mode not to full screen mode. I have added to version 0.2 the ability to configure the time bar colors and in the case of the progress indicator the height as well. The screen looks like: Note that the buttons are in the color of what they change. Red for the cuts and green for the saved areas. The progress buttons all have the progress color as well as and it will only cover as much of the button as the defined height (from the top). While programming this plugin I found that with the MVP you could not just skip ahead or back while the screen is paused on the MVP and have the display change. So I developed another method that starts the media player playing back the video then waits a configureable amount of milliseconds and then pauses to make the screen change. The on screen controls have 7 possible skip values for each direction with 5 in each direction that can be configured by the user with the following popup menu from the options menu of this plugin: The first 3 of each direction can hold 1-59 seconds each and the last two of each direction can hold 1-59 minutes each. The Open File Options popup menu looks like: On it you can configure the highlighting options of the open file popup menu. A highlight is favorite/manual/don't like highlighting of the file name similar to how the Sage Recordings menu highlights recordings. You can also specify the width of the groupings section of the open file popup menu in percent of the horizontal screen for both with and without imported videos. The last option controls whether Imported videos will be displayed in the open file popup menu. A new option for version 0.2 is the cut file preference the default is EDL but you can change it to TXT or Vprj if you want and when you open a file it will look for that file to read the cuts from. NOTE if the file does not exist then no cuts are read. But you can then go to the Cut Files menu and try one of the other types. That was the options from the Options menu and it's submenus. Now I will go thorough opening and processing files. To select a file for editing you must select Open File from the windowed menu (If you do not have a file open you cannot switch to full screen mode). When you select this menu item a popup menu will apear that will look something like this: As you can see the left side is the category grouping and right side contains the files in that category. If you include imported videos the left side will contain the directory path of the videos and the right the individual files in that directory. Which might appear similar to how the following appears: As you can see from the above displays the current category is highlighted as well as the file currently selected. You have but to press the select button to load it into this plugin. If you have highlighting enabled for the file open popup your display will look something like this: Once a file is selected it is loaded and the first frame of the video is displayed - or at least as close as Sage can get to the first frame in a paused state anyway. It will then look something like this: Actually if you look at the above display and the timeline you will see that this wasn't actually at the first frame of the video I had actually advanced it to the first Cut point. As you can see above each cut point is clearly defined and current position is indicated both with a highlight along the top of the timeline as well as the exact position in hrs:min:sec.milliseconds format in the middle of the timeline. The total length of the file is indicated on the right and the starting position (always zero) on the left of the timeline. You can also see all of the transport controls above as well. You can skip to the begining or end of the video, to the next/previous cut point and up to 5 configurable skip amounts in each direction. These were all designed to operate when the video is paused but they do work while the video is playing as well. You do need to remember that while the video is playing the current time is always changing so skipping back may not take you exactly where you expect. Now in the next screen I have switched to full screen mode: You can see that the same controls are available except for the open file command. Also displayed is the current volume level. You can make the controls disappear by pressing the info command but if you press any of the other transport commands while the controls are hidden you will get a display similar to this: Where the only thing showing is the volume controls and the timeline. NOTE I did not update the full screen graphics so the cut colors are the old ones. When setting cut points you need to remember that they come in one format only. There is no begining or ending cut point - a cut point is a cut point. What this means is that the first cut point will be the begining of a cut section and the second cut point will be the ending of a cut section. To quickly invert your cut points you can set or clear a cut point at the very beginiing of the video and swap all of your cut points. You will also see this when you start editing a file from scratch as the first cut point defines the rest of the video as being cut out until you define a second cut point and so on as you define them. You may clear a cut point now with the Record command as long as you are directly over an existing cut point. This was added for version 0.2. When you are done setting your cut points you need to save them. You can just try to close the file with the close file menu item or you can press the stop button. When you do this if you have made changes to the cut points or added new ones a popup menu will be displayed asking if you would like to save them. You can save to TXT format, EDL format or VideoReDo Vprj format or all of them or any mix of them at one time. This option look like this: You can also save them at any time by just selecting Save from the Cut File menu. Which looks like this: Notice that on this menu you can reload your cuts if you want to start from the last time you saved them or if you want to use a different format. You can save them in any of the formats just like the popup menu when you close the file. And last you can delete the cut files if you don't like what you saved. BIG NOTE: what ever format you have selected at the top will be loaded, saved or deleted. The load option will warn you if you have multiple selections and the Save and Delete will launch a confirmation popup when selected. Once saved you can use VideoReDo to process the cuts - assuming you saved a Vprj format anyway. NOTE you must have VideoReDo version 2.5.2.491 or later to successfully get this to work. When you select the VideoReDo menu item you will get the following options available: Where you can specify output options (if you are not replacing the original file). Or you can select to replace the original file in Sage with the edited version. I should pause here to thank Nielm for the detailed instructions on how to replace a video in the Sage database from within Sage - Thank You. You can also add the current video to a queue of other recordings to be processed by VideoReDo. You can display the list of Queued videos where you can clear the whole queue or just individual members - or just exit from the queue list. You can also specify the VideoReDo mode - AdScan or Edit. If you have specified output options or if you have decided to replace the original file you will then get the option to process the files. That option will always be available if you have a video in the queue. NOTE this menu has not been updated for version 2 but will have significant changes for version 0.3. The queue list will look something like this: The output options menu looks like the following: Where you can select the output type, output file name and output directory. As well as clearing all options and closing this menu. When you return from this menu the VideoReDo options menu will have changed to look something like: When you are ready to have VideoReDo process your file(s) you need to select "Start VideoReDo Processing File(s)". Then one by one (if you have queued up multiple files) your files will be processed by VideoReDo. While processing a file you will see something like the following if your SageTV window on your client or Server is not Full Screen: NOTE for version 0.2 a popup dialog is now presented that explains about the .OLD file processing. The only thing you see is the tool tip above and a system tray icon - nothing else. Sorry I can't get rid of this tool tip - it just isn't possible. However when in Full Screen mode I don't think you will see this this. I didn't in my testing anyway but you can follow the tip from svalmorri in this post to eliminate them. Also like mentioned above in Note#4 VMR9/FSE mode may cause you problems so you should make the change before submitting anything to VideoReDo. Once you select OK you will be presented with a screen something like this when you do NOT have a video loaded: If you look at the menu name at the top you will see that it has changed color. This will flash from normal to orange in a user configurable amount of time - You can also turn off the flash by setting the time to zero. One other thing to notice about the above graphic. The VideoReDo options menu is no longer available but a new Cancel VideoReDo option is available. The cancel will affect all processing after the currently executing VideoReDo system tray icon has finished by clearing the queue and stoping the replacing of any further videos in the SageTV database. But it will not kill the current VideoReDo task in task manager. You will have to do that yourself if you want. But DO NOT Cancel VideoReDo before using the Cancel option here. If you just cancel VideoReDo from the system try the code in this plugin cannot tell when VideoReDo has been cancelled or just ended normally so it will just continue on a possibly replace your existing video in the Sage database with a partially completed file. This is why I recomend that you backup the unedited files and the Wiz.Bin file until you are comfortable with this plugin. When VideoReDo processing completes you will get one of the following popups telling you that processing is complete - depending on if you are processing a single file or multiply queued files: or: I didn't update the multi file graphic but it has a similar option allowing you to delete the .OLD files now or wait until the SageTV GUI is exited. Also on the single file format I arranged the text to display the directory separate from the file name to - hopefully - keep each on a single line and make it easier to read. When you play your edited file in the regular media player you will be able to tell that some of the file is missing because the start of the file is listed as missing like the following display: Step by Step instructions on submitting a file to VideoReDo batch mode are contained in post#1 and post#2. Just follow those and you will get your videos replaced when VideoReDo is finished editing them. This plugin can be downloaded here. Version history will be in the second post to this thread BobP. PS here is a MenuItemLet for the dynamic menus: Code:
<?xml version="1.0" encoding="utf-8" standalone="no"?> <!DOCTYPE sageMenu PUBLIC "-//NIELM//DTD SAGEMENU XML 1.4//EN" "http://sageplugins.sourceforge.net/nielm_modules/dynamic_menu/sagemenu_1_3.dtd"> <sageMenu version="1.4"> <internalScreenMenuItem screen="Video Edit Menu" title="Video Edit"> <evalExpression> </evalExpression> </internalScreenMenuItem> </sageMenu> Last edited by BobPhoenix; 10-17-2007 at 01:13 PM. Reason: Added a MenuItemLet for the Dynamic Menus |
#2
|
|||
|
|||
Version 0.2.10 made compatiblity changes
Version 0.2.9 added new feature September 2 2007
Version 0.2.8 fixed previous release March 28 2007
Version 0.2.7 added code from 0.3 March 27 2007
Version 0.2.6 added a few new features March 24 2007
Version 0.2.5 fixed compatibility issues with SageTV 6.1.4 - your buttons should have text now only thing changed March 14 2007 Version 0.2.4 simple additions but no bug fixes Feb 11 2007
Version 0.2.3 bug fixes Jan 23 2007
Version 0.2 fixes and additions Jan 1 2007:
The todo list for future version with expected version implementations:
The following should be available in current versions but was reported as needed:
Last edited by BobPhoenix; 10-17-2007 at 06:52 PM. Reason: updated info |
#3
|
|||
|
|||
Thanks a million Bob. I've been looking for something like this for a while. I'm sure lots of other are also. I'll load this up on the weekend and post some feed back. Thanks again!
|
#4
|
||||
|
||||
Looks great Bob, I'm looking forward to trying this one.
|
#5
|
|||
|
|||
The Alternate skip code and/or MVP specific code needs some more work it doesn't appear to be working correctly. So for now try it on an MVP with the expectation that the editing (setting cut points) does not work.
It appears to work fine on a regular client or Server as far as I can tell but this needs more testing. That is why I uploaded it now. I really need more testers on this. Please treat this a early beta code when testing and report all error please. I forgot to mention this in the first post. When using VideoReDo please set up a Batch job in VideoReDo with BatchManager and make sure it works in SilentMode. If it works with BatchManager then it should work with this plugin. If however you can't get SilentMode to work with VideoReDo in standalone mode then it will not work with this plugin either. Thanks. BobP. |
#6
|
||||
|
||||
I'm not sure I follow you on how to install this?
|
#7
|
||||
|
||||
Excellent plugin!
I installed VideoRedoPlus, imported the Video Editor .stvi, selected a recording, set the cut points, initiated VideoRedo Processing, and voila, a new, nicely cropped file...almost. I found some "issues" while trying out this plugin. Definitely nothing serious: 1. This is "cut point" editing, not "save content" editing The first time I edited, I accidentally had the cuts "inverted" thinking that I was marking "content to save" as opposed to "content to cut". It was a simple mistake, and the resulting .mpg file was a nice, seamless string of commercials with no show content! After realizing what I did wrong, I re-cut, and I was able to create a commercial-free file. Just understand that you are setting the start and end points of content to cut out. You are not marking in and out the areas you want to save. Definitely not a plugin problem, just a misunderstanding on my part. 2. Different colors for content on the time bar Related to this, you might want to consider changing the colors of the time bar, or at least make them user-definable. Currently, the colors are bright green for saved content and dark green for cut content. It is intuitive, but I got them reversed the first time. Consider maybe changing the default to something like bright green for saved content and some shade of red for cut content. 3. Make progress indicator more visible On my TV, the "progress indicator" along the top of the time bar that shows where you are in the content appears as a pale gray/white bar along the top of the time bar. It was difficult to see on my TV. (maybe I need to tune my TV's colors better.) I had to adjust the "Video Backgrnd Alpha" down to "100" to make it more visible on my TV. Consider making it a brighter white or maybe a contrasting yellow (or again, user-definable.) 4. Add a "status" message. Like the DVD Burning plugin, lots of stuff is happening outside of SageTV that cannot directly communicate back to SageTV. This ultimately leaves the user potentially unclear as to what is happening. When you initiate the VideoReDo processing, consider adding a status message in the main screen area (that currently reads "Please Load A File To Edit") with a simple message like "VideoReDo is processing..." or something like that. Yes, the "VideoReDo" option does change to "Cancel VideoReDo" but that's the only indicator that something is happening in the background. 5. Managing ".old" files After processing, I am left with a ".old" file which obviously is the original file. Is there a facility to remove these from within SageTV? Certainly not a big deal, but these do take up space, and when I am satisfied with the "final cut", I woudl like to be able to remove these. Simply opening up the containing folder is a solution, but it would be nice to be able to do this from within SageTV. 6. The show length is incorrect. Once I create the final file, when I play it back through SageTV, SageTV's time bar shows that it is an hour long when it is in fact now only say, 40 minutes long. It shows a "red" area at the beginning. I absolutely understand what's happening, bit the idiosyncrasy is that if I burn the resulting file with the DVD Burning plugin, it thinks the file is 1 hour long, instead of the actual length. Again, not a big deal. Overall, this is an excellent plugin, especially considering it's a beta first release. This is another wonderful example of the extendibility of SageTV, and this plugin really adds a feature that brings SageTV out in front of the competition. Thank you so much for your tremendous effort! I look forward to any changes, updates, and improvements you make!!!
__________________
-Jim Barr SageTVTips.com HTPC: AMD ASUS M2N-E Socket AM2 Motherboard; Athlon 64 3200+ Orleans 2.0GHz; 2GB RAM; eVGA 256MB Geforce 7300LE; 1x40GB IDE HDD (OS), 2xSeagate Barracuda 320GB SATA HDD (Recordings); Antec Overture II Case; Windows XP Pro SP2; SageTV v6.5 STV: SageMC Video sources: Currently, none. I'm using SageTV for Music, Photos, and Video playback. Last edited by jbarr; 12-27-2006 at 06:50 AM. |
#8
|
|||
|
|||
few requests
This looks like a very nice Stvi and I have been meaning to do it myself a long time now.
Some additions: 1. VideoRedo has a Quick stream fix (I think its called), could you add a way to do it from sage? its helped me lots of times. (this file should replace the current file). 2. Join parts, at least for the end result. 3. recreate the file info after cutting so that time is displayed correctly, this is easy to do, and actually I have code I can email/pm you that does this. 4. Add a change file name to the interface, so that we can tidy things out. changing the file name is part of SageMC but not of the regular stv, and would fit nicely here with your stvi. Thanks, Alon24
__________________
Server SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1 Client SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1 Using Nielm's Web server 2.22 |
#9
|
|||||||
|
|||||||
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Quote:
Thank you for the great suggestions. Keep them coming if you think of anything else. BobP. |
#10
|
|||
|
|||
Quote:
BobP. |
#11
|
||||
|
||||
Quote:
Also, I think it's important to point out to users that if they have any desire to "revert" back to the original version, they must first save the Wiz.bin file (presumably, requiring an exit of SageTV--I haven't done this.) It would be great if someone could come up with some sort of a "refresh" or "re-build" plugin that would rebuild the metadata for an .mpg file for instances like this. If you simply delete the cut version and rename the old version, when you play back, SageTV doesn't "see" it as a full show. Quote:
Thanks!
__________________
-Jim Barr SageTVTips.com HTPC: AMD ASUS M2N-E Socket AM2 Motherboard; Athlon 64 3200+ Orleans 2.0GHz; 2GB RAM; eVGA 256MB Geforce 7300LE; 1x40GB IDE HDD (OS), 2xSeagate Barracuda 320GB SATA HDD (Recordings); Antec Overture II Case; Windows XP Pro SP2; SageTV v6.5 STV: SageMC Video sources: Currently, none. I'm using SageTV for Music, Photos, and Video playback. |
#12
|
||||
|
||||
Quote:
edit: If you try this and it doesn't work let me know as in theory it should work that way but I can add in a separate option for this in a future version. Quote:
Quote:
Quote:
BobP. Last edited by BobPhoenix; 12-27-2006 at 08:26 AM. |
#13
|
|||
|
|||
Quote:
BobP. |
#14
|
|||
|
|||
Quote:
1. yes before handling a multipart recording, infor the user that it is a multipart and runa batch to join all the parts in sequence (from my tests, VideoRedo, only allows joining of 2 files at a time, so this may take some time, and iterations. 2. the second option, is to cut a file and add that cut to another file. this is helpfull if you recorded 2 shows i sequence, and the notorious tvguide was not correct. So you are left with 95% of the first show and the other show is 5% previous and 100% of the later show. I think that adding an option to cut and paste would be gr8... Alon24
__________________
Server SageTv 6.3.5, Core2Duo 6300 ,2Gigs ,Saphire x1650, PVR250, 2*320GB + 160GB, java 1.6.1 Client SageTV Client 6.3.5 , AMD 3000, 1024Mb, Saphire x1600Pro256HDMI, java 1.6.1 Using Nielm's Web server 2.22 |
#15
|
|||
|
|||
Quote:
Quote:
|
#16
|
|||
|
|||
Hi Bob,
Thanks for doing this! Can I run this from a client machine and have the server do the processing? Is there a job manager running on the server or is it local machine only? TIA B |
#17
|
|||
|
|||
Quote:
BobP. |
#18
|
|||
|
|||
Do the remote control commands work from the MVP?
|
#19
|
||||
|
||||
Just wanted to say thanks for this! I was just thinking yesterday how cool it would be to have something just like this! Great work, and I can't wait to load it up!
__________________
-Eric Client: STX-HD100 Extender, Connected to 47" Visio 1080p LCD via HDMI, Running SageMC Client: Media MVP Running SageMC Server: Antec SLK3800B, AMD Athlon 64 X2 4200+, Biostar TForce 550, GeForce 7300LE, 1GB DDR2 800, 2 x HVR-1600, PVR-150MCE, 1.4TB HD Space, XP Pro, Java6, Latest SageTV Version |
#20
|
|||
|
|||
Quote:
BobP. |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|