Rendered video randomly twice as fast as audio (preview looks normal) #47786

Closed
opened 2016-03-14 00:07:24 +01:00 by Natalie Ardasevova · 13 comments

System Information
RHEL 7.1 (Maipo)
Graphics: Intel® HD Graphics 5500 (Broadwell GT2)

Blender Version
Broken: (blender-2.76b-linux-glibc211-x86_64)

Short description of error

Dear all, a very strange thing is happening to me in blender. I recorded footage from cca 10 years old camera (can't tell you the type, don't remember). The footage was 25fps, original dimension 1440x1080. I set up the blender environment according to this video https://www.youtube.com/watch?v=yjTn8GsRk48&list=PLjyuVPBuorqIhlqZtoIvnAVQ3x18sNev4&index=2 and started inserting my clips. As the tutorial said, I was supposed to match the dimensions and fps of the original with the settings in Blender. But when I changed the Blender's preset resolution of 1920x1080 to my needed 1440x1080, the video got squeezed from right and left, leaving the picture squeezed and therefore useless. So I changed it back, hoping it wouldn't matter (but it may affect the problem I'm about to describe).

I had footage that was all taken from one camera under the same settings. When I took pieces of the recording and cut them in Blender, after rendering, in a few of these cuts the video is twice as fast as the audio. Later I deleted and inserted the "wrong" pieces again. The strangest thing is that one day it rendered fine, and a few days later the latter clip is wring again:
You can see here:
everything at the right speed - http://www.filedropper.com/8168-9085
second cut is wrong - http://www.filedropper.com/8700-9921

Could you tell what went wrong from this?

Also - is it on purpose that when closing Blender, it doesn't ask if I want to save changes or not?

Exact steps for others to reproduce the error
Based on a (as simple as possible) attached .blend file with minimum amount of steps

treti pokus.blend

Thank you...

**System Information** RHEL 7.1 (Maipo) Graphics: Intel® HD Graphics 5500 (Broadwell GT2) **Blender Version** Broken: (blender-2.76b-linux-glibc211-x86_64) **Short description of error** Dear all, a very strange thing is happening to me in blender. I recorded footage from cca 10 years old camera (can't tell you the type, don't remember). The footage was 25fps, original dimension 1440x1080. I set up the blender environment according to this video https://www.youtube.com/watch?v=yjTn8GsRk48&list=PLjyuVPBuorqIhlqZtoIvnAVQ3x18sNev4&index=2 and started inserting my clips. As the tutorial said, I was supposed to match the dimensions and fps of the original with the settings in Blender. But when I changed the Blender's preset resolution of 1920x1080 to my needed 1440x1080, the video got squeezed from right and left, leaving the picture squeezed and therefore useless. So I changed it back, hoping it wouldn't matter (but it may affect the problem I'm about to describe). I had footage that was all taken from one camera under the same settings. When I took pieces of the recording and cut them in Blender, after rendering, in a few of these cuts the video is twice as fast as the audio. Later I deleted and inserted the "wrong" pieces again. The strangest thing is that one day it rendered fine, and a few days later the latter clip is wring again: You can see here: everything at the right speed - http://www.filedropper.com/8168-9085 second cut is wrong - http://www.filedropper.com/8700-9921 Could you tell what went wrong from this? Also - is it on purpose that when closing Blender, it doesn't ask if I want to save changes or not? **Exact steps for others to reproduce the error** Based on a (as simple as possible) attached .blend file with minimum amount of steps [treti pokus.blend](https://archive.blender.org/developer/F290086/treti_pokus.blend) Thank you...

Changed status to: 'Open'

Changed status to: 'Open'

Added subscriber: @Natwhipu

Added subscriber: @Natwhipu

Added subscriber: @davidmcsween

Added subscriber: @davidmcsween

If the source media was anamorphic and your *player does not support PAR //(Pixel Aspect Ratio) then it will look squeezed.
"The HDV 1080i/p formats record at 1440×1080 resolution with a 1.333 PAR, so these would be considered anamorphic HD formats. Note that 1440 times 1.333 equals 1920, so when this video is played back from an appropriate device like an HDV camera or a Blu-ray player, the device will respect the 1.333 PAR and display the video at 1920×1080, while Windows Media Player would display the image at the native 1440×1080 size using square pixels, losing the widescreen appearance. "

