|
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
|
||||
|
||||
HD-PVR H.264 to Mpeg2 commercial skip Question
Does anyone know of the best way to transcode the H.264 from teh HD-PVR to Mpeg2 so that comskip can "see" it?
I was just thinking... what is the transcode could begin soon after the H.264 file has started recording so that both processes happen in parallel? just a thought? Or perhaps have the H.264 file "Play" and be recorded in Mpeg2? I know it sounds silly to go backwards, but I am just looking for a commercial skip option.
__________________
Eckwell / Chicago, IL SERVER: AMD Phenom III 8750 Black / 4 GB / XP Pro / JV1.6.24 / V7 / 2 PVR-HD (DirectTV) & HDHR (2xATSC) STORAGE: WD Raptor36GB boot / 11TB in 2 eSATA enclosure DEFAULT STV Comskip triggered by DirMON2 --- HD100 / HD200 /HD300 BMI fanart |
#2
|
|||
|
|||
Neither mencoder or ffmpeg can run while recording at the moment.
It should be possible to port the read-while-recording functionality of comskip to both of them. Is either of the able to do the transcoding of h264 at the moment? At what speed if possible? Comskip should be able to process with good quality when the converted output is 320x200 so encoding should not take much capacity
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
#3
|
||||
|
||||
By the time someone could get something working like this Jere will have H.264 support in ShowAnalyzer.
S |
#4
|
|||
|
|||
Pretty sure we'll see h.264 commercial detection in ShowAnalyzer first and then Comskip. I worry a little about how powerful a processor one would need in the server to do the processing though.
|
#5
|
||||
|
||||
Has anyone talked to Andy (http://www.babgvant.com) about this? Andy is the guy who developed DVRMSToolbox for MCE and he did an incredible job with it. I know that he had made DTb mencoder aware, but I don't know much else....other than the fact that he is becoming as disenchanted with MCE as I was and is considering Sage himself. He would be a very welcome addition to the SageTV community.
|
#6
|
|||
|
|||
Quote:
|
#7
|
||||
|
||||
Maybe we can all chip in and buy him a pony?
|
#8
|
|||
|
|||
I was thinking of something a little smaller
|
#9
|
|||
|
|||
While my kids might like a pony, I don't have the backyard for it
Re. the topic at hand, I think your best best is to use DirectShow to reencode the file to mpeg as it is recording. The most recent version of DVRMSToolbox (DTB) supports alternate file type (i.e. non-dvr-ms files) exactly for this type of scenario. You'd probably need a pretty modern box to do it in a timely way though. If this is something you'd like to pursue let me know and I can outline the steps. |
#10
|
|||
|
|||
Quote:
And yes, I'm interested in the steps when you have time. Thanks! |
#11
|
|||
|
|||
Quote:
You'll need the latest rev of DTB to have the FW support non-dvr-ms files, but the rest of it will work with previous versions. 1) Create a stub graph file with the filters necessary to encode a file to mpeg using GraphEdit. I used the ArcSoft one in the graph, but you could just as easily use AVIVO. Any intermediate filters (like a preferred decoder) will need to be added to the graph if they won't get added via IC. You can test this by creating the stub and selecting "Render File" to see what gets added automatically. 2) DL this profile and point the second action at your stub grf. 3) Then it's just a matter of running dvrmstompeg.exe against your h.264 file with the right args (/if=filetoconvert.ext /of=mpegfilepath.mpg /act=filetompeg) you probably want to output the mpeg to whatever folder is required so comskip detects it and will start processing it. |
#12
|
|||
|
|||
Do you downscale the MPEG output? Comskip would only need 320x200 to do its job
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
#13
|
|||
|
|||
Quote:
there is an action in DTB that allows more control over the graph building process, but it would have to be modified to work with non-dvr-ms source files. |
#14
|
||||
|
||||
Hello guys. This would be cool. Are you thinking of leaving the H.264 file and just converting to a small Mpeg (leaving the H264) then having comskip do it's job, then deleting the mpeg after the output files from comskip are there??
|
#15
|
|||
|
|||
Quote:
I've also never used GraphEdit. Can someone please be a little more explicit on the exact steps needed to make this work? |
#16
|
|||
|
|||
Record in two formats concurrently?
As an alternative to dynamically converting the H264 file to mpeg2 for the sake of ComSkip or SA, I thought of another method which should have very low overhead on the PC because it avoids the need to recode.
Many / most of us with a HD-PVR will likely have an analog capture video source which is being idled by the HD-PVR. It the STB which feeds the HD-PVR also had its S-Video (or composite) output feed the analog capture source concurrently, it would do the mpeg2 encoding for us. If the analog video source were removed from Sage setup, is there a relatively easy way using Studio to make an add-in which would watch for recordings on the HD-PVR source and concurrently start/stop an analog capture? It would not be necessary to tune the channel, because the STB would already be tuned. Or using DirMon2, would there be a way to just start an analog capture from a command line? (Maybe using SageTVTranscoder.exe with the -gd option?) I assume this would cause the analog capture to lag behind the H264 capture though, so the timeline would probably be off by the same time it took for DirMon2 to recognize the new file and start the second recording. |
#17
|
|||
|
|||
yes
|
#18
|
|||
|
|||
Quote:
I'm modifying the action that allows an explicit graph to build in DTB to support non-dvrms files. When it's ready I'll provide everything to make it work (stub, profile, directions), assuming I can get it going with a free set of filters (probably AVIVO). I've got a test file, but I didn't have time to mess over the weekend; hopefully tonight. 1.2.x.x is intended for Vista because one of the features specifically targets the WMC; I'll probably remove this requirement if I replatform on Sage. |
#19
|
|||
|
|||
OK; I'll be patient.
|
#20
|
||||
|
||||
This sounds like a great possibility... thank you so much for trying to come up with a working solution. If you need assistance with testing, etc, I can give it a try too...
__________________
Eckwell / Chicago, IL SERVER: AMD Phenom III 8750 Black / 4 GB / XP Pro / JV1.6.24 / V7 / 2 PVR-HD (DirectTV) & HDHR (2xATSC) STORAGE: WD Raptor36GB boot / 11TB in 2 eSATA enclosure DEFAULT STV Comskip triggered by DirMON2 --- HD100 / HD200 /HD300 BMI fanart |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Connecting HD PVR to computer | johnwmreed | Hardware Support | 9 | 08-01-2008 08:40 AM |
Odd squeaky audio after HD commercial skip on MVP | jhkoenig | SageTV Media Extender | 3 | 04-20-2008 10:48 AM |
"Live" commercial skip with SageMC? | jelwood | SageMC Custom Interface | 5 | 03-03-2008 04:00 PM |
Commercial skipping for h.264 using trancoded files to generate .edl? | Slipshod | SageTV Customizations | 10 | 03-03-2008 01:15 AM |
I'm missing the toggle switch for commercial skip... | Coastal | SageTV Customizations | 2 | 02-04-2008 12:33 AM |