Skip to content

PassThroughTrackTranscoder ignores original video rotation & value passed by setVideoRotation #91

@vkryl

Description

@vkryl

Whenever transcoder engine uses PassThroughTrackTranscoder for video track, it ignores original video rotation metadata, and passed setVideoRotation value.

It seems library properly checks that the validator result should be ignored here, however, later it doesn't use this value, which results in a video without any rotation.

Sample code:

Transcoder
  .into(destinationPath)
  .addDataSource(new FilePathDataSource(sourcePath))
  .setVideoTrackStrategy(new PassThroughTrackStrategy())
  .setAudioTrackStrategy(new PassThroughTrackStrategy())
  .setVideoRotation(90)
  .transcode();

Also this code causes Transcoder to create a video without original rotation metadata:

Transcoder
  .into(destinationPath)
  .addDataSource(new FilePathDataSource(sourcePath))
  .setVideoTrackStrategy(new PassThroughTrackStrategy())
  .setAudioTrackStrategy(new RemoveTrackStrategy())
  .transcode();

Transcoder version: 0.9.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions