Portrait mode support for streaming videos in app #539

Closed
opened 2017-09-07 07:44:37 +02:00 by tzarebczan · 6 comments
tzarebczan commented 2017-09-07 07:44:37 +02:00 (Migrated from github.com)

The Issue

A user on Reddit noticed that his video, which was recorded in portrait mode, plays in landscape mode (rotated) via the app. The post is here: https://www.reddit.com/r/lbry/comments/6ykhxs/trying_to_upload_a_video_but_its_taking_forever/

Video is here: lbry://@pancake#c515f03fed88e677f28423ed175c8bbc046c8995/cauliflower

When opening the video from the downloads folder, it plays in portrait mode in my external player.

Steps to reproduce

  1. Play lbry://@pancake#c515f03fed88e677f28423ed175c8bbc046c8995/cauliflower via LBRY app
  2. Video plays in landscape mode, rotated
  3. Play video in external player, plays correctly in portrait mode

Expected behaviour

Play in portrait mode via the app

Actual behaviour

Plays in landscape mode

System Configuration

  • LBRY Daemon version:
  • LBRY App version:
  • LBRY Installation ID:
  • Operating system:

Anything Else

Screenshots

<!-- Thanks for reporting an issue to LBRY and helping us improve! To make it possible for us to help you, please fill out below information carefully. Before reporting any issues, please make sure that you're using the latest version. - App releases: https://github.com/lbryio/lbry-app/releases - Standalone daemon: https://github.com/lbryio/lbry/releases We are also available on Slack at https://slack.lbry.io --> ## The Issue A user on Reddit noticed that his video, which was recorded in portrait mode, plays in landscape mode (rotated) via the app. The post is here: https://www.reddit.com/r/lbry/comments/6ykhxs/trying_to_upload_a_video_but_its_taking_forever/ Video is here: lbry://@pancake#c515f03fed88e677f28423ed175c8bbc046c8995/cauliflower When opening the video from the downloads folder, it plays in portrait mode in my external player. ### Steps to reproduce 1. Play lbry://@pancake#c515f03fed88e677f28423ed175c8bbc046c8995/cauliflower via LBRY app 2. Video plays in landscape mode, rotated 3. Play video in external player, plays correctly in portrait mode ### Expected behaviour Play in portrait mode via the app ### Actual behaviour Plays in landscape mode ## System Configuration <!-- For the app, this info is in the About section at the bottom of the Help page. You can include a screenshot instead of typing it out --> <!-- For the daemon, run: curl 'http://localhost:5279' --data '{"method":"version"}' and include the full output --> - LBRY Daemon version: - LBRY App version: - LBRY Installation ID: - Operating system: ## Anything Else <!-- Include anything else that does not fit into the above sections --> ## Screenshots <!-- If a screenshot would help explain the bug, please include one or two here -->
kauffj commented 2017-09-12 15:25:40 +02:00 (Migrated from github.com)

@tzarebczan does this video play in the proper orientation when downloaded?

@tzarebczan does this video play in the proper orientation when downloaded?
tzarebczan commented 2017-09-12 15:43:24 +02:00 (Migrated from github.com)

Yep, that's mentioned in the issue.

Yep, that's mentioned in the issue.
btzr-io commented 2017-09-14 07:28:29 +02:00 (Migrated from github.com)

Simple test

Just using the video element ( not render-media )

Not sure what's the issue, but seems to come from render-media,
I guess some how skips reading the Rotation tag from metadata...

Rotation

This data is used by browsers such as Chrome and Safari and by video players like VLC and QuickTime to display the video the way it was shot: portrait or landscape.

https://addpipe.com/blog/mp4-rotation-metadata-in-mobile-video-files/

Debug

exiftool -Rotation test.mp4
Rotation                        : 90
### Simple test Just using the video element ( not `render-media` ) <img height=275 src="https://user-images.githubusercontent.com/14793624/30413360-c16eaeb0-98da-11e7-8bb1-07cd872d7d5d.jpeg" /> Not sure what's the issue, but seems to come from `render-media`, I guess some how skips reading the `Rotation` tag from metadata... ### Rotation > This data is used by browsers such as Chrome and Safari and by video players like VLC and QuickTime to display the video the way it was shot: portrait or landscape. https://addpipe.com/blog/mp4-rotation-metadata-in-mobile-video-files/ ### Debug ``` exiftool -Rotation test.mp4 Rotation : 90 ```
btzr-io commented 2017-09-14 08:03:41 +02:00 (Migrated from github.com)
<img width=650 src="https://addpipe.com/blog/wp-content/uploads/2015/06/Screen-Shot-2015-06-10-at-16.48.07-1024x482.png" />
kauffj commented 2017-10-03 22:06:04 +02:00 (Migrated from github.com)
https://github.com/feross/render-media/issues/30
neb-b commented 2019-08-13 20:12:36 +02:00 (Migrated from github.com)

Fixed in new player

Fixed in new player
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: LBRYCommunity/lbry-desktop#539
No description provided.