blender/source/gameengine/VideoTexture
Sergey Sharybin 370a2d6917 Fix T53857: Incorrect framerate for videos imported from OBS
This is an issue with which value to trust: fps vs. tbr. They both cam be
somewhat broken. Currently the idea is:

- If file was saved with FFmpeg AND we are decoding with FFmpeg we trust tbr.
- If we are decoding with Libav we use fps (there does not seem to be tbr in
  Libav, unless i'm missing something).
- All other cases we use fps.

Seems to work all good for files from T53857, T54148 and T51153. Ideally we
would need to collect some amount of regression files to make further tweaks
more scientific.

Reviewers: mont29

Reviewed By: mont29

Differential Revision: https://developer.blender.org/D3083
2018-03-09 10:32:17 +01:00
..
BlendType.h BGE: Making sure m_objType is initialized in the BlendType (VideoTexture) constructor. 2013-08-03 05:01:50 +00:00
blendVideoTex.cpp BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
CMakeLists.txt BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
Common.h BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
DeckLink.cpp Cleanup: comment blocks 2016-07-02 10:08:33 +10:00
DeckLink.h Cleanup: comment blocks 2016-07-02 10:08:33 +10:00
Exception.cpp BGE: DeckLink card support for video capture and streaming. 2016-06-11 22:26:05 +02:00
Exception.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
FilterBase.cpp Fix leak in Python BGE filter & image types 2017-08-18 00:55:16 +10:00
FilterBase.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
FilterBlueScreen.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
FilterBlueScreen.h style cleanup 2013-03-29 06:21:28 +00:00
FilterColor.cpp Cleanup: Grey --> Gray 2017-02-27 19:33:57 -05:00
FilterColor.h Cleanup: Grey --> Gray 2017-02-27 19:33:57 -05:00
FilterNormal.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
FilterNormal.h style cleanup 2013-03-29 06:21:28 +00:00
FilterSource.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
FilterSource.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
ImageBase.cpp Fix leak in Python BGE filter & image types 2017-08-18 00:55:16 +10:00
ImageBase.h Unifying access to GLEW from the Blender Game Engine 2017-05-11 16:08:03 +02:00
ImageBuff.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
ImageBuff.h code cleanup: gpl header update (formatting) 2012-11-18 00:30:06 +00:00
ImageMix.cpp BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
ImageMix.h BGE: Making sure m_offset is initialized in the ImageSourceMix constructor. 2013-08-03 05:01:36 +00:00
ImageRender.cpp Unifying access to GLEW from the Blender Game Engine 2017-05-11 16:08:03 +02:00
ImageRender.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
ImageViewport.cpp Unifying access to GLEW from the Blender Game Engine 2017-05-11 16:08:03 +02:00
ImageViewport.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
PyTypeList.cpp BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
PyTypeList.h Make Blender ready for C++11 2016-02-20 16:45:53 +01:00
Texture.cpp Unifying access to GLEW from the Blender Game Engine 2017-05-11 16:08:03 +02:00
Texture.h BGE Clean-up: New EXP prefix for the BGE Expression module 2015-07-12 16:58:12 +02:00
VideoBase.cpp BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
VideoBase.h BGE: Various render improvements. 2016-06-11 22:05:20 +02:00
VideoDeckLink.cpp Atomics: Make naming more obvious about which value is being returned 2016-11-15 12:16:26 +01:00
VideoDeckLink.h Unifying access to GLEW from the Blender Game Engine 2017-05-11 16:08:03 +02:00
VideoFFmpeg.cpp Fix T53857: Incorrect framerate for videos imported from OBS 2018-03-09 10:32:17 +01:00
VideoFFmpeg.h Cleanup: whitespace 2015-08-06 13:03:07 +10:00