VSE unable to display contents of some .mkv files. #108883

Closed
opened 2023-06-12 12:11:35 +02:00 by Juraj Mucha · 9 comments

System Information
Operating system: Windows-10-10.0.22621-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94

Blender Version
Broken: version: 3.3.6, branch: master, commit date: 2023-04-17 14:03, hash: 948f8298b982
Worked: 3.5.1-4.0 (tested with those two shared mkv files below)

Short description of error
Some video strip in VSE won't load video content.
Videos are in mkv format and play correctly in VLC player.
Converting these videos to mp4 fixes the problem.
Upon drag and dropping the same videos on VSE timeline they display only one frame for some reason.

Exact steps for others to reproduce the error
this is a link to a shared google drive folder.
In it is a demo blender file with first VSE movie strip being problematic and the other one is working.
In that same folder are also mkv video files referenced by VSE.
https://drive.google.com/drive/folders/1_eewHTMO4Kvn7dTIxCOCZrO6MAxuWsbr?usp=drive_link

**System Information** Operating system: Windows-10-10.0.22621-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3060 Laptop GPU/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 516.94 **Blender Version** Broken: version: 3.3.6, branch: master, commit date: 2023-04-17 14:03, hash: `948f8298b982` Worked: 3.5.1-4.0 (tested with those two shared mkv files below) **Short description of error** Some video strip in VSE won't load video content. Videos are in mkv format and play correctly in VLC player. Converting these videos to mp4 fixes the problem. Upon drag and dropping the same videos on VSE timeline they display only one frame for some reason. **Exact steps for others to reproduce the error** this is a link to a shared google drive folder. In it is a demo blender file with first VSE movie strip being problematic and the other one is working. In that same folder are also mkv video files referenced by VSE. https://drive.google.com/drive/folders/1_eewHTMO4Kvn7dTIxCOCZrO6MAxuWsbr?usp=drive_link
Juraj Mucha added the
Type
Report
Status
Needs Triage
Priority
Normal
labels 2023-06-12 12:11:35 +02:00
Member

Can't replicate the issue from ffprobe seems to give reasonable output for video stream.

Tried 3.5.1-4.0. @Georgefly Could you try using a newer version of blender?

Input #0, matroska,webm, from 'Sh0830_00099-00257.mkv':
  Metadata:
    SCENE           : Scene
    FILE            : D:\škola\2022 - 2023 (4r, 2. mgr r.)\mgr_animatic.blend
    NOTE            : Shot: Sh0830  *** Playblast Start Time: 3D: 40, Edit: 0
    DATE            : 2022/11/16 02:13:39
    ENCODER         : Lavf59.16.100
  Duration: 00:00:06.63, start: 0.000000, bitrate: 822 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc
    Metadata:
      DURATION        : 00:00:06.625000000
Can't replicate the issue from `ffprobe` seems to give reasonable output for video stream. Tried 3.5.1-4.0. @Georgefly Could you try using a newer version of blender? ``` Input #0, matroska,webm, from 'Sh0830_00099-00257.mkv': Metadata: SCENE : Scene FILE : D:\škola\2022 - 2023 (4r, 2. mgr r.)\mgr_animatic.blend NOTE : Shot: Sh0830 *** Playblast Start Time: 3D: 40, Edit: 0 DATE : 2022/11/16 02:13:39 ENCODER : Lavf59.16.100 Duration: 00:00:06.63, start: 0.000000, bitrate: 822 kb/s Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 24 fps, 24 tbr, 1k tbn, 48 tbc Metadata: DURATION : 00:00:06.625000000 ```
Author

I tried with both 3.5.1 just now (see screenshot attatched) and 4.0.0 Alpha as well both giving same faulty result.

I tried with both 3.5.1 just now (see screenshot attatched) and 4.0.0 Alpha as well both giving same faulty result.
Member

Clicking on the file folder under Source in the sidebar, then clicking on the mkv file resets the ending offset to 0, allowing the movie to be displayed. Before, it appears that the end (-131) is set to be before the beginning(-1). I think this is simply a case of the offset being incorrectly set some how. @Georgefly any idea how they might have gotten that way?

Clicking on the file folder under Source in the sidebar, then clicking on the mkv file resets the ending offset to 0, allowing the movie to be displayed. Before, it appears that the end (-131) is set to be before the beginning(-1). I think this is simply a case of the offset being incorrectly set some how. @Georgefly any idea how they might have gotten that way?
Member

Negative strip length could be related to #107588

Negative strip length could be related to #107588
Author

I can confirm that:

  1. loading source file from n panel in the .blend I aploaded for demo indeed resets the end values and allows for the content to appear, however I tried the same approach in the .blend file that this simplified demo originated form and it didn't reset.
  2. in the said original file, it seems all other "corrupted strips" have some negative offset start (always -1 ) and end (seems on random) and all the uncorrapted ones have these values at 0. Simply setting these values to 0 on corrupted ones does't solve the problem only shrinks the strip to length of 1 frame.

All the mkv files used in the original blend file were generated using Ubisoft Shot manager about a year ago and at roughly that time also loaded to VSE for editing. At that time all were displayed correctly. Now when I reopened the file, all strips were missing content due to change of a file name and therefore filepath. Using code generated by Chat GPT (visible in demo file) I changed filepaths of all the strips to correct ones but still for some of those this thing happened.

