Page MenuHome

CamStudio *.avi source files rendered at ridiculous framerate in Blender
Closed, ArchivedPublic

Description

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.)

Event Timeline

Paul Chudley (Bluth) raised the priority of this task from to 90.
Paul Chudley (Bluth) updated the task description. (Show Details)
Paul Chudley (Bluth) edited a custom field.
Aaron Carlisle (Blendify) lowered the priority of this task from 90 to 30.Apr 15 2015, 7:27 PM

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

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.

do you have sp3 on the xp system

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

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.

Aaron Carlisle (Blendify) raised the priority of this task from 30 to Normal.Apr 18 2015, 6:24 PM

Will test later

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

not yet may be later to day

Sergey Sharybin (sergey) changed the task status from Unknown Status to Unknown Status.May 25 2015, 9:03 PM
Sergey Sharybin (sergey) claimed this task.

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.