X265 Exclusive | Companion
#!/bin/bash # Checks if x265 file is playable on an Apple TV 4K INPUT=$1 BITDEPTH=$(mediainfo --Output="Video;%BitDepth%" "$INPUT") HDR=$(mediainfo --Output="Video;%HDR_Format%" "$INPUT") if [ "$BITDEPTH" == "10" ] && [[ "$HDR" == "Dolby Vision" ]]; then echo "⚠️ Companion: Apple TV 4K may have purple tint. Requires profile 8.1 conversion." elif [ "$BITDEPTH" == "8" ]; then echo "❌ Companion: 8-bit x265 is poor quality. Recommend 10-bit." else echo "✅ Companion: Direct play compatible." fi Media servers use internal "companion" processes to transcode x265 on-the-fly.
#!/bin/bash FILE=$1 echo "=== x265 Companion Report ===" echo "File: $FILE" mediainfo --Output="General;%Duration% %FileSize%" "$FILE" echo "Video:" mediainfo --Output="Video;%CodecID% %BitDepth%-bit %HDR_Format% %ColorSpace%" "$FILE" echo "Audio sync check:" ffmpeg -i "$FILE" -af "aresample=async=1:first_pts=0" -f null - 2>&1 | grep "Non-monotonic" echo "Hardware decode test:" ffmpeg -i "$FILE" -c:v hevc_cuvid (or hevc_videotoolbox) -f null - 2>&1 | grep "Error" This gives you a complete "Companion" health report for any x265 file. There is no universal "Companion x265" software, but combining mediainfo , ffmpeg , mkvmerge , and dovi_tool creates the most powerful companion system for managing, repairing, and verifying x265 encodes. companion x265
Checking if a "Scene Release" x265 was actually encoded with proper parameters. but combining mediainfo