Sorry for a wall of text. I don't know how to shorten it and it all seems to me possibly important.

I can confirm that: 1. loading source file from n panel in the .blend I aploaded for demo indeed resets the end values and allows for the content to appear, however I tried the same approach in the .blend file that this simplified demo originated form and it didn't reset. 2. in the said original file, it seems all other "corrupted strips" have some negative offset start (always -1 ) and end (seems on random) and all the uncorrapted ones have these values at 0. Simply setting these values to 0 on corrupted ones does't solve the problem only shrinks the strip to length of 1 frame. All the mkv files used in the original blend file were generated using Ubisoft Shot manager about a year ago and at roughly that time also loaded to VSE for editing. At that time all were displayed correctly. Now when I reopened the file, all strips were missing content due to change of a file name and therefore filepath. Using code generated by Chat GPT (visible in demo file) I changed filepaths of all the strips to correct ones but still for some of those this thing happened. Sorry for a wall of text. I don't know how to shorten it and it all seems to me possibly important.
Member

In #103662 (comment) @iss says:

One thing that is odd is that in sample file seq->len is 1, which seems to produce incorrect end offset and strip ends up inverted. This can happen if filepath argument of new_sound() is not valid.

Glancing over the code I can't see how an incorrect filepath leads to inverted strip offsets, but both #103662 and this report have those two things in common.

In https://projects.blender.org/blender/blender/issues/103662#issuecomment-82046 @iss says: > One thing that is odd is that in sample file `seq->len` is 1, which seems to produce incorrect end offset and strip ends up inverted. This can happen if `filepath` argument of `new_sound()` is not valid. Glancing over the code I can't see how an incorrect filepath leads to inverted strip offsets, but both #103662 and this report have those two things in common.
Evan Wilson added
Status
Needs Triage
and removed
Status
Needs Information from User
labels 2023-06-23 12:19:12 +02:00

I am not quite sure what is the issue here, but from comments it seems, that somehow file path got broken and when repaired with script, operation was not sucessful.
So I see 2 issues:

  • Filepaths got broken - Haven't heared about such issue, but I would need a way to replicate this. If you think this is a bug in Blender, please provide old file that works with old version and specify which version works.
  • Script not repairing path properly - I also would have to replicate this issue, so I would need instructions on how to setup paths and such to replicate what you did.

I see, that when I click on filepath property and press enter, the content appears, so I can investigate that.

As far as negative offsets go, these are normal. You can extend strip length beyond content length this way. Since content length was set to 1 it likely applied negative offset to not lose strip position.

I am not quite sure what is the issue here, but from comments it seems, that somehow file path got broken and when repaired with script, operation was not sucessful. So I see 2 issues: - Filepaths got broken - Haven't heared about such issue, but I would need a way to replicate this. If you think this is a bug in Blender, please provide old file that works with old version and specify which version works. - Script not repairing path properly - I also would have to replicate this issue, so I would need instructions on how to setup paths and such to replicate what you did. I see, that when I click on filepath property and press enter, the content appears, so I can investigate that. As far as negative offsets go, these are normal. You can extend strip length beyond content length this way. Since content length was set to 1 it likely applied negative offset to not lose strip position.

As far as I can see, the only issue that prevents strip from being rendered is, that it doesn't have length defined, which happens when you set filepath. So I would need steps to reproduce that issue in order to fix the bug

As far as I can see, the only issue that prevents strip from being rendered is, that it doesn't have length defined, which happens when you set filepath. So I would need steps to reproduce that issue in order to fix the bug
Richard Antalik added
Status
Needs Information from User
and removed
Status
Needs Triage
labels 2023-07-05 01:35:32 +02:00
Author

@iss
To my understanding the filepath got broken because I changed the name of a parent file higher in the file structure (see filepaths under).
This was the filepath in the original file if it helps :
D:+Škola+\2022 - 2023 (4r, 2. mgr r.)\playblasts\5 serious\all\Sh0800_00040-00169.mkv

This was the filepath before I used the script to change it on all the strips (onli difference was that "+" characters were missing)
D:\Škola\2022 - 2023 (4r, 2. mgr r.)\playblasts\5 serious\all\Sh0800_00040-00169.mkv

Unfortunatelly I'm not sure what would be the exact steps to reproduce this.
If I can help in any way, or any of you can somehow direct me on what to do to help, please let me know.

@iss To my understanding the filepath got broken because I changed the name of a parent file higher in the file structure (see filepaths under). This was the filepath in the original file if it helps : D:\+Škola+\2022 - 2023 (4r, 2. mgr r.)\playblasts\5 serious\all\Sh0800_00040-00169.mkv This was the filepath before I used the script to change it on all the strips (onli difference was that "+" characters were missing) D:\Škola\2022 - 2023 (4r, 2. mgr r.)\playblasts\5 serious\all\Sh0800_00040-00169.mkv Unfortunatelly I'm not sure what would be the exact steps to reproduce this. If I can help in any way, or any of you can somehow direct me on what to do to help, please let me know.
Blender Bot added
Status
Archived
and removed
Status
Needs Information from User
labels 2023-07-17 16:26:06 +02:00
Sign in to join this conversation.
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No project
No Assignees
4 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#108883
No description provided.