Skip to content

fix bare_ffmpeg_filter_graph_parse input/output params#174

Open
sethvincent wants to merge 1 commit into
mainfrom
filter-graph-inputs-outputs
Open

fix bare_ffmpeg_filter_graph_parse input/output params#174
sethvincent wants to merge 1 commit into
mainfrom
filter-graph-inputs-outputs

Conversation

@sethvincent

Copy link
Copy Markdown
Contributor

I tried using multiple inputs and outputs with FilterGraph and found that the params for the binding function needed to be updated to use double pointers to fully support the linked lists.

@sethvincent sethvincent requested a review from a team October 29, 2025 05:46
Comment thread test/filter-graph.js
})
})

test('FilterGraph.parse should handle multiple inputs', (t) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
test('FilterGraph.parse should handle multiple inputs', (t) => {
test('FilterGraph should split one input into multiple outputs', (t) => {

According to my understanding. I could be wrong tho 😅

Comment thread test/filter-graph.js
})
})

test('FilterGraph.parse should handle multiple outputs', (t) => {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here.

Comment thread test/filter-graph.js
Comment on lines +92 to +100
using inputs = createFilterInOutChain([
[sinkContext0, 'out0'],
[sinkContext1, 'out1']
])
using outputs = initOutputs(bufferContext)

t.execution(() => {
graph.parse('split=2[out0][out1]', inputs, outputs)
})

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

According what was added in lib/filter-graph.js. It does not look like we have a test that cover that case (having inputs or ouputs with an undefined _handle).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants