Skip to content

Commit d527571

Browse files
committed
Use new template function
1 parent f659cfc commit d527571

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/basics/remux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
# Make an output stream using the input as a template. This copies the stream
1010
# setup from one to the other.
1111
in_stream = input_.streams.video[0]
12-
out_stream = output.add_stream(template=in_stream)
12+
out_stream = output.add_stream_from_template(in_stream)
1313

1414
for packet in input_.demux(in_stream):
1515
print(packet)

examples/subtitles/remux.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
output = av.open("remuxed.vtt", "w")
77

88
in_stream = input_.streams.subtitles[0]
9-
out_stream = output.add_stream(template=in_stream)
9+
out_stream = output.add_stream_from_template(in_stream)
1010

1111
for packet in input_.demux(in_stream):
1212
if packet.dts is None:

0 commit comments

Comments
 (0)