VSE Detecting and setting incorrect frame rate #53687

Closed
opened 2018-01-03 17:55:10 +01:00 by ChristopherAnderssarian · 12 comments

System Information
Windows 7 Ultimate, 64-bit, 32GB, 5960x, Nvidia Quadro FX 1800 (Primary) & GeForce 9800 GTX+ (Secondary)
Graphics Tablet: Wacom Bamboo Model: CTF-430 Driver Version 5.2.4-5

Blender Version
Official release(s) unless specified:
Broken: 2.79, 2.79.0-e59cf13 (Windows 64-Bit)
Worked: (N/A)

Short description of error

When adding the first video strip the VSE sets the wrong framerate.
Detecting 1000fps.png

Exact steps for others to reproduce the error

0001-0600 (60fps).mkv

Detect.blend

File I used to create the video.

VSE_Framerate.blend

P.S. I could have sworn I saw this bug reported here, but I can't find it and it's not fixed in the Daily build.

**System Information** Windows 7 Ultimate, 64-bit, 32GB, 5960x, Nvidia Quadro FX 1800 (Primary) & GeForce 9800 GTX+ (Secondary) Graphics Tablet: Wacom Bamboo Model: CTF-430 Driver Version 5.2.4-5 **Blender Version** Official release(s) unless specified: Broken: 2.79, 2.79.0-e59cf13 (Windows 64-Bit) Worked: (N/A) **Short description of error** When adding the first video strip the VSE sets the wrong framerate. ![Detecting 1000fps.png](https://archive.blender.org/developer/F1679577/Detecting_1000fps.png) **Exact steps for others to reproduce the error** [0001-0600 (60fps).mkv](https://archive.blender.org/developer/F1679661/0001-0600__60fps_.mkv) [Detect.blend](https://archive.blender.org/developer/F1679665/Detect.blend) File I used to create the video. [VSE_Framerate.blend](https://archive.blender.org/developer/F1679751/VSE_Framerate.blend) P.S. I could have sworn I saw this bug reported here, but I can't find it and it's not fixed in the Daily build.

Added subscriber: @ChristopherAnderssarian

Added subscriber: @ChristopherAnderssarian
Member

Added subscriber: @lichtwerk

Added subscriber: @lichtwerk
Philipp Oeser self-assigned this 2018-01-03 19:18:12 +01:00
Member

first note:
ffmpeg itself [like outside of blender] detects the provided file as 1k fps, so this might not be the detection that goes wrong but the writing...

ffmpeg -i 0001-0600\ \(60fps\).mkv 
ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers
  built with gcc 7 (GCC)
  configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect
  libavutil      55. 58.100 / 55. 58.100
  libavcodec     57. 89.100 / 57. 89.100
  libavformat    57. 71.100 / 57. 71.100
  libavdevice    57.  6.100 / 57.  6.100
  libavfilter     6. 82.100 /  6. 82.100
  libavresample   3.  5.  0 /  3.  5.  0
  libswscale      4.  6.100 /  4.  6.100
  libswresample   2.  7.100 /  2.  7.100
  libpostproc    54.  5.100 / 54.  5.100
Input #0, matroska,webm, from '0001-0600 (60fps).mkv':
  Metadata:
    ENCODER         : Lavf57.56.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 1061 kb/s
    Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1k fps, 60 tbr, 1k tbn, 120 tbc (default)
    Metadata:
      DURATION        : 00:00:10.000000000

will dig deeper shortly... [either way there seems to be something wrong here]

first note: ffmpeg itself [like outside of blender] detects the provided file as 1k fps, so this might not be the detection that goes wrong but the writing... ``` ffmpeg -i 0001-0600\ \(60fps\).mkv ffmpeg version 3.3.5 Copyright (c) 2000-2017 the FFmpeg developers built with gcc 7 (GCC) configuration: --prefix=/usr --bindir=/usr/bin --datadir=/usr/share/ffmpeg --docdir=/usr/share/doc/ffmpeg --incdir=/usr/include/ffmpeg --libdir=/usr/lib64 --mandir=/usr/share/man --arch=x86_64 --optflags='-O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -m64 -mtune=generic' --extra-ldflags='-Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld ' --extra-cflags='-I/usr/include/nvenc ' --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvo-amrwbenc --enable-version3 --enable-bzlib --disable-crystalhd --enable-fontconfig --enable-frei0r --enable-gcrypt --enable-gnutls --enable-ladspa --enable-libass --enable-libbluray --enable-libcdio --enable-indev=jack --enable-libfreetype --enable-libfribidi --enable-libgsm --enable-libmp3lame --enable-nvenc --enable-openal --enable-opencl --enable-opengl --enable-libopenjpeg --enable-libopus --enable-libpulse --enable-libschroedinger --enable-libsoxr --enable-libspeex --enable-libtheora --enable-libvorbis --enable-libv4l2 --enable-libvpx --enable-libx264 --enable-libx265 --enable-libxvid --enable-avfilter --enable-avresample --enable-postproc --enable-pthreads --disable-static --enable-shared --enable-gpl --disable-debug --disable-stripping --shlibdir=/usr/lib64 --enable-libmfx --enable-runtime-cpudetect libavutil 55. 58.100 / 55. 58.100 libavcodec 57. 89.100 / 57. 89.100 libavformat 57. 71.100 / 57. 71.100 libavdevice 57. 6.100 / 57. 6.100 libavfilter 6. 82.100 / 6. 82.100 libavresample 3. 5. 0 / 3. 5. 0 libswscale 4. 6.100 / 4. 6.100 libswresample 2. 7.100 / 2. 7.100 libpostproc 54. 5.100 / 54. 5.100 Input #0, matroska,webm, from '0001-0600 (60fps).mkv': Metadata: ENCODER : Lavf57.56.100 Duration: 00:00:10.00, start: 0.000000, bitrate: 1061 kb/s Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1k fps, 60 tbr, 1k tbn, 120 tbc (default) Metadata: DURATION : 00:00:10.000000000 ``` will dig deeper shortly... [either way there seems to be something wrong here]
Member

Added subscriber: @LazyDodo

Added subscriber: @LazyDodo
Member

There used to be a bug in 2.79 in the writer indeed, should be fixed for 2.79a

There used to be a bug in 2.79 in the writer indeed, should be fixed for 2.79a
Member

if you render provided .blend in 2.79a release branch, the output still reads like this (and will still be interpreted as 1000fps if opened in VSE)
Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1k fps, 60 tbr, 1k tbn, 120 tbc (default)

if you render provided .blend in 2.79a release branch, the output still reads like this (and will still be interpreted as 1000fps if opened in VSE) `Stream #0:0: Video: h264 (High), yuv420p(progressive), 1920x1080 [SAR 1:1 DAR 16:9], 1k fps, 60 tbr, 1k tbn, 120 tbc (default)`
Member

i can't repro that with 2.79a @lichtwerk?

i rendered VSE_Framerate.blend this is what it spit out..

Input #0, matroska,webm, from '0001-0600.mkv':
  Metadata:
    ENCODER         : Lavf57.56.100
  Duration: 00:00:10.00, start: 0.000000, bitrate: 1076 kb/s
    Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn, 120 tbc (default)
    Metadata:
      DURATION        : 00:00:10.000000000
i can't repro that with 2.79a @lichtwerk? i rendered VSE_Framerate.blend this is what it spit out.. ``` Input #0, matroska,webm, from '0001-0600.mkv': Metadata: ENCODER : Lavf57.56.100 Duration: 00:00:10.00, start: 0.000000, bitrate: 1076 kb/s Stream #0:0: Video: h264 (High), yuv420p, 1920x1080 [SAR 1:1 DAR 16:9], 60 fps, 60 tbr, 1k tbn, 120 tbc (default) Metadata: DURATION : 00:00:10.000000000 ```
Member

Sorry, was on wrong branch. Can confirm that it now writes correctly (and therefor also reads in correctly)

Still left is the case when fps and tbr dont match [like in the mkv posted here], see also #53857

Sorry, was on wrong branch. Can confirm that it now writes correctly (and therefor also reads in correctly) Still left is the case when fps and tbr dont match [like in the mkv posted here], see also #53857
Philipp Oeser removed their assignment 2018-02-04 22:22:53 +01:00
Member

Unfortunately I'll only be able to look at this in April again, so let others take over....

Unfortunately I'll only be able to look at this in April again, so let others take over....

Changed status from 'Open' to: 'Resolved'

Changed status from 'Open' to: 'Resolved'
ChristopherAnderssarian self-assigned this 2018-04-06 20:12:43 +02:00

Added subscriber: @Sergey

Added subscriber: @Sergey

First part has been fixed.
Second part fixed by @Sergey in D3083 370a2d6917

First part has been fixed. Second part fixed by @Sergey in [D3083](https://archive.blender.org/developer/D3083) 370a2d6917
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
3 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#53687
No description provided.