testsrc

Portrait video rotated by the display matrix

edge/rotation-90-display-matrix.mp4MP4Edge case

An MP4 whose picture is stored sideways with a rotation flag, the way phones record portrait video.

How it should play

0042

What a broken player shows

0042
An illustration of the symptom, not a frame from the file.

What goes wrong

Players that ignore the flag show the video sideways, or squeezed into the wrong aspect.

The file

Container
MP4, 6 s
Size
5.5 MB
Video
H.264, 1920x1080, 30 fps
Audio
AAC, stereo, 48,000 Hz
Expected
plays correctly in any player

How it was verified

Built by the testsrc generator (gen v0.2) and verified with FFmpeg 7.1.5-0+deb13u1 and GStreamer 1.26.2 in snapshot 2026-11-02, before it was published: the file has the property this page describes, and decoding it gives the expected result.

With a token: the file, how exactly it was built, the full fact sheet, and the expected result the checker judges a player against.

Use it

# the public facts
curl https://testsrc.com/v1/cases/edge/rotation-90-display-matrix.mp4

# the full fact sheet and the file, with your token
curl -H "Authorization: Bearer $TESTSRC_TOKEN" \
  https://testsrc.com/v1/cases/edge/rotation-90-display-matrix.mp4/facts
curl -H "Authorization: Bearer $TESTSRC_TOKEN" -o rotation-90-display-matrix.mp4 \
  https://testsrc.com/v1/files/edge/rotation-90-display-matrix.mp4

# play it through your player and check what it showed
testsrc run --player libvlc edge/rotation-90-display-matrix.mp4

See the API reference for tokens, quotas and snapshots.

testsrc is in early access. Free for open-source projects, $99/month per organisation for companies.

Get early access

More on orientation and aspect

4 more cases on this with a token.