stream_side_data rotation is not supported on the web player
Describe the current behavior
stream_side_data rotation is not applied in the web player, causing the video to be rotated at original quality
Steps to reproduce
- Upload a video with stream_side_data rotation
- View the video on the web player
- Set quality to highest quality to view the original file
Describe the expected behavior
The video should be oriented correctly, applying the rotation
Additional information
I have uploaded a video (screenrecording of a video game in landscape orientation) on a Peertube instance here: https://vhs.absturztau.be/w/obEStDc9Fw75KefX7safUr
Setting the quality to 720p will cause it to display the video stream without stream_side_data applied, meaning the video is rotated by -90deg. Lower qualities (such as 240p) will be different video feed transcoded by ffmpeg where the rotation is already applied, and thus display correctly.
The rotation data can be viewed with ffprobe:
ffprobe -loglevel error -select_streams v:0 -show_entries stream_side_data=rotation -of default=nw=1:nk=1 -i fgo.suzuka120.mp4Note that this is not the metadata rotation that can be changed with ffmpeg using the flag combination -c copy -metadata:s:v:0 rotate=0.
PeerTube instance (found in https://instanceURL/about/instance/tech):
- URL: https://vhs.absturztau.be/
- Version: 8.2.4
- NodeJS version: Cannot find on provided path
- Ffmpeg version: Neither
Browser name, version and platforms on which you could reproduce the bug: Firefox, Flatpak
Link to browser console log if relevant: N/A
Link to server log if relevant (
journalctlor/var/www/peertube/storage/logs/): N/A
Source: Chocobozzz/PeerTube