Media edge cases: EXIF orientations 1–8, rotated video, VFR, multi-audio, alpha & CMYK

Standard 1920×1080 8-bit sRGB media samples rarely uncover production bugs. Use these 19 specialized image and video fixtures to test smartphone rotation metadata, variable frame rates, odd pixel dimensions, 16-bit color depth, CMYK print JPEGs, and EXIF Orientation flags 1 through 8.

Download media edge-case fixtures (19 files)

Media edge case sample files
File nameFormatSizeEdge case specificationSHA-256 checksumDownload
image-16bit-channel.png .png (image/png) 348 bytes 16-bit per pixel high-bit-depth grayscale PNG fixture 2badc34b21b72d3c759269730724abd3b2d1f13a8efa693149bfd4a39b34edab Download
image-alpha-transparency.png .png (image/png) 2,002 bytes 32-bit RGBA PNG with semi-transparent alpha channel 8699e989c28b84260e33e4c555f76007d30145a8fd7da8fd286139ff1d45b772 Download
image-alpha-transparency.webp .webp (image/webp) 648 bytes Lossless RGBA WebP with alpha transparency plane 497d2ec1c8d69d5392da1c0bb4d68ef7c525252e058d86a5a6f1662dac539e20 Download
image-cmyk-color.jpg .jpg (image/jpeg) 13,079 bytes 4-channel CMYK color-space JPEG for print/web color conversion testing 06d109fa5e6a4896b42f82abd5b6b38decf2d681d46b72ab65b9cd9daa74e615 Download
image-exif-orientation-1.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=1 for image rotation normalization tests ac765a60a9e89642ebfa89598b6e24a6f4375f6f310ab8745280b65f75c66cdb Download
image-exif-orientation-2.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=2 for image rotation normalization tests c33d6b95ad29318831cd3c9538c75b452f58e95116107ea668014546d57ff1d9 Download
image-exif-orientation-3.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=3 for image rotation normalization tests b035a8214466d28872e4d6139342df9b506e139c52354ef1105a3afd8bb0c874 Download
image-exif-orientation-4.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=4 for image rotation normalization tests 5bbbf93aa03f70a8daf4105dba15db2d807a6e555863b5db9632303d354804b9 Download
image-exif-orientation-5.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=5 for image rotation normalization tests f6f7f4acd385053d7ced7d5f4e685a1d501812d02152532ea8416c9c9a3407e0 Download
image-exif-orientation-6.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=6 for image rotation normalization tests a1363e3aa7912793ff7c7963ac1e516400c16b1be1e46e1277d80b03064d601b Download
image-exif-orientation-7.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=7 for image rotation normalization tests 5a0d2ba9c17aaaf5e322b1bf4d9b97d568dcc6db59e314d62b06eeab51fce073 Download
image-exif-orientation-8.jpg .jpg (image/jpeg) 7,785 bytes JPEG with EXIF tag 0x0112 Orientation=8 for image rotation normalization tests fbdb6034462ba079475d020232255fa776c950012f88e94c25fc3bb271a4f599 Download
image-odd-dimensions-333x197.jpg .jpg (image/jpeg) 9,670 bytes Odd-dimension 333x197 JPEG (partial MCU edge blocks) 7e6e0e36e28c97824378377e286fde966f8adb548431f895ca79a91577d122ed Download
image-progressive-scan.jpg .jpg (image/jpeg) 5,643 bytes Multi-scan Progressive DCT JPEG (SOF2 marker 0xFFC2) 91590f0a06799a78aba458c8da92fe3808e44f55aa11943f32fa40690f8a2597 Download
video-dual-audio-tracks.mp4 .mp4 (video/mp4) 47,449 bytes MP4 container with 2 distinct AAC audio tracks (English 440 Hz + French 880 Hz) 0c40f6ac4c581286e6a56bfc4f1d336a0b433fd08fb7b2349c1a33e01d3c0914 Download
video-embedded-subtitles.mkv .mkv (video/x-matroska) 9,497 bytes Matroska (.mkv) video with muxed SubRip subtitle track 43ef87978a14f88be8d110da9bd731e7c519abb218ab1d7095a7fd8659a4f91c Download
video-odd-dimensions-333x197.mp4 .mp4 (video/mp4) 12,243 bytes Odd-dimension 333x197 MP4 video encoded with YUV 4:4:4 chroma subsampling dec88489802f97cf7a87de7a417e53dec772ad6417f347579b20c8c153d9d321 Download
video-rotated-90deg.mp4 .mp4 (video/mp4) 14,822 bytes Portrait MP4 video with tkhd 90-degree rotation display matrix metadata 555ed1479cfd35fd2a95ae1fe8595a105cc2afe01a5620bf6b9e54afb8b7f693 Download
video-vfr-variable-framerate.mp4 .mp4 (video/mp4) 10,648 bytes Variable frame rate (VFR) MP4 video stream with non-uniform frame timestamps 3f903d1cf400f8a110d7236e6ff379f74da8897b57176ce35e3f3ed24f4a48ae Download

