ollama - 💡(How to fix) Fix Why do versions after February 20th no longer support video formats such as MP4.AVI? [1 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
ollama/ollama#14900Fetched 2026-04-08 00:48:03
View on GitHub
Comments
1
Participants
2
Timeline
3
Reactions
0
Timeline (top)
closed ×1commented ×1labeled ×1
RAW_BUFFERClick to expand / collapse

The original version 17.0 updated for the first time installed qwen3.5 35B 27B VL and other models to support video understanding. Why didn't all of them support it after the update?

How can we restore the video understanding and analysis function? At present, we can only use jpg, png and other image formats.

<img width="2671" height="1583" alt="Image" src="https://github.com/user-attachments/assets/1d2b192d-3876-4109-a2d3-10453dcd5cff" />

GPU 5090 32g + 5000ada laptop +128g ddr5

extent analysis

Fix Plan

To restore video understanding and analysis, we need to update the model configurations to support video formats.

Steps to Fix

  • Update the models.json file to include video-supported models:
{
  "models": [
    {
      "name": "qwen3.5",
      "version": "35B",
      "supported_formats": ["jpg", "png", "mp4", "avi"]
    },
    {
      "name": "VL",
      "version": "27B",
      "supported_formats": ["jpg", "png", "mp4", "avi"]
    }
  ]
}
  • Modify the video_analysis.py script to handle video inputs:
import cv2

def analyze_video(video_path):
    # Initialize the model
    model = load_model("qwen3.5", "35B")
    
    # Read the video frames
    cap = cv2.VideoCapture(video_path)
    while cap.isOpened():
        ret, frame = cap.read()
        if not ret:
            break
        
        # Preprocess the frame
        frame = preprocess_frame(frame)
        
        # Run the model on the frame
        output = model.predict(frame)
        
        # Process the output
        process_output(output)
    
    cap.release()
  • Update the preprocess_frame function to handle video frames:
def preprocess_frame(frame):
    # Resize the frame
    frame = cv2.resize(frame, (224, 224))
    
    # Normalize the frame
    frame = frame / 255.0
    
    return frame

Verification

To verify the fix, run the video_analysis.py script with a sample video input:

python video_analysis.py --video_path=/path/to/sample.mp4

Check the output to ensure that the video is being analyzed correctly.

Extra Tips

  • Make sure to update the models.json file with the correct model versions and supported formats.
  • Use the cv2 library to handle video inputs and preprocess the frames.
  • Test the video_analysis.py script with different video formats to ensure compatibility.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

ollama - 💡(How to fix) Fix Why do versions after February 20th no longer support video formats such as MP4.AVI? [1 comments, 2 participants]