|
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
|
|||
|
|||
Commercial skip support in portable devices (IPhone/IPod, PPC, and VLC confirmed)
I wanted to let everyone know about a great little utility that Babgvant created. This utility takes the normal edl files that Comskip creates and converts them to chapter files. The significance of this is you can use chapter markers in the IPhone/IPod, PPC, VLC and other players to skip commercials just like we enjoy in Sage TV.
The limitations to this are: First, only the MP4 and MKV containers support chapters. In the case of an IPhone/IPod I recommend using the M4V container (It is the MP4 container, however, for some reason it looks like Apple decided to support chapters in files with the extension of M4V and not MP4). Another limitation is you don’t get automatic commercial skip. As you are watching the show and you get to a commercial, you do have to tell the player to move to the next chapter (basically performing a manual commercial skip). However, this works great and gives us nice commercial skip capability on portable devices. To use this you first have to setup Comskip so it’s creating the edl files. Also, you have to use your favorite utility to encode your TV show into a MP4 or MKV container (none of that is covered here). Once you have comskip working and your show re-encoded you can use Babgvant’s utility to convert the edl file into a chap file. The command line is: Edltochapterfile {inputfilename}.edl {outputfilename}.chap Then you use either mp4creator or mkvmerge to write the chapter markers into an mp4 or mkv file that you’ve already created (I use Handbrake to convert all my shows into the mp4 container that is appropriate for the IPhone). The command line option for mp4creator is: Mp4creator {inputchapterfile}.chap {inputshow}.mp4 Here is the link to Babgvant’s utility: http://babgvant.com/files/folders/eadt/entry11419.aspx Here is the link to mp4creator: http://mp4creator.sourceforge.net/ Here is the link to mkvmerge: http://www.bunkus.org/videotools/mkvtoolnix/ Here is the link to the original development thread on Babgvant's web site in case you need more information: http://babgvant.com/forums/t/2189.aspx?PageIndex=1 This has been working great for me. It’s really nice to be able to skip the commercials when I’m watching the shows on the plane. Thank you Babgvant for another great utility. |
#2
|
|||
|
|||
That is awesome, I don't suppose you know if it will run in wine. If not, would you mind posting an edl and an output file?
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#3
|
|||
|
|||
I don't know if it will work in wine. However, here is an example edl and chap file.
|
#4
|
|||
|
|||
thank you. EDL is in raw seconds and chapter is HH:MM:SS.SS format. I'll just write a script that does the same thing. Curious to know why chapter 1 and 2 are the same timestamp?
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#5
|
|||
|
|||
Maybe we can ask the comskip guy to add the chapter file as one of the many comskip output formats
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
#6
|
|||
|
|||
maybe, but he's a busy guy and I wouldn't want to impose
(When will it be ready?)
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#7
|
|||
|
|||
This is just a coincidence with this particular example. One important thing with chapters is the first chapter HAS to be the start of the video (so it is always 0.00). In the example I gave you, the first commercial segment happened to begin at 0.00. This doesn't normally happen in my edl files. In most of my examples the first commercial segment doesn't begin with 0.00 so Babgvant's conversion program didn't account for this. His logic is to simply always make chapter 1 - 0.00, then chapter 2 is the beginning of the first commercial segment. In this example that happened to also be 0.00. It would probably be good to add logic to account for this, I just didn't notice this anomaly.
This would be awesome if you added this! Since Babgvant wrote the utility so quickly I never thought about asking you to just output the chapter files. |
#8
|
|||
|
|||
Why would you need a chapter market at the start of a commercial?
Why not only at the end? Of course the answer is that you want to see the superbowl commercials.
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
#9
|
|||
|
|||
It would be good to know beginning and end points for the purposes of skipping backward.
B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#10
|
|||
|
|||
Actually, Babgvant made this an option in his conversion utility. I originally voted to have the beginning of a commercial segment marked as a chapter. However, Onlydarksets, and now Erik, have pointed out that it might be better only marking the chapters at the end of commercial segments. Babgvant made this an option in his program so we could try both options and see what is better. I haven't spend a lot of time watching shows with chapters, however after watching a few shows, I think that I might have been wrong and it is better to only mark the end of the commercial segments as chapters. The reason is, on the IPhone when you bring up the chapters list it is simply a list. It does have a marker so you see what chapter you are currently playing, however, it is a pretty long list. It might be nicer to only have the end of the segments listed as this would shorten the list by 50% (and that should make navigating the list a little easier). I originally thought I needed the beginning of the commercial segment because there are times when Comskip doesn't perfectly detect the beginning of the show (this isn't Comskip's fault, I haven't taken the time to completely tune it). I thought I would need to "skip back" when this happens and manually find the beginning of the show. However, the reality is, skipping to the beginning of what Comskip thought was the beginning of the commercial segment didn't do me any good. What I really did was just rewind a few seconds and that was the real end of the commercial segment. Anyway, my point is, I really didn't use the beginning of the commercial segments like I thought so I think Onlydarksets and Erik are right.
I'm going to switch my conversion process so I'm only marking the end of the commercial segments to see if this is truly better. |
#11
|
|||
|
|||
Would this be acceptable output?
Quote:
(this is what has been implemented in Comskip)
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
#12
|
|||
|
|||
Quote:
Thank you for implementing this! |
#13
|
|||
|
|||
what needs to be added to the ini to make it do that?
|
#14
|
|||
|
|||
It looks like Erik is adding it right now. The next release will likely have the support turned on.
Thanks for your utility though, this is something I wanted to do a while back but couldn't find clear instructions. I can tell you that the mp4creator runs under wine in Linux, so I will finally get to finish my nightly RSS automation script B
__________________
Running SageTV on unRAID via Docker Tuning handled by HDHR3-6CC-3X2 using OpenDCT |
#15
|
|||
|
|||
It's a .net app so if you have Mono installed it should work... Let me know if you want a copy.
|
#16
|
|||
|
|||
nm... I moved it to the public section - http://babgvant.com/files/folders/sa...ntry11544.aspx
|
#17
|
|||
|
|||
Quote:
So does MP4 with integrated chapter markings (after using Mp4creator) work on the iPhone? Or did you mean to say you use MKV and mkvmerge in order to get it to work on your iPhone? Thanks!
__________________
Server: AMD Phenom II X6 3.20 GHz ♠ 16 GB RAM (15.7 usable) Capture: HDHomeRun PRIME ♠ Ceton InfiniTV 4 PCIe (Clear-QAM only) Tuning: OpenDCT v0.5.20-RC2 Software: Windows 7 Ultimate 64-bit ♠ SageTV v9.0.12.504 ♠ Java 1.8.0_111 Clients: 4 x STX-HD300 ♠ 3 x STX-HD200 ♠ MacOS Placeshifter |
#18
|
|||
|
|||
Forgot to mention is available now
__________________
Support Comskip, visit the forum and donate at http://www.comskip.org/ |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|