Why these specific media edge cases break production pipelines

1. Smartphone video rotation matrix (video-rotated-90deg.mp4) and JPEG EXIF Orientation 1–8

When a user records portrait video or snaps a vertical photo on an iPhone or Android phone, the camera sensor often writes the raw pixels in landscape orientation and sets a metadata flag—either a 90° rotation matrix inside the MP4 tkhd (Track Header) box or EXIF tag 0x0112 (Orientation values 1 through 8, including mirrored orientations 2, 4, 5, and 7) inside the JPEG APP1 segment. If your thumbnail generator strips EXIF metadata before rotating the pixel buffer, portrait user avatars and product photos appear sideways or upside down.

2. Odd pixel dimensions (333×197) and YUV 4:2:0 macroblock alignment

Standard H.264/HEVC encoders using yuv420p chroma subsampling require both width and height to be even numbers (divisible by 2) because each 2×2 block of luma pixels shares a single U and V chroma sample. When a user uploads a screenshot cropped to odd dimensions like 333×197 (image-odd-dimensions-333x197.jpg or video-odd-dimensions-333x197.mp4), an FFmpeg pipeline that omits a pad=ceil(iw/2)*2:ceil(ih/2)*2 or scale filter crashes with width not divisible by 2.

3. Variable Frame Rate (VFR), multi-audio tracks, and embedded subtitles

Screen recordings and mobile videos frequently use Variable Frame Rate (video-vfr-variable-framerate.mp4), pausing frame emission when the screen is static. Video editors that assume a constant frame duration drift out of audio sync within seconds. Meanwhile, video-dual-audio-tracks.mp4 (containing both an English 440 Hz stereo track and a French 880 Hz mono track) and video-embedded-subtitles.mkv verify that your transcoder selects or preserves secondary audio and subtitle streams properly.

4. CMYK JPEGs, 16-bit PNGs, progressive scans, and RGBA alpha channels

Print designers frequently upload 4-channel CMYK JPEGs (image-cmyk-color.jpg); browsers and naive sRGB image resizers often render CMYK JPEGs with inverted colors unless converted to sRGB first. Similarly, image-16bit-channel.png tests 16-bit-per-channel bit depth downsampling, and image-alpha-transparency.png / .webp verify that transparent backgrounds are composited cleanly rather than turning pitch black when converted to JPEG.

Frequently asked questions

Do the EXIF Orientation 1–8 JPEGs contain any personal GPS or camera serial number metadata?
No. Each file contains only a single synthetic EXIF tag: 0x0112 (Orientation, set to integer 1 through 8). There are zero GPS coordinates, timestamps, or device identifiers.
How do I inspect the streams inside video-dual-audio-tracks.mp4 or video-embedded-subtitles.mkv?
Run `ffprobe -hide_banner video-dual-audio-tracks.mp4` in your terminal to inspect Stream #0:0 (H.264 video), Stream #0:1 (eng stereo AAC), and Stream #0:2 (fra mono AAC).