Open smimram opened 1 year ago
The type reporting issue is a problem indeed. However, I disagree with the rest. Now that we're preparing ourselves for multi-track content, there's no telling what tracks will be available. Why not support 2 blank video tracks out of the box? Or 3? And 2 blank tracks too?
I kept the empty audio track for image decoders which, frankly, is the most important use case. For all other cases, we are gonna want the user to be explicit. I don't think that these simple examples are reflective of real-life use of the operators.
In fact, your example you become, when the API is complete the way I see it:
audio = sine().tracks.audio
video = video.color(0x0000ff).tracks.video
s = source({audio, video})
The script
reports the error
This is unfortunate for two reasons
...
insource(...)
)sine
source should be able to produce blank video, which costs almost nothing now that we have canvas.