Skip to content
TheChatArchiveThe Chat Archive
Claudeclaude-3-5-haiku-20241022· AnthropicHugging Face LMArena Human Preference 140K

Ffmpeg command to stream mkv file to iPhone. The mkv file consists of hevc video, stereo…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with Claudeclaude-opus-4-20250514’s answer.
  1. User

    Ffmpeg command to stream mkv file to iPhone. The mkv file consists of hevc video, stereo aac audio and ass subtitles. Burn in the subtitles when streaming to compatible formats for iphone 13

  2. Claude Assistant

    Here's an FFmpeg command to stream an MKV file to an iPhone 13, burning in the subtitles and converting the video to a compatible format:

    ffmpeg -i input.mkv -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -filter_complex "[0:v][0:s]overlay" -f mpegts udp://iPhone_IP:1234
    

    Let me break down the command:

    1. -c:v libx264: Convert HEVC to H.264 (iPhone-compatible video codec)
    2. -preset medium: Balance between encoding speed and compression
    3. -crf 23: Constant rate factor for video quality
    4. -c:a aac: Convert audio to AAC
    5. -b:a 128k: Audio bitrate
    6. -filter_complex "[0:v][0:s]overlay": Burn in subtitles
    7. -f mpegts: Transport Stream format for streaming
    8. udp://iPhone_IP:1234: UDP streaming to iPhone (replace with actual IP)

    Alternative command with more control:

    ffmpeg -i input.mkv -c:v libx264 -preset medium -crf 23 -c:a aac -b:a 128k -vf subtitles=input.mkv -f mpegts udp://iPhone_IP:1234
    

    Notes:

    • Ensure your iPhone is on the same network
    • Use a UDP streaming app on the iPhone
    • Adjust IP and port as needed
    • Test and adjust quality/bitrate settings
  3. User

    Transcode it using intel quicksync

  4. Claude Assistant

    Here's an FFmpeg command using Intel QuickSync for hardware-accelerated transcoding:

    ffmpeg -hwaccel qsv -hwaccel_device /dev/dri/renderD128 -i input.mkv \
    -c:v h264_qsv -preset medium -crf 23 -c:a aac -b:a 128k \
    -vf "hwupload=derive=qsv,subtitles=input.mkv" \
    -f mpegts udp://iPhone_IP:1234
    

    Key modifications for QuickSync:

    1. -hwaccel qsv: Enable QuickSync hardware acceleration
    2. -hwaccel_device /dev/dri/renderD128: Specify Intel graphics device
    3. -c:v h264_qsv: Use QuickSync H.264 encoder
    4. -vf "hwupload=derive=qsv,subtitles=input.mkv": Hardware-accelerated subtitle burn-in

    Prerequisites:

    • Intel CPU with QuickSync support
    • Recent FFmpeg with QSV support
    • Intel Media SDK or Intel OneAPI installed
    • Proper graphics drivers

    Troubleshooting tips:

    • Verify device path with ls /dev/dri/
    • Check QuickSync compatibility with your specific Intel GPU
    • Adjust preset/CRF for desired quality/performance balance

Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.