|
|
@ -20,5 +20,6 @@ class AudioDecoderFFmpeg(PyOperator): |
|
|
for frame in in_container.decode(stream): |
|
|
for frame in in_container.decode(stream): |
|
|
timestamp = int(frame.time * 1000) |
|
|
timestamp = int(frame.time * 1000) |
|
|
sample_rate = frame.sample_rate |
|
|
sample_rate = frame.sample_rate |
|
|
|
|
|
layout = frame.layout.name |
|
|
ndarray = frame.to_ndarray() |
|
|
ndarray = frame.to_ndarray() |
|
|
yield AudioFrame(ndarray, sample_rate, timestamp) |
|
|
|
|
|
|
|
|
yield AudioFrame(ndarray, sample_rate, timestamp, layout) |
|
|
|