Encoded video fps is wrong #88568

Closed
opened 2021-05-25 16:06:58 +02:00 by Sebastian Parborg · 11 comments

System Information
Operating system: Gentoo Linux
Graphics card: AMD 580

Blender Version
Broken: master
Worked: 2.93

Short description of error
After we moved to the new non deprecated encoding/decoding ffmpeg APIs, ffmpeg encoded videos would sometimes have the wrong FPS.
This is a issue with older ffmpeg versions, so we need to bump our minimal ffmpeg version to 4.4.

Exact steps for others to reproduce the error
export_testing_2.blend

  1. Open the provided .blend file
  2. Render out the video
  3. See that the video file does not have a FPS of 24.0

FPS can be checked from command line with: ffprobe /tmp/0101-0111.mp4

**System Information** Operating system: Gentoo Linux Graphics card: AMD 580 **Blender Version** Broken: master Worked: 2.93 **Short description of error** After we moved to the new non deprecated encoding/decoding ffmpeg APIs, ffmpeg encoded videos would sometimes have the wrong FPS. This is a issue with older ffmpeg versions, so we need to bump our minimal ffmpeg version to 4.4. **Exact steps for others to reproduce the error** [export_testing_2.blend](https://archive.blender.org/developer/F10141323/export_testing_2.blend) 1. Open the provided .blend file 2. Render out the video 3. See that the video file does not have a FPS of 24.0 FPS can be checked from command line with: `ffprobe /tmp/0101-0111.mp4`
Author
Member

Added subscriber: @ZedDB

Added subscriber: @ZedDB
Author
Member

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

Added subscriber: @dr.sybren

Added subscriber: @dr.sybren

I can confirm this is fixes by linking against FFmpeg 4.4.

I can confirm this is fixes by linking against FFmpeg 4.4.

This issue was referenced by None@62628

This issue was referenced by None@62628
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

I have the windows libs ready, but during testing i hit a snag, i'm not seeing a difference between 4.3.2 and 4.4 scratch that, used a too old build for testing 4.2.3 that did not have the issue yet, can confirm 4.2.3 was bad, and 4.4 fixes the issue on windows.

c:\tmp>ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate 0101-0111_423.mp4
24/1

c:\tmp>ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate 0101-0111_44.mp4
24/1
~~I have the windows libs ready, but during testing i hit a snag, i'm not seeing a difference between 4.3.2 and 4.4~~ scratch that, used a too old build for testing 4.2.3 that did not have the issue yet, can confirm 4.2.3 was bad, and 4.4 fixes the issue on windows. ``` c:\tmp>ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate 0101-0111_423.mp4 24/1 c:\tmp>ffprobe -v error -select_streams v -of default=noprint_wrappers=1:nokey=1 -show_entries stream=r_frame_rate 0101-0111_44.mp4 24/1 ```

This issue was referenced by None@62629

This issue was referenced by None@62629

This issue was referenced by None@62631

This issue was referenced by None@62631
Author
Member

After some collaboration with Sergey, I've created a fix for ffmpeg < 4.4 : https://developer.blender.org/D11417

After some collaboration with Sergey, I've created a fix for ffmpeg < 4.4 : https://developer.blender.org/D11417
Author
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Sebastian Parborg self-assigned this 2021-05-31 11:37:47 +02:00
Thomas Dinges added this to the 3.0 milestone 2023-02-08 15:59:10 +01: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#88568
No description provided.