Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Feature request: HTML export #17
I'd love a feature, similar to the existing CSV export, that saved each detected scene into a formatted HTML document that included the thumbnail frames that get saved out on scene detection change.
The HTML doc would contain a table with the same headers as the CSV currently has. However, there'd be a "Frame Image" column that includes one or more of the JPG frame grabs. Each scene would be represented by a row.
For folks who want to do further analysis (in Excel, for instance), it'd much easier to import an HTML table into Excel than it is to add images to a table without them - although that's also possible with an Excel macro.
You can construct the HTML file in the same section of code that currently builds the CSV, either using an HTML builder (I'm sure Python supports one?) or even just by hand by writing out the table markup.
Anyhow, super awesome piece of code you've got. Totally made my day yesterday!
I recently added integrated support for splitting videos to PySceneDetect (via
There's two approaches to implementing this that are reasonable. The first is changing the output option from
I'm leaning towards the latter implementation, but am open to any suggestions you might have.
I apologize for the lack of progress on this issue, all my effort has been tied up with development of v0.5 (which is a complete refactor of both the CLI and Python API).
The integration of this feature should be significantly smoother now that the API has been rewritten for modularity first and foremost. I'm working on a feature to configure the number of output images.
In the meantime, if anyone has a suggestion for a template or how to format N images per scene, as well as the information about each scene's start/end/duration timecode, frame number, and in seconds, I would greatly appreciate it. I'm not much of an HTML/CSS person, so any help on how to format the output would be appreciated.
There hasn't been any progress on this actually, feel free to have a go at it!
I'm thinking there should be a new command like
Also the command should reflect the global output directory flag (
Thoughts? Thanks for your interest.