CamStudio *.avi source files rendered at ridiculous framerate in Blender #44397

Closed
opened 2015-04-15 11:57:18 +02:00 by Paul Chudley · 15 comments

Windows XP

Blender 32 bit version 2.68a

NOTE: After searching the net, I have seen mention of video playback being too fast, but have not seen anyone describe how to cause it repeatably. But I can.

(Also, I don't have the XP system in front of me now, and may not be able to log in to this reporting system again as I forgot the password and somehow got in anyway without a password (from a password reset email link), but it won't let me change my password without the old one (which I don't have!). Maybe this is another bug - perhaps someone can put this where it should go for me, because this is my first time here and it's not going well so far.)

Blender BUG Description:
When rendering a video from multiple source files in the sequencer, some source *.avi files render at ridiculous playback speed, so that they finish well before their allotted time, followed by a black screen until the next source clip starts.

NOTE: This happens when both these conditions are met:
a) I use a *.avi with created by CamStudio screen casting.
b) The beginning of the *.avi source clip is not part of the final render in blender. (This might be because the end of another clip obscures the start of the clip, or the clip is trimmed by Blender, so that it skips some initial frames.)

I don't have a blender file to attach for you, but I set up my video editing with a new install of blender, and then basically just followed the first 12 mins or so of this tutorial: https://www.youtube.com/watch?v=te9HFQVaSUE
...except I didn't bother with his imported key configuration - I just used Blender's defaults.

To create a reliable failing *.avi file, use CamStudio. I didn't let it record audio, and I think I used the first codec on the drop down list (I think it was Cinepak Codec by Radius), with a 30fps rate.
I recorded an area 1280x720. It doesn't matter how long the video is, but most of mine were at least tens of seconds long.

You just need two files. Put one on a higher channel (eg channel 3) and put the next one on a lower channel (eg channel 2), but position the second clip to start before the first clip has ended. Set the frame extents to cover all the footage, and render it. (I used H264, 1280x720, 29.97fps, MP4, with audio codec. I also had audio *.wav files in the sequencer, created by Sound Recorder, but I suspect this is irrelevant - though I haven't tested without them.) Playback in VLC should show it has ruined the second clip, and after the first clip ends, it will play the second at hyperspeed, followed by a black screen until the end of the video.

(I even had problems with trimming the END of a clip causing the issue, although I not certain whether at least one of these actually worked, so I won't put it in the "conditions" list - but it is worth a mention.)

I didn't have nearly as many issues with videos shot on an actual camera, in *.mov format. I did experience the issue with these, but it seemed more unpredictable. I found I could not trim them if I wanted to guarantee that things worked with no issues. Some could be trimmed, some could not.

I quickly learnt not to start any video clips prior to the ending of a video clip on a higher channel, if I didn't want my time wasted by Blender. (It was reliably wasting my time if I didn't follow that rule.)

Windows XP Blender 32 bit version 2.68a NOTE: After searching the net, I have seen mention of video playback being too fast, but have not seen anyone describe how to cause it repeatably. But I can. (Also, I don't have the XP system in front of me now, and may not be able to log in to this reporting system again as I forgot the password and somehow got in anyway without a password (from a password reset email link), but it won't let me change my password without the old one (which I don't have!). Maybe this is another bug - perhaps someone can put this where it should go for me, because this is my first time here and it's not going well so far.) Blender BUG Description: When rendering a video from multiple source files in the sequencer, some source *.avi files render at ridiculous playback speed, so that they finish well before their allotted time, followed by a black screen until the next source clip starts. NOTE: This happens when both these conditions are met: a) I use a *.avi with created by CamStudio screen casting. b) The beginning of the *.avi source clip is not part of the final render in blender. (This might be because the end of another clip obscures the start of the clip, or the clip is trimmed by Blender, so that it skips some initial frames.) I don't have a blender file to attach for you, but I set up my video editing with a new install of blender, and then basically just followed the first 12 mins or so of this tutorial: https://www.youtube.com/watch?v=te9HFQVaSUE ...except I didn't bother with his imported key configuration - I just used Blender's defaults. To create a reliable failing *.avi file, use CamStudio. I didn't let it record audio, and I think I used the first codec on the drop down list (I think it was Cinepak Codec by Radius), with a 30fps rate. I recorded an area 1280x720. It doesn't matter how long the video is, but most of mine were at least tens of seconds long. You just need two files. Put one on a higher channel (eg channel 3) and put the next one on a lower channel (eg channel 2), but position the second clip to start before the first clip has ended. Set the frame extents to cover all the footage, and render it. (I used H264, 1280x720, 29.97fps, MP4, with audio codec. I also had audio *.wav files in the sequencer, created by Sound Recorder, but I suspect this is irrelevant - though I haven't tested without them.) Playback in VLC should show it has ruined the second clip, and after the first clip ends, it will play the second at hyperspeed, followed by a black screen until the end of the video. (I even had problems with trimming the END of a clip causing the issue, although I not certain whether at least one of these actually worked, so I won't put it in the "conditions" list - but it is worth a mention.) I didn't have nearly as many issues with videos shot on an actual camera, in *.mov format. I did experience the issue with these, but it seemed more unpredictable. I found I could not trim them if I wanted to guarantee that things worked with no issues. Some could be trimmed, some could not. I quickly learnt not to start any video clips prior to the ending of a video clip on a higher channel, if I didn't want my time wasted by Blender. (It was reliably wasting my time if I didn't follow that rule.)
Author

