I have a small patch to wizd-v24 that fixes a couple of minor bugs and adds one new feature.
I'm using wizd to publish my mythtv recordings to a Buffalo LinkTheater HD to use as a rudimentary mythtv frontend. I wanted to take advantage of mythtv's commercial flagging. So, I wrote a user job that looks up the byte offset of the end of each commercial break, and then writes them to a text file, one offset per line, named <videofilename>.chapters. The feature I added to wizd is to look for this chapters file. If it exists, instead of setting chapter marks at each 10% interval in the movie, it sets them at the offsets specified in the chapters file. This was accomplished by adding a new "off=" HTTP parameter that specifies an exact byte offset.
The minor bugs I fixed are:
- When setting user and group, set the groupid before setting the userid - the group ID was not being set properly because root privileges were lost when the userid was changed.
- Changed the URL encoding to encode every character other than period, dash, underscore, and forward-slash, according to the URI spec. My recordings had names like "CSI: Miami", which are legal Unix filenames, but wizd wasn't encoding them properly in URLs.
I can submit this as a patch file if you are interested. Let me know.
-Mike
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
This sounds like a great enhancement! Is it possible for you to grab the source files from CVS that need updating, update them with your changes, and then send the changed files to me? That way we don't have to worry about me getting your diffs wrong. Otherwise go ahead and send me your changes and I will incorporate them myself. You can reach me at kbrown3 at users.sourceforge.net. Note that the code that is currently in CVS may only work with the new Ocean skin that is in development.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I have a small patch to wizd-v24 that fixes a couple of minor bugs and adds one new feature.
I'm using wizd to publish my mythtv recordings to a Buffalo LinkTheater HD to use as a rudimentary mythtv frontend. I wanted to take advantage of mythtv's commercial flagging. So, I wrote a user job that looks up the byte offset of the end of each commercial break, and then writes them to a text file, one offset per line, named <videofilename>.chapters. The feature I added to wizd is to look for this chapters file. If it exists, instead of setting chapter marks at each 10% interval in the movie, it sets them at the offsets specified in the chapters file. This was accomplished by adding a new "off=" HTTP parameter that specifies an exact byte offset.
The minor bugs I fixed are:
- When setting user and group, set the groupid before setting the userid - the group ID was not being set properly because root privileges were lost when the userid was changed.
- Changed the URL encoding to encode every character other than period, dash, underscore, and forward-slash, according to the URI spec. My recordings had names like "CSI: Miami", which are legal Unix filenames, but wizd wasn't encoding them properly in URLs.
I can submit this as a patch file if you are interested. Let me know.
-Mike
This sounds like a great enhancement! Is it possible for you to grab the source files from CVS that need updating, update them with your changes, and then send the changed files to me? That way we don't have to worry about me getting your diffs wrong. Otherwise go ahead and send me your changes and I will incorporate them myself. You can reach me at kbrown3 at users.sourceforge.net. Note that the code that is currently in CVS may only work with the new Ocean skin that is in development.
Great! I just e-mailed you my changes based off of CVS.
-Mike