unwanted conversion to 600fps #68343
Labels
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
6 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#68343
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Blender Version
Broken: 2.8
when rendering out videos in the video editor it outputs them as 600fps
if you upload a video into the video sequencer and set the framerate for 23.98 it outputs as 600fps. This can be seen by putting the rendered video back into the sequencer or checking the properties of the video itself.
Simplified file:
Simple_T68343.blend
Added subscriber: @oferrs03
Added subscriber: @ChristopherAnderssarian
There was a similar fix a while ago.
What export setting are you using? Can you share a .blend?
bvp.blend Boat vs pole.mp4 I can share the .blend file along with the video I was trying to edit
Thanks, I'll check later today...
Added subscriber: @iss
This seems to be similar to #53687 (VSE Detecting and setting incorrect frame rate) (further reading here: #53857)
but (in this example) does happen with AVI and speed control. It works in 2.79b, but fails in 2.8...
@iss not sure if you want to dig in to this or not...
Added subscriber: @hannes-10
Additional information from another affected user:
Is there a workaround for this, some different setting I can try?
Here's a fix using ffmpeg:
Changed status from 'Confirmed' to: 'Needs User Info'
I can not remember If I was looking into this, but I can not reproduce this issue anymore.
Thing with AVI container and speed fx is strange. Sequencer should have absolutely no influence on output frame rate.
Can anybody involved still reproduce this?
Changed status from 'Needs User Info' to: 'Needs Triage'
yep
yes0001-0025.avi
re-tested with Simple_T68343.blend
tested with on
blender-2.83-ddda1af97afc-windows64
Changed status from 'Needs Triage' to: 'Confirmed'
Added subscriber: @salvation
Hello.
I'm not familiar with the source code of Blender and FFmpeg, but I have tried to find the bug and if I insert one line in writeffmpeg.c
it export fine with the right fps ... maybe it helps to solve the problem in the right way.
Because its a hack, I put as example 25fps in the source-file.
The base code is from Blender 2.91.0 Alpha
In the file writeffmpeg.c I have inserted the following at line 1090.
I have tested it in Sony Vegas Video, VirtualDub, MediaInfo (MediaArea.net)
Edit: I'm working with Windows 10
writeffmpeg.c
@salvation Thanks for help, I haven't looked at this problem so far so I don't know much more than you. But looking that you used
AVRational
type, now I suspect that this could be caused by overflow perhaps. Will have a look and see if I get anywhere.@iss Or the value was never set before?
I set it directly after the memory request and it looks like the value never changed after that?... maybe the value was always 0 and therefore ffmpeg set it to a maximum of 600fps?
I have looked into this - bug happens, when fps time base in render settings is whole number.
The code looks pretty much OK, but
c->time_base.num
was always 0. I have even tried to change offending line toc->time_base.num = (int)(rd->frs_sec_base + 0.5f);
bu no luck.I re-checked in debug build and this didn't happen, so it looks like that compiler optimized this line out or something like that.
I don't know X86 asm so I can't read this immediately, but here is dissassembly (note current instruction vs watch window):
Bad:
Good - here I have only swapped lines around, but it would be probably weak fix:
fix is working.. that was a easy bugfix after 1 year :)
open source is cool
This issue was referenced by
b2e067d98c
Changed status from 'Confirmed' to: 'Resolved'