Skip to content

Add stream selection support for tf.contrib.ffmpeg.decode_video - #16696

Closed
yongtang wants to merge 4 commits into
tensorflow:masterfrom
yongtang:16101-decode_video-streams
Closed

yongtang wants to merge 4 commits into
tensorflow:masterfrom
yongtang:16101-decode_video-streams

Conversation

@yongtang

@yongtang yongtang commented Feb 2, 2018

Copy link
Copy Markdown
Member

This fix is a follow up to #16101. In #16101, stream selection support has been added for tf.contrib.ffmpeg.decode_audio.
However, it was still not possible to selectively decode a perticular stream with tf.contrib.ffmpeg.decode_vidio.

This fix adds an additional attribute stream which could be used to specify the stream of the video to decode. By default stream='' which leaves the decision to ffmpeg.

This fix is related to comment #16101 (comment)

Signed-off-by: Yong Tang [email protected]

@tensorflowbutler

Copy link
Copy Markdown
Member

Nagging Reviewer @fredbertsch: You have been added as a reviewer to this pull request. Please add your review or reassign. It has been 304 days with no activity and the awaiting review label has been applied.

@rthadur

rthadur commented Dec 21, 2018

Copy link
Copy Markdown
Contributor

@yongtang Thanks for your contribution and apologies for the delay in reverting. Can you please sync with latest TensorFlow:Master? @fredbertsch Can you please take a look? Thanks!

This fix is a follow up to 16101. In 16101, stream selection
support has been added for `tf.contrib.ffmpeg.decode_audio`.
However, it was still not possible to selectively decode a
perticular stream with `tf.contrib.ffmpeg.decode_vidio`.

This fix adds an additional attribute `stream` which could
be used to specify the stream of the video to decode.
By default stream='' which leaves the decision to ffmpeg.

This fix is related to comment 16101.

Signed-off-by: Yong Tang <[email protected]>
@yongtang
yongtang force-pushed the 16101-decode_video-streams branch from fc3c6c0 to 36bde67 Compare December 21, 2018 23:17
@rthadur rthadur added size:M CL Change Size: Medium contrib Anything that comes under contrib directory labels Jan 2, 2019
@yongtang

Copy link
Copy Markdown
Member Author

As ffmpeg is being removed from contrib soon, I think we could close this PR.

@yongtang yongtang closed this Jan 20, 2019
@yongtang
yongtang deleted the 16101-decode_video-streams branch January 20, 2019 22:38
copybara-service Bot pushed a commit that referenced this pull request Sep 4, 2024
Imported from GitHub PR openxla/xla#16696

This PR adds various small quality of life improvements to macOS builds:
- drop the `.so` suffix for PjRt plugin targets (`.dylib` on macOS)
- add compatibility with Apple Command Line Tools (no need for Xcode anymore)
- only export the `GetPjrtApi` symbol on macOS
- leverage bazel's `cc_binary.additional_linker_inputs` instead of using `deps`

It is probable the `.so` change my break some other builds, but I couldn't find any use in the XLA repo to patch ?
Copybara import of the project:

--
2d392b016730e8811ea72f90d9b5ee67126e61e6 by Steeve Morin <[email protected]>:

[PjRt] Only export GetPjrtApi symbol on macOS

Also add missing macOS linkops, remove the .so suffix to the plugin targets
and add additional_linker_inputs for the linker script instead of deps.

--
9dbba3433bd88d3db95f1647782ba3bf9d3462cf by Steeve Morin <[email protected]>:

Do not force DEVELOPER_DIR on macOS

It's is autodetected by Bazel and supports building using
only the Apple Command Line Tools.

--
336122e2fb0e3d7dd93b5a4a30f7551d8e1a21b6 by Steeve Morin <[email protected]>:

Set the macosx deployment target via the bazel command line

Instead of via an action env.

Merging this change closes #16696

Reverts 12bfb5b

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#16696 from zml:steeve/cc_shared_library 336122e2fb0e3d7dd93b5a4a30f7551d8e1a21b6
PiperOrigin-RevId: 671058756
copybara-service Bot pushed a commit that referenced this pull request Sep 10, 2024
Imported from GitHub PR openxla/xla#16696

This PR adds various small quality of life improvements to macOS builds:
- drop the `.so` suffix for PjRt plugin targets (`.dylib` on macOS)
- add compatibility with Apple Command Line Tools (no need for Xcode anymore)
- only export the `GetPjrtApi` symbol on macOS
- leverage bazel's `cc_binary.additional_linker_inputs` instead of using `deps`

It is probable the `.so` change my break some other builds, but I couldn't find any use in the XLA repo to patch ?
Copybara import of the project:

--
2d392b016730e8811ea72f90d9b5ee67126e61e6 by Steeve Morin <[email protected]>:

[PjRt] Only export GetPjrtApi symbol on macOS

Also add missing macOS linkops, remove the .so suffix to the plugin targets
and add additional_linker_inputs for the linker script instead of deps.

--
9dbba3433bd88d3db95f1647782ba3bf9d3462cf by Steeve Morin <[email protected]>:

Do not force DEVELOPER_DIR on macOS

It's is autodetected by Bazel and supports building using
only the Apple Command Line Tools.

--
336122e2fb0e3d7dd93b5a4a30f7551d8e1a21b6 by Steeve Morin <[email protected]>:

Set the macosx deployment target via the bazel command line

Instead of via an action env.

Merging this change closes #16696

FUTURE_COPYBARA_INTEGRATE_REVIEW=openxla/xla#16696 from zml:steeve/cc_shared_library 336122e2fb0e3d7dd93b5a4a30f7551d8e1a21b6
PiperOrigin-RevId: 673069979
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

awaiting review Pull request awaiting review cla: yes contrib Anything that comes under contrib directory size:M CL Change Size: Medium

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants