Repository navigation
Add stream selection support for tf.contrib.ffmpeg.decode_audio - #16101
Conversation
This fix tries to address the issue raised in 16073 where it was not possible to selectively decode a perticular stream with `tf.contrib.ffmpeg.decode_audio`. This fix adds an additional attribute `stream` which could be used to specify the stream to decode. By default stream='' which leaves the decision to ffmpeg. This fix fixes 16073. Signed-off-by: Yong Tang <[email protected]>
Signed-off-by: Yong Tang <[email protected]>
Signed-off-by: Yong Tang <[email protected]>
|
LGTM! |
|
Do you think it would be good for API symmetry to have the same extension for |
|
@carlthome I think it makes sense to have stream selection support for |
|
@yongtang maybe I am missing this, but is there a way to get the number of available substreams so that users can iterate over all substreams? |
|
Similarly, being able to set a time offset and duration would be nice (i.e. ffmpeg |
|
@carlthome @faroit I think it might be possible to have another op (e.g., |
|
This looks great! Thanks for doing this. Unfortunately, merging this will break our internal build. I'm going to create an internal change that we can synchronize with this one. |
fredbertsch
left a comment
There was a problem hiding this comment.
LGTM. I've got a parallel change that will happen internally, so I'll merge this PR once that's in flight.
Thank you very much for the added capability! :)
|
@fredbertsch Thanks for the help! 👍 🎉 |
|
Please have a look at the test failures, e.g. |
|
@rmlarsen I run though the test of |
|
The PR #16696 adds the stream selection support for |
This fix tries to address the issue raised in #16073 where it was not possible to selectively decode a perticular stream with
tf.contrib.ffmpeg.decode_audio.This fix adds an additional attribute
streamwhich could be used to specify the stream to decode (e.g.,stream="1"). By defaultstream=""which leaves the decision to ffmpeg.This fix fixes #16073.
Signed-off-by: Yong Tang [email protected]