Changed status to: 'Open'

Changed status to: 'Open'
Author

Added subscriber: @Bluth

Added subscriber: @Bluth
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member

Are you seriously using blender 2.68? we are half way to 2.75 now please test with blender from here non gooseberry https://builder.blender.org/download/ also please attach a .blend or a link to were we could download it and the sorce files in the case of the VSE

Are you seriously using blender 2.68? we are half way to 2.75 now please test with blender from here non gooseberry https://builder.blender.org/download/ also please attach a .blend or a link to were we could download it and the sorce files in the case of the VSE
Author

You are right - I made an error with the version. I checked the XP system today and I am using 2.73a.

I also tested with your 2.74, and it still has the bug.

Here is a blend file with a video file I made today on the XP system so you can see it happening. I zipped them. Blender_2.73a_VSE_BUG_Demo.zip

You are right - I made an error with the version. I checked the XP system today and I am using 2.73a. I also tested with your 2.74, and it still has the bug. Here is a blend file with a video file I made today on the XP system so you can see it happening. I zipped them. [Blender_2.73a_VSE_BUG_Demo.zip](https://archive.blender.org/developer/F163323/Blender_2.73a_VSE_BUG_Demo.zip)
Member

do you have sp3 on the xp system

do you have sp3 on the xp system
Author

I am pretty sure it does. It would be fully up to date.

I am pretty sure it does. It would be fully up to date.
Author

I am also pretty sure this bug is not system dependent. I tested it with the same blend file and video file on a Linux Mint system, (albeit using Blender 2.69) and it behaves exactly the same.

I am also pretty sure this bug is not system dependent. I tested it with the same blend file and video file on a Linux Mint system, (albeit using Blender 2.69) and it behaves exactly the same.
Member

Will test later

Will test later
Member

Added subscribers: @MartijnBerger, @JulianEisel

Added subscribers: @MartijnBerger, @JulianEisel
Member

I tested this some days ago but couldn't recreate something similar. @Blendify, did you test? Could also be an XP issue so maybe @MartijnBerger can have a look?

I tested this some days ago but couldn't recreate something similar. @Blendify, did you test? Could also be an XP issue so maybe @MartijnBerger can have a look?
Member

not yet may be later to day

not yet may be later to day

Added subscriber: @Sergey

Added subscriber: @Sergey

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Sergey Sharybin self-assigned this 2015-05-25 21:03:29 +02:00

The file is just not really compatible with FFmpeg version we're using blender. You can see this by generating timecode for the video and choosing Free Run no Gaps codec. It'll cause only frames to be loaded correctly, all the rest are failing to decode.

Workaround would be to generate timecode and use Record Run one. It seems to generate proper timing. Or alternatively, re-encode the file externally to some more common interchange format with guaranteed proper header and index frames.

Surely it's possible to improve Blender by at least generating timecodes alternatively, but this is already in out TODO list and will happen outside of the bug tracker work. So thanks for the report, but archiving it now.

The file is just not really compatible with FFmpeg version we're using blender. You can see this by generating timecode for the video and choosing Free Run no Gaps codec. It'll cause only frames to be loaded correctly, all the rest are failing to decode. Workaround would be to generate timecode and use Record Run one. It seems to generate proper timing. Or alternatively, re-encode the file externally to some more common interchange format with guaranteed proper header and index frames. Surely it's possible to improve Blender by at least generating timecodes alternatively, but this is already in out TODO list and will happen outside of the bug tracker work. So thanks for the report, but archiving it now.
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#44397
No description provided.