View Bug Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0001701 | DCP-o-matic | Features | public | 2019-12-22 16:42 | 2023-09-01 21:48 |
Reporter | overlookmotel | Assigned To | carl | ||
Priority | normal | Severity | minor | Reproducibility | have not tried |
Status | closed | Resolution | no change required | ||
Platform | Mac | OS | OS X | OS Version | 10.14 |
Product Version | 2.14.15 | ||||
Summary | 0001701: Includes end position of each piece of content in metadata.xml | ||||
Description | I seem to be running into a whole string of problems related to trying to accurately calculate the length (in output DCP) of pieces of content, leading me to keep raising issues here (0001700 being the latest). Quite possibly this is of no use to anyone by me, but would it be possible to record the end position of each piece of content in I mean something like this extra
A piece of content's Presumably DCP-o-matic is already calculating this internally, but it's not recorded in Since this is probably only of benefit to me, maybe I should have a stab at implementing it myself. But could you point me to right place in the code base? It's about time someone made a PR on Github! | ||||
Tags | No tags attached. | ||||
Branch | |||||
Estimated weeks required | |||||
Estimated work required | |||||
|
Please excuse faulty markdown in above. i'm not sure why it came out like that. |
|
Well; all the problems you have uncovered have been nasty bugs in DCP-o-matic, which are now (hopefully) fixed, so I think that is positive :) Are you just wanting to have this To make a patch the place you probably want to look is |
|
Hi Carl. Yes, that's exactly what I'm trying to do. I'm programmatically altering Some use cases:
However, I think your suggestion in 0001700 - an addition to the CLI API - is a better solution than what I've proposed here. As you say, it's unnecessary to clutter That would satisfy all the above use cases, and be a neater solution. I've opened a new issue 0001702 for this. Please feel free to close this issue. |
|
OK, great. It may be interesting to think about other solutions; maybe extending |
|
Unless I'm misunderstanding, for me at least, Or did I miss your point? Re: Python bindings... I'm sure this would be useful for some who use Python. Personally I'm strictly a NodeJS guy, so adding python to the mix would complicate matters. The advantage of a CLI is it's something of a lingua franca - Python, NodeJS, Rust, Bash, or practically anything else can run commands in a shell and parse stdout/stderr output. One thing I'd like which could be easier via language bindings is to communicate with the DCP-o-matic while it's encoding e.g. sending signals to pause/resume or abort (cleanly). But possibly there are other ways to skin that particular cat. And anyway, I'm straying well off topic now... |
|
Ah, I think I get what you mean about To be honest, I think the amount of different options you'd need to add to the CLI in order to allow the user to do everything that's possible by editing For example, alterations of the project XML that I make via script include:
There are a lot of options! For me at least, I'm quite happy with editing the XML. The schema of the XML is really clear and, again, XML is a lingua franca. I'm sure this wasn't how you intended DCP-o-matic to be used, but it's certainly not difficult to do it. The only real problem I've run into is this business of calculating end position of content. Out of interest, are you aware of anyone else using DCP-o-matic programmatically? I assume most use the GUI, and I imagine the Batch Converter app satisfies the primary case for automation for most people. |
|
PS For anyone wanting to do complicated things by hand, editing XML is often much easier than wrangling the kind of lengthy command lines you have with e.g. FFMPEG. I have to read the manual practically every time I use FFMPEG filters, for example. |
Date Modified | Username | Field | Change |
---|---|---|---|
2019-12-22 16:42 | overlookmotel | New Bug | |
2019-12-22 16:43 | overlookmotel | Note Added: 0003672 | |
2019-12-23 00:19 | carl | Note Added: 0003673 | |
2019-12-23 00:19 | carl | Assigned To | => carl |
2019-12-23 00:19 | carl | Status | new => feedback |
2019-12-23 13:25 | overlookmotel | Note Added: 0003675 | |
2019-12-23 13:25 | overlookmotel | Status | feedback => assigned |
2019-12-23 21:39 | carl | Note Added: 0003679 | |
2019-12-23 21:39 | carl | Status | assigned => resolved |
2019-12-23 21:39 | carl | Resolution | open => no change required |
2019-12-23 23:15 | overlookmotel | Note Added: 0003683 | |
2019-12-23 23:39 | overlookmotel | Note Added: 0003684 | |
2019-12-23 23:43 | overlookmotel | Note Added: 0003685 | |
2023-09-01 21:48 | carl | Status | resolved => closed |