SageTV Community  

Go Back   SageTV Community > SageTV Development and Customizations > SageTV Customizations
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

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.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 12-29-2006, 12:51 PM
dj7675 dj7675 is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 94
Commercial Skip Help Needed

I am needing a bit of help on commercial skip. The developer of Mplay for the Roku photobridge has graciously offered to try and incorporate commercial skipping into the video player app. In order to do this he needs a sample edl and a sample txt output file. If anyone could post one or both that would be great and I can forward it to him. Also an brief explanation of the format. He also asked if the edl/txt files store byte outputs, or only frame numbers.
I use the roku to view all of my recordings for HD and it would be great if I could use commercial skip with the roku as well.

Also, do the commercial skip programs (showanalyzer/comskip) mark the video file in some way, or only show the markers in the .edl/ .txt file?

Thanks

Darin
__________________
Darin
HQ4SPORTS.COM

Last edited by dj7675; 12-29-2006 at 01:25 PM.
Reply With Quote
  #2  
Old 12-29-2006, 01:27 PM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Example of .txt file

Quote:
FILE PROCESSING COMPLETE 111472 FRAMES AT 2997
-------------------
1 1784
24797 30046
35515 41854
54023 62691
72359 79663
89269 96566
102875 111472
The third and next lines denote one commercial per line.
The numbers are the start and end frame number of the commercial

Example of .EDL file for the same recording

Quote:
0.00 59.53 0
827.39 1002.54 0
1185.02 1396.53 0
1802.57 2091.79 0
2414.38 2658.09 0
2978.61 3222.09 0
3432.60 3719.45 0
Where each line denotes one commercial, start and end time in seconds from the start. The zero at the end of the line tells it should be skipped.
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #3  
Old 12-29-2006, 01:40 PM
dj7675 dj7675 is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 94
Thanks for your reply. Much appreciated. I have forwarded the files to the Mplay developer to see if he can make it work. According to him

"If they store the cuts as byte offsets, then it should be possible. If it just records the frame number, then it's much less likely, because we don't have access to that information via the Cascade API. "

Is there a way that comskip could output the cuts as byte offsets instead?

Or, is the actual mpg marked in some way that his app could detect at those points instead of using the edl results?

Darin
__________________
Darin
HQ4SPORTS.COM
Reply With Quote
  #4  
Old 12-29-2006, 02:08 PM
malbec malbec is offline
Sage Aficionado
 
Join Date: Oct 2005
Posts: 331
While at it can he add support to the photobridge so it can be used as an HD extender for Sage?
Reply With Quote
  #5  
Old 12-29-2006, 02:16 PM
dj7675 dj7675 is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 94
I actually think that would be possible but it would be a bit project and I don't think he uses sage unfortunately. I did write an app to tune channels for the HDHomerun. He has made 2 outstanding applications for the Roku MPlay for video and Slimroku and slimserver based client. See links below. Very cool. Right now I am just happy to get perfect playback of my hd sage files and with the .my plugin, I can also see program data with the roku. Hopefully MPlay will be able to skip commercials as well.--Darin

http://www.permanence.com/SlimRoku/
http://www.permanence.com/MPlay/
__________________
Darin
HQ4SPORTS.COM
Reply With Quote
  #6  
Old 12-29-2006, 04:31 PM
ke6guj ke6guj is offline
Sage Icon
 
Join Date: Jan 2005
Posts: 2,355
My question is: How can these guys write programs for the Photobridge and Sage can't? Looking at the Photobridge forum, I see plenty of programs for the Photobridge in development. What is needed besides the SDK?
__________________
- Jack
__________________________________________
Server: AMD Phenom 9750, 2GB RAM, 2 Hauppauge PVR500, 1 Firewired DCT6200, 1 HDHomerun tuning 2 QAM channels, Vizio 37" HDTV LCD, 1 USB-UIRT

Clients: 1 MediaMVP, 1 Placeshifter Client, & 1 SageTV Client.
Reply With Quote
  #7  
Old 12-29-2006, 08:20 PM
waynedunham waynedunham is offline
Sage Icon
 
Join Date: Sep 2004
Posts: 1,469
Quote:
Originally Posted by dj7675
I actually think that would be possible but it would be a bit project and I don't think he uses sage unfortunately. I did write an app to tune channels for the HDHomerun.
Darin,

How is your app different than the one that Endless wrote for tuning the HDHR via the Photobridge? More importantly, does it work with the newest firmwares?

I updated the firmware in my HDHR and now his app "TvPlay" won't scan channels and write out the file with the channels. Something must have changed in the HDHR communications.
He said that now that the firmwares updates have slowed down he will try to get a new version out that works with the new firmware. However it's been a week or so.
If I recall the original version of TvPlay only works up through either the last firmware in November or one of the first couple in December.

In case you didn't know, here's the link to the TvPlay thread over on the Roku forums.

TvPlay Forum at Roku.com
__________________
Wayne Dunham
Reply With Quote
  #8  
Old 12-30-2006, 03:45 AM
erik erik is offline
Sage Aficionado
 
Join Date: May 2005
Posts: 467
Quote:
Originally Posted by dj7675
Is there a way that comskip could output the cuts as byte offsets instead?

Or, is the actual mpg marked in some way that his app could detect at those points instead of using the edl results?

Darin
Comkip can not output byte offsets.
But I assume his player can seek in the timeline and using the .TXT file one can calculate the fraction of the total file where to reposition

Using:

FILE PROCESSING COMPLETE 111472 FRAMES AT 2997
-------------------
1 1784
24797 30046
35515 41854
54023 62691
72359 79663
89269 96566
102875 111472

you divide the frame number by the total frames (111472 in this case) then multiply by the total size of the file and you have an approximation of the byte offset number.
This math must be done in 64 bit integers because the file size can exceed 2GByte.

Comskip never does anything to the recording it is scanning.

Do you know that there are other standalone players that can use comskip output to skip over the commercials? Examples are zoomplayer and mplayer
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/
Reply With Quote
  #9  
Old 12-31-2006, 09:02 AM
dj7675 dj7675 is offline
Sage Advanced User
 
Join Date: Nov 2003
Posts: 94
Thanks for your explanation. I will be sure to pass it on. I play HD files over a network and haven't found a better playback device than the roku. I don't wan't to use a PC at this time to do it, so the Roku does the job very well.

Thanks again for your help. Hopefully I will be using it soon.

Darin
__________________
Darin
HQ4SPORTS.COM
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -6. The time now is 06:19 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.