Skip to content

Commit 0b2ee0d

Browse files
committed
major revamp of filtergraph submodule
1 parent b7d0282 commit 0b2ee0d

22 files changed

Lines changed: 6571 additions & 3921 deletions

README.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,14 +235,14 @@ Filtergraph Builder
235235
>>> v2 = (v0 | v1) + fgb.concat(2)
236236
>>> v5 = (v2|v3) + fgb.overlay(eof_action='repeat') + fgb.drawbox(50, 50, 120, 120, 'red', t=5)
237237
>>> v5
238-
<ffmpegio.filtergraph.Graph object at 0x1e67f955b80>
238+
<ffmpegio.filtergraph.Graph.Graph object at 0x2a4ef084bd0>
239239
FFmpeg expression: "[0]trim=start_frame=10:end_frame=20[L0];[0]trim=start_frame=30:end_frame=40[L1];[L0][L1]concat=2[L2];[1]hflip[L3];[L2][L3]overlay=eof_action=repeat,drawbox=50:50:120:120:red:t=5"
240240
Number of chains: 5
241241
chain[0]: [0]trim=start_frame=10:end_frame=20[L0];
242242
chain[1]: [0]trim=start_frame=30:end_frame=40[L1];
243243
chain[2]: [L0][L1]concat=2[L2];
244244
chain[3]: [1]hflip[L3];
245-
chain[4]: [L2][L3]overlay=eof_action=repeat,drawbox=50:50:120:120:red:t=5
245+
chain[4]: [L2][L3]overlay=eof_action=repeat,drawbox=50:50:120:120:red:t=5[UNC0]
246246
Available input pads (0):
247247
Available output pads: (1): (4, 1, 0)
248248

src/ffmpegio/analyze.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -239,7 +239,7 @@ def run(
239239
fchains[l.media_type] = c = as_filtergraph(c)
240240

241241
# assign the logger to get the output of the previous logger
242-
c >>= f
242+
fchains[l.media_type] = c >> f
243243

244244
if len(fchains["video"]):
245245
fchains["video"] >>= Filter("metadata", "print", file="-")

0 commit comments

Comments
 (0)