ollama - 💡(How to fix) Fix 为什么2月20日后的版本,都不再支持MP4.AVI 等视频格式? [1 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#14899Fetched 2026-04-08 00:48:05
View on GitHub
Comments
0
Participants
1
Timeline
2
Reactions
0
Participants
Timeline (top)
closed ×1labeled ×1
RAW_BUFFERClick to expand / collapse

原来第一次更新的17.0版本 安装qwen3.5 35B 27B VL 等模型是支持视频理解,为什么更新后全部都不支持? 希望恢复视频功能,目前只能使用jpg png等图片格式

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? In order to restore the video function, we can only use picture formats such as jpg png at present.

<img width="2671" height="1583" alt="Image" src="https://github.com/user-attachments/assets/8123f0e9-e13a-4216-b495-a39cb4adb2ee" />

extent analysis

Fix Plan

To restore video functionality, we need to re-enable video support in the updated models.

Step-by-Step Solution

  • Check the model configurations for qwen3.5, 35B, 27B, and VL to ensure they have video support enabled.
  • Update the model configurations to include video support by adding the following code:
model_config = {
    'qwen3.5': {'video_support': True},
    '35B': {'video_support': True},
    '27B': {'video_support': True},
    'VL': {'video_support': True}
}
  • Modify the image processing function to handle video files by adding the following code:
import cv2

def process_image(file_path):
    if file_path.endswith(('.mp4', '.avi', '.mov')):
        # Handle video file
        cap = cv2.VideoCapture(file_path)
        while cap.isOpened():
            ret, frame = cap.read()
            if not ret:
                break
            # Process frame
            yield frame
    else:
        # Handle image file
        img = cv2.imread(file_path)
        yield img
  • Update the model loading code to use the updated configurations:
from transformers import AutoModel

model = AutoModel.from_pretrained('qwen3.5', config=model_config['qwen3.5'])

Verification

Test the updated models with video files to ensure they can process video inputs correctly.

Extra Tips

  • Make sure to update the model configurations and code to handle video files correctly.
  • Test the updated models 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