Skip to content

Feature request: (optionally) return all audio streams in tf.contrib.ffmpeg.decode_audio #16073

Closed

Description

@carlthome

I'm trying to read musdb18 with tf.data and it comes in the form of mp4 files with multiple audio streams so ffmpeg -map is needed.

tf.contrib.ffmpeg.decode_audio cannot be configured to choose the audio stream. I wonder if we could have a tf.contrib.ffmpeg.decode_audios that returns every audio stream in the file, or if we could have a new argument in tf.contrib.ffmpeg.decode_audio for choosing streams.

Being able to choose the audio stream is also important for getting the right language in a movie file's audio, and similarly tf.contrib.ffmpeg.decode_video could need the same extension (though multiple video streams is not as common AFAIK).

Activity

  1. carlthome commented on Jan 12, 2018

    @carlthome
    ContributorAuthor

    Maybe @faroit has thoughts on this?

  2. added
    stat:awaiting tensorflower
    type:feature
    on Jan 13, 2018
  3. shivaniag commented on Jan 13, 2018

    @shivaniag
    Contributor

    @vrv do you have any comments on this too or redirect to who would be the best person?

  4. vrv commented on Jan 13, 2018

    @vrv

    @fredbertsch I think knows most about ffmpeg ops

  5. yongtang commented on Jan 13, 2018

    @yongtang
    Member

    Added a PR #16101 so that it is possible to provide an optional stream="0" for ffmpeg to select. Please take a look.

  6. faroit commented on Jan 14, 2018

    @faroit

    @carlthome this is great!

  7. removed
    stat:awaiting tensorflower
    on Jan 23, 2018
  8. tensorflowbutler commented on Jan 23, 2018

    @tensorflowbutler
    Member

    A member of the TensorFlow organization has replied after the stat:awaiting tensorflower label was applied.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    type:feature

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions