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

Ubuntu I have ffmpeg and in current dir I have img0000.png through img3000.png. How to…

From a Chatbot Arena battleThe same person sent this prompt to two anonymous models at once. Compare it with o3-2025-04-16’s answer.
  1. User

    Ubuntu I have ffmpeg and in current dir I have img0000.png through img3000.png. How to turn it into an mkv with out losing ANY quality? its a very (purposefully) noisy video and i dont wanna lose the noise

  2. Claude Assistant

    Here's a high-quality FFmpeg command to create an MKV without losing any image quality:

    ffmpeg -framerate 24 -pattern_type glob -i 'img*.png' -c:v libx264 -preset veryslow -crf 0 -pix_fmt yuv444p output.mkv
    

    Let me break down the key parameters:

    • -framerate 24: Sets the frame rate (adjust if needed)
    • -pattern_type glob -i 'img*.png': Captures all PNG images in sequence
    • -c:v libx264: Uses x264 codec
    • -preset veryslow: Highest compression/quality optimization
    • -crf 0: Lossless compression (no quality loss)
    • -pix_fmt yuv444p: Ensures full color preservation

    The veryslow preset and crf 0 will ensure maximum quality preservation. The yuv444p pixel format maintains full color information.

    If the images are from a very high-resolution source and you want to absolutely guarantee no quality loss, you might also consider:

    ffmpeg -framerate 24 -pattern_type glob -i 'img*.png' -c:v libx264 -preset veryslow -crf 0 -pix_fmt yuv444p -qp 0 output.mkv
    

    The additional -qp 0 provides an extra layer of lossless encoding.

  3. User

    60 fps.

  4. Claude Assistant

    Here's the updated command for 60 fps:

    ffmpeg -framerate 60 -pattern_type glob -i 'img*.png' -c:v libx264 -preset veryslow -crf 0 -pix_fmt yuv444p output.mkv
    

    The only change is -framerate 60 to match your desired frame rate. This will maintain the full 60 fps while preserving all image quality.

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