When you selected the alternate project dimensions you also chose a different frame rate. However it is only 23.98fps, not enough to account for a doubling of the frame rate. I think that the problem could be with the source media CODEC. It could be Frame Segmented which is sort of interlaced progressive. Blender might not recognize this format correctly and may play each segment as a separate frame. This will make the sound appear to run faster than the video.
However due to the incorrect decoding Blender might display to few frames as well.

I would transcode this media to a more modern CODEC that Blender can recognize. Also try generating a proxy and timecode. You can use ffmpeg or MpegStreamclip to do this. If this resolves the issue then it probably isn't a bug, just an unsupported legacy CODEC.

If the source media was [anamorphic ](http:*blog.sharbor.com/blog/2010/07/anamorphic-widescreen-understanding-pixel-aspect-ratios-3/) and your ***player does not support PAR //**(Pixel Aspect Ratio) then it will look squeezed. "The HDV 1080i/p formats record at 1440×1080 resolution with a 1.333 PAR, so these would be considered anamorphic HD formats. Note that 1440 times 1.333 equals 1920, so when this video is played back from an appropriate device like an HDV camera or a Blu-ray player, the device will respect the 1.333 PAR and display the video at 1920×1080, while Windows Media Player would *display the image at the native 1440×1080 size using square pixels, losing the widescreen appearance*. " When you selected the alternate project dimensions you also chose a different frame rate. However it is only 23.98fps, not enough to account for a doubling of the frame rate. I think that the problem could be with the source media CODEC. It could be Frame Segmented which is sort of interlaced progressive. Blender might not recognize this format correctly and may play each segment as a separate frame. This will make the sound appear to run faster than the video. However due to the incorrect decoding Blender might display to few frames as well. I would transcode this media to a more modern CODEC that Blender can recognize. Also try generating a proxy and timecode. You can use ffmpeg or MpegStreamclip to do this. If this resolves the issue then it probably isn't a bug, just an unsupported legacy CODEC.

Hi David,

thank you so much for your quick reply! Sweet, I downloaded ffmpeg. Can I ask you what "more modern CODEC" would you recommend using that Blender 2.76 would recognize?

Thank you,

Natalie

Hi David, thank you so much for your quick reply! Sweet, I downloaded ffmpeg. Can I ask you what "more modern CODEC" would you recommend using that Blender 2.76 would recognize? Thank you, Natalie

Hi Natalie, you may have a long recording in which case i might suggest mp4 codec. The key thing is to transcode the frames in their correct interlacing so that no resolution is lost and you get square pixels without anamorphic squeezing. In blender every function of the timeline may cost you rendering time.. which can multiply pretty quickly over a long project. You want to avoid scaling which the vse does automatically when project settings don't match the source.

David

Hi Natalie, you may have a long recording in which case i might suggest mp4 codec. The key thing is to transcode the frames in their correct interlacing so that no resolution is lost and you get square pixels without anamorphic squeezing. In blender every function of the timeline may cost you rendering time.. which can multiply pretty quickly over a long project. You want to avoid scaling which the vse does automatically when project settings don't match the source. David

Added subscriber: @Sergey

Added subscriber: @Sergey

This is tricky to troubleshoot.. We really need to have reproduceable case for troubleshooting. Simpler the case is better. It'll also help if you isolate the randomness, if something is random we wouldn't know if we're unlucky and random is bad for us or the issue could not be reproduced on our machines.

Additionally. try using Record Run timecode for your videos and see if makes any difference.

If timecode doesn't help, please provide all files needed to reproduce the issue.

This is tricky to troubleshoot.. We really need to have reproduceable case for troubleshooting. Simpler the case is better. It'll also help if you isolate the randomness, if something is random we wouldn't know if we're unlucky and random is bad for us or the issue could not be reproduced on our machines. Additionally. try using Record Run timecode for your videos and see if makes any difference. If timecode doesn't help, please provide all files needed to reproduce the issue.
Member

Added subscriber: @Blendify

Added subscriber: @Blendify
Member
See https://www.blender.org/manual/editors/sequencer/strips/properties/proxy_timecode.html for more information.

Added subscriber: @mont29

Added subscriber: @mont29

Changed status from 'Open' to: 'Archived'

Changed status from 'Open' to: 'Archived'
Bastien Montagne self-assigned this 2016-04-01 15:48:56 +02:00

No news since one week…

No news since one week…
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
5 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#47786
No